NEWS
Alpha Test js-controller 4.0
-
@wendy2702 sagte in Alpha Test js-controller 4.0:
Allerdings, wie gesagt bis JS3.3.22 ging alles Problemlos
Das ist es ja ... das ist "soooo low level" das kann mit dem controller nix zu tun haben
-
@apollon77
Moin,
Ich habe mal eine kurze Zwischenfrage.
Ich habe den weiter oben erwähnten Yamaha-Adapter installiert und
bekomme jetzt auch die genannten Warnungen. z.B.2022-02-03 18:32:52.225 - warn: yamaha.0 (8368) Object yamaha.0.powerAllZones is invalid: obj.common.min has an invalid type! Expected "number", received "boolean"
Was ich daran nicht vestehe, ist das der Datentyp boolean ist und
der min-Wert ist false. Warum Expected „number“?{ "_id": "yamaha.0.powerAllZones", "type": "state", "common": { "name": "PowerAllZones", "type": "boolean", "role": "state", "read": true, "write": true, "min": false, "max": true, "def": false, "desc": "Power all Zones" }, "native": {}, "from": "system.adapter.yamaha.0", "ts": 1643912423847, "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" }, "user": "system.user.admin" }
Liegt es an mir das ich es nicht verstehe?
Ein ja wäre eine ausreichende Antwort. -
Leider haben die Änderungen in der main.js nix gebracht, soweit ich sehe:
main.js hat jetzt drin:
Line 4443
// show for debug console.error(text); if ( text.includes('NODE_MODULE_VERSION') || text.includes('npm rebuild') || text.includes('Error: The module \'') || text.includes('Cannot find module') ) {
Line 3016
case 'rebuildAdapter': if (!msg.message.id) { if (msg.callback && msg.from) { sendTo(msg.from, msg.command, { error: 'Adapter to rebuild not provided.' }, msg.callback); } } else if (!installQueue.some(entry => entry.id === msg.message.id)) { logger.info(`${hostLogPrefix} ${msg.message.id} will be rebuilt ( ${msg.message.rebuildArgs})`); const installObj = { id: msg.message.id, rebuild: true }; if (msg.message.rebuildArgs) { installObj.rebuildArgs = msg.message.rebuildArgs; }
Leider kommt da immer noch das um's Eck:
2022-02-03 20:18:45.732 - info: host.chet instance system.adapter.parcel.0 started with pid 76304 2022-02-03 20:18:46.983 - error: host.chet Caught by controller[0]: node:internal/modules/cjs/loader:1183 2022-02-03 20:18:46.983 - error: host.chet Caught by controller[0]: return process.dlopen(module, path.toNamespacedPath(filename)); 2022-02-03 20:18:46.985 - error: host.chet Caught by controller[0]: ^ 2022-02-03 20:18:46.985 - error: host.chet Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' 2022-02-03 20:18:46.985 - error: host.chet Caught by controller[0]: was compiled against a different Node.js version using 2022-02-03 20:18:46.985 - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 83. This version of Node.js requires 2022-02-03 20:18:46.986 - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 93. Please try re-compiling or re-installing 2022-02-03 20:18:46.986 - error: host.chet Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). 2022-02-03 20:18:46.986 - error: host.chet Caught by controller[0]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18) 2022-02-03 20:18:46.986 - error: host.chet Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) 2022-02-03 20:18:46.986 - error: host.chet Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) 2022-02-03 20:18:46.986 - error: host.chet Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1005:19) 2022-02-03 20:18:46.987 - error: host.chet Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18) 2022-02-03 20:18:46.987 - error: host.chet Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/canvas/lib/bindings.js:3:18) 2022-02-03 20:18:46.987 - error: host.chet Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1101:14) 2022-02-03 20:18:46.988 - error: host.chet Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) 2022-02-03 20:18:46.988 - error: host.chet Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) 2022-02-03 20:18:46.988 - error: host.chet Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) { 2022-02-03 20:18:46.988 - error: host.chet Caught by controller[0]: code: 'ERR_DLOPEN_FAILED' 2022-02-03 20:18:46.988 - error: host.chet Caught by controller[0]: } 2022-02-03 20:18:46.989 - error: host.chet instance system.adapter.parcel.0 terminated with code 1 (JS_CONTROLLER_STOPPED) 2022-02-03 20:18:46.989 - info: host.chet Adapter system.adapter.parcel.0 needs rebuild and will be restarted afterwards. 2022-02-03 20:18:46.989 - info: host.chet system.adapter.parcel.0 will be rebuilt ( undefined) 2022-02-03 20:18:46.990 - warn: host.chet adapter "parcel" seems to be installed for a different version of Node.js. Trying to rebuild it... 1 attempt 2022-02-03 20:18:46.991 - info: host.chet iobroker rebuild 2022-02-03 20:18:47.764 - info: miio.0 (76030) discover stoped after 30 seconds. 2022-02-03 20:18:48.067 - info: host.chet iobroker npm-rebuild: Rebuilding native modules ... 2022-02-03 20:19:30.209 - info: host.chet iobroker npm-rebuild: rebuilt dependencies successfully 2022-02-03 20:19:30.246 - info: host.chet iobroker npm-rebuild: 2022-02-03 20:19:30.248 - info: host.chet iobroker npm-rebuild: Rebuilding native modules done 2022-02-03 20:19:31.259 - info: host.chet iobroker npm-rebuild: exit 0 2022-02-03 20:19:31.356 - info: host.chet instance system.adapter.parcel.0 started with pid 76951 2022-02-03 20:19:32.606 - error: host.chet Caught by controller[0]: node:internal/modules/cjs/loader:1183 2022-02-03 20:19:32.606 - error: host.chet Caught by controller[0]: return process.dlopen(module, path.toNamespacedPath(filename)); 2022-02-03 20:19:32.607 - error: host.chet Caught by controller[0]: ^ 2022-02-03 20:19:32.607 - error: host.chet Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' 2022-02-03 20:19:32.607 - error: host.chet Caught by controller[0]: was compiled against a different Node.js version using 2022-02-03 20:19:32.607 - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 83. This version of Node.js requires 2022-02-03 20:19:32.607 - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 93. Please try re-compiling or re-installing 2022-02-03 20:19:32.608 - error: host.chet Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). 2022-02-03 20:19:32.608 - error: host.chet Caught by controller[0]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18) 2022-02-03 20:19:32.608 - error: host.chet Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) 2022-02-03 20:19:32.608 - error: host.chet Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) 2022-02-03 20:19:32.609 - error: host.chet Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1005:19) 2022-02-03 20:19:32.609 - error: host.chet Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18) 2022-02-03 20:19:32.609 - error: host.chet Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/canvas/lib/bindings.js:3:18) 2022-02-03 20:19:32.609 - error: host.chet Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1101:14) 2022-02-03 20:19:32.609 - error: host.chet Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) 2022-02-03 20:19:32.610 - error: host.chet Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) 2022-02-03 20:19:32.610 - error: host.chet Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) { 2022-02-03 20:19:32.610 - error: host.chet Caught by controller[0]: code: 'ERR_DLOPEN_FAILED' 2022-02-03 20:19:32.610 - error: host.chet Caught by controller[0]: } 2022-02-03 20:19:32.610 - error: host.chet instance system.adapter.parcel.0 terminated with code 1 (JS_CONTROLLER_STOPPED) 2022-02-03 20:19:32.611 - info: host.chet Adapter system.adapter.parcel.0 needs rebuild and will be restarted afterwards. 2022-02-03 20:19:32.611 - info: host.chet system.adapter.parcel.0 will be rebuilt ( undefined) 2022-02-03 20:19:32.611 - warn: host.chet adapter "parcel" seems to be installed for a different version of Node.js. Trying to rebuild it... 2 attempt 2022-02-03 20:19:32.612 - info: host.chet iobroker rebuild 2022-02-03 20:19:33.581 - info: host.chet iobroker npm-rebuild: Rebuilding native modules ... 2022-02-03 20:20:15.070 - info: host.chet iobroker npm-rebuild: rebuilt dependencies successfully 2022-02-03 20:20:15.110 - info: host.chet iobroker npm-rebuild: 2022-02-03 20:20:15.111 - info: host.chet iobroker npm-rebuild: Rebuilding native modules done 2022-02-03 20:20:16.125 - info: host.chet iobroker npm-rebuild: exit 0 2022-02-03 20:20:16.265 - info: host.chet instance system.adapter.parcel.0 started with pid 77583 2022-02-03 20:20:17.605 - error: host.chet Caught by controller[0]: node:internal/modules/cjs/loader:1183 2022-02-03 20:20:17.606 - error: host.chet Caught by controller[0]: return process.dlopen(module, path.toNamespacedPath(filename)); 2022-02-03 20:20:17.606 - error: host.chet Caught by controller[0]: ^ 2022-02-03 20:20:17.606 - error: host.chet Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' 2022-02-03 20:20:17.606 - error: host.chet Caught by controller[0]: was compiled against a different Node.js version using 2022-02-03 20:20:17.606 - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 83. This version of Node.js requires 2022-02-03 20:20:17.606 - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 93. Please try re-compiling or re-installing 2022-02-03 20:20:17.606 - error: host.chet Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). 2022-02-03 20:20:17.607 - error: host.chet Caught by controller[0]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18) 2022-02-03 20:20:17.607 - error: host.chet Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) 2022-02-03 20:20:17.607 - error: host.chet Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) 2022-02-03 20:20:17.607 - error: host.chet Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1005:19) 2022-02-03 20:20:17.607 - error: host.chet Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18) 2022-02-03 20:20:17.607 - error: host.chet Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/canvas/lib/bindings.js:3:18) 2022-02-03 20:20:17.608 - error: host.chet Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1101:14) 2022-02-03 20:20:17.608 - error: host.chet Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) 2022-02-03 20:20:17.608 - error: host.chet Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) 2022-02-03 20:20:17.608 - error: host.chet Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) { 2022-02-03 20:20:17.608 - error: host.chet Caught by controller[0]: code: 'ERR_DLOPEN_FAILED' 2022-02-03 20:20:17.609 - error: host.chet Caught by controller[0]: } 2022-02-03 20:20:17.609 - error: host.chet instance system.adapter.parcel.0 terminated with code 1 (JS_CONTROLLER_STOPPED) 2022-02-03 20:20:17.609 - info: host.chet Adapter system.adapter.parcel.0 needs rebuild and will be restarted afterwards. 2022-02-03 20:20:17.610 - info: host.chet system.adapter.parcel.0 will be rebuilt ( undefined) 2022-02-03 20:20:17.610 - warn: host.chet adapter "parcel" seems to be installed for a different version of Node.js. Trying to rebuild it... 3 attempt 2022-02-03 20:20:17.610 - info: host.chet iobroker rebuild 2022-02-03 20:20:18.792 - info: host.chet iobroker npm-rebuild: Rebuilding native modules ... 2022-02-03 20:21:00.528 - info: host.chet iobroker npm-rebuild: rebuilt dependencies successfully 2022-02-03 20:21:00.570 - info: host.chet iobroker npm-rebuild: 2022-02-03 20:21:00.571 - info: host.chet iobroker npm-rebuild: Rebuilding native modules done 2022-02-03 20:21:01.582 - info: host.chet iobroker npm-rebuild: exit 0 2022-02-03 20:21:01.677 - info: host.chet instance system.adapter.parcel.0 started with pid 78216 2022-02-03 20:21:02.929 - error: host.chet Caught by controller[0]: node:internal/modules/cjs/loader:1183 2022-02-03 20:21:02.929 - error: host.chet Caught by controller[0]: return process.dlopen(module, path.toNamespacedPath(filename)); 2022-02-03 20:21:02.930 - error: host.chet Caught by controller[0]: ^ 2022-02-03 20:21:02.930 - error: host.chet Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' 2022-02-03 20:21:02.930 - error: host.chet Caught by controller[0]: was compiled against a different Node.js version using 2022-02-03 20:21:02.930 - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 83. This version of Node.js requires 2022-02-03 20:21:02.930 - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 93. Please try re-compiling or re-installing 2022-02-03 20:21:02.931 - error: host.chet Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). 2022-02-03 20:21:02.931 - error: host.chet Caught by controller[0]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18) 2022-02-03 20:21:02.931 - error: host.chet Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) 2022-02-03 20:21:02.931 - error: host.chet Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) 2022-02-03 20:21:02.931 - error: host.chet Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1005:19) 2022-02-03 20:21:02.932 - error: host.chet Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18) 2022-02-03 20:21:02.932 - error: host.chet Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/canvas/lib/bindings.js:3:18) 2022-02-03 20:21:02.932 - error: host.chet Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1101:14) 2022-02-03 20:21:02.933 - error: host.chet Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) 2022-02-03 20:21:02.933 - error: host.chet Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) 2022-02-03 20:21:02.933 - error: host.chet Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) { 2022-02-03 20:21:02.934 - error: host.chet Caught by controller[0]: code: 'ERR_DLOPEN_FAILED' 2022-02-03 20:21:02.934 - error: host.chet Caught by controller[0]: } 2022-02-03 20:21:02.934 - error: host.chet instance system.adapter.parcel.0 terminated with code 1 (JS_CONTROLLER_STOPPED) 2022-02-03 20:21:02.934 - info: host.chet Rebuild for adapter system.adapter.parcel.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
-
@apollon77
Ich hab gerade auf die Version Alpha73 aktualisiert.proxmox@ioBrokerTestsystem:/opt/iobroker$ iobroker version 4.0.0-alpha.73-20220203-4ff5b7b6
Beim Update hatte ich wieder folgendes in der Konsole.
- Ignoring Directory "benchmark.files" because officially not created as meta ob ject. Please remove directory! - Ignoring Directory "daswetter" because officially not created as meta object. Please remove directory! - Ignoring Directory "hm-rega" because officially not created as meta object. Pl ease remove directory! - Ignoring Directory "iogo.admin" because officially not created as meta object. Please remove directory! - Ignoring Directory "tr-064-community.admin" because officially not created as meta object. Please remove directory!
Ich hatte das gleiche Verhalten ja hier https://forum.iobroker.net/topic/52033/alpha-test-js-controller-4-0/45 auch schon.
Damals hatte ich das iobroker upload all gemachtMeine aktuellen Objekte die angemeckert werden sehen so aus:
-
@maik-0 offensichtlich kann jeder Boolean true und false sein, ein min max wert macht nur bei einem numerischen Wert Sinn.
-
@apollon77 sagte in Alpha Test js-controller 4.0:
@wendy2702 sagte in Alpha Test js-controller 4.0:
Allerdings, wie gesagt bis JS3.3.22 ging alles Problemlos
Das ist es ja ... das ist "soooo low level" das kann mit dem controller nix zu tun haben
Da stimme ich dir zu. Frage bleibt nur wo.
Wenn morgen Zeit ist kommt der Holzhammer zum Einsatz
-
@thomas-braun Benutze mal den logger statt console, sonst tauch das nicht im logfile auf. Also
logger.warn('blabla')
-
@foxriver76
Ja sehe ich auch so. In der Doku gibt‘s aber ein Beispiel mit einem boolean
und min+max Wert. Egal, ich habe bei allen booleans die min/max Werte gelöscht. Jetzt ist Ruhe. -
@feuersturm sagte in Alpha Test js-controller 4.0:
- Ignoring Directory "benchmark.files" because officially not created as meta ob ject. Please remove directory!
- Ignoring Directory "daswetter" because officially not created as meta object. Please remove directory!
- Ignoring Directory "hm-rega" because officially not created as meta object. Pl ease remove directory!
- Ignoring Directory "iogo.admin" because officially not created as meta object. Please remove directory!
- Ignoring Directory "tr-064-community.admin" because officially not created as
Danke, da passt was nicht, aber schon vor 4.0!
-
Da weiß ich gerade nicht was du wo meinst...
-
@maik-0 Doku wo? Muss gefixt werden
-
@foxriver76 sagte in Alpha Test js-controller 4.0:
Danke, da passt was nicht, aber schon vor 4.0!
Ich könnte auf einen Stand zurückgehen wo noch die 3.3.22 drauf ist.Würde das helfen? Wonach müsste ich dort schauen?
-
@feuersturm Najaok sagen wir so:
- die mit .admin solten nach einem "upload all" weg sein - wenn die Adapter noch da sind! Wenn die Adapter ggf gelöscht sind dann File smanuell löschen, ende
- die anderen sollten verschwinden wenn du den relevanten Adapter einmalig startest- wenn er noch da ist (sonst löschen)
-
@apollon77
https://www.iobroker.net/#de/documentation/dev/objectsschema.mdUnter Kanalbeschreibungen.
-
@thomas-braun Nee alles gut. Es ist erstmal was ich sehen wollte
-
@feuersturm habe den Fehler schon gefunden, fix kommt in nächste Version
-
@maik-0 FIxed, hoffe hab alle erwischt https://github.com/ioBroker/ioBroker.docs/commit/63bcf4acc09803f1ce8fd1e03e4ba3881b3bf666
-
This post is deleted! -
This post is deleted! -
@thomas-braun sagte in Alpha Test js-controller 4.0:
console.error(text);
Das meinte ich nur, aber ihr seid ja schon in Kontakt - all good