NEWS
Zigbee Adapter - restart loop detected
-
Hallo,
leider stürzt mein Zigbee Adapter derzeit immer wieder ab bzw. wird von iobroker beendet (ca. 1 x am Tag, Fehler: "restart loop detected").
Das Ganze passiert meine ich, seit ich mal wieder routinemäßig ein udate/upgrade für das iobroker-system gefahren habe.
Ziemlich zeitgleich habe ich zwar auch neue zigbee Produkte angelernt, diese aber testweise wieder deaktiviert. Kein Erfolg. Die Abstürze bleiben.
Wie komme ich da auf eine Lösung?
Bisher lief das zigbee System immer tadellos.
Meine Hardware ist Entwicklerboard CC26X2R1. -
@brokeling sagte in Zigbee Adapter - restart loop detected:
ch, seit ich mal wieder routinemäßig ein udate/upgrade für das iobroker-system gefahren habe.
Und zu welchem Stand hat das geführt?
iobroker update -i sudo ln -s /usr/bin/node /usr/bin/nodejs uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
Und ein (Neu)-Start des Adapters stellt sich wie im LogFile dar?
-
pi@raspi:~ $ iobroker update -i Used repository: beta Adapter "admin" : 6.1.9 , installed 6.1.5 [Updatable] Adapter "alias-manager": 1.2.6 , installed 1.2.6 Adapter "asterisk" : 1.0.6 , installed 1.0.6 Adapter "backitup" : 2.4.9 , installed 2.4.9 Adapter "chromecast" : 2.3.1 , installed 2.3.1 Adapter "cloud" : 4.1.2 , installed 4.1.1 [Updatable] Adapter "countdown" : 1.2.5 , installed 1.2.5 Adapter "deconz" : 1.3.21 , installed 1.3.21 Adapter "devices" : 1.0.12 , installed 1.0.12 Adapter "digitalstrom" : 2.3.0 , installed 2.3.0 Adapter "discovery" : 3.0.5 , installed 3.0.5 Adapter "fb-checkpresence": 1.1.17, installed 1.1.17 Adapter "feiertage" : 1.1.0 , installed 1.1.0 Adapter "flot" : 1.11.0 , installed 1.11.0 Adapter "fritzdect" : 2.2.3 , installed 2.2.3 Adapter "history" : 2.1.7 , installed 1.10.5 [Updatable] Adapter "hue" : 3.7.0 , installed 3.6.5 [Updatable] Adapter "hue-extended" : 2.0.0 , installed 2.0.0 Adapter "ical" : 1.13.1 , installed 1.13.0 [Updatable] Adapter "icons-icons8" : 0.0.1 , installed 0.0.1 Adapter "icons-mfd-svg": 1.1.0 , installed 1.1.0 Adapter "icons-open-icon-library-png": 0.1.2, installed 0.1.2 Adapter "info" : 1.9.19 , installed 1.9.19 Adapter "iqontrol" : 2.0.1 , installed 2.0.1 Adapter "javascript" : 5.7.0 , installed 5.7.0 Controller "js-controller": 4.0.23 , installed 4.0.23 Adapter "luftdaten" : 2.2.4 , installed 2.2.4 Adapter "moma" : 1.2.9 , installed 1.2.9 Adapter "mqtt" : 4.0.7 , installed 4.0.6 [Updatable] Adapter "mydlink" : 1.1.12 , installed 1.1.12 Adapter "net-tools" : 0.2.0 , installed 0.2.0 Adapter "netatmo-crawler": 0.8.1 , installed 0.8.1 Adapter "nuki" : 1.6.0 , installed 1.6.0 Adapter "nuki-extended": 2.6.5 , installed 2.6.5 Adapter "octoprint" : 4.0.0 , installed 4.0.0 Adapter "paw" : 0.3.2 , installed 0.3.2 Adapter "ph803w" : 1.1.1 , installed 1.0.1 [Updatable] Adapter "ping" : 1.5.3 , installed 1.5.3 Adapter "pushover" : 2.1.0 , installed 2.1.0 Adapter "samsung" : 0.5.11 , installed 0.5.11 Adapter "sayit" : 1.12.6 , installed 1.12.6 Adapter "shelly" : 5.3.2 , installed 5.3.2 Adapter "simple-api" : 2.7.0 , installed 2.7.0 Adapter "smartcontrol" : 1.2.1 , installed 1.2.1 Adapter "socketio" : 6.1.7 , installed 6.1.7 Adapter "sonoff" : 2.5.1 , installed 2.5.1 Adapter "sourceanalytix": 0.4.14 , installed 0.4.14 Adapter "spotify-premium": 1.2.2 , installed 1.2.2 Adapter "sql" : 2.1.7 , installed 2.1.3 [Updatable] Adapter "statistics" : 2.1.1 , installed 2.1.1 Adapter "telegram" : 1.14.1 , installed 1.13.0 [Updatable] Adapter "text2command" : 2.2.2 , installed 2.2.2 Adapter "tr-064" : 4.2.16 , installed 4.2.16 Adapter "vis" : 1.4.15 , installed 1.4.15 Adapter "vis-colorpicker": 1.2.0 , installed 1.2.0 Adapter "vis-fancyswitch": 1.1.0 , installed 1.1.0 Adapter "vis-google-fonts": 1.0.3 , installed 1.0.3 Adapter "vis-history" : 1.0.0 , installed 1.0.0 Adapter "vis-hqwidgets": 1.2.0 , installed 1.2.0 Adapter "vis-icontwo" : 0.87.0 , installed 0.87.0 Adapter "vis-justgage" : 1.0.2 , installed 1.0.2 Adapter "vis-material-advanced": 1.7.2, installed 1.7.2 Adapter "vis-metro" : 1.2.0 , installed 1.2.0 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "vis-timeandweather": 1.1.7, installed 1.1.7 Adapter "web" : 5.2.3 , installed 5.2.3 Adapter "whatsapp-cmb" : 0.2.2 , installed 0.2.2 Adapter "wiobrowser" : 1.1.4 , installed 1.1.4 Adapter "ws" : 2.1.2 , installed 2.1.2 Adapter "zigbee" : 1.7.5 , installed 1.7.5
pi@raspi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
pi@raspi:~ $ uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs armv7l /usr/bin/nodejs /usr/bin/node /usr/bin/npm v14.19.3 v14.19.3 6.14.17 pi /home/pi
-
Und ein (Neu)-Start des Adapters stellt sich wie im LogFile dar?
Wie muss ich das logging einstellen - auf debug und dann den Adapter starten?
-
Im Terminal
iobroker logs --watch
und dann den Adapter neustarten. Neue Zeilen dann posten.
Und halte das System auf Stand. Viele zu viele 'updateable' Adapters.
sudo apt update
liefert?
-
pi@raspi:~ $ iobroker logs --watch Uncaught Rejection: Error: Cannot create a string longer than 0xffffff0 characters at Object.slice (buffer.js:609:37) at Buffer.toString (buffer.js:827:14) at CLILogs.execute (/opt/iobroker/node_modules/@iobroker/js-controller-cli/lib/cli/cliLogs.js:40:51) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1137:25) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3314:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12)
das kommt bereits als Antwort, bevor ich den Adapterneustart auslösen konnte.
-
@brokeling
Wtf?
Wie riesig ist bitte dein log?
Das wären ja mehr als 268435440 Zeichen. -
Ich vermute du hast da noch ganz andere Probleme...
Funktioniert
tail -f /opt/iobroker/log/iobroker.current.log
denn?
-
@thomas-braun
Die vielen logs scheinen vom statistics-Adapter zu kommen. -
Graf Zahl?
Was loggst du da bitte alles?
Dann schalt den Quasselkopp mal aus, damit der nicht dauernd in das Log reinblökt. -
2022-07-04 23:06:18.696 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Stromverkauf.month on NaN to NaN 2022-07-04 23:06:18.699 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Stromverkauf.quarter on NaN to NaN 2022-07-04 23:06:18.703 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Stromverkauf.year on NaN to NaN 2022-07-04 23:06:18.712 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Strombezug_STAWA.15Min on 0 to 7157 2022-07-04 23:06:18.724 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Strombezug_STAWA.hour on 0 to 7157 2022-07-04 23:06:18.731 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Strombezug_STAWA.day on 0 to 1215739 2022-07-04 23:06:18.734 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Strombezug_STAWA.week on 0 to 1215739 2022-07-04 23:06:18.739 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Strombezug_STAWA.month on 0 to 3410906 2022-07-04 23:06:18.744 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Strombezug_STAWA.quarter on 0 to 3410906 2022-07-04 23:06:18.752 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Strombezug_STAWA.year on 0 to 86863699 2022-07-04 23:06:18.756 - debug: statistics.0 (1771) [STATE CHANGE] new last for "temp.avg.0_userdata.0.Holger2.Energie_Haus.Strombezug_STAWA.last: 0 2022-07-04 23:06:18.767 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.15Min on NaN to NaN 2022-07-04 23:06:18.771 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.hour on NaN to NaN 2022-07-04 23:06:18.775 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.day on NaN to NaN 2022-07-04 23:06:18.779 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.week on NaN to NaN 2022-07-04 23:06:18.784 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.month on NaN to NaN 2022-07-04 23:06:18.788 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.quarter on NaN to NaN 2022-07-04 23:06:18.792 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.year on NaN to NaN 2022-07-04 23:06:18.800 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Gesamtverbrauch_Haus.15Min on 0 to 22072 2022-07-04 23:06:18.803 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Gesamtverbrauch_Haus.hour on 0 to 22072 2022-07-04 23:06:18.806 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Gesamtverbrauch_Haus.day on 0 to 15671914 2022-07-04 23:06:18.809 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Gesamtverbrauch_Haus.week on 0 to 15671914 2022-07-04 23:06:18.812 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Gesamtverbrauch_Haus.month on 0 to 42252619 2022-07-04 23:06:18.815 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Gesamtverbrauch_Haus.quarter on 0 to 42252619 2022-07-04 23:06:18.819 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Holger2.Energie_Haus.Gesamtverbrauch_Haus.year on 0 to 809781803 2022-07-04 23:06:18.823 - debug: statistics.0 (1771) [STATE CHANGE] new last for "temp.avg.0_userdata.0.Holger2.Energie_Haus.Gesamtverbrauch_Haus.last: 0 2022-07-04 23:06:18.837 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.15Min on NaN to NaN 2022-07-04 23:06:18.840 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.hour on NaN to NaN 2022-07-04 23:06:18.845 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.day on NaN to NaN 2022-07-04 23:06:18.849 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.week on NaN to NaN 2022-07-04 23:06:18.854 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.month on NaN to NaN 2022-07-04 23:06:18.858 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.quarter on NaN to NaN 2022-07-04 23:06:18.862 - debug: statistics.0 (1771) [STATE CHANGE] Increase temp.sumGroup.Strombezug.year on NaN to NaN
...ein Teil...
-
Joh, in der Frequenz zu loggen dürfte irgendwann das System überlasten.
Außerdem steht der auf debug. -
@thomas-braun
auf info umstellen?
dann geht es deutlich gemächlicher. -
Natürlich. Was willste denn mit den Debug-Zeilen?
-
pi@raspi:~ $ iobroker logs --watch Uncaught Rejection: Error: Cannot create a string longer than 0xffffff0 characters at Object.slice (buffer.js:609:37) at Buffer.toString (buffer.js:827:14) at CLILogs.execute (/opt/iobroker/node_modules/@iobroker/js-controller-cli/lib/cli/cliLogs.js:40:51) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1137:25) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3314:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12)
Das bringt er jetzt immer noch, obwohl Adapter statistics aus.
-
@brokeling sagte in Zigbee Adapter - restart loop detected:
Das bringt er jetzt immer noch, obwohl Adapter statistics aus.
Na klar, das file ist ja immer noch so riesig. Der alte Kram steht ja noch drin.
sudo apt update tail -f /opt/iobroker/log/iobroker.current.log
-
@thomas-braun
alles löschen? -
pi@raspi:~ $ sudo apt update Holen:1 http://phoscon.de/apt/deconz buster InRelease [2.869 B] Holen:2 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB] OK:3 https://deb.nodesource.com/node_12.x buster InRelease Holen:4 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB] OK:5 https://deb.nodesource.com/node_14.x buster InRelease Holen:6 http://phoscon.de/apt/deconz buster/main armhf Packages [734 B] Holen:7 http://archive.raspberrypi.org/debian buster/main armhf Packages [391 kB] Holen:8 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13,0 MB] Es wurden 47,6 kB in 7 s geholt (7.063 B/s). Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Aktualisierung für 4 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
pi@raspi:~ $ tail -f /opt/iobroker/log/iobroker.current.log 2022-07-04 23:15:39.626 - info: fritzdect.0 (2320) State value to set for "fritzdect.0.DECT_grpC786EA-3BDC033DC.boostactiveendtime" has to be type "number" but received type "string" 2022-07-04 23:15:39.627 - info: fritzdect.0 (2320) State value to set for "fritzdect.0.DECT_grpC786EA-3BDC033DC.endperiod" has to be type "number" but received type "string" 2022-07-04 23:15:39.629 - info: fritzdect.0 (2320) State value to set for "fritzdect.0.DECT_grpC786EA-3BDC03168.windowopenactiveendtime" has to be type "number" but received type "string" 2022-07-04 23:15:39.630 - info: fritzdect.0 (2320) State value to set for "fritzdect.0.DECT_grpC786EA-3BDC03168.boostactiveendtime" has to be type "number" but received type "string" 2022-07-04 23:15:39.631 - info: fritzdect.0 (2320) State value to set for "fritzdect.0.DECT_grpC786EA-3BDC03168.endperiod" has to be type "number" but received type "string" 2022-07-04 23:15:39.633 - info: fritzdect.0 (2320) State value to set for "fritzdect.0.DECT_grpC786EA-3BDC032FE.windowopenactiveendtime" has to be type "number" but received type "string" 2022-07-04 23:15:39.634 - info: fritzdect.0 (2320) State value to set for "fritzdect.0.DECT_grpC786EA-3BDC032FE.boostactiveendtime" has to be type "number" but received type "string" 2022-07-04 23:15:39.634 - info: fritzdect.0 (2320) State value to set for "fritzdect.0.DECT_grpC786EA-3BDC032FE.endperiod" has to be type "number" but received type "string" 2022-07-04 23:16:08.531 - info: javascript.0 (19239) script.js.common.Display.Display3_TFT.Alternativ.L8_CO2_WoZi1: 3 2022-07-04 23:17:08.491 - info: javascript.0 (19239) script.js.common.Display.Display3_TFT.Alternativ.L8_CO2_WoZi1: 3
-
Dann jetzt den Adapter neustarten.
-
@thomas-braun
läuft schon.