NEWS
javascript instanz bleibt rot
-
@beowolf sagte in javascript instanz bleibt rot:
nö, bevor ich den Luftreiniger einbauen wollte funktionierte alles.
und meinst du der node dafür hat npm9 installiert?
oder kommen die Probleme doch eher davon, dass der mi-node nicht mit npm9 korrekt installiert werden konnte
-
Das Skript würde ich zunächst mal außen vor lassen und mich auf den mihome-cloud-Adapter stürzen.
Zum Fehler bei der Installation:
https://forum.iobroker.net/topic/57337/fehler-25-oder-217-bei-adapter-install-update-mit-npm8
npm 9.5.1 ist auch ein untrügliches Zeichen für eine verbogene Installation von nodejs/npm. nodejs@16 kommt mit npm@8 daher. Schau dir das Konstrukt bei dir an und installier nodejs richtig.
@thomas-braun sagte in javascript instanz bleibt rot:
Das Skript würde ich zunächst mal außen vor lassen und mich auf den mihome-cloud-Adapter stürzen.
Zum Fehler bei der Installation:
https://forum.iobroker.net/topic/57337/fehler-25-oder-217-bei-adapter-install-update-mit-npm8
npm 9.5.1 ist auch ein untrügliches Zeichen für eine verbogene Installation von nodejs/npm. nodejs@16 kommt mit npm@8 daher. Schau dir das Konstrukt bei dir an und installier nodejs richtig.
Mit diesem Befehl
for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; doneläuft die Javascript Instanz wieder.
Für" installier nodejs richtig" gibt es da eine genaue Anleitung?
-
@thomas-braun sagte in javascript instanz bleibt rot:
Das Skript würde ich zunächst mal außen vor lassen und mich auf den mihome-cloud-Adapter stürzen.
Zum Fehler bei der Installation:
https://forum.iobroker.net/topic/57337/fehler-25-oder-217-bei-adapter-install-update-mit-npm8
npm 9.5.1 ist auch ein untrügliches Zeichen für eine verbogene Installation von nodejs/npm. nodejs@16 kommt mit npm@8 daher. Schau dir das Konstrukt bei dir an und installier nodejs richtig.
Mit diesem Befehl
for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; doneläuft die Javascript Instanz wieder.
Für" installier nodejs richtig" gibt es da eine genaue Anleitung?
@beowolf sagte in javascript instanz bleibt rot:
Für" installier nodejs richtig" gibt es da eine genaue Anleitung?
Ja, die steht in meiner Signatur verlinkt.
-
@beowolf sagte in javascript instanz bleibt rot:
Für" installier nodejs richtig" gibt es da eine genaue Anleitung?
Ja, die steht in meiner Signatur verlinkt.
@thomas-braun
Wer lesen kann usw. :blush: -
@thomas-braun
Wer lesen kann usw. :blush: -
-
Ist dieses gemeint?
======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Raspbian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 9.5.1 /usr/bin/npx 9.5.1 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): stable Objects: 8904 States: 8156 Size of iob-Database: 17M /opt/iobroker/iobroker-data/objects.jsonl 11M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ==================== -
Ist dieses gemeint?
======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Raspbian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 9.5.1 /usr/bin/npx 9.5.1 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): stable Objects: 8904 States: 8156 Size of iob-Database: 17M /opt/iobroker/iobroker-data/objects.jsonl 11M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================@beowolf sagte in javascript instanz bleibt rot:
9.5.1
die ist "falsch"
Schau mal in die Signatur von @Thomas-Braun wie man das Korrigiert.
-
Ist dieses gemeint?
======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Raspbian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 9.5.1 /usr/bin/npx 9.5.1 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): stable Objects: 8904 States: 8156 Size of iob-Database: 17M /opt/iobroker/iobroker-data/objects.jsonl 11M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================@beowolf sagte in javascript instanz bleibt rot:
/usr/bin/npm 9.5.1Hatten wir nicht gerade im Nachbarthread damit zu tun?
-
@beowolf sagte in javascript instanz bleibt rot:
9.5.1
die ist "falsch"
Schau mal in die Signatur von @Thomas-Braun wie man das Korrigiert.
Hatte ich geschaut.
Dort steht
- cd /opt/iobroker
- npm ls | grep -E 'github|ERR'
gibt bei mir nichts zurück. Also doch schon mal gut.
Auch sudo apt update und sudo apt upgrade gemacht. Auch sudo apt full-upgrade.
Was ich aber auf der Seite nur sehe, ist das es um "nodejs" geht.
Muß ich etwas manuell anstossen?
-
Hatte ich geschaut.
Dort steht
- cd /opt/iobroker
- npm ls | grep -E 'github|ERR'
gibt bei mir nichts zurück. Also doch schon mal gut.
Auch sudo apt update und sudo apt upgrade gemacht. Auch sudo apt full-upgrade.
Was ich aber auf der Seite nur sehe, ist das es um "nodejs" geht.
Muß ich etwas manuell anstossen?
iob stop sudo apt install --reinstall nodejs iob start -
@thomas-braun sagte in javascript instanz bleibt rot:
Danke für die Hilfe.
So sollte es besser sein?
======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Raspbian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 8.19.3 /usr/bin/npx 8.19.3 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): stable Objects: 8905 States: 8158 Size of iob-Database: 26M /opt/iobroker/iobroker-data/objects.jsonl 9.6M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ==================== -
@thomas-braun sagte in javascript instanz bleibt rot:
Danke für die Hilfe.
So sollte es besser sein?
======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Raspbian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 8.19.3 /usr/bin/npx 8.19.3 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): stable Objects: 8905 States: 8158 Size of iob-Database: 26M /opt/iobroker/iobroker-data/objects.jsonl 9.6M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================@beowolf sagte in javascript instanz bleibt rot:
(Fast) perfekt.
Ich würde noch das Boot Target in
sudo raspi-configauf
Boot Target: multi-user.target
setzen:1 System Options S5 Boot / Auto Login B1 Console -
@thomas-braun sagte in javascript instanz bleibt rot:
Boot / Auto Login
B1 Console======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Raspbian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Boot Target: multi-user.target Pending OS-Updates: 2 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 8.19.3 /usr/bin/npx 8.19.3 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): stable Objects: 8906 States: 8121 Size of iob-Database: 34M /opt/iobroker/iobroker-data/objects.jsonl 12M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================So ist es dann ok.
Danke für die Hilfen
-
@thomas-braun sagte in javascript instanz bleibt rot:
Boot / Auto Login
B1 Console======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Raspbian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Boot Target: multi-user.target Pending OS-Updates: 2 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 8.19.3 /usr/bin/npx 8.19.3 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): stable Objects: 8906 States: 8121 Size of iob-Database: 34M /opt/iobroker/iobroker-data/objects.jsonl 12M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================So ist es dann ok.
Danke für die Hilfen
-
Auch das ist gemacht. :+1:
-
Hallo zusammen,
leider habe ich seit heut das gleich Problem mit dem Javascript Adapter und erhalte folgende Log-Fehlermeldungen.
Alle anderen Adapter laufen.
host.raspberrypi 2023-02-26 20:02:17.708 error instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.raspberrypi 2023-02-26 20:02:17.707 error Caught by controller[0]: } host.raspberrypi 2023-02-26 20:02:17.707 error Caught by controller[0]: requestPath: 'coffeescript' host.raspberrypi 2023-02-26 20:02:17.704 error Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/package.json', host.raspberrypi 2023-02-26 20:02:17.704 error Caught by controller[0]: code: 'MODULE_NOT_FOUND', host.raspberrypi 2023-02-26 20:02:17.703 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1069:32) { host.raspberrypi 2023-02-26 20:02:17.703 error Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10) host.raspberrypi 2023-02-26 20:02:17.703 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1191:14) host.raspberrypi 2023-02-26 20:02:17.702 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:21:24) host.raspberrypi 2023-02-26 20:02:17.702 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:108:18) host.raspberrypi 2023-02-26 20:02:17.702 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1093:19) host.raspberrypi 2023-02-26 20:02:17.701 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:866:27) host.raspberrypi 2023-02-26 20:02:17.700 error Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1007:27) host.raspberrypi 2023-02-26 20:02:17.700 error Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:638:18) host.raspberrypi 2023-02-26 20:02:17.700 error Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:425:19) host.raspberrypi 2023-02-26 20:02:17.699 error Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/lib/coffee-script/coffee-script'. Please verify that the package.json has a valid "main" entry host.raspberrypi 2023-02-26 20:02:17.699 error Caught by controller[0]: ^ host.raspberrypi 2023-02-26 20:02:17.698 error Caught by controller[0]: throw err; host.raspberrypi 2023-02-26 20:02:17.696 error Caught by controller[0]: node:internal/modules/cjs/loader:433Damit funktioniert es leider nicht:
for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; doneMein System / Summary liefert
======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Raspbian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 8.19.3 /usr/bin/npx 8.19.3 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): Stable (default) Objects: 16740 States: 13735 Size of iob-Database: 25M /opt/iobroker/iobroker-data/objects.jsonl 12M /opt/iobroker/iobroker-data/objects.json.migrated 12M /opt/iobroker/iobroker-data/objects.json.bak.migrated 8.0K /opt/iobroker/iobroker-data/objects.json.old 6.6M /opt/iobroker/iobroker-data/states.jsonl 5.1M /opt/iobroker/iobroker-data/states.json.migrated 5.1M /opt/iobroker/iobroker-data/states.json.bak.migrated 2.8M /opt/iobroker/iobroker-data/states.json.old 0 /opt/iobroker/iobroker-data/states.json.broken =================== END OF SUMMARY ====================Ich würde mich sehr freuen, wenn ich Hilfe zur Behebung bekäme. Vielen Dank! :-)
-
Hallo zusammen,
leider habe ich seit heut das gleich Problem mit dem Javascript Adapter und erhalte folgende Log-Fehlermeldungen.
Alle anderen Adapter laufen.
host.raspberrypi 2023-02-26 20:02:17.708 error instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.raspberrypi 2023-02-26 20:02:17.707 error Caught by controller[0]: } host.raspberrypi 2023-02-26 20:02:17.707 error Caught by controller[0]: requestPath: 'coffeescript' host.raspberrypi 2023-02-26 20:02:17.704 error Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/package.json', host.raspberrypi 2023-02-26 20:02:17.704 error Caught by controller[0]: code: 'MODULE_NOT_FOUND', host.raspberrypi 2023-02-26 20:02:17.703 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1069:32) { host.raspberrypi 2023-02-26 20:02:17.703 error Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10) host.raspberrypi 2023-02-26 20:02:17.703 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1191:14) host.raspberrypi 2023-02-26 20:02:17.702 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:21:24) host.raspberrypi 2023-02-26 20:02:17.702 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:108:18) host.raspberrypi 2023-02-26 20:02:17.702 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1093:19) host.raspberrypi 2023-02-26 20:02:17.701 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:866:27) host.raspberrypi 2023-02-26 20:02:17.700 error Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1007:27) host.raspberrypi 2023-02-26 20:02:17.700 error Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:638:18) host.raspberrypi 2023-02-26 20:02:17.700 error Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:425:19) host.raspberrypi 2023-02-26 20:02:17.699 error Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/lib/coffee-script/coffee-script'. Please verify that the package.json has a valid "main" entry host.raspberrypi 2023-02-26 20:02:17.699 error Caught by controller[0]: ^ host.raspberrypi 2023-02-26 20:02:17.698 error Caught by controller[0]: throw err; host.raspberrypi 2023-02-26 20:02:17.696 error Caught by controller[0]: node:internal/modules/cjs/loader:433Damit funktioniert es leider nicht:
for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; doneMein System / Summary liefert
======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Raspbian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 8.19.3 /usr/bin/npx 8.19.3 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): Stable (default) Objects: 16740 States: 13735 Size of iob-Database: 25M /opt/iobroker/iobroker-data/objects.jsonl 12M /opt/iobroker/iobroker-data/objects.json.migrated 12M /opt/iobroker/iobroker-data/objects.json.bak.migrated 8.0K /opt/iobroker/iobroker-data/objects.json.old 6.6M /opt/iobroker/iobroker-data/states.jsonl 5.1M /opt/iobroker/iobroker-data/states.json.migrated 5.1M /opt/iobroker/iobroker-data/states.json.bak.migrated 2.8M /opt/iobroker/iobroker-data/states.json.old 0 /opt/iobroker/iobroker-data/states.json.broken =================== END OF SUMMARY ====================Ich würde mich sehr freuen, wenn ich Hilfe zur Behebung bekäme. Vielen Dank! :-)
@marc_el_k Und was als letztes vorher gemacht ?
-
@marc_el_k Und was als letztes vorher gemacht ?
@wendy2702 ein Update des Systems sowie iobroker, wie immer eigentlich.