NEWS
ioBroker soll Raspberry PI System Befehl ausführen
-
@Thomas-Braun sorry ich muss jetzt doch noch mal nachfragen. Bin leider nicht der Linux Profi.
Ich hatte lange Zeit Jessi mit der ioBroker Installation und anderen Sachen (z.B. PiHole) auf dem Raspi laufen. Irgendwann bin ich von Jessi auf Stretch gegangen.
Es schien alles noch zu funzen.
Aus der Fix Anleitung werde ich leider nicht so ganz schlau draus.Hier nochmal meine Ausgangssituation:
Pi:
Linux Raspi 5.4.51-v7+ #1327 SMP Thu Jul 23 10:58:46 BST 2020 armv7l GNU/Linux
Distribution:
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.13 (stretch)
Release: 9.13
Codename: stretchMeine Fragen:
was ist der Unterschied zw. Node und Node.js?Was den Fix angeht sieht es ja so aus, als würden hier eher die Installationsorte: Node.js =/usr/bin vs. Node = /usr/local/bin angemahnt, statt die Versionsnumern selber.
which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
/usr/bin/nodejs
v8.17.0
/usr/local/bin/node
v12.18.3
/usr/local/bin/npm
6.14.6
nodejs:
Installiert: 8.17.0-1nodesource1
Installationskandidat: 8.17.0-1nodesource1
Versionstabelle:
*** 8.17.0-1nodesource1 500
500 https://deb.nodesource.com/node_8.x stretch/main armhf Packages
100 /var/lib/dpkg/status
8.11.1~dfsg-2~bpo9+1 500
500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
4.8.2~dfsg-1 500
500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf PackagesMuss ich eine Node Installation deinstallieren?
-
@Accu sagte in ioBroker soll Raspberry PI System Befehl ausführen:
Muss ich eine Node Installation deinstallieren?
Jein. Du solltest die Installation aus /usr/local/bin kratzen und dann den Paketmanager apt sauber aufsetzen und node/nodeJS dann daraus installieren.
Wie man das macht? Siehe oben.
Wenn nicht verstanden, konkret fragen.Die Versionsnummern von node / nodejs müssen am Ende gleich sein und in /usr/bin liegen.
Und bitte Konsolenausgaben als Text in CodeTags setzen. Liest sich besser.
-
@Thomas-Braun hi Thomas, ich habe jetzt einmal nodejs (node) nach Anleitung hier aus dem Forum komplett deinstalliert und den Pi rebootet.
(seltsamerweise lief ioBroker dann immer noch und auch der Script Adapter)
Dann nach der Anleitung neu installiert.
Das ganze schaut jetzt so aus:which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
/usr/bin/nodejs v12.18.4 /usr/local/bin/node v12.18.3 /usr/local/bin/npm 6.14.6 nodejs: Installiert: 12.18.4-1nodesource1 Installationskandidat: 12.18.4-1nodesource1 Versionstabelle: *** 12.18.4-1nodesource1 500 500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages 100 /var/lib/dpkg/status 8.11.1~dfsg-2~bpo9+1 500 500 http://archive.raspberrypi.org/debian stretch/main armhf Packages 4.8.2~dfsg-1 500 500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
-
@Accu sagte in ioBroker soll Raspberry PI System Befehl ausführen:
seltsamerweise lief ioBroker dann immer noch und auch der Script Adapter
klar!
weil du die schief installierte Version nicht gelöscht hast -
@Accu Ist noch krumm.
Der Kram aus /usr/local/bin muss gelöscht werden. -
gelöscht und re-install gemacht. Schaut jetzt so aus:
which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs /usr/bin/nodejs v12.18.4 /usr/bin/node -bash: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden
-
@Accu Starte die Kiste mal neu.
-
which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs /usr/bin/nodejs v12.18.4 /usr/bin/node v12.18.4 /usr/bin/npm 6.14.6 nodejs: Installiert: 12.18.4-1nodesource1 Installationskandidat: 12.18.4-1nodesource1 Versionstabelle: *** 12.18.4-1nodesource1 500 500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages 100 /var/lib/dpkg/status 8.11.1~dfsg-2~bpo9+1 500 500 http://archive.raspberrypi.org/debian stretch/main armhf Packages 4.8.2~dfsg-1 500 500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
-
@Accu
Jetzt passt es. -
@Thomas-Braun Yipeeeee.
Jetzt zu meinem eigentlichen Anliegen. Kann ich einfach den GitHub PiHole Adapter aus ioBroker raus installieren?
-
@Accu
Der ist doch drin:process exited with code 0
-
@Thomas-Braun war verwirrt weil der Gyp ERR noch im Log steht.
$ ./iobroker url "https://github.com/unltdnetworx/ioBroker.pi-hole/tarball/master" pi-hole install https://github.com/unltdnetworx/ioBroker.pi-hole/tarball/master NPM version: 6.14.6 npm install https://github.com/unltdnetworx/ioBroker.pi-hole/tarball/master --loglevel error --prefix "/opt/iobroker" (System call) ERR! sharp Use with glibc 2.24 requires manual installation of libvips >= 8.9.1info sharp Attempting to build from source via node-gyp but this may fail due to the above errorinfo sharp Please see https://sharp.pixelplumbing.com/install for required dependencies ../src/common.cc:23:22: fatal error: vips/vips8: Datei oder Verzeichnis nicht gefunden #include <vips/vips8> ^ compilation terminated. make: *** [Release/obj.target/sharp/src/common.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)gyp ERR! stack at ChildProcess.emit (events.js:315:20)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)gyp ERR! System Linux 5.4.51-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/sharpgyp ERR! node -v v12.18.4gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok upload [5] pi-hole.admin /opt/iobroker/node_modules/iobroker.pi-hole/admin/words.js words.js application/javascript upload [4] pi-hole.admin /opt/iobroker/node_modules/iobroker.pi-hole/admin/tsconfig.json tsconfig.json application/json upload [3] pi-hole.admin /opt/iobroker/node_modules/iobroker.pi-hole/admin/style.css style.css text/css upload [2] pi-hole.admin /opt/iobroker/node_modules/iobroker.pi-hole/admin/pi-hole.png pi-hole.png image/png upload [1] pi-hole.admin /opt/iobroker/node_modules/iobroker.pi-hole/admin/index_m.html index_m.html text/html upload [0] pi-hole.admin /opt/iobroker/node_modules/iobroker.pi-hole/admin/admin.d.ts admin.d.ts video/mp2t process exited with code 0
-
@Accu sagte in ioBroker soll Raspberry PI System Befehl ausführen:
sharp
Das musst du sharp selber bauen.
Installier malsudo apt install libvips42 libvips-dev
Warum installierst du eigentlich pi-hole aus git?
-
@Thomas-Braun gute Frage. Gehts auch anders? Hatte das irgendwo gesehen.
Habe jetzt blöderweise ein anderes Problem: hatten den Pihole adapter installiert und jetzt wieder über das Terminal gedisabled. Aber irgendwie lagged der Pi jetzt total. Die ioBroker Maske wird nicht mehr vollständig geladen und zeigt nur noch den Ladekreis. Shutdown und reboot hat nix gebracht.
Irgendwelche ideen? (...never change a running system) -
@Accu pi-hole ist doch ganz normal in der Adapter-Liste?
iobroker status iobroker list adapters iobroker list instances
(...never change a running system)
hier eher: Never install alpha versions.
oder auch:
Never install software the wrong way. -
@Thomas-Braun glaube ich habe meine Installation jetzt geschrottet 🤨
pi@Raspi:/opt/iobroker $ iobroker start pi@Raspi:/opt/iobroker $ iobroker status iobroker is not running on this host. No iobroker host is running.
-
@Accu
Was hast du denn da getrieben?iobroker fix
-
@Thomas-Braun es war eigentlich alles gut. Dann hatte ich den pihole adapter noch mal über die GitHub URL aus ioBroker installiert und die Pihole Instanz hinzugefügt. Dann darin die IP vom pihole der auch auf dem Raspi läuft eingegeben. Dann hat das system super gelagged. --> Shutdown -> Reboot --> dann im Terminal den pihole adapter deaktiviert und noch mal ioBroker fix gemacht.
Und das Deinsallieren übers Terminal dauert eeeeewig:
pi@Raspi:/opt/iobroker $ iobroker del pi-hole Delete adapter "pi-hole" host.Raspi Counted 1 instances of pi-hole host.Raspi Counted 1 adapter for pi-hole host.Raspi Counted 11 channels of pi-hole host.Raspi Counted 44443 states of pi-hole host.Raspi Counted 14 states of system.adapter.pi-hole host.Raspi object pi-hole.admin deleted host.Raspi Deleting 44470 object(s). Be patient... host.Raspi: Only 44400 objects left to be deleted. host.Raspi: Only 44200 objects left to be deleted. host.Raspi: Only 44000 objects left to be deleted. host.Raspi: Only 43800 objects left to be deleted. host.Raspi: Only 43600 objects left to be deleted. host.Raspi: Only 43400 objects left to be deleted. host.Raspi: Only 43200 objects left to be deleted. host.Raspi: Only 43000 objects left to be deleted. host.Raspi: Only 42800 objects left to be deleted. host.Raspi: Only 42600 objects left to be deleted.
-
kurzes Update: der Pi läuft wieder. Es liegt def. am Pi-hole adapter. Sobald ich den Adapter installiere, reagiert mein Pi kaum noch.