<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[gelöst] Admin-Adapter: Cannot check node.js versions]]></title><description><![CDATA[<p dir="auto">Siehe Post <a href="https://forum.iobroker.net/topic/61052/was-bedeutet-cannot-check-node-js-versions?_=1671377327350">https://forum.iobroker.net/topic/61052/was-bedeutet-cannot-check-node-js-versions?_=1671377327350</a></p>
<p dir="auto"><code>---------------------------------------------------------------------------------</code></p>
<p dir="auto">Immer wenn der Admin-Adapter gestartet wird kommt folgende Warnung:</p>
<pre><code>2022-12-18 16:29:06.887  - warn: admin.2 (1392685) Cannot check node.js versions: Error: unexpected end of file
</code></pre>
<p dir="auto">Ich habe mal probeweise den Adapter auf <code>Debug</code> laufen lassen, ergibt aber keine Details dazu:</p>
<pre><code>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) ==&gt; 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.*.alive
</code></pre>
<p dir="auto">Hier die Informationen aus dem <code>diag.sh</code> Skript:</p>
<pre><code>======================= 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 ==================
</code></pre>
<p dir="auto">Die Warnung war mir vorher noch nicht aufgefallen, ich meine (ohne Beleg) das diese seit dem Update des <code>js-controller</code> auf 4.0.24 kommt.</p>
<p dir="auto">Die Meldung selbst wird ja durch den Admin-Adapter erzeugt, wie ich das sehen in der <code>main.js</code> in Zeile 597 (hier Zeile 7) und wird ausgegeben wenn die aufgerufene Funktion mit einem Fehler abbricht:</p>
<pre><code>// read news from server
function updateNews() {
    adapter.timerNews &amp;&amp; clearTimeout(adapter.timerNews);
    adapter.timerNews = null;

    checkNodeJsVersion()
        .catch(e =&gt; adapter.log.warn(`Cannot check node.js versions: ${e}`));

    let oldEtag;
    let newNews;
    let oldNews;
    ...
    ...
</code></pre>
<p dir="auto">Die Funktion <code>checkNodeJsVersion</code> habe ich mir auch angesehen ... ohne alles zu verstehen (soweit bin ich dann doch noch nicht).<br />
Die einzige Datei die ich dort auf anhieb finde ist in Zeile 804 das herunterladen der Liste der nodejs Versionen:</p>
<pre><code>const response = await axios('https://nodejs.org/download/release/index.json');
</code></pre>
<p dir="auto">was von Hand funktioniert (239KByte)</p>
]]></description><link>https://forum.iobroker.net/topic/61150/gelöst-admin-adapter-cannot-check-node-js-versions</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 16:45:19 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/61150.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Dec 2022 15:54:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [gelöst] Admin-Adapter: Cannot check node.js versions on Sun, 18 Dec 2022 16:04:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bananajoe" aria-label="Profile: bananajoe">@<bdi>bananajoe</bdi></a> habe ich auch schau mal bitte hier: <a href="https://forum.iobroker.net/topic/61052/was-bedeutet-cannot-check-node-js-versions?_=1671377327350">https://forum.iobroker.net/topic/61052/was-bedeutet-cannot-check-node-js-versions?_=1671377327350</a></p>
<p dir="auto">Grüße<br />
Fabio</p>
]]></description><link>https://forum.iobroker.net/post/912173</link><guid isPermaLink="true">https://forum.iobroker.net/post/912173</guid><dc:creator><![CDATA[Fabio]]></dc:creator><pubDate>Sun, 18 Dec 2022 16:04:30 GMT</pubDate></item></channel></rss>