NEWS
Javascript Adapter starten nicht mehr
-
Hardwaresystem: Pi4
Arbeitsspeicher: 8GB
Festplattenart: SD-Karte
Betriebssystem: Raspberrymatic
Node-Version: 18.13.0
Nodejs-Version: 18.13.0
NPM-Version: 9.2.0
Installationsart: Skript
Image genutzt: NeinGuten Morgen,
seit gestern funktionieren bei mir meine beiden Javascript-instanzen nicht mehr. Die Adapter lassen sich nicht starten und schreiben mir im Log:host.iobroker 2023-10-22 10:12:29.234 info system.adapter.javascript.1 will be rebuilt host.iobroker 2023-10-22 10:12:29.234 info Adapter system.adapter.javascript.1 needs rebuild and will be restarted afterwards. host.iobroker 2023-10-22 10:12:29.233 error instance system.adapter.javascript.1 terminated with code 1 (JS_CONTROLLER_STOPPED) host.iobroker 2023-10-22 10:12:29.233 error Caught by controller[0]: Node.js v18.13.0 host.iobroker 2023-10-22 10:12:29.232 error Caught by controller[0]: } host.iobroker 2023-10-22 10:12:29.232 error Caught by controller[0]: ] host.iobroker 2023-10-22 10:12:29.232 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.javascript/main.js' host.iobroker 2023-10-22 10:12:29.232 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/index.js', host.iobroker 2023-10-22 10:12:29.231 error Caught by controller[0]: requireStack: [ host.iobroker 2023-10-22 10:12:29.231 error Caught by controller[0]: code: 'MODULE_NOT_FOUND', host.iobroker 2023-10-22 10:12:29.230 error Caught by controller[0]: { host.iobroker 2023-10-22 10:12:29.230 error Caught by controller[0]: at node:internal/main/run_main_module:23:47 host.iobroker 2023-10-22 10:12:29.229 error Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) host.iobroker 2023-10-22 10:12:29.229 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:922:12) host.iobroker 2023-10-22 10:12:29.229 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1081:32) host.iobroker 2023-10-22 10:12:29.228 error Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1272:10) host.iobroker 2023-10-22 10:12:29.228 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1218:14) host.iobroker 2023-10-22 10:12:29.228 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:47:23) host.iobroker 2023-10-22 10:12:29.228 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:103:18) host.iobroker 2023-10-22 10:12:29.227 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1105:19) host.iobroker 2023-10-22 10:12:29.227 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:922:12) host.iobroker 2023-10-22 10:12:29.227 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1081:32) host.iobroker 2023-10-22 10:12:29.226 error Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1272:10) host.iobroker 2023-10-22 10:12:29.226 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1218:14) host.iobroker 2023-10-22 10:12:29.226 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/index.js:3:83) host.iobroker 2023-10-22 10:12:29.225 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:103:18) host.iobroker 2023-10-22 10:12:29.225 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1105:19) host.iobroker 2023-10-22 10:12:29.225 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:885:27) host.iobroker 2023-10-22 10:12:29.225 error Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1039:15) host.iobroker 2023-10-22 10:12:29.224 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.javascript/main.js host.iobroker 2023-10-22 10:12:29.224 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/index.js host.iobroker 2023-10-22 10:12:29.224 error Caught by controller[0]: Require stack: host.iobroker 2023-10-22 10:12:29.223 error Caught by controller[0]: Error: Cannot find module './lib/schedule' host.iobroker 2023-10-22 10:12:29.223 error Caught by controller[0]: ^ host.iobroker 2023-10-22 10:12:29.222 error Caught by controller[0]: throw err; host.iobroker 2023-10-22 10:12:29.221 error Caught by controller[0]: node:internal/modules/cjs/loader:1042 . . . host.iobroker 2023-10-22 10:13:39.345 info iobroker npm-rebuild: exit 1 host.iobroker 2023-10-22 10:13:38.302 error iobroker npm-rebuild: Rebuilding native modules failed
Ich habe schon folgendes versucht:
rascal@iobroker:/opt/iobroker/node_modules/iobroker.javascript$ npm install --production [sudo] password for rascal: npm WARN config production Use `--omit=dev` instead. npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/iobroker.javascript/node_modules/acorn-globals npm ERR! dest /opt/iobroker/node_modules/iobroker.javascript/node_modules/.acorn-globals-Va5HVenm npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.javascript/node_modules/acorn-globals' -> '/opt/iobroker/node_modules/iobroker.javascript/node_modules/.acorn-globals-Va5HVenm' npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2023-10-22T07_54_56_618Z-debug-0.log
und
rascal@iobroker:/opt/iobroker/node_modules/iobroker.javascript$ sudo npm install --omit=dev npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/iobroker.javascript/node_modules/acorn-globals npm ERR! dest /opt/iobroker/node_modules/iobroker.javascript/node_modules/.acorn-globals-Va5HVenm npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.javascript/node_modules/acorn-globals' -> '/opt/iobroker/node_modules/iobroker.javascript/node_modules/.acorn-globals-Va5HVenm' npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-10-22T08_01_46_368Z-debug-0.log
und
iob rebuild javascript iob fix
hat alles nichts gebracht... bitte Hilfe
-
@rascal ich habe das mal von dem 3 1/2 Jahre alten Thread abgespalten.
Ich glaube nicht, dass du mit controller v2 arbeitest.bitte entsprechende Informationen liefern und Threadtitel anpassen
-
@homoran
Danke, habe ich versucht, er hat mich aber keinen neuen Thread anlegen lassen...Ich spiele gerade ein Backup ein, melde mich ob's wieder funktioniert
-
Nodejs 18.13.0 ist 100% falsch.
Mittelsiob nodejs-update
die aktuelle nodesource-Version einspielen.
Und npm NICHT mit sudo einleiten, am besten gar nicht verwenden.