NEWS
npm Update
-
@hotspot_2 sagte in npm Update:
Die Version ist aktuell 10.5.0
passt doch alles:
Du hast nodejs 18.20.3 und da gehört eben die installierte NPM 10.7.0 dazu.
Wenn Du auf die Nodejs 20 gehst dann wird auch die passende NPM installiert.
Immer Finger weg von NPM
-
@djmarc75 Danke! Hab gerade festgestellt das bei mir dann ja alles passt.
-
Und mit der ganz aktuellen nodejs 20.14 ist auch npm 10.7 dabei.
-
@thomas-braun Danke Euch!
Ich habe aktuell Probleme mit dem iot Adapter (der stürzt häufig ab und im Protokoll steht immer was von "Type error"). Auf Github war die Empfehlung alles zu aktualisieren.
Node.js 18.20.2
Npm 10.7.0War die Empfehlung. Aber das passt ja bei mir.
-
@hotspot_2 sagte in npm Update:
der stürzt häufig ab und im Protokoll steht immer was von "Type error"
bitte das Log auch zeigen - nicht nacherzählen
In Codetags natürlich
-
@hotspot_2 sagte in npm Update:
War die Empfehlung. Aber das passt ja bei mir.
Dann bring es auf 20, das ist nämlich die aktuelle Empfehlung für den ioBroker.
iob nodejs-update 20
-
@djmarc75 Klar.
2024-05-29 15:05:00.029 - info: host.iobroker instance system.adapter.dwd.0 started with pid 226574 2024-05-29 15:05:00.610 - info: dwd.0 (226574) starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v18.20.3, js-controller: 5.0.19 2024-05-29 15:05:00.820 - info: dwd.0 (226574) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2024-05-29 15:05:01.333 - info: host.iobroker instance system.adapter.dwd.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2024-05-29 15:07:18.585 - info: iot.0 (225009) Connection changed: disconnect 2024-05-29 15:07:18.586 - info: iot.0 (225009) Connection lost 2024-05-29 15:07:18.589 - error: iot.0 (225009) uncaught exception: Cannot convert undefined or null to object 2024-05-29 15:07:18.589 - error: iot.0 (225009) TypeError: Cannot convert undefined or null to object at Function.keys () at RemoteAccess.onCloudDisconnect (/opt/iobroker/node_modules/iobroker.iot/lib/remote.js:720:29) at DeviceClient.onDisconnect (/opt/iobroker/node_modules/iobroker.iot/main.js:564:22) at DeviceClient.emit (node:events:517:28) at DeviceClient.emit (node:domain:489:12) at MqttClient. (/opt/iobroker/node_modules/aws-iot-device-sdk/device/index.js:797:12) at MqttClient.emit (node:events:529:35) at MqttClient.emit (node:domain:489:12) at TLSSocket. (/opt/iobroker/node_modules/aws-iot-device-sdk/node_modules/mqtt/lib/client.js:360:10) at TLSSocket.emit (node:events:529:35) 2024-05-29 15:07:18.589 - error: iot.0 (225009) Cannot convert undefined or null to object 2024-05-29 15:07:18.597 - info: iot.0 (225009) terminating 2024-05-29 15:07:18.598 - warn: iot.0 (225009) Terminated (UNCAUGHT_EXCEPTION): Without reason 2024-05-29 15:07:19.098 - info: iot.0 (225009) terminating 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: TypeError: Cannot convert undefined or null to object 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at Function.keys () 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at RemoteAccess.onCloudDisconnect (/opt/iobroker/node_modules/iobroker.iot/lib/remote.js:720:29) 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at DeviceClient.onDisconnect (/opt/iobroker/node_modules/iobroker.iot/main.js:564:22) 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at DeviceClient.emit (node:events:517:28) 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at DeviceClient.emit (node:domain:489:12) 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at MqttClient. (/opt/iobroker/node_modules/aws-iot-device-sdk/device/index.js:797:12) 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at MqttClient.emit (node:events:529:35) 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at MqttClient.emit (node:domain:489:12) 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at TLSSocket. (/opt/iobroker/node_modules/aws-iot-device-sdk/node_modules/mqtt/lib/client.js:360:10) 2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at TLSSocket.emit (node:events:529:35) 2024-05-29 15:07:19.125 - error: host.iobroker instance system.adapter.iot.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2024-05-29 15:07:19.125 - info: host.iobroker Restart adapter system.adapter.iot.0 because enabled 2024-05-29 15:07:49.152 - info: host.iobroker instance system.adapter.iot.0 started with pid 226608 2024-05-29 15:07:49.845 - info: iot.0 (226608) starting. Version 3.2.2 in /opt/iobroker/node_modules/iobroker.iot, node: v18.20.3, js-controller: 5.0.19 2024-05-29 15:07:49.866 - info: iot.0 (226608) Connecting with a18wym7vjdl22g.iot.eu-west-1.amazonaws.com 2024-05-29 15:08:20.035 - info: iot.0 (226608) Connection changed: disconnect 2024-05-29 15:08:20.038 - error: iot.0 (226608) uncaught exception: Cannot convert undefined or null to object 2024-05-29 15:08:20.038 - error: iot.0 (226608) TypeError: Cannot convert undefined or null to object at Function.keys () at RemoteAccess.onCloudDisconnect (/opt/iobroker/node_modules/iobroker.iot/lib/remote.js:720:29) at DeviceClient.onDisconnect (/opt/iobroker/node_modules/iobroker.iot/main.js:564:22) at DeviceClient.emit (node:events:517:28) at DeviceClient.emit (node:domain:489:12) at MqttClient. (/opt/iobroker/node_modules/aws-iot-device-sdk/device/index.js:797:12) at MqttClient.emit (node:events:529:35) at MqttClient.emit (node:domain:489:12) at TLSSocket. (/opt/iobroker/node_modules/aws-iot-device-sdk/node_modules/mqtt/lib/client.js:360:10) at TLSSocket.emit (node:events:529:35) 2024-05-29 15:08:20.039 - error: iot.0 (226608) Cannot convert undefined or null to object 2024-05-29 15:08:20.046 - info: iot.0 (226608) terminating 2024-05-29 15:08:20.047 - warn: iot.0 (226608) Terminated (UNCAUGHT_EXCEPTION): Without reason 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: TypeError: Cannot convert undefined or null to object 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at Function.keys () 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at RemoteAccess.onCloudDisconnect (/opt/iobroker/node_modules/iobroker.iot/lib/remote.js:720:29) 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at DeviceClient.onDisconnect (/opt/iobroker/node_modules/iobroker.iot/main.js:564:22) 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at DeviceClient.emit (node:events:517:28) 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at DeviceClient.emit (node:domain:489:12) 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at MqttClient. (/opt/iobroker/node_modules/aws-iot-device-sdk/device/index.js:797:12) 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at MqttClient.emit (node:events:529:35) 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at MqttClient.emit (node:domain:489:12) 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at TLSSocket. (/opt/iobroker/node_modules/aws-iot-device-sdk/node_modules/mqtt/lib/client.js:360:10) 2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at TLSSocket.emit (node:events:529:35) 2024-05-29 15:08:20.259 - error: host.iobroker instance system.adapter.iot.0 terminated with code 1 (JS_CONTROLLER_STOPPED) 2024-05-29 15:08:20.259 - info: host.iobroker Restart adapter system.adapter.iot.0 because enabled
Das passiert so mehrmals täglich und der Adapter startet häufig neu. Wird dann auch mal komplett deaktiviert automatisch.
-
@thomas-braun sagte in npm Update:
iob nodejs-update 20
Wenn ich das eingebe erhalte ich das hier als Meldung:
marcus@iobroker:~$ iob nodejs-update 20 iobroker nodejs-update [<major-version>] Upgrade the Node.JS installation to the current LTS Options: --help Show help [boolean]
Was muss ich da noch tun?
-
@hotspot_2 sagte in npm Update:
Was muss ich da noch tun?
Dein System zuvor auf Stand bringen....
iob stop iob fix iob nodejs-update 20
-
@thomas-braun Jetzt hat alles geklappt. Jetzt schau ich mal ob der iot-Adapter besser läuft.
Danke für eure Hilfe!