NEWS
[gelöst] Admin-Adapter: Cannot check node.js versions
-
Siehe Post https://forum.iobroker.net/topic/61052/was-bedeutet-cannot-check-node-js-versions?_=1671377327350
---------------------------------------------------------------------------------Immer wenn der Admin-Adapter gestartet wird kommt folgende Warnung:
2022-12-18 16:29:06.887 - warn: admin.2 (1392685) Cannot check node.js versions: Error: unexpected end of fileIch habe mal probeweise den Adapter auf
Debuglaufen lassen, ergibt aber keine Details dazu:2022-12-18 16:28:42.499 - info: host.iobroker instance system.adapter.admin.2 started with pid 1392405 2022-12-18 16:28:43.890 - debug: admin.2 (1392405) Redis Objects: Use Redis connection: 0.0.0.0:9001 2022-12-18 16:28:44.016 - debug: admin.2 (1392405) Objects client ready ... initialize now 2022-12-18 16:28:44.018 - debug: admin.2 (1392405) Objects create System PubSub Client 2022-12-18 16:28:44.026 - debug: admin.2 (1392405) Objects create User PubSub Client 2022-12-18 16:28:44.263 - debug: admin.2 (1392405) Objects client initialize lua scripts 2022-12-18 16:28:44.272 - debug: admin.2 (1392405) Objects connected to redis: 0.0.0.0:9001 2022-12-18 16:28:44.359 - debug: admin.2 (1392405) Redis States: Use Redis connection: 127.0.0.1:6379 2022-12-18 16:28:44.365 - debug: admin.2 (1392405) States create System PubSub Client 2022-12-18 16:28:44.366 - debug: admin.2 (1392405) States create User PubSub Client 2022-12-18 16:28:44.375 - debug: admin.2 (1392405) States connected to redis: 127.0.0.1:6379 2022-12-18 16:28:44.459 - debug: admin.2 (1392405) Plugin sentry Do not initialize Plugin (enabled=false) 2022-12-18 16:28:44.466 - debug: admin.2 (1392405) Plugin sentry destroyed because not initialized correctly 2022-12-18 16:28:44.777 - info: admin.2 (1392405) starting. Version 6.3.4 in /opt/iobroker/node_modules/iobroker.admin, node: v16.18.1, js-controller: 4.0.24 2022-12-18 16:28:44.825 - info: admin.2 (1392405) requesting all states 2022-12-18 16:28:44.827 - info: admin.2 (1392405) requesting all objects 2022-12-18 16:28:45.486 - warn: admin.2 (1392405) Cannot check node.js versions: Error: unexpected end of file 2022-12-18 16:28:48.064 - info: admin.2 (1392405) received all objects 2022-12-18 16:28:48.169 - debug: admin.2 (1392405) Using http createServer 2022-12-18 16:28:48.341 - info: admin.2 (1392405) Request actual repository... 2022-12-18 16:28:48.428 - info: admin.2 (1392405) http server listening on port 60082 2022-12-18 16:28:48.428 - info: admin.2 (1392405) Use link "http://localhost:60082" to configure. 2022-12-18 16:28:48.476 - info: admin.2 (1392405) socket.io server listening on port 60082 2022-12-18 16:28:48.649 - info: admin.2 (1392405) ==> Connected system.user.admin from 192.168.1.32 2022-12-18 16:28:48.690 - debug: admin.2 (1392405) Subscribes: dummy 2022-12-18 16:28:48.702 - debug: admin.2 (1392405) Subscribes: system.adapter.discovery.0.alive 2022-12-18 16:28:48.705 - debug: admin.2 (1392405) Subscribes: system.adapter.discovery.0.alive, system.host.*.aliveHier die Informationen aus dem
diag.shSkript:======================= SUMMARY ======================= v.2022-12-13 Operatingsystem: Ubuntu 22.04.1 LTS Installation: vmware Timezone: Europe/Berlin User-ID: 1000 X-Server: false Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.18.1 /usr/bin/node v16.18.1 /usr/bin/npm 8.19.2 ioBroker Core: js-controller 4.0.24 admin 6.3.4 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: redis Pending iob updates: 0 Active repo(s): beta Objects: 38478 States: 36203 Size of iob-Database: 60M /opt/iobroker/iobroker-data/objects.jsonl 24M /opt/iobroker/iobroker-data/objects.json.migrated 24M /opt/iobroker/iobroker-data/objects.json.bak.migrated 1.8M /opt/iobroker/iobroker-data/states.json.bak 1.8M /opt/iobroker/iobroker-data/states.json ====================== END OF SUMMARY ==================Die Warnung war mir vorher noch nicht aufgefallen, ich meine (ohne Beleg) das diese seit dem Update des
js-controllerauf 4.0.24 kommt.Die Meldung selbst wird ja durch den Admin-Adapter erzeugt, wie ich das sehen in der
main.jsin Zeile 597 (hier Zeile 7) und wird ausgegeben wenn die aufgerufene Funktion mit einem Fehler abbricht:// read news from server function updateNews() { adapter.timerNews && clearTimeout(adapter.timerNews); adapter.timerNews = null; checkNodeJsVersion() .catch(e => adapter.log.warn(`Cannot check node.js versions: ${e}`)); let oldEtag; let newNews; let oldNews; ... ...Die Funktion
checkNodeJsVersionhabe ich mir auch angesehen ... ohne alles zu verstehen (soweit bin ich dann doch noch nicht).
Die einzige Datei die ich dort auf anhieb finde ist in Zeile 804 das herunterladen der Liste der nodejs Versionen:const response = await axios('https://nodejs.org/download/release/index.json');was von Hand funktioniert (239KByte)
-
Siehe Post https://forum.iobroker.net/topic/61052/was-bedeutet-cannot-check-node-js-versions?_=1671377327350
---------------------------------------------------------------------------------Immer wenn der Admin-Adapter gestartet wird kommt folgende Warnung:
2022-12-18 16:29:06.887 - warn: admin.2 (1392685) Cannot check node.js versions: Error: unexpected end of fileIch habe mal probeweise den Adapter auf
Debuglaufen lassen, ergibt aber keine Details dazu:2022-12-18 16:28:42.499 - info: host.iobroker instance system.adapter.admin.2 started with pid 1392405 2022-12-18 16:28:43.890 - debug: admin.2 (1392405) Redis Objects: Use Redis connection: 0.0.0.0:9001 2022-12-18 16:28:44.016 - debug: admin.2 (1392405) Objects client ready ... initialize now 2022-12-18 16:28:44.018 - debug: admin.2 (1392405) Objects create System PubSub Client 2022-12-18 16:28:44.026 - debug: admin.2 (1392405) Objects create User PubSub Client 2022-12-18 16:28:44.263 - debug: admin.2 (1392405) Objects client initialize lua scripts 2022-12-18 16:28:44.272 - debug: admin.2 (1392405) Objects connected to redis: 0.0.0.0:9001 2022-12-18 16:28:44.359 - debug: admin.2 (1392405) Redis States: Use Redis connection: 127.0.0.1:6379 2022-12-18 16:28:44.365 - debug: admin.2 (1392405) States create System PubSub Client 2022-12-18 16:28:44.366 - debug: admin.2 (1392405) States create User PubSub Client 2022-12-18 16:28:44.375 - debug: admin.2 (1392405) States connected to redis: 127.0.0.1:6379 2022-12-18 16:28:44.459 - debug: admin.2 (1392405) Plugin sentry Do not initialize Plugin (enabled=false) 2022-12-18 16:28:44.466 - debug: admin.2 (1392405) Plugin sentry destroyed because not initialized correctly 2022-12-18 16:28:44.777 - info: admin.2 (1392405) starting. Version 6.3.4 in /opt/iobroker/node_modules/iobroker.admin, node: v16.18.1, js-controller: 4.0.24 2022-12-18 16:28:44.825 - info: admin.2 (1392405) requesting all states 2022-12-18 16:28:44.827 - info: admin.2 (1392405) requesting all objects 2022-12-18 16:28:45.486 - warn: admin.2 (1392405) Cannot check node.js versions: Error: unexpected end of file 2022-12-18 16:28:48.064 - info: admin.2 (1392405) received all objects 2022-12-18 16:28:48.169 - debug: admin.2 (1392405) Using http createServer 2022-12-18 16:28:48.341 - info: admin.2 (1392405) Request actual repository... 2022-12-18 16:28:48.428 - info: admin.2 (1392405) http server listening on port 60082 2022-12-18 16:28:48.428 - info: admin.2 (1392405) Use link "http://localhost:60082" to configure. 2022-12-18 16:28:48.476 - info: admin.2 (1392405) socket.io server listening on port 60082 2022-12-18 16:28:48.649 - info: admin.2 (1392405) ==> Connected system.user.admin from 192.168.1.32 2022-12-18 16:28:48.690 - debug: admin.2 (1392405) Subscribes: dummy 2022-12-18 16:28:48.702 - debug: admin.2 (1392405) Subscribes: system.adapter.discovery.0.alive 2022-12-18 16:28:48.705 - debug: admin.2 (1392405) Subscribes: system.adapter.discovery.0.alive, system.host.*.aliveHier die Informationen aus dem
diag.shSkript:======================= SUMMARY ======================= v.2022-12-13 Operatingsystem: Ubuntu 22.04.1 LTS Installation: vmware Timezone: Europe/Berlin User-ID: 1000 X-Server: false Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.18.1 /usr/bin/node v16.18.1 /usr/bin/npm 8.19.2 ioBroker Core: js-controller 4.0.24 admin 6.3.4 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: redis Pending iob updates: 0 Active repo(s): beta Objects: 38478 States: 36203 Size of iob-Database: 60M /opt/iobroker/iobroker-data/objects.jsonl 24M /opt/iobroker/iobroker-data/objects.json.migrated 24M /opt/iobroker/iobroker-data/objects.json.bak.migrated 1.8M /opt/iobroker/iobroker-data/states.json.bak 1.8M /opt/iobroker/iobroker-data/states.json ====================== END OF SUMMARY ==================Die Warnung war mir vorher noch nicht aufgefallen, ich meine (ohne Beleg) das diese seit dem Update des
js-controllerauf 4.0.24 kommt.Die Meldung selbst wird ja durch den Admin-Adapter erzeugt, wie ich das sehen in der
main.jsin Zeile 597 (hier Zeile 7) und wird ausgegeben wenn die aufgerufene Funktion mit einem Fehler abbricht:// read news from server function updateNews() { adapter.timerNews && clearTimeout(adapter.timerNews); adapter.timerNews = null; checkNodeJsVersion() .catch(e => adapter.log.warn(`Cannot check node.js versions: ${e}`)); let oldEtag; let newNews; let oldNews; ... ...Die Funktion
checkNodeJsVersionhabe ich mir auch angesehen ... ohne alles zu verstehen (soweit bin ich dann doch noch nicht).
Die einzige Datei die ich dort auf anhieb finde ist in Zeile 804 das herunterladen der Liste der nodejs Versionen:const response = await axios('https://nodejs.org/download/release/index.json');was von Hand funktioniert (239KByte)
@bananajoe habe ich auch schau mal bitte hier: https://forum.iobroker.net/topic/61052/was-bedeutet-cannot-check-node-js-versions?_=1671377327350
Grüße
Fabio
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