NEWS
[gelöst] iobroker offline nach admin update
-
@JRiddim
bis jetzt war ich stiller beobachter und leser hier. Aber weil es mir immer wieder geholfen hat, wollte ich es hier auch zurück geben und versuchen zu helfen. Hatte den gleiche Fehler. War auch sehr verzweifelt. Alle adapter waren weg, nichts ging mehr. Verwende aber mein Haupt iobroker unter Sysnology mit portainer, den zweiten als slave auf RPI.
Hatte auch ohne drauf zu schauen den admin adapter upgedatet und dann war alles weg. Bis in die nacht oder morgen früh war ich am Rechner, aber erst am zweiten Abend hatte ich alles reparieren können. Mein vorgehen war:
container starten, natürlich startet iobroker nicht. Mit portainer auf die console und schauen ob da noch was von iobroker läuft:ps auxww|grep io #killen wenn noch was läuft
dann
npm install iobroker.js-controller@2.2.8 #und iobroker upgrade self
wichtig ist natürlich, dass du den aktuellen node und so hast:
link textdann container neustarten. Dann waren alle adapter erst mal da, aber dann schreck, die sind alle rot und starten nicht. Keine panik, die werden jetzt nach und nach neu installiert. Evtl. muss du ein oder anderen adapter neu starten. Kannst im log beobachten wie die installiert werden. Viel erfolg!
sonst hier noch ein paar links dazu:
link text
link text
Gruß -
@haselchen sagte in iobroker nicht mehr erreichbar nach admin update:
curl -sL https://iobroker.net/fix.sh | bash -
brachte leider noch keinen Erfolg.
ist es normal das unter Biobroker list instances der admin mit 0.0.0.0 angegeben wird?system.adapter.admin.0 : admin - enabled, port: 8081, bind: 0.0.0.0, run as: admin
-
bei ps auxww|grep io kommt.
root 12 0.0 0.0 0 0 ? S 20:08 0:00 [migration/0] root 15 0.0 0.0 0 0 ? S 20:08 0:00 [migration/1] root 20 0.0 0.0 0 0 ? S 20:08 0:00 [migration/2] root 25 0.0 0.0 0 0 ? S 20:08 0:00 [migration/3] root 42 0.0 0.0 0 0 ? I< 20:08 0:00 [rpciod] root 44 0.0 0.0 0 0 ? I< 20:08 0:00 [xprtiod] root 48 0.0 0.0 0 0 ? I< 20:08 0:00 [nfsiod] root 64 0.0 0.0 0 0 ? I< 20:08 0:00 [DWC Notificatio] message+ 333 0.0 0.0 6644 3548 ? Ss 20:08 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only root 1789 0.3 2.0 269844 82356 ? Sl 20:08 0:39 java -Xmx128m -Dos.arch=arm -Dlog4j.configuration=file:///etc/config/log4j.xml -Dfile.encoding=ISO-8859-1 -Dgnu.io.rxtx.SerialPorts=/dev/mmd_hmip -jar /opt/HMServer/HMIPServer.jar /etc/crRFD.conf /etc/HMServer.conf iobroker 12828 18.0 2.8 199400 114016 ? Ssl 22:55 0:58 iobroker.js-controller iobroker 12881 0.4 1.1 136028 47856 ? Sl 22:56 0:01 io.discovery.0 iobroker 12896 3.2 1.3 155804 55184 ? Sl 22:56 0:10 io.info.0 iobroker 12917 1.1 1.0 144536 41024 ? Sl 22:56 0:03 io.mihome-vacuum.0 iobroker 13344 1.4 1.2 153408 49440 ? Sl 22:56 0:04 io.telegram.0 iobroker 13365 1.8 1.1 148252 44392 ? Sl 22:56 0:05 io.hue.0 iobroker 13511 1.2 1.0 144764 42460 ? Sl 22:56 0:03 io.hm-rpc.0 iobroker 13572 1.3 1.1 148148 46580 ? Sl 22:56 0:04 io.hm-rega.0 iobroker 13735 1.3 1.2 149256 48172 ? Sl 22:56 0:03 io.hm-rpc.1 iobroker 13797 0.7 1.0 136372 41596 ? Sl 22:56 0:02 io.ping.0 iobroker 13999 0.7 1.3 148360 54868 ? Sl 22:56 0:02 io.web.0 iobroker 14203 3.3 1.4 163012 59532 ? Sl 22:56 0:09 io.spotify-premium.0 iobroker 14635 0.7 1.3 148708 53304 ? Sl 22:57 0:01 io.terminal.0 iobroker 14673 1.6 1.1 150376 45628 ? Sl 22:57 0:04 io.zigbee.0 iobroker 14820 4.9 2.3 199452 92496 ? Sl 22:57 0:12 io.javascript.0 iobroker 14906 0.8 1.1 148136 44420 ? Sl 22:57 0:02 io.yahka.0 juju 20733 0.0 0.0 7360 484 pts/1 S+ 23:01 0:00 grep --color=auto io
node -v
v10.18.1nodejs -v
v10.18.1npm -v
6.13.4 -
das ist richtig so.
und normal sollte alles gehen.
du kannst mal
iobroker stop admin.0 eingebenund dann wieder starten
-
leider auch nicht. ich hatte einen chmod 777 mal auf den iobroker gemacht kann das vllt. damit zusammenhängen?
-
Mit Rechtevergaben kenne ich mich nicht aus.
Was passiert denn wenn du die IP:8081 eingibst? -
es tut sich nichts. Auf Vis komme ich ohne weiteres.
-
Cache vom Browser geleert?
Mal F5 gedrückt nach der IP:8081 Eingabe? -
tut sich leider auch nix
-
Hm. Also das ist heavy.
Bleibt noch in dem Pfad /opt/iobroker
ein
npm rebuild -
am Ende wird das hier angezeigt.
╭────────────────────────────────────────────────────────────────╮
│ │
│ New patch version of npm available! 6.13.4 → 6.13.7 │
│ Changelog: https://github.com/npm/cli/releases/tag/v6.13.7 │
│ Run npm install -g npm to update! │
│ │
╰────────────────────────────────────────────────────────────────╯ -
genau das machst du
npm install -g npm -
@haselchen sagte in iobroker nicht mehr erreichbar nach admin update:
npm install -g npm
npm install -g npm npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/bin-links npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/env-paths npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/get-caller-file npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/invert-kv npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/lcid npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/mimic-fn npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/nopt npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/semver npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/node-gyp npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/mem npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/os-locale npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/pacote npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/yargs npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/libnpx npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules npm WARN checkPermissions Missing write access to /usr/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/lib/node_modules/npm/node_modules/bin-links npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules/npm/node_modules/bin-links' npm ERR! { [Error: EACCES: permission denied, access '/usr/lib/node_modules/npm/node_modules/bin-links'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/usr/lib/node_modules/npm/node_modules/bin-links\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/lib/node_modules/npm/node_modules/bin-links' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/juju/.npm/_logs/2020-01-29T22_36_52_146Z-debug.log
muss ich das mit sudo ausführen?
-
wäre meine nächste idee gewesen
Den Befehl aber nicht im iobroker verzeichnis eingeben
sondern im hauptverzeichnis vom PI -
mit sudo
sudo npm install -g npm [sudo] Passwort für juju: /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js + npm@6.13.7 added 7 packages from 3 contributors, removed 3 packages and updated 12 packages in 62.708s
jetzt zeigt er mir admin.0 als alive!
- system.adapter.admin.0 : admin - enabled, port: 8081, bind: 0.0.0.0, run as: admin
-
@haselchen sagte in iobroker nicht mehr erreichbar nach admin update:
wäre meine nächste idee gewesen
Den Befehl aber nicht im iobroker verzeichnis eingeben
sondern im hauptverzeichnis vom PIoh das Mist ich habe es im Biobroker Verzeichnis gemacht! Hab das völlig überlesen!
-
@JRiddim
Wiederhol es einfach im Hauptverzeichnis nochmal.
Bitte sag das es jetzt funktioniert -
also einfach cd eingeben und anschließend
sudo npm install -g npm? richtig oder?
Tut mir leid ist schon der dritte Abend in Folge und langsam schwinden die Kräfte
-
genau. mit cd ins hauptverzeichnis und dann nochmal den befehl eingeben.
erstmal ohne sudo. -
installation ging nur mit sudo wieder! Jetzt wird die Instanz wieder als nicht alive angezeigt.