NEWS
Alpha Test js-controller Kiera (v6.0)
-
Folgende Erfahrungen haben wir bislang im Alpha Test gemacht:
Falls einer der folgenden Adapter im Einsatz ist muss er mindestens die folgende Version haben:rest-api
mindestens 2.0.1
simple-api
mindestens 2.8.0
telegram
mindestens 3.3.0
samsung
mindestens 0.6.0
heating-control
mindestens 2.12.6
daswetter
mindestens 3.1.14 -
@foxriver76
Installation war problemlos, aber es kommt jetzt ständig ein Error.2024-05-22 12:40:47.406 - error: host.raspi4 Caught by controller[0]: /opt/iobroker/node_modules/iobroker.sql/node_modules/@iobroker/adapter-core/build/controllerTools.js:94 2024-05-22 12:40:47.407 - error: host.raspi4 Caught by controller[0]: throw new Error(`Cannot resolve JS-Controller module ${name}.js`); 2024-05-22 12:40:47.408 - error: host.raspi4 Caught by controller[0]: ^ 2024-05-22 12:40:47.408 - error: host.raspi4 Caught by controller[0]: Error: Cannot resolve JS-Controller module letsencrypt.js 2024-05-22 12:40:47.408 - error: host.raspi4 Caught by controller[0]: at resolveNamedModule (/opt/iobroker/node_modules/iobroker.sql/node_modules/@iobroker/adapter-core/build/controllerTools.js:94:11) 2024-05-22 12:40:47.408 - error: host.raspi4 Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.sql/node_modules/@iobroker/adapter-core/build/controllerTools.js:137:18) 2024-05-22 12:40:47.408 - error: host.raspi4 Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1358:14) 2024-05-22 12:40:47.409 - error: host.raspi4 Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) 2024-05-22 12:40:47.409 - error: host.raspi4 Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1208:32) 2024-05-22 12:40:47.409 - error: host.raspi4 Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:1024:12) 2024-05-22 12:40:47.409 - error: host.raspi4 Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1233:19) 2024-05-22 12:40:47.409 - error: host.raspi4 Caught by controller[0]: at require (node:internal/modules/helpers:179:18) 2024-05-22 12:40:47.409 - error: host.raspi4 Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.sql/node_modules/@iobroker/adapter-core/build/index.js:19:27) 2024-05-22 12:40:47.410 - error: host.raspi4 Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1358:14) 2024-05-22 12:40:47.410 - error: host.raspi4 Caught by controller[0]: Node.js v20.13.1 2024-05-22 12:40:47.410 - error: host.raspi4 instance system.adapter.sql.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
iob diag
-
Bei mir auch ganz ähnliche Meldungen.
Hab es aber über mein Handy angeschubst, daher Log Files später, wenn ich an einem gescheiten Terminal sitze. -
@thomas-braun mal bitte in
opt/iobroker
Den Befehlnpm ls @iobroker/adapter-core
ausführen und Ausgabe zeigen. -
echad@chet:/opt/iobroker $ npm ls @iobroker/adapter-core iobroker.inst@3.0.0 /opt/iobroker +-- iobroker.admin@6.17.11 | +-- @iobroker/adapter-core@3.1.4 | `-- @iobroker/socket-classes@1.5.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.alexa2@3.26.5 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.alias-manager@1.2.6 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.awtrix-light@1.2.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.backitup@2.11.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.ble@0.14.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.cloud@5.0.1 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.drops-weather@0.3.1 (git+ssh://git@github.com/inbux/ioBroker.drops-weather.git#608ed1fcbbde3f59b6a09f2f188b92823481ae90) | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.firetv@2.1.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.followthesun@0.5.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.govee-app@0.0.6 (git+ssh://git@github.com/TA2k/ioBroker.govee-app.git#6a0f84cfb34eb3a0ca647c7a519b9d5a48ccfb85) | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.govee-local@0.2.6 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.history@3.0.1 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.ical@1.15.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.iceroad@1.2.1 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.iot@3.3.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.javascript@8.3.1 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.js-controller@6.0.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.midea@0.1.0 (git+ssh://git@github.com/TA2k/ioBroker.midea.git#0d037c0c9a025b193546f881f747c8f998bfc724) | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.mihome-cloud@0.1.1 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.mihome-vacuum@4.2.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.mihome@1.4.0 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.mqtt@5.2.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.nina@0.0.26 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.nuki-extended@2.7.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.nut@1.6.0 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.opendtu@1.0.1 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.openweathermap@1.0.4 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.parcel@0.2.7 (git+ssh://git@github.com/TA2k/ioBroker.parcel.git#a9656c8ef3d0e85a75d911c9392440e98e13b958) | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.rpi2@1.3.2 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.sainlogic@0.10.5 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.samsung_tizen@1.1.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.samsung@0.5.11 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.socketio@6.7.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.switchbot-hub@0.1.2 (git+ssh://git@github.com/DrozmotiX/ioBroker.switchbot-hub.git#de8c1ad97edafedb16cbbb2c6dc14b032848df8e) | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.tado@0.5.4 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.tankerkoenig@3.4.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.tr-064@4.3.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.tradfri@3.1.3 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.trashschedule@3.3.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.tuya@3.15.0 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.vis-2@2.9.63 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.weather-warnings@0.6.7 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.web@6.2.5 | +-- @iobroker/adapter-core@3.1.4 deduped | +-- iobroker.simple-api@2.7.2 | | `-- @iobroker/adapter-core@2.6.9 | +-- iobroker.socketio@6.6.1 | | `-- @iobroker/adapter-core@3.1.4 deduped | `-- iobroker.ws@2.5.11 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.whatsapp-cmb@0.2.3 | `-- @iobroker/adapter-core@2.6.9 +-- iobroker.ws@2.6.1 | `-- @iobroker/adapter-core@3.1.4 deduped `-- iobroker.zigbee@1.10.3 +-- @iobroker/adapter-core@3.1.4 deduped `-- @iobroker/dm-utils@0.1.9 `-- @iobroker/adapter-core@3.1.4 deduped echad@chet:/opt/iobroker $
Die Adapter mit github-Installationen sorgen für den Trouble, scheint mir. Die stehen auch in der Instanzen-Übersicht auf Rot.
Sind aber auch 'ordentlich installierte / aus dem Beta-Repo' Adapter auf Rot. -
@thomas-braun Ja das Problem ist, dass wir adapter-core
2.6.11
oder3.1.4
brauchen. Leider ist wohl npm mittlerweile ziemlich faul und da kein adapter ausdrücklich 2.6.11 required sondern z. b. mindestens 2.6.8 wird npm das wohl nur bei einem neu installieren eines Packages anfassen. Müssen wir mal schauen wie wir das am besten angehen. -
@foxriver76 said in Alpha Test js-controller Kiera (v6.0):
@thomas-braun mal bitte in
opt/iobroker
Den Befehlnpm ls @iobroker/adapter-core
ausführen und Ausgabe zeigen.der sql adapter benutzt noch adapter-core 3.0.3:
"@iobroker/adapter-core": "^3.0.3"Ist für js-controller nicht adapter-core 3.1.4 erforderlich?
Edit:
OK, warst schneller -
@mcm1957 im Endeffekt sind die 3er egal, da alle mit
^3.x.x
spezifiziert erlauben sie das Upgrade auf 3.1.4 und der Controller required das explizit, damit werden die alle hochgezogen, aber die 2er bleiben leider problematisch.. da wir nur entweder 2 forcieren können hoch zu ziehen oder 3, evtl wird es dann noch einen shim im Controller brauchen damit die alten Versionen nicht crashen. -
@foxriver76
sql ist da aber eher der Gegenbeweis. Da steht ^3.0.3 drinnen. Und trotzdem crashed es. -
@mcm1957 ne die offizielle version von sql hat 2.6.0 daher crasht es https://www.npmjs.com/package/iobroker.sql?activeTab=code
Was auf GitHub steht hat keine Auswirkung wenn es nicht von GitHub installiert wurde
-
@foxriver76 Ich habe meine System gerade einmal auf nodejs 20 (über iob nodejs-update 20 aktualisiert, da du ganz am Anfang geschrieben hattest, dass die Empfehlung jetzt nodejs20 ist.
Wenn ich jetzt den js-controller installieren will kommt folgende Fehlermeldung
proxmox@ioBrokerTestsystem:~$ iob stop proxmox@ioBrokerTestsystem:~$ cd /opt/iobroker/ proxmox@ioBrokerTestsystem:/opt/iobroker$ npm i iobroker.js-controller@next --omit=dev npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with your version of node/npm: @appland/appmap-agent-js@13.9.1 npm ERR! notsup Not compatible with your version of node/npm: @appland/appmap-agent-js@13.9.1 npm ERR! notsup Required: {"node":"14.x.x || 16.x.x || 17.x.x || 18.x.x || 19.x.x"} npm ERR! notsup Actual: {"npm":"10.5.2","node":"v20.13.1"} npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-05-22T11_53_14_435Z-debug-0.log
iob diag:
-
@foxriver76
OK, sorry - mein Fehler.
Ich bin davon ausgegangen dass jemand der js-controller 6 alpha installiert auch die latest Versionen der anderern Adapter installiert hat.Offenbar ist der SQL Adapter auf GH um einiges weiter als der npm / latest / stable Stand
Alles klar soweit.
-
@mcm1957 Ja, es ist echt nur auf GitHub mit 3.x sql latest und stable ist 2 jahre alt
-
@feuersturm sagte in Alpha Test js-controller Kiera (v6.0):
@appland/appmap-agent-js
das dürfte nicht vom controller kommen, mach mal
npm ls @appland/appmap-agent-js
in/opt/iobroker
-
@foxriver76 Das ist die Ausgabe
proxmox@ioBrokerTestsystem:/opt/iobroker$ npm ls @appland/appmap-agent-js iobroker.inst@2.0.3 /opt/iobroker `-- iobroker.device-manager@0.0.3 `-- @appland/appmap-agent-js@13.9.1
-
@feuersturm die inkompatible dependency bringt der
device-manager
Adapter mit, gerne dort mal ein Issue eröffnen. Ansonsten kannst du natürlich auch gerne mit node v18 testen. -
@foxriver76 Danke. Issue https://github.com/ioBroker/ioBroker.device-manager/issues/42 wurde beim device-manager erstellt. Dann mach ich mal ein downgrade
-
@foxriver76 Nach dem Downgrade auf nodejs18 ging die Installation vom js-controller6 ohne Probleme.
Beim Start wirft der Admin Adapter 6.17.11 fehler und kann nicht gestartet werden.2024-05-22 14:28:04.907 - info: host.ioBrokerTestsystem iobroker.js-controller version 6.0.0 js-controller starting 2024-05-22 14:28:04.921 - info: host.ioBrokerTestsystem Copyright (c) 2014-2023 bluefox, 2014 hobbyquaker 2024-05-22 14:28:04.925 - info: host.ioBrokerTestsystem hostname: ioBrokerTestsystem, node: v18.20.3 2024-05-22 14:28:04.929 - info: host.ioBrokerTestsystem ip addresses: 192.168.178.77 fe80::f854:cfff:fe5f:6c25 2024-05-22 14:28:07.666 - info: host.ioBrokerTestsystem connected to Objects and States 2024-05-22 14:28:07.713 - info: host.ioBrokerTestsystem added notifications configuration of host 2024-05-22 14:28:08.866 - info: host.ioBrokerTestsystem 64 instances found 2024-05-22 14:28:08.975 - info: host.ioBrokerTestsystem starting 27 instances 2024-05-22 14:28:09.740 - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.nodeCurrent" 2024-05-22 14:28:09.822 - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.nodeNewest" 2024-05-22 14:28:09.893 - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.nodeNewestNext" 2024-05-22 14:28:09.929 - info: host.ioBrokerTestsystem instance system.adapter.admin.0 started with pid 19670 2024-05-22 14:28:10.082 - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.npmCurrent" 2024-05-22 14:28:10.108 - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.npmNewest" 2024-05-22 14:28:10.126 - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.npmNewestNext" 2024-05-22 14:28:10.137 - info: host.ioBrokerTestsystem Some obsolete host states deleted. 2024-05-22 14:28:13.695 - info: host.ioBrokerTestsystem instance system.adapter.influxdb.0 started with pid 19677 2024-05-22 14:28:16.342 - info: admin.0 (19670) starting. Version 6.17.11 in /opt/iobroker/node_modules/iobroker.admin, node: v18.20.3, js-controller: 6.0.0 2024-05-22 14:28:16.436 - info: admin.0 (19670) requesting all objects 2024-05-22 14:28:20.148 - info: admin.0 (19670) received all objects 2024-05-22 14:28:20.331 - info: host.ioBrokerTestsystem instance system.adapter.javascript.0 started with pid 19708 2024-05-22 14:28:20.749 - error: admin.0 (19670) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2024-05-22 14:28:20.753 - error: admin.0 (19670) unhandled promise rejection: utils.commonTools.session is not a function 2024-05-22 14:28:20.768 - error: admin.0 (19670) TypeError: utils.commonTools.session is not a function at Web.#init (/opt/iobroker/node_modules/iobroker.admin/build-backend/lib/web.js:451:50) at new Web (/opt/iobroker/node_modules/iobroker.admin/build-backend/lib/web.js:167:19) at /opt/iobroker/node_modules/iobroker.admin/build-backend/main.js:1289:46 at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/build-backend/main.js:1136:25) at processImmediate (node:internal/timers:478:21) 2024-05-22 14:28:20.772 - error: admin.0 (19670) utils.commonTools.session is not a function 2024-05-22 14:28:21.208 - info: admin.0 (19670) terminating http server on port 8081 2024-05-22 14:28:21.215 - info: admin.0 (19670) terminating 2024-05-22 14:28:21.221 - warn: admin.0 (19670) Terminated (UNCAUGHT_EXCEPTION): Without reason 2024-05-22 14:28:21.237 - info: admin.0 (19670) Request actual repository... 2024-05-22 14:28:21.738 - info: admin.0 (19670) terminating 2024-05-22 14:28:22.423 - warn: admin.0 (19670) redis get admin.0.info.newsLastId, error - Connection is closed. 2024-05-22 14:28:22.445 - warn: admin.0 (19670) get state error: Connection is closed. 2024-05-22 14:28:22.518 - warn: admin.0 (19670) get state error: Connection is closed. 2024-05-22 14:28:22.526 - warn: admin.0 (19670) get state error: Connection is closed. 2024-05-22 14:28:22.530 - warn: admin.0 (19670) get state error: Connection is closed. 2024-05-22 14:28:22.534 - warn: admin.0 (19670) get state error: Connection is closed. 2024-05-22 14:28:22.538 - warn: admin.0 (19670) get state error: Connection is closed. 2024-05-22 14:28:22.594 - warn: admin.0 (19670) Cannot check node.js/npm version 2024-05-22 14:28:22.981 - error: host.ioBrokerTestsystem Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2024-05-22 14:28:22.986 - error: host.ioBrokerTestsystem Caught by controller[0]: TypeError: utils.commonTools.session is not a function 2024-05-22 14:28:22.992 - error: host.ioBrokerTestsystem Caught by controller[0]: at Web.#init (/opt/iobroker/node_modules/iobroker.admin/build-backend/lib/web.js:451:50) 2024-05-22 14:28:22.997 - error: host.ioBrokerTestsystem Caught by controller[0]: at new Web (/opt/iobroker/node_modules/iobroker.admin/build-backend/lib/web.js:167:19) 2024-05-22 14:28:23.001 - error: host.ioBrokerTestsystem Caught by controller[0]: at /opt/iobroker/node_modules/iobroker.admin/build-backend/main.js:1289:46 2024-05-22 14:28:23.007 - error: host.ioBrokerTestsystem Caught by controller[0]: at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/build-backend/main.js:1136:25) 2024-05-22 14:28:23.011 - error: host.ioBrokerTestsystem Caught by controller[0]: at processImmediate (node:internal/timers:478:21) 2024-05-22 14:28:23.015 - error: host.ioBrokerTestsystem instance system.adapter.admin.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
-
@feuersturm said in Alpha Test js-controller Kiera (v6.0):
@foxriver76 Danke. Issue https://github.com/ioBroker/ioBroker.device-manager/issues/42 wurde beim device-manager erstellt. Dann mach ich mal ein downgrade
Da muss der device-manager ev. intensiver angepasst werden. Das Repo von appmap-agent-js wurde archiviert und auf npm ist das package nicht mehr via Suche zu finden.
https://github.com/getappmap/appmap-agent-jsIst aber für js-controlelr 6 irrelevant.
-
@foxriver76 sagte in Alpha Test js-controller Kiera (v6.0):
Windows
Generell muss das Update manuell via npm installiert werden.
Hierzu im ioBroker-Verzeichnis nach stoppen des ioBroker den Befehl npm i iobroker.js-controller@next --omit=dev ausführen.Hallo,
nach dem installieren startet der IOB nicht, er beendet sich immer automatisch.
********************************************************** *** Welcome to ioBroker. *** *** *** *** Type 'iob help' for list of instructions. *** *** For more help see *** *** https://github.com/ioBroker/ioBroker.docs *** ********************************************************** Your environment has been set up for using Node.js 18.20.3 (x64) and npm. C:\Test>npm ls @iobroker/adapter-core iobroker.inst@3.0.0 C:\Test +-- iobroker.admin@6.13.16 | +-- @iobroker/adapter-core@3.1.4 | `-- @iobroker/socket-classes@1.5.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.backitup@2.11.0 | `-- @iobroker/adapter-core@3.1.4 deduped +-- iobroker.discovery@4.4.0 | `-- @iobroker/adapter-core@3.1.4 deduped `-- iobroker.js-controller@6.0.1-alpha.0-20240522-f267270b9 `-- @iobroker/adapter-core@3.1.4 deduped C:\Test>
Edit:
Bin wieder auf Version 5.0.19 , alles läuft wieder.