NEWS
Nodejs und Vis Probleme
-
@wurschtbrot probier mal ein upload vom Adapter
-
. 2023-07-09 20:34:32.842 - error: systeminfo.0 (29931) unhandled promise rejection: Cannot read properties of undefined (reading 'getObjectList') 2023-07-09 20:34:32.845 - error: systeminfo.0 (29931) TypeError: Cannot read properties of undefined (reading 'getObjectList') at MyAdapter.initAdapter (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:44:55) at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:118:37) at Adapter.emit (node:events:513:28) at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8232:26 2023-07-09 20:34:32.847 - error: systeminfo.0 (29931) Cannot read properties of undefined (reading 'getObjectList') 2023-07-09 20:34:33.366 - info: host.iobr22 stopInstance system.adapter.systeminfo.0 (force=false, process=true) 2023-07-09 20:34:33.372 - info: systeminfo.0 (29931) terminating 2023-07-09 20:34:33.374 - warn: systeminfo.0 (29931) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-07-09 20:34:33.414 - info: systeminfo.0 (29931) Got terminate signal TERMINATE_YOURSELF 2023-07-09 20:34:33.591 - info: host.iobr22 stopInstance system.adapter.systeminfo.0 send kill signal 2023-07-09 20:34:33.995 - info: host.iobr22 instance system.adapter.systeminfo.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2023-07-09 20:34:32.795 - info: systeminfo.0 (29931) starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.systeminfo, node: v18.16.1, js-controller: 4.0.24 2023-07-09 20:34:32.840 - error: systeminfo.0 (29931) 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(). 2023-07-09 20:34:32.842 - error: systeminfo.0 (29931) unhandled promise rejection: Cannot read properties of undefined (reading 'getObjectList') 2023-07-09 20:34:32.845 - error: systeminfo.0 (29931) TypeError: Cannot read properties of undefined (reading 'getObjectList') at MyAdapter.initAdapter (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:44:55) at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:118:37) at Adapter.emit (node:events:513:28) at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8232:26 2023-07-09 20:34:32.847 - error: systeminfo.0 (29931) Cannot read properties of undefined (reading 'getObjectList') 2023-07-09 20:34:33.366 - info: host.iobr22 stopInstance system.adapter.systeminfo.0 (force=false, process=true) 2023-07-09 20:34:33.372 - info: systeminfo.0 (29931) terminating 2023-07-09 20:34:33.374 - warn: systeminfo.0 (29931) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-07-09 20:34:33.414 - info: systeminfo.0 (29931) Got terminate signal TERMINATE_YOURSELF 2023-07-09 20:34:33.591 - info: host.iobr22 stopInstance system.adapter.systeminfo.0 send kill signal 2023-07-09 20:34:33.995 - info: host.iobr22 instance system.adapter.systeminfo.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2023-07-09 20:34:36.631 - info: host.iobr22 instance system.adapter.systeminfo.0 started with pid 30008 2023-07-09 20:34:36.631 - info: host.iobr22 instance system.adapter.systeminfo.0 started with pid 30008 2023-07-09 20:34:39.474 - info: systeminfo.0 (30008) starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.systeminfo, node: v18.16.1, js-controller: 4.0.24 2023-07-09 20:34:39.515 - error: systeminfo.0 (30008) 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(). 2023-07-09 20:34:39.516 - error: systeminfo.0 (30008) unhandled promise rejection: Cannot read properties of undefined (reading 'getObjectList') 2023-07-09 20:34:39.519 - error: systeminfo.0 (30008) TypeError: Cannot read properties of undefined (reading 'getObjectList') at MyAdapter.initAdapter (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:44:55) at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:118:37) at Adapter.emit (node:events:513:28) at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8232:26 2023-07-09 20:34:39.520 - error: systeminfo.0 (30008) Cannot read properties of undefined (reading 'getObjectList') 2023-07-09 20:34:40.052 - info: systeminfo.0 (30008) terminating 2023-07-09 20:34:40.053 - warn: systeminfo.0 (30008) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-07-09 20:34:39.474 - info: systeminfo.0 (30008) starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.systeminfo, node: v18.16.1, js-controller: 4.0.24 2023-07-09 20:34:39.515 - error: systeminfo.0 (30008) 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(). 2023-07-09 20:34:39.516 - error: systeminfo.0 (30008) unhandled promise rejection: Cannot read properties of undefined (reading 'getObjectList') 2023-07-09 20:34:39.519 - error: systeminfo.0 (30008) TypeError: Cannot read properties of undefined (reading 'getObjectList') at MyAdapter.initAdapter (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:44:55) at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:118:37) at Adapter.emit (node:events:513:28) at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8232:26 2023-07-09 20:34:39.520 - error: systeminfo.0 (30008) Cannot read properties of undefined (reading 'getObjectList') 2023-07-09 20:34:40.052 - info: systeminfo.0 (30008) terminating 2023-07-09 20:34:40.053 - warn: systeminfo.0 (30008) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-07-09 20:34:40.705 - error: host.iobr22 instance system.adapter.systeminfo.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2023-07-09 20:34:40.707 - info: host.iobr22 Restart adapter system.adapter.systeminfo.0 because enabled 2023-07-09 20:34:40.708 - warn: host.iobr22 Do not restart adapter system.adapter.systeminfo.0 because restart loop detected 2023-07-09 20:34:40.705 - error: host.iobr22 instance system.adapter.systeminfo.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2023-07-09 20:34:40.707 - info: host.iobr22 Restart adapter system.adapter.systeminfo.0 because enabled 2023-07-09 20:34:40.708 - warn: host.iobr22 Do not restart adapter system.adapter.systeminfo.0 because restart loop detected
ich hoffe das reicht so
-
-
@crunchip bin da nicht so fit was genau muss ich da machen
-
Dürfte das sein:
https://github.com/iobroker-community-adapters/ioBroker.systeminfo/issues/35
Wundert mich nur, dass da so lange nichts passiert ist. Der Adapter scheint aber auch verwaist zu sein. -
Ich zitiere mal:
du musst /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js öffnen und dort in Zeile 44 das "object." vor dem getObjectList entfernen.
-
: No such file or directoryiobroker.systeminfo/myAdapter.js: line 1: /** /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 2: node_modules: command not found /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 3: syntax error near unexpected token `c' /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 3: ` * (c' 2016- <frankjoke@hotmail.com>
das kommt dann
-
@wurschtbrot sagte in Nodejs und Vis Probleme:
das kommt dann
Wann kommt das? Bitte immer vollständige Eingabezeilen posten.
-
@thomas-braun finde ich bei mir gar nicht
-
pi@iobr22:~ $ /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js : No such file or directoryiobroker.systeminfo/myAdapter.js: line 1: /** /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 2: node_modules: command not found /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 3: syntax error near unexpected token `c' /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 3: ` * (c' 2016- <frankjoke@hotmail.com> pi@iobr22:~ $
-
Du musst auch einen Editor angeben, mit dem du werkeln willst.
nano ist z. B. einer.Oder du installierst den Adapter aus dem github, da dürfte das bereinigt sein.
-
Im Master scheint es auch behoben zu sein:
https://github.com/iobroker-community-adapters/ioBroker.systeminfo/blob/master/myAdapter.js
-
@thomas-braun bei mir gibt es aber auch kein
/opt/iobroker/node_modules/iobroker.systeminfo -
Zu warm? Hast du den Adapter installiert?
-
@thomas-braun ja der Adapter läuft bei mir, hab ihn nur in der Regel aus und schalt gelegentlich die Instanz mal ein
gibt vllt mit dem neuen Js-controller/admin nicht mehr -
@crunchip
Hier gibt es das:echad@chet:/opt/iobroker $ ls -lAh /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js -rw-rw-r--+ 1 iobroker iobroker 25K Jul 9 21:08 /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js
-
@thomas-braun sagte in Nodejs und Vis Probleme:
ls -lAh /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js
Zugriff auf '/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js' nicht möglich: Datei oder Verzeichnis nicht gefunden
-
:räusper:
wir befinden uns in den Einsteigerfragen!
-
In der Version aus dem Beta-Repo:
this.D(`Adapter ${this.ains} starting.`); this.getObjectList = this.c2p(adapter.objects.getObjectList).bind(adapter.objects); this.getForeignState = this.c2p(adapter.getForeignState).bind(adapter);
Da ist der Fehler noch drin.
Github kommt so daher:
static initAdapter() { states = {}; this.D(`Adapter ${this.ains} starting.`); this.getObjectList = this.c2p(adapter.getObjectList); this.getForeignState = this.c2p(adapter.getForeignState); this.setForeignState = this.c2p(adapter.setForeignState); this.getState = this.c2p(adapter.getState);
-
@homoran hihi, gar nicht darauf geachtet