NEWS
Iobroker nach update nict erreichbar
-
pi@iobroker:/opt/iobroker $ nodejs -v v10.20.1 pi@iobroker:/opt/iobroker $ node -v v10.20.1 pi@iobroker:/opt/iobroker $ npm -v 6.14.4 pi@iobroker:/opt/iobroker $habe ich gemacht
auf https://forum.iobroker.net/topic/22867/how-to-node-js-für-iobroker-richtig-updaten gefunden
geht aber noch immer nichtpi@iobroker:/opt/iobroker $ iobroker status internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) -
@Shootgun
Dein nodejs ist zu alt. Zuerst musst du das auf node12 hochdrehen.Um ne Basis zum Weitermachen zu haben solltest Du erstmal:
apt-get update
und dann
apt-get dist-upgrade
machen.
Kann sein , dass da dann schon ne aktuelle Nodejs Version bei ist.Und dann probier nochmal den Fixer Befehl im opt/iobroker Ordner.
-
Um ne Basis zum Weitermachen zu haben solltest Du erstmal:
apt-get update
und dann
apt-get dist-upgrade
machen.
Kann sein , dass da dann schon ne aktuelle Nodejs Version bei ist.Und dann probier nochmal den Fixer Befehl im opt/iobroker Ordner.
pi@iobroker:/opt/iobroker $ apt-get update Paketlisten werden gelesen... Fertig W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Die Operation ist nicht erlaubt) E: Sperrdatei /var/lib/apt/lists/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung) E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden. W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/pkgcache.bin - RemoveCaches (13: Keine Berechtigung) W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Keine Berechtigung) pi@iobroker:/opt/iobroker $ apt-get dist-upgrade E: Sperrdatei /var/lib/dpkg/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung) E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, sind Sie root? pi@iobroker:/opt/iobroker $ich bin als pi user angemeldte (wieman sieht)
also wieos keine berechtigung ? -
pi@iobroker:/opt/iobroker $ apt-get update Paketlisten werden gelesen... Fertig W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Die Operation ist nicht erlaubt) E: Sperrdatei /var/lib/apt/lists/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung) E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden. W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/pkgcache.bin - RemoveCaches (13: Keine Berechtigung) W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Keine Berechtigung) pi@iobroker:/opt/iobroker $ apt-get dist-upgrade E: Sperrdatei /var/lib/dpkg/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung) E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, sind Sie root? pi@iobroker:/opt/iobroker $ich bin als pi user angemeldte (wieman sieht)
also wieos keine berechtigung ?@Shootgun Weil pi das nicht darf.
sudo apt update -
pi@iobroker:/opt/iobroker $ apt-get update Paketlisten werden gelesen... Fertig W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Die Operation ist nicht erlaubt) E: Sperrdatei /var/lib/apt/lists/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung) E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden. W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/pkgcache.bin - RemoveCaches (13: Keine Berechtigung) W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Keine Berechtigung) pi@iobroker:/opt/iobroker $ apt-get dist-upgrade E: Sperrdatei /var/lib/dpkg/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung) E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, sind Sie root? pi@iobroker:/opt/iobroker $ich bin als pi user angemeldte (wieman sieht)
also wieos keine berechtigung ? -
@Shootgun Weil pi das nicht darf.
sudo apt updatevielen dank
er arbeitet nun etwas -
pi@iobroker:/opt/iobroker $ sudo apt-get dist-upgrade Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Paketaktualisierung (Upgrade) wird berechnet... Fertig Die folgenden Pakete werden aktualisiert (Upgrade): base-files curl dbus e2fslibs e2fsprogs file gettext-base git git-man libcomerr2 libcurl3 libcurl3-gnutls libdbus-1-3 libdbus-1-dev libexpat1 libfreetype6 libfreetype6-dev libglib2.0-0 libglib2.0-data libicu57 libidn11 libmagic-mgc libmagic1 libnghttp2-14 libpam-systemd libperl5.24 libpng-dev libpng-tools libpng16-16 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libsasl2-2 libsasl2-modules libsasl2-modules-db libss2 libssl1.0.2 libssl1.1 libsystemd0 libudev-dev libudev1 libwbclient0 openssh-client openssh-server openssh-sftp-server openssl patch perl perl-base perl-modules-5.24 raspberrypi-bootloader raspberrypi-kernel raspi-config rsync samba-common ssh sudo systemd systemd-sysv tzdata udev unzip usbutils vim-common vim-tiny xxd 67 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen 118 MB an Archiven heruntergeladen werden. Nach dieser Operation werden 7.928 kB Plattenplatz zusätzlich benutzt. Möchten Sie fortfahren? [J/n] j Holen:1 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi-doc armhf 1.20190819~stretch-1 [31,4 MB] Holen:2 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf base-files armhf 9.9+rpi1+deb9u11 [67,7 kB] Holen:3 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf e2fslibs armhf 1.43.4-2+deb9u1 [194 kB] Holen:4 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf e2fsprogs armhf 1.43.4-2+deb9u1 [910 kB] Holen:5 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf libperl5.24 armhf 5.24.1-3+deb9u6 [2.831 kB] Holen:6 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf perl armhf 5.24.1-3+deb9u6 [218 kB] Holen:7 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf perl-base armhf 5.24.1-3+deb9u6 [1.197 kB] Holen:8 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf perl-modules-5.24 all 5.24.1-3+deb9u6 [2.725 kB] Holen:9 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi-dev armhf 1.20190819~stretch-1 [407 kB] Holen:11 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-kernel armhf 1.20190819~stretch-1 [35,4 MB] Holen:10 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf libdbus-1-dev armhf 1.10.28-0+deb9u1 [202 kB] Holen:12 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi-bin armhf 1.20190819~stretch-1 [338 kB] Holen:13 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi0 armhf 1.20190819~stretch-1 [843 kB] Holen:14 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-bootloader armhf 1.20190819~stretch-1 [3.581 kB] Holen:15 http://archive.raspberrypi.org/debian stretch/ui armhf raspi-config all 20190423 [20,4 kB] Holen:16 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf dbus armhf 1.10.28-0+deb9u1 [192 kB] 60% [Verbindung mit raspbian.raspberrypi.org (93.93.128.193)]er hängt bei 60 % :(
oder bin ich jetzt zu ungeduldig ?
120 mb bei meiner leitung sollte etwas zügiger gehen ;) -
pi@iobroker:/opt/iobroker $ sudo apt-get dist-upgrade Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Paketaktualisierung (Upgrade) wird berechnet... Fertig Die folgenden Pakete werden aktualisiert (Upgrade): base-files curl dbus e2fslibs e2fsprogs file gettext-base git git-man libcomerr2 libcurl3 libcurl3-gnutls libdbus-1-3 libdbus-1-dev libexpat1 libfreetype6 libfreetype6-dev libglib2.0-0 libglib2.0-data libicu57 libidn11 libmagic-mgc libmagic1 libnghttp2-14 libpam-systemd libperl5.24 libpng-dev libpng-tools libpng16-16 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libsasl2-2 libsasl2-modules libsasl2-modules-db libss2 libssl1.0.2 libssl1.1 libsystemd0 libudev-dev libudev1 libwbclient0 openssh-client openssh-server openssh-sftp-server openssl patch perl perl-base perl-modules-5.24 raspberrypi-bootloader raspberrypi-kernel raspi-config rsync samba-common ssh sudo systemd systemd-sysv tzdata udev unzip usbutils vim-common vim-tiny xxd 67 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen 118 MB an Archiven heruntergeladen werden. Nach dieser Operation werden 7.928 kB Plattenplatz zusätzlich benutzt. Möchten Sie fortfahren? [J/n] j Holen:1 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi-doc armhf 1.20190819~stretch-1 [31,4 MB] Holen:2 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf base-files armhf 9.9+rpi1+deb9u11 [67,7 kB] Holen:3 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf e2fslibs armhf 1.43.4-2+deb9u1 [194 kB] Holen:4 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf e2fsprogs armhf 1.43.4-2+deb9u1 [910 kB] Holen:5 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf libperl5.24 armhf 5.24.1-3+deb9u6 [2.831 kB] Holen:6 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf perl armhf 5.24.1-3+deb9u6 [218 kB] Holen:7 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf perl-base armhf 5.24.1-3+deb9u6 [1.197 kB] Holen:8 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf perl-modules-5.24 all 5.24.1-3+deb9u6 [2.725 kB] Holen:9 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi-dev armhf 1.20190819~stretch-1 [407 kB] Holen:11 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-kernel armhf 1.20190819~stretch-1 [35,4 MB] Holen:10 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf libdbus-1-dev armhf 1.10.28-0+deb9u1 [202 kB] Holen:12 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi-bin armhf 1.20190819~stretch-1 [338 kB] Holen:13 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi0 armhf 1.20190819~stretch-1 [843 kB] Holen:14 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-bootloader armhf 1.20190819~stretch-1 [3.581 kB] Holen:15 http://archive.raspberrypi.org/debian stretch/ui armhf raspi-config all 20190423 [20,4 kB] Holen:16 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf dbus armhf 1.10.28-0+deb9u1 [192 kB] 60% [Verbindung mit raspbian.raspberrypi.org (93.93.128.193)]er hängt bei 60 % :(
oder bin ich jetzt zu ungeduldig ?
120 mb bei meiner leitung sollte etwas zügiger gehen ;) -
pi@iobroker:/opt/iobroker $ sudo apt-get dist-upgrade Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Paketaktualisierung (Upgrade) wird berechnet... Fertig Die folgenden Pakete werden aktualisiert (Upgrade): base-files curl dbus e2fslibs e2fsprogs file gettext-base git git-man libcomerr2 libcurl3 libcurl3-gnutls libdbus-1-3 libdbus-1-dev libexpat1 libfreetype6 libfreetype6-dev libglib2.0-0 libglib2.0-data libicu57 libidn11 libmagic-mgc libmagic1 libnghttp2-14 libpam-systemd libperl5.24 libpng-dev libpng-tools libpng16-16 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libsasl2-2 libsasl2-modules libsasl2-modules-db libss2 libssl1.0.2 libssl1.1 libsystemd0 libudev-dev libudev1 libwbclient0 openssh-client openssh-server openssh-sftp-server openssl patch perl perl-base perl-modules-5.24 raspberrypi-bootloader raspberrypi-kernel raspi-config rsync samba-common ssh sudo systemd systemd-sysv tzdata udev unzip usbutils vim-common vim-tiny xxd 67 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen 118 MB an Archiven heruntergeladen werden. Nach dieser Operation werden 7.928 kB Plattenplatz zusätzlich benutzt. Möchten Sie fortfahren? [J/n] j Holen:1 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi-doc armhf 1.20190819~stretch-1 [31,4 MB] Holen:2 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf base-files armhf 9.9+rpi1+deb9u11 [67,7 kB] Holen:3 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf e2fslibs armhf 1.43.4-2+deb9u1 [194 kB] Holen:4 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf e2fsprogs armhf 1.43.4-2+deb9u1 [910 kB] Holen:5 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf libperl5.24 armhf 5.24.1-3+deb9u6 [2.831 kB] Holen:6 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf perl armhf 5.24.1-3+deb9u6 [218 kB] Holen:7 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf perl-base armhf 5.24.1-3+deb9u6 [1.197 kB] Holen:8 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf perl-modules-5.24 all 5.24.1-3+deb9u6 [2.725 kB] Holen:9 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi-dev armhf 1.20190819~stretch-1 [407 kB] Holen:11 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-kernel armhf 1.20190819~stretch-1 [35,4 MB] Holen:10 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf libdbus-1-dev armhf 1.10.28-0+deb9u1 [202 kB] Holen:12 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi-bin armhf 1.20190819~stretch-1 [338 kB] Holen:13 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi0 armhf 1.20190819~stretch-1 [843 kB] Holen:14 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-bootloader armhf 1.20190819~stretch-1 [3.581 kB] Holen:15 http://archive.raspberrypi.org/debian stretch/ui armhf raspi-config all 20190423 [20,4 kB] Holen:16 http://mirror.netcologne.de/raspbian/raspbian stretch/main armhf dbus armhf 1.10.28-0+deb9u1 [192 kB] 60% [Verbindung mit raspbian.raspberrypi.org (93.93.128.193)]er hängt bei 60 % :(
oder bin ich jetzt zu ungeduldig ?
120 mb bei meiner leitung sollte etwas zügiger gehen ;)@Shootgun Geduld ist eine Tugend.
Deine 120 Mbit nutzen dir nix, wenn der Server nicht so flott ist. -
@Shootgun Geduld ist eine Tugend.
Deine 120 Mbit nutzen dir nix, wenn der Server nicht so flott ist.das erinnert mich an die zeit als ich mp3 files mit 8 KBs geladen habe
4 mb in gefühlten JAHREN
:) -
das erinnert mich an die zeit als ich mp3 files mit 8 KBs geladen habe
4 mb in gefühlten JAHREN
:)@Shootgun Der nächste Schritt ist ein sauberer reboot. Da war ein kernel update dabei.
sudo reboot -
@Shootgun Der nächste Schritt ist ein sauberer reboot. Da war ein kernel update dabei.
sudo rebootok
reboot gestartet -
reboot durch
echt hammer geil wie man hier hilfe bekommt
schon mal fettes danke dafürnächster schritt ?
-
pi@iobroker:~ $ iobroker status internal/modules/cjs/loader.js:983 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15) at Function.Module._load (internal/modules/cjs/loader.js:862:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at internal/main/run_main_module.js:18:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } pi@iobroker:~ $ -
reboot durch
echt hammer geil wie man hier hilfe bekommt
schon mal fettes danke dafürnächster schritt ?
Und dann nochmal
curl -sL https://iobroker.net/fix.sh | bash -
versuchen
Und ins richtige Verzeichnis musst du.
iobroker status hast du wieder im homeverzeichnis abgefragt.
Die Fehlermeldung sagt ja , dass er den Ordner dort nicht finden kann.Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
-
ich bin jetzt erst wieder in das io borker verzeichniss gegangen (falls fallsch war bitte sagen)
pi@iobroker:/opt/iobroker $ curl -sL https://iobroker.net/fix.sh | bash - library: loaded Library version=2020-04-12 ioBroker is not installed in /opt/iobroker! Cannot fix anything... pi@iobroker:/opt/iobroker $ -
ich bin jetzt erst wieder in das io borker verzeichniss gegangen (falls fallsch war bitte sagen)
pi@iobroker:/opt/iobroker $ curl -sL https://iobroker.net/fix.sh | bash - library: loaded Library version=2020-04-12 ioBroker is not installed in /opt/iobroker! Cannot fix anything... pi@iobroker:/opt/iobroker $ -
Und dann nochmal
curl -sL https://iobroker.net/fix.sh | bash -
versuchen
Und ins richtige Verzeichnis musst du.
iobroker status hast du wieder im homeverzeichnis abgefragt.
Die Fehlermeldung sagt ja , dass er den Ordner dort nicht finden kann.Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
pi@iobroker:/opt/iobroker $ iobroker status internal/modules/cjs/loader.js:983 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15) at Function.Module._load (internal/modules/cjs/loader.js:862:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at internal/main/run_main_module.js:18:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } pi@iobroker:/opt/iobroker $auch in dem anderen dir findet er iobroker ned
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden