NEWS
js-controller 4.0 jetzt im BETA/LATEST!
-
@apollon77 6.14.16
-
Hi,
die NPM package.json nicht gefunden Fehler werden in der kommenden 4.0.6 behoben sein
-
@e-s SInd halt die üblichen unix_dgram Compile Warnungen ...
-
Hi All,
vielen Dank für Euren Support, die 4.0.6 kommt über Nacht wieder ins Repo und hat:
4.0.6 (2022-02-09)
- (AlCalzone) Optimize some JSONL cases
- (foxriver76) Optimize Backup restore process
- (AlCalzone) Fix issues that prevented adapter installs/updates (npm can not be located error message)
- (Apollon77) Fix seq Logging issue
- (foxriver76/Apollon77) Prevent several crash cases seen in Sentry
-
Fix issues that prevented adapter installs/updates (npm can not be located error message)
Das finde ich interessant. Was war da der Grund das npm nicht im $PATH gefunden wurde?
-
@apollon77 update von 4.0.5 auf 4.0.6 ohne besondere Vorkommnisse.
-
@apollon77
Ist da mein Fall auch mit abgedeckt? -
@ofbeqnpolkkl6mby5e13 das logfile hatte nicht mehr Infos drin. Von daher puuhhh. Ich sag mal so; Versuchs nochmal.
-
# iobroker upgrade self Update js-controller from @3.3.22 to @4.0.6 NPM version: 6.14.16 npm install iobroker.js-controller@4.0.6 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call) Uncaught Rejection: TypeError: Cannot read property '_id' of null at /opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3421:42 at Array.map (<anonymous>) at ObjectsInRedisClient._applyViewFunc (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3413:39) at processTicksAndRejections (internal/process/task_queues.js:95:5) npm ERR! code ELIFECYCLE npm ERR! errno 6 npm ERR! iobroker.js-controller@4.0.6 install: `node iobroker.js setup first` npm ERR! Exit status 6 npm ERR! npm ERR! Failed at the iobroker.js-controller@4.0.6 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /opt/iobroker/.npm/_logs/2022-02-10T06_53_37_143Z-debug.log host.iobroker Cannot install iobroker.js-controller@4.0.6: 6
Hilft das?:
npm info lifecycle iobroker.js-controller@4.0.6~install: iobroker.js-controller@4.0.6 > iobroker.js-controller@4.0.6 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Uncaught Rejection: TypeError: Cannot read property '_id' of null at /opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3421:42 at Array.map (<anonymous>) at ObjectsInRedisClient._applyViewFunc (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3413:39) at processTicksAndRejections (internal/process/task_queues.js:95:5) npm info lifecycle iobroker.js-controller@4.0.6~install: Failed to exec install script
-
@thomas-braun Wir verwenden seit 4.x (m)eine Library, die sich um die Aufrufe vom Paketmanager kümmert. Mein Hintergedanke ist, dass wir dann irgendwann ohne großen Ärger zu einem anderen wechseln können, der nicht jedes halbe Jahr alles anders macht und unsere Installation breakt.
Die Library sucht eigentlich vom aktuellen Pfad (bzw. da wo die .js-Datei liegt) aus nach einem lockfile (z.B. package-lock.json), um den aktiven Paketmanager zu bestimmen. Bei einigen Usern existiert das nicht.
-
@ofbeqnpolkkl6mby5e13 welcher Datenbanktyp ist im Einsatz?
-
@foxriver76
Redis States und Objects. -
Update von 4.0.5 auf 4.0.6 ohne Probleme.
CLI Ausgabe:
-
@ofbeqnpolkkl6mby5e13 sagte in js-controller 4.0 jetzt im BETA/LATEST!:
npm info lifecycle iobroker.js-controller@4.0.6~install: iobroker.js-controller@4.0.6 > iobroker.js-controller@4.0.6 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Uncaught Rejection: TypeError: Cannot read property '_id' of null at /opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3421:42 at Array.map (<anonymous>) at ObjectsInRedisClient._applyViewFunc (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3413:39) at processTicksAndRejections (internal/process/task_queues.js:95:5) npm info lifecycle iobroker.js-controller@4.0.6~install: Failed to exec install script
Kannst du mal mittels
npm i iobroker.js-controller@next
im Verzeichnis/opt/iobroker
das upgrade anstoßen, damit ich mehr Log sehe. Irgendein Object View liefertnull
zurück, das sollte nicht sein. -
@foxriver76 sagte in js-controller 4.0 jetzt im BETA/LATEST!:
npm i iobroker.js-controller@next
# pwd /opt/iobroker # npm i iobroker.js-controller@next > iobroker.js-controller@4.0.5 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.14.16 > iobroker.js-controller@4.0.5 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Uncaught Rejection: TypeError: Cannot read property '_id' of null at /opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3421:42 at Array.map (<anonymous>) at ObjectsInRedisClient._applyViewFunc (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3413:39) at processTicksAndRejections (internal/process/task_queues.js:95:5) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 6 npm ERR! iobroker.js-controller@4.0.5 install: `node iobroker.js setup first` npm ERR! Exit status 6 npm ERR! npm ERR! Failed at the iobroker.js-controller@4.0.5 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-02-10T08_31_44_396Z-debug.log #
-
@ofbeqnpolkkl6mby5e13 ok da passiert kein logging davor, thanks.
-
@ofbeqnpolkkl6mby5e13 single host oder multihost?
-
@foxriver76
Single. -
@ofbeqnpolkkl6mby5e13 super strange, dann müsste vor dem ersten view mindestens die ausgabe dass er zu sets migrieren möchte kommen. Zeig mal bitte Ausgabe von
iob object list system.host.*
-
@foxriver76 sagte in js-controller 4.0 jetzt im BETA/LATEST!:
iob object list system.host.*
Der JS-Controller ist ja jetzt nicht installiert, müsste ich erst die 3er wieder installieren.
# iob object list system.host.* internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }