NEWS
openHAB3 - Adapter Error
-
Hallo,
ich habe die Notwendigkeit wegen zwei Kostal Wechselrichter und einer Heizungsregel aktuell noch openHAB nebenbei lafuen zu lassen. Beim initialen Start des iobroker Adapters werden die Items angelegt und auch die Werte werden richtig geschrieben.
Allerdings werden danach die Items nicht mehr aktualisiert.Im Debuglog des Adapters kommt folgender Fehler.
Error: {"type":"error","message":"getaddrinfo EAI_AGAIN admin"}
Schon mal gesehen? Vielen Dank.
-
Ja, ist die Meldung wenn es da Trouble im Netzwerk gibt. Insbesonde DNS. PiHole oder sowas im Einsatz?
Oder NodeJS>16? -
@thomas-braun
Hey, ja nodejs ist 16.18.0.DNS wohl eher nicht, spreche das System mit IP an und auch alle anderen Items im openHAB
-
Schon DNS.
Der Fehler ist so definiert:EAI_AGAIN actually means a temporary failure in name resolution or simply the name server returned a temporary failure indication. It will ask you to try again later.
EAI_AGAIN is actually a DNS lookup timed out error means it is either a network connectivity error or some proxy related error.Wie bist du beim Thema nodeJS/npm aufgestellt?
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
-
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null administrator@iobroker:~$ uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs x86_64 Kein Docker /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.18.0 v16.18.0 8.19.2 4.0.23 administrator administrator adm cdrom sudo dip plugdev lxd iobroker tty /home/administrator Hit:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease Hit:2 https://deb.nodesource.com/node_16.x jammy InRelease Hit:3 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:4 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease Hit:5 http://de.archive.ubuntu.com/ubuntu jammy-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 19 packages can be upgraded. Run 'apt list --upgradable' to see them. nodejs: Installed: 16.18.0-deb-1nodesource1 Candidate: 16.18.1-deb-1nodesource1 Version table: 16.18.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x jammy/main amd64 Packages *** 16.18.0-deb-1nodesource1 100 100 /var/lib/dpkg/status 12.22.9~dfsg-1ubuntu3 500 500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
-
Okay, passt soweit. Spiel die Updates ein.
-
@thomas-braun
hab ich eingespielt, hab jetzt mal in das Log von openHAB reingeschaut.==> /var/log/openhab/openhab.log <== 2022-11-29 11:26:38.941 [WARN ] [ore.io.rest.auth.internal.AuthFilter] - Unauthorized API request from 192.168.2.16: Invalid Basic authentication credential format
wenn man mal die einstellung ändert und wieder zurück, kommt folgender Fehler.
host.iobroker 2022-11-29 11:36:50.986 warn Do not restart adapter system.adapter.openhab.0 because restart loop detected host.iobroker 2022-11-29 11:36:50.986 info Restart adapter system.adapter.openhab.0 because enabled host.iobroker 2022-11-29 11:36:50.986 error instance system.adapter.openhab.0 terminated with code 6 (UNCAUGHT_EXCEPTION) openhab.0 2022-11-29 11:36:50.441 warn Terminated (UNCAUGHT_EXCEPTION): Without reason openhab.0 2022-11-29 11:36:50.441 info terminating openhab.0 2022-11-29 11:36:50.441 info cleaned everything up... openhab.0 2022-11-29 11:36:50.440 error Exception-Code: ERR_UNESCAPED_CHARACTERS: Request path contains unescaped characters openhab.0 2022-11-29 11:36:50.440 error TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters at new NodeError (node:internal/errors:387:5) at new ClientRequest (node:_http_client:182:13) at Object.request (node:http:97:10) at connect (/opt/iobroker/node_modules/eventsource/lib/eventsource.js:142:37) at new EventSource (/opt/iobroker/node_modules/eventsource/lib/eventsource.js:260:3) at /opt/iobroker/node_modules/iobroker.openhab/main.js:779:26 at Timeout.syncObjects [as _onTimeout] (/opt/iobroker/node_modules/iobroker.openhab/main.js:385:21) at listOnTimeout (node:internal/timers:561:11) at processTimers (node:internal/timers:502:7) openhab.0 2022-11-29 11:36:50.439 error uncaught exception: Request path contains unescaped characters
-
Ist dein Passwort evtl. mit Sonderzeichen? Da scheint was drin zu sein, was als Befehlsoption interpretiert wird.
-
@thomas-braun
tatsächlich, danke dir. Ich beobachte das mal aber sieht gut aus