Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Instanz - Javascript bleibt rot

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Instanz - Javascript bleibt rot

    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Intruminator last edited by

      Hallo zusammen,

      ich habe im Januar den RPI3 meines Vaters wieder erfolgreich aufgesetzt. Alle Adapter und Instanzen haben erfolgreich funktioniert. Das einzige was ich aktuell nicht zum laufen bringe ist der Javascript-Adapter. Dieser bleibt rot und kann nicht gestartet werden.

      1f8da0d2-4857-4b00-bf18-7a1d03fb226b-image.png

      Im Protokoll erhalte ich folgende Fehlermeldungen:

      host.DieterSmarthomePi
      2023-03-19 15:50:17.318	info	Rebuild for adapter system.adapter.javascript.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
      host.DieterSmarthomePi
      2023-03-19 15:50:17.318	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.318	error	Caught by controller[0]: }
      host.DieterSmarthomePi
      2023-03-19 15:50:17.317	error	Caught by controller[0]: requestPath: 'suncalc2'
      host.DieterSmarthomePi
      2023-03-19 15:50:17.317	error	Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/package.json',
      host.DieterSmarthomePi
      2023-03-19 15:50:17.317	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      host.DieterSmarthomePi
      2023-03-19 15:50:17.317	error	Caught by controller[0]: {
      host.DieterSmarthomePi
      2023-03-19 15:50:17.317	error	Caught by controller[0]: at node:internal/main/run_main_module:22:47
      host.DieterSmarthomePi
      2023-03-19 15:50:17.316	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.316	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:878:12)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.316	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1043:32)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.316	error	Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.316	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1165:14)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.315	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:43:23)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.315	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:103:18)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.315	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1067:19)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.315	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:841:27)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.315	error	Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.314	error	Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:613:18)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.314	error	Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:400:19)
      host.DieterSmarthomePi
      2023-03-19 15:50:17.314	error	Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/suncalc2.js'. Please verify that the package.json has a valid "main" entry
      host.DieterSmarthomePi
      2023-03-19 15:50:17.314	error	Caught by controller[0]: ^
      host.DieterSmarthomePi
      2023-03-19 15:50:17.313	error	Caught by controller[0]: throw err;
      host.DieterSmarthomePi
      2023-03-19 15:50:17.313	error	Caught by controller[0]: node:internal/modules/cjs/loader:408
      host.DieterSmarthomePi
      2023-03-19 15:50:16.468	info	instance system.adapter.javascript.0 started with pid 2979
      host.DieterSmarthomePi
      2023-03-19 15:50:16.384	info	"system.adapter.javascript.0" enabled
      host.DieterSmarthomePi
      2023-03-19 15:46:45.422	info	"system.adapter.javascript.0" disabled
      host.DieterSmarthomePi
      2023-03-19 15:44:45.942	info	Rebuild for adapter system.adapter.javascript.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
      host.DieterSmarthomePi
      2023-03-19 15:44:45.941	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.941	error	Caught by controller[0]: }
      host.DieterSmarthomePi
      2023-03-19 15:44:45.941	error	Caught by controller[0]: requestPath: 'suncalc2'
      host.DieterSmarthomePi
      2023-03-19 15:44:45.941	error	Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/package.json',
      host.DieterSmarthomePi
      2023-03-19 15:44:45.940	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      host.DieterSmarthomePi
      2023-03-19 15:44:45.940	error	Caught by controller[0]: {
      host.DieterSmarthomePi
      2023-03-19 15:44:45.940	error	Caught by controller[0]: at node:internal/main/run_main_module:22:47
      host.DieterSmarthomePi
      2023-03-19 15:44:45.939	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.939	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:878:12)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.939	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1043:32)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.939	error	Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.939	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1165:14)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.938	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:43:23)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.938	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:103:18)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.938	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1067:19)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.938	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:841:27)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.937	error	Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.937	error	Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:613:18)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.937	error	Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:400:19)
      host.DieterSmarthomePi
      2023-03-19 15:44:45.936	error	Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/suncalc2.js'. Please verify that the package.json has a valid "main" entry
      host.DieterSmarthomePi
      2023-03-19 15:44:45.936	error	Caught by controller[0]: ^
      host.DieterSmarthomePi
      2023-03-19 15:44:45.936	error	Caught by controller[0]: throw err;
      host.DieterSmarthomePi
      2023-03-19 15:44:45.935	error	Caught by controller[0]: node:internal/modules/cjs/loader:408
      host.DieterSmarthomePi
      2023-03-19 15:44:45.078	info	instance system.adapter.javascript.0 started with pid 2870
      host.DieterSmarthomePi
      2023-03-19 15:44:44.885	info	iobroker npm-rebuild: exit 0
      host.DieterSmarthomePi
      2023-03-19 15:44:44.028	info	iobroker npm-rebuild: Rebuilding native modules done
      host.DieterSmarthomePi
      2023-03-19 15:44:43.817	info	iobroker npm-rebuild: rebuilt dependencies successfully
      
      vis.0
      2023-03-19 15:44:29.640	info	Terminated (NO_ERROR): Without reason
      
      vis.0
      2023-03-19 15:43:44.046	info	vis license is OK.
      
      vis.0
      2023-03-19 15:43:43.498	info	starting. Version 1.4.15 in /opt/iobroker/node_modules/iobroker.vis, node: v16.19.0, js-controller: 4.0.23
      host.DieterSmarthomePi
      2023-03-19 15:43:25.375	info	iobroker npm-rebuild: Rebuilding native modules ...
      host.DieterSmarthomePi
      2023-03-19 15:43:23.207	info	iobroker rebuild
      host.DieterSmarthomePi
      2023-03-19 15:43:23.207	warn	adapter "javascript" seems to be installed for a different version of Node.js. Trying to rebuild it... 3 attempt
      host.DieterSmarthomePi
      2023-03-19 15:43:23.206	info	system.adapter.javascript.0 will be rebuilt
      host.DieterSmarthomePi
      2023-03-19 15:43:23.206	info	Adapter system.adapter.javascript.0 needs rebuild and will be restarted afterwards.
      host.DieterSmarthomePi
      2023-03-19 15:43:23.206	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.205	error	Caught by controller[0]: }
      host.DieterSmarthomePi
      2023-03-19 15:43:23.205	error	Caught by controller[0]: requestPath: 'suncalc2'
      host.DieterSmarthomePi
      2023-03-19 15:43:23.205	error	Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/package.json',
      host.DieterSmarthomePi
      2023-03-19 15:43:23.205	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      host.DieterSmarthomePi
      2023-03-19 15:43:23.205	error	Caught by controller[0]: {
      host.DieterSmarthomePi
      2023-03-19 15:43:23.204	error	Caught by controller[0]: at node:internal/main/run_main_module:22:47
      host.DieterSmarthomePi
      2023-03-19 15:43:23.204	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.204	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:878:12)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.204	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1043:32)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.203	error	Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.203	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1165:14)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.203	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:43:23)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.203	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:103:18)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.203	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1067:19)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.202	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:841:27)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.202	error	Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.202	error	Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:613:18)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.202	error	Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:400:19)
      host.DieterSmarthomePi
      2023-03-19 15:43:23.202	error	Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/suncalc2.js'. Please verify that the package.json has a valid "main" entry
      host.DieterSmarthomePi
      2023-03-19 15:43:23.201	error	Caught by controller[0]: ^
      host.DieterSmarthomePi
      2023-03-19 15:43:23.201	error	Caught by controller[0]: throw err;
      host.DieterSmarthomePi
      2023-03-19 15:43:23.200	error	Caught by controller[0]: node:internal/modules/cjs/loader:408
      host.DieterSmarthomePi
      2023-03-19 15:43:22.371	info	instance system.adapter.javascript.0 started with pid 2528
      host.DieterSmarthomePi
      2023-03-19 15:43:22.200	info	iobroker npm-rebuild: exit 0
      host.DieterSmarthomePi
      2023-03-19 15:43:21.166	info	iobroker npm-rebuild: Rebuilding native modules done
      host.DieterSmarthomePi
      2023-03-19 15:43:21.164	info	iobroker npm-rebuild:
      host.DieterSmarthomePi
      2023-03-19 15:43:21.122	info	iobroker npm-rebuild: rebuilt dependencies successfully
      host.DieterSmarthomePi
      2023-03-19 15:43:15.428	info	iobroker npm-rebuild: Rebuilding native module "suncalc2@1.8.1" in /opt/iobroker/node_modules/iobroker.javascript/node_modules ...
      host.DieterSmarthomePi
      2023-03-19 15:43:11.946	info	iobroker rebuild suncalc2@1.8.1 --path /opt/iobroker/node_modules/iobroker.javascript/node_modules
      host.DieterSmarthomePi
      2023-03-19 15:43:11.946	warn	adapter "javascript" seems to be installed for a different version of Node.js. Trying to rebuild it... 2 attempt
      host.DieterSmarthomePi
      2023-03-19 15:43:11.946	info	system.adapter.javascript.0 will be rebuilt (Args: {"path":"/opt/iobroker/node_modules/iobroker.javascript/node_modules","module":"suncalc2","version":"1.8.1"})
      host.DieterSmarthomePi
      2023-03-19 15:43:11.945	info	Adapter system.adapter.javascript.0 needs rebuild of suncalc2 and will be restarted afterwards.
      host.DieterSmarthomePi
      2023-03-19 15:43:11.945	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.945	error	Caught by controller[0]: }
      host.DieterSmarthomePi
      2023-03-19 15:43:11.944	error	Caught by controller[0]: requestPath: 'suncalc2'
      host.DieterSmarthomePi
      2023-03-19 15:43:11.944	error	Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/package.json',
      host.DieterSmarthomePi
      2023-03-19 15:43:11.944	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      host.DieterSmarthomePi
      2023-03-19 15:43:11.944	error	Caught by controller[0]: {
      host.DieterSmarthomePi
      2023-03-19 15:43:11.943	error	Caught by controller[0]: at node:internal/main/run_main_module:22:47
      host.DieterSmarthomePi
      2023-03-19 15:43:11.943	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.943	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:878:12)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.942	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1043:32)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.942	error	Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.942	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1165:14)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.942	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:43:23)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.941	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:103:18)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.941	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1067:19)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.940	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:841:27)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.940	error	Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.940	error	Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:613:18)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.940	error	Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:400:19)
      host.DieterSmarthomePi
      2023-03-19 15:43:11.939	error	Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/suncalc2.js'. Please verify that the package.json has a valid "main" entry
      host.DieterSmarthomePi
      2023-03-19 15:43:11.939	error	Caught by controller[0]: ^
      host.DieterSmarthomePi
      2023-03-19 15:43:11.939	error	Caught by controller[0]: throw err;
      host.DieterSmarthomePi
      2023-03-19 15:43:11.938	error	Caught by controller[0]: node:internal/modules/cjs/loader:408
      host.DieterSmarthomePi
      2023-03-19 15:43:11.022	info	instance system.adapter.javascript.0 started with pid 2497
      host.DieterSmarthomePi
      2023-03-19 15:43:10.817	info	iobroker npm-rebuild: exit 0
      host.DieterSmarthomePi
      2023-03-19 15:43:09.787	info	iobroker npm-rebuild: Rebuilding native modules done
      host.DieterSmarthomePi
      2023-03-19 15:43:09.785	info	iobroker npm-rebuild:
      host.DieterSmarthomePi
      2023-03-19 15:43:09.745	info	iobroker npm-rebuild: rebuilt dependencies successfully
      
      vis.0
      2023-03-19 15:42:36.865	info	Terminated (NO_ERROR): Without reason
      
      vis.0
      2023-03-19 15:42:05.442	info	vis license is OK.
      
      vis.0
      2023-03-19 15:42:05.151	info	starting. Version 1.4.15 in /opt/iobroker/node_modules/iobroker.vis, node: v16.19.0, js-controller: 4.0.23
      
      admin.0
      2023-03-19 15:41:58.320	info	<== Disconnect system.user.admin from ::ffff:192.168.178.54
      
      admin.0
      2023-03-19 15:41:47.461	info	==> Connected system.user.admin from ::ffff:192.168.178.54
      host.DieterSmarthomePi
      2023-03-19 15:41:42.902	info	iobroker npm-rebuild: Rebuilding native modules ...
      host.DieterSmarthomePi
      2023-03-19 15:41:40.512	info	iobroker rebuild
      host.DieterSmarthomePi
      2023-03-19 15:41:40.511	warn	adapter "javascript" seems to be installed for a different version of Node.js. Trying to rebuild it... 1 attempt
      host.DieterSmarthomePi
      2023-03-19 15:41:40.510	info	system.adapter.javascript.0 will be rebuilt
      host.DieterSmarthomePi
      2023-03-19 15:41:40.509	info	Adapter system.adapter.javascript.0 needs rebuild and will be restarted afterwards.
      host.DieterSmarthomePi
      2023-03-19 15:41:40.508	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.507	error	Caught by controller[0]: }
      host.DieterSmarthomePi
      2023-03-19 15:41:40.507	error	Caught by controller[0]: requestPath: 'suncalc2'
      host.DieterSmarthomePi
      2023-03-19 15:41:40.507	error	Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/package.json',
      host.DieterSmarthomePi
      2023-03-19 15:41:40.506	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      host.DieterSmarthomePi
      2023-03-19 15:41:40.506	error	Caught by controller[0]: {
      host.DieterSmarthomePi
      2023-03-19 15:41:40.506	error	Caught by controller[0]: at node:internal/main/run_main_module:22:47
      host.DieterSmarthomePi
      2023-03-19 15:41:40.505	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.503	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:878:12)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.503	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1043:32)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.502	error	Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.502	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1165:14)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.502	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:43:23)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.502	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:103:18)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.501	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1067:19)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.501	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:841:27)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.501	error	Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.501	error	Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:613:18)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.500	error	Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:400:19)
      host.DieterSmarthomePi
      2023-03-19 15:41:40.500	error	Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/suncalc2.js'. Please verify that the package.json has a valid "main" entry
      host.DieterSmarthomePi
      2023-03-19 15:41:40.500	error	Caught by controller[0]: ^
      host.DieterSmarthomePi
      2023-03-19 15:41:40.499	error	Caught by controller[0]: throw err;
      host.DieterSmarthomePi
      2023-03-19 15:41:40.498	error	Caught by controller[0]: node:internal/modules/cjs/loader:408
      

      Scheinbar passt ihm was mit Node.js nicht.
      Kennt sich jemand mit dem Fehler aus?

      Liebe Grüße!

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Pi3
      Arbeitsspeicher: 1GB
      Festplattenart: SD-Karte
      Betriebssystem: Debian-Bullseye
      Node-Version: v16.19.0
      Nodejs-Version: v16.19.0
      NPM-Version: 8.19.3
      Installationsart: Skript
      Image genutzt: Nein
      Ort/Name der Imagedatei: -
      DJMarc75 1 Reply Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 @Intruminator last edited by

        @intruminator eher was mit diesem Modul suncalc2

        I 1 Reply Last reply Reply Quote 0
        • I
          Intruminator @DJMarc75 last edited by

          @djmarc75
          Ja, aber wüsste nicht was das für ein Modul sein soll 😕
          Adapter oder Instanz hierfür habe ich nur paar vis-widgets installiert. Die laufen aber.

          a0b4ecc1-caf4-47d2-a51e-000ecfeb9e45-image.png

          DJMarc75 1 Reply Last reply Reply Quote 0
          • DJMarc75
            DJMarc75 @Intruminator last edited by

            @intruminator dann schau mal in die Konfig vom JavaSkriptAdapter... dort unter npm-module.
            Oder besser mal sogar zeigen - Screenshot davon

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @DJMarc75 last edited by paul53

              @djmarc75 sagte: Konfig vom JavaSkriptAdapter... dort unter npm-module.

              suncalc2 ist Bestandteil des Javascript-Adapters. Aus der Doku:

              Following modules are pre-loaded: fs, crypto, wake_on_lan, request, suncalc2, util, path, os, net, events, dns.

              1 Reply Last reply Reply Quote 1
              • I
                Intruminator last edited by

                f0f1df52-50d8-4b57-92c2-83975de5df27-image.png

                Hm, scheint gar nichts konfiguriert zu sein.
                Allerdings musste ich bei meinem eigenen Io-Broker PI hier nichts konfigurieren.

                1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active last edited by

                  @intruminator

                  Schau mal das System in Gänze an.

                  iob diag
                  
                  I 1 Reply Last reply Reply Quote 0
                  • I
                    Intruminator @Thomas Braun last edited by

                    @thomas-braun
                    wow, na das ist ja ne echt coole Funktion!

                    In Detail:

                    Skript v.2023-01-02
                    
                    *** BASE SYSTEM ***
                    Model           : Raspberry Pi 3 Model B Plus Rev 1.3
                    Architecture:   armv7l
                    Docker:         false
                    Virtualization: none
                    Distributor ID: Raspbian
                    Description:    Raspbian GNU/Linux 11 (bullseye)
                    Release:        11
                    Codename:       bullseye
                    
                    PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
                    NAME="Raspbian GNU/Linux"
                    VERSION_ID="11"
                    VERSION="11 (bullseye)"
                    VERSION_CODENAME=bullseye
                    ID=raspbian
                    ID_LIKE=debian
                    HOME_URL="http://www.raspbian.org/"
                    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
                    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
                    
                    Systemuptime and Load:
                     16:41:55 up  1:06,  1 user,  load average: 0.47, 0.68, 0.43
                    CPU threads: 4
                    
                    *** Time and Time Zones ***
                    Sun Mar 19 15:41:55 UTC 2023
                    Sun Mar 19 16:41:55 CET 2023
                    CET +0100
                    Europe/Berlin
                    
                    *** User and Groups ***
                    pi
                    /home/pi
                    pi adm dialout cdrom sudo audio video plugdev games users input render netdev gpio i2c spi iobroker
                    
                    *** X-Server-Setup ***
                    X-Server:       false
                    Desktop:
                    Terminal:       tty
                    Boot Target:    multi-user.target
                    
                    *** MEMORY ***
                                   total        used        free      shared  buff/cache   available
                    Mem:            922M        466M        123M        0.0K        332M        409M
                    Swap:            99M         71M         28M
                    Total:          1.0G        537M        151M
                    
                              922 M total memory
                              466 M used memory
                              284 M active memory
                              414 M inactive memory
                              123 M free memory
                               57 M buffer memory
                              275 M swap cache
                               99 M total swap
                               71 M used swap
                               28 M free swap
                    
                    *** FILESYSTEM ***
                    Filesystem     Type      Size  Used Avail Use% Mounted on
                    /dev/root      ext4       15G  3.7G   10G  28% /
                    devtmpfs       devtmpfs  333M     0  333M   0% /dev
                    tmpfs          tmpfs     462M     0  462M   0% /dev/shm
                    tmpfs          tmpfs     185M 1008K  184M   1% /run
                    tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
                    /dev/mmcblk0p1 vfat      255M   50M  206M  20% /boot
                    tmpfs          tmpfs      93M     0   93M   0% /run/user/1000
                    
                    Messages in dmesg:
                    [Sun Mar 19 15:35:34 2023] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=Composite-1:720x480@60i vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=tty1 root=PARTUUID=be80aafe-02 rootfstype=ext4 fsck.repair=yes rootwait
                    [Sun Mar 19 15:35:37 2023] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
                    [Sun Mar 19 15:35:37 2023] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
                    [Sun Mar 19 15:35:47 2023] EXT4-fs (mmcblk0p2): re-mounted. Opts: commit=600. Quota mode: none.
                    
                    Show mounted filesystems (real ones only):
                    TARGET  SOURCE         FSTYPE OPTIONS
                    /       /dev/mmcblk0p2 ext4   rw,noatime,commit=600
                    `-/boot /dev/mmcblk0p1 vfat   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
                    
                    Files in neuralgic directories:
                    
                    /var:
                    du: cannot access '/var/lib/lxcfs/cgroup': Input/output error
                    1.1G    /var/
                    616M    /var/lib
                    511M    /var/lib/piVCCU3
                    459M    /var/lib/piVCCU3/rootfs
                    241M    /var/log/journal
                    
                    /opt/iobroker/backups:
                    22M     /opt/iobroker/backups/
                    
                    /opt/iobroker/iobroker-data:
                    139M    /opt/iobroker/iobroker-data/
                    102M    /opt/iobroker/iobroker-data/files
                    51M     /opt/iobroker/iobroker-data/files/javascript.admin
                    32M     /opt/iobroker/iobroker-data/files/javascript.admin/static/js
                    32M     /opt/iobroker/iobroker-data/files/javascript.admin/static
                    
                    The five largest files in iobroker-data are:
                    12M     /opt/iobroker/iobroker-data/objects.jsonl
                    6.9M    /opt/iobroker/iobroker-data/files/javascript.admin/static/js/610.de0231c9.chunk.js.map
                    6.3M    /opt/iobroker/iobroker-data/files/tankerkoenig.admin/build/index.js.map
                    6.3M    /opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e.847b8ad9.chunk.js.map
                    4.9M    /opt/iobroker/iobroker-data/files/javascript.admin/static/js/848.7424922d.chunk.js.map
                    
                    *** NodeJS-Installation ***
                    
                    /usr/bin/nodejs         v16.19.0
                    /usr/bin/node           v16.19.0
                    /usr/bin/npm            8.19.3
                    /usr/bin/npx            8.19.3
                    
                    nodejs:
                      Installed: 16.19.0-deb-1nodesource1
                      Candidate: 16.19.1-deb-1nodesource1
                      Version table:
                         16.19.1-deb-1nodesource1 500
                            500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                     *** 16.19.0-deb-1nodesource1 100
                            100 /var/lib/dpkg/status
                         12.22.12~dfsg-1~deb11u3 500
                            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                    
                    Temp directories causing npm8 problem: 0
                    
                    *** ioBroker-Installation ***
                    
                    ioBroker Status
                    iobroker is running on this host.
                    
                    
                    Objects type: jsonl
                    States  type: jsonl
                    
                    Core adapters versions
                    js-controller:  4.0.23
                    admin:          6.3.5
                    javascript:     6.1.4
                    
                    Adapters from github:   0
                    
                    Adapter State
                    + system.adapter.admin.0                  : admin                 : DieterSmarthomePi                        -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                    + system.adapter.backitup.0               : backitup              : DieterSmarthomePi                        -  enabled
                    + system.adapter.discovery.0              : discovery             : DieterSmarthomePi                        -  enabled
                      system.adapter.flot.0                   : flot                  : DieterSmarthomePi                        -  enabled
                    + system.adapter.history.0                : history               : DieterSmarthomePi                        -  enabled
                    + system.adapter.hm-rega.0                : hm-rega               : DieterSmarthomePi                        -  enabled
                    + system.adapter.hm-rpc.0                 : hm-rpc                : DieterSmarthomePi                        -  enabled, port: 0
                      system.adapter.javascript.0             : javascript            : DieterSmarthomePi                        - disabled
                    + system.adapter.shelly.0                 : shelly                : DieterSmarthomePi                        -  enabled, port: 1882, bind: 0.0.0.0
                    + system.adapter.tankerkoenig.0           : tankerkoenig          : DieterSmarthomePi                        -  enabled
                      system.adapter.vis-fancyswitch.0        : vis-fancyswitch       : DieterSmarthomePi                        -  enabled
                      system.adapter.vis-history.0            : vis-history           : DieterSmarthomePi                        -  enabled
                      system.adapter.vis-hqwidgets.0          : vis-hqwidgets         : DieterSmarthomePi                        -  enabled
                      system.adapter.vis-timeandweather.0     : vis-timeandweather    : DieterSmarthomePi                        -  enabled
                      system.adapter.vis-weather.0            : vis-weather           : DieterSmarthomePi                        -  enabled
                      system.adapter.vis.0                    : vis                   : DieterSmarthomePi                        -  enabled
                    + system.adapter.web.0                    : web                   : DieterSmarthomePi                        -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                    
                    + instance is alive
                    
                    Enabled adapters with bindings
                    + system.adapter.admin.0                  : admin                 : DieterSmarthomePi                        -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                    + system.adapter.hm-rpc.0                 : hm-rpc                : DieterSmarthomePi                        -  enabled, port: 0
                    + system.adapter.shelly.0                 : shelly                : DieterSmarthomePi                        -  enabled, port: 1882, bind: 0.0.0.0
                    + system.adapter.web.0                    : web                   : DieterSmarthomePi                        -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                    
                    ioBroker-Repositories
                    stable        : http://download.iobroker.net/sources-dist.json
                    beta          : http://download.iobroker.net/sources-dist-latest.json
                    
                    Active repo(s): stable
                    
                    Installed ioBroker-Instances
                    Used repository: stable
                    Adapter    "admin"        : 6.3.5    , installed 6.3.5
                    Adapter    "backitup"     : 2.5.12   , installed 2.5.10 [Updatable]
                    Adapter    "discovery"    : 3.1.0    , installed 3.1.0
                    Adapter    "flot"         : 1.11.0   , installed 1.11.0
                    Adapter    "history"      : 2.2.4    , installed 2.2.4
                    Adapter    "hm-rega"      : 3.0.44   , installed 3.0.40 [Updatable]
                    Adapter    "hm-rpc"       : 1.15.16  , installed 1.15.16
                    Adapter    "javascript"   : 6.1.4    , installed 6.1.4
                    Controller "js-controller": 4.0.24   , installed 4.0.23 [Updatable]
                    Adapter    "shelly"       : 6.3.1    , installed 6.0.0  [Updatable]
                    Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
                    Adapter    "socketio"     : 4.2.0    , installed 4.2.0
                    Adapter    "tankerkoenig" : 3.3.7    , installed 3.1.0  [Updatable]
                    Adapter    "vis"          : 1.4.15   , installed 1.4.15
                    Adapter    "vis-fancyswitch": 1.1.0  , installed 1.1.0
                    Adapter    "vis-history"  : 1.0.0    , installed 1.0.0
                    Adapter    "vis-hqwidgets": 1.3.0    , installed 1.3.0
                    Adapter    "vis-timeandweather": 1.2.2, installed 1.2.2
                    Adapter    "vis-weather"  : 2.5.6    , installed 2.5.6
                    Adapter    "web"          : 4.3.0    , installed 4.3.0
                    Adapter    "ws"           : 1.3.0    , installed 1.3.0
                    
                    Objects and States
                    Please stand by - This may take a while
                    Objects:        1250
                    States:         953
                    
                    *** OS-Repositories and Updates ***
                    Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
                    Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                    Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease
                    Hit:4 https://www.pivccu.de/piVCCU stable InRelease
                    Reading package lists...
                    Pending Updates: 33
                    
                    *** Listening Ports ***
                    Active Internet connections (only servers)
                    Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
                    tcp        0      0 10.0.3.1:53             0.0.0.0:*               LISTEN      0          12800      737/dnsmasq
                    tcp        0      0 0.0.0.0:1882            0.0.0.0:*               LISTEN      1001       15835      1493/io.shelly.0
                    tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1001       14708      660/iobroker.js-con
                    tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       15457      660/iobroker.js-con
                    tcp        0      0 192.168.178.82:2001     0.0.0.0:*               LISTEN      1001       16446      1609/io.hm-rpc.0
                    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          12762      720/sshd: /usr/sbin
                    tcp6       0      0 :::8081                 :::*                    LISTEN      1001       13257      1459/io.admin.0
                    tcp6       0      0 :::8082                 :::*                    LISTEN      1001       14161      1744/io.web.0
                    tcp6       0      0 :::22                   :::*                    LISTEN      0          12764      720/sshd: /usr/sbin
                    udp        0      0 0.0.0.0:5353            0.0.0.0:*                           108        13342      417/avahi-daemon: r
                    udp        0      0 10.0.3.1:53             0.0.0.0:*                           0          12799      737/dnsmasq
                    udp        0      0 0.0.0.0:67              0.0.0.0:*                           0          12796      737/dnsmasq
                    udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          13365      520/dhclient
                    udp        0      0 0.0.0.0:48781           0.0.0.0:*                           108        13344      417/avahi-daemon: r
                    udp6       0      0 :::36040                :::*                                108        13345      417/avahi-daemon: r
                    udp6       0      0 :::5353                 :::*                                108        13343      417/avahi-daemon: r
                    
                    *** Log File - Last 25 Lines ***
                    
                    2023-03-19 15:50:17.315  - error: host.DieterSmarthomePi Caught by controller[0]:     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
                    2023-03-19 15:50:17.315  - error: host.DieterSmarthomePi Caught by controller[0]:     at Function.Module._load (node:internal/modules/cjs/loader:841:27)
                    2023-03-19 15:50:17.315  - error: host.DieterSmarthomePi Caught by controller[0]:     at Module.require (node:internal/modules/cjs/loader:1067:19)
                    2023-03-19 15:50:17.315  - error: host.DieterSmarthomePi Caught by controller[0]:     at require (node:internal/modules/cjs/helpers:103:18)
                    2023-03-19 15:50:17.315  - error: host.DieterSmarthomePi Caught by controller[0]:     at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:43:23)
                    2023-03-19 15:50:17.316  - error: host.DieterSmarthomePi Caught by controller[0]:     at Module._compile (node:internal/modules/cjs/loader:1165:14)
                    2023-03-19 15:50:17.316  - error: host.DieterSmarthomePi Caught by controller[0]:     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
                    2023-03-19 15:50:17.316  - error: host.DieterSmarthomePi Caught by controller[0]:     at Module.load (node:internal/modules/cjs/loader:1043:32)
                    2023-03-19 15:50:17.316  - error: host.DieterSmarthomePi Caught by controller[0]:     at Function.Module._load (node:internal/modules/cjs/loader:878:12)
                    2023-03-19 15:50:17.316  - error: host.DieterSmarthomePi Caught by controller[0]:     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
                    2023-03-19 15:50:17.317  - error: host.DieterSmarthomePi Caught by controller[0]:     at node:internal/main/run_main_module:22:47
                    2023-03-19 15:50:17.317  - error: host.DieterSmarthomePi Caught by controller[0]:  {
                    2023-03-19 15:50:17.317  - error: host.DieterSmarthomePi Caught by controller[0]:   code: 'MODULE_NOT_FOUND',
                    2023-03-19 15:50:17.317  - error: host.DieterSmarthomePi Caught by controller[0]:   path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/package.json',
                    2023-03-19 15:50:17.317  - error: host.DieterSmarthomePi Caught by controller[0]:   requestPath: 'suncalc2'
                    2023-03-19 15:50:17.318  - error: host.DieterSmarthomePi Caught by controller[0]: }
                    2023-03-19 15:50:17.318  - error: host.DieterSmarthomePi instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                    2023-03-19 15:50:17.318  - info: host.DieterSmarthomePi Rebuild for adapter system.adapter.javascript.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
                    2023-03-19 16:04:40.611  - info: host.DieterSmarthomePi "system.adapter.javascript.0" disabled
                    2023-03-19 16:18:51.367  - info: admin.0 (1459) ==> Connected system.user.admin from ::ffff:192.168.178.54
                    2023-03-19 16:36:43.168  - info: host.DieterSmarthomePi Delete log file iobroker.2023-01-20.log.gz
                    2023-03-19 16:36:43.178  - info: host.DieterSmarthomePi Delete log file iobroker.2023-01-21.log.gz
                    2023-03-19 16:38:58.990  - info: admin.0 (1459) <== Disconnect system.user.admin from ::ffff:192.168.178.54
                    2023-03-19 16:38:59.013  - info: admin.0 (1459) <== Disconnect system.user.admin from ::ffff:192.168.178.54 admin
                    2023-03-19 16:39:00.523  - info: admin.0 (1459) failed connection to socket.io from ::ffff:192.168.178.54: Passport was not initialized
                    
                    

                    Summary:

                    ======================= 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:     33
                    
                    Nodejs-Installation:    /usr/bin/nodejs         v16.19.0
                                            /usr/bin/node           v16.19.0
                                            /usr/bin/npm            8.19.3
                                            /usr/bin/npx            8.19.3
                    
                    ioBroker Core:          js-controller           4.0.23
                                            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                 : DieterSmarthomePi                        -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                    
                    Pending iob updates:    5
                    
                    Active repo(s): stable
                    
                    Objects:                1250
                    States:                 953
                    
                    Size of iob-Database:
                    
                    12M     /opt/iobroker/iobroker-data/objects.jsonl
                    712K    /opt/iobroker/iobroker-data/states.jsonl
                    
                    
                    =================== END OF SUMMARY ====================
                    
                    Thomas Braun 2 Replies Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Intruminator last edited by

                      @intruminator

                      Zunächst mal alles auf Stand bringen.
                      Also Betriebssystem inkl. nodejs und die ganzen Adapter und den js-controller.

                      I 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Intruminator last edited by

                        @intruminator

                        Könnte auch zusammen mit dem piVCCU gleichzeitig auf dem kleinen System eng werden.

                        1 Reply Last reply Reply Quote 0
                        • I
                          Intruminator @Thomas Braun last edited by

                          @thomas-braun
                          Hi Thomas,

                          ich habe jetzt alles auf den neusten Stand gebracht - hat ein bisschen gedauert.
                          3 Adapter kann ich gerade nicht updaten, weil er der Meinung ist, dass meine node-version höher sein müsste, dabei ist jetzt 16.19.1 in Betrieb und läuft.

                          Javascript Adapter ist noch rot. Konfigurieren muss ich den ja nicht oder?

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Intruminator last edited by Thomas Braun

                            @intruminator sagte in Instanz - Javascript bleibt rot:

                            3 Adapter kann ich gerade nicht updaten, weil er der Meinung ist, dass meine node-version höher sein müsste, dabei ist jetzt 16.19.1 in Betrieb und läuft.

                            Das ist dann aber höchstwahrscheinlich schon krumm.

                            iob diag
                            

                            sagt dazu?

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              Intruminator @Thomas Braun last edited by

                              @thomas-braun
                              hab gerade mal neugestartet - javascript ist jetzt grün.

                              Ich vermute, dass du Recht hast und der Pi mit nur 1GB RAM ganz schön am schuften ist.
                              Ich schaue mal, ob ich mit dem Adapter jetzt was anfangen kann.
                              Vielen Dank euch allen erstmal.

                              In Detail:

                              Skript v.2023-01-02
                              
                              *** BASE SYSTEM ***
                              Model           : Raspberry Pi 3 Model B Plus Rev 1.3
                              Architecture:   armv7l
                              Docker:         false
                              Virtualization: none
                              Distributor ID: Raspbian
                              Description:    Raspbian GNU/Linux 11 (bullseye)
                              Release:        11
                              Codename:       bullseye
                              
                              PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
                              NAME="Raspbian GNU/Linux"
                              VERSION_ID="11"
                              VERSION="11 (bullseye)"
                              VERSION_CODENAME=bullseye
                              ID=raspbian
                              ID_LIKE=debian
                              HOME_URL="http://www.raspbian.org/"
                              SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
                              BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
                              
                              Systemuptime and Load:
                               20:07:10 up 6 min,  2 users,  load average: 0.33, 1.11, 0.64
                              CPU threads: 4
                              
                              *** Time and Time Zones ***
                              Sun Mar 19 19:07:10 UTC 2023
                              Sun Mar 19 20:07:10 CET 2023
                              CET +0100
                              Europe/Berlin
                              
                              *** User and Groups ***
                              pi
                              /home/pi
                              pi adm dialout cdrom sudo audio video plugdev games users input render netdev gpio i2c spi iobroker
                              
                              *** X-Server-Setup ***
                              X-Server:       false
                              Desktop:
                              Terminal:       tty
                              Boot Target:    multi-user.target
                              
                              *** MEMORY ***
                                             total        used        free      shared  buff/cache   available
                              Mem:            921M        555M        156M        1.0M        209M        335M
                              Swap:            99M          0B         99M
                              Total:          1.0G        555M        256M
                              
                                        921 M total memory
                                        555 M used memory
                                        617 M active memory
                                         70 M inactive memory
                                        156 M free memory
                                         19 M buffer memory
                                        190 M swap cache
                                         99 M total swap
                                          0 M used swap
                                         99 M free swap
                              
                              *** FILESYSTEM ***
                              Filesystem     Type      Size  Used Avail Use% Mounted on
                              /dev/root      ext4       15G  4.2G  9.5G  31% /
                              devtmpfs       devtmpfs  333M     0  333M   0% /dev
                              tmpfs          tmpfs     461M     0  461M   0% /dev/shm
                              tmpfs          tmpfs     185M  1.1M  184M   1% /run
                              tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
                              /dev/mmcblk0p1 vfat      255M   51M  205M  20% /boot
                              tmpfs          tmpfs      93M     0   93M   0% /run/user/1000
                              
                              Messages in dmesg:
                              [Sun Mar 19 20:01:08 2023] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=HDMI-A-1:1920x1080M@60 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=tty1 root=PARTUUID=be80aafe-02 rootfstype=ext4 fsck.repair=yes rootwait
                              [Sun Mar 19 20:01:11 2023] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
                              [Sun Mar 19 20:01:11 2023] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
                              [Sun Mar 19 20:01:36 2023] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
                              [Sun Mar 19 20:01:36 2023] EXT4-fs (mmcblk0p2): 5 orphan inodes deleted
                              [Sun Mar 19 20:01:36 2023] EXT4-fs (mmcblk0p2): recovery complete
                              [Sun Mar 19 20:01:37 2023] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
                              [Sun Mar 19 20:01:37 2023] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
                              [Sun Mar 19 20:01:41 2023] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
                              
                              Show mounted filesystems (real ones only):
                              TARGET  SOURCE         FSTYPE OPTIONS
                              /       /dev/mmcblk0p2 ext4   rw,noatime,commit=600
                              `-/boot /dev/mmcblk0p1 vfat   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
                              
                              Files in neuralgic directories:
                              
                              /var:
                              du: cannot access '/var/lib/lxcfs/cgroup': Input/output error
                              1.5G    /var/
                              616M    /var/lib
                              511M    /var/lib/piVCCU3
                              459M    /var/lib/piVCCU3/rootfs
                              429M    /var/cache
                              
                              /opt/iobroker/backups:
                              22M     /opt/iobroker/backups/
                              
                              /opt/iobroker/iobroker-data:
                              145M    /opt/iobroker/iobroker-data/
                              102M    /opt/iobroker/iobroker-data/files
                              51M     /opt/iobroker/iobroker-data/files/javascript.admin
                              32M     /opt/iobroker/iobroker-data/files/javascript.admin/static/js
                              32M     /opt/iobroker/iobroker-data/files/javascript.admin/static
                              
                              The five largest files in iobroker-data are:
                              13M     /opt/iobroker/iobroker-data/objects.jsonl
                              6.9M    /opt/iobroker/iobroker-data/files/javascript.admin/static/js/610.de0231c9.chunk.js.map
                              6.5M    /opt/iobroker/iobroker-data/states.jsonl
                              6.3M    /opt/iobroker/iobroker-data/files/tankerkoenig.admin/build/index.js.map
                              6.3M    /opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e.847b8ad9.chunk.js.map
                              
                              *** 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
                              
                              nodejs:
                                Installed: 16.19.1-deb-1nodesource1
                                Candidate: 16.19.1-deb-1nodesource1
                                Version table:
                               *** 16.19.1-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                      100 /var/lib/dpkg/status
                                   12.22.12~dfsg-1~deb11u3 500
                                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                              
                              Temp directories causing npm8 problem: 2
                              
                              *** ioBroker-Installation ***
                              
                              ioBroker Status
                              iobroker is running on this host.
                              
                              
                              Objects type: jsonl
                              States  type: jsonl
                              
                              Core adapters versions
                              js-controller:  4.0.24
                              admin:          6.3.5
                              javascript:     6.1.4
                              
                              Adapters from github:   0
                              
                              Adapter State
                              + system.adapter.admin.0                  : admin                 : DieterSmarthomePi                        -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                              + system.adapter.backitup.0               : backitup              : DieterSmarthomePi                        -  enabled
                              + system.adapter.discovery.0              : discovery             : DieterSmarthomePi                        -  enabled
                                system.adapter.flot.0                   : flot                  : DieterSmarthomePi                        -  enabled
                              + system.adapter.history.0                : history               : DieterSmarthomePi                        -  enabled
                              + system.adapter.hm-rega.0                : hm-rega               : DieterSmarthomePi                        -  enabled
                              + system.adapter.hm-rpc.0                 : hm-rpc                : DieterSmarthomePi                        -  enabled, port: 0
                              + system.adapter.javascript.0             : javascript            : DieterSmarthomePi                        -  enabled
                              + system.adapter.shelly.0                 : shelly                : DieterSmarthomePi                        -  enabled, port: 1882, bind: 0.0.0.0
                              + system.adapter.tankerkoenig.0           : tankerkoenig          : DieterSmarthomePi                        -  enabled
                                system.adapter.vis-fancyswitch.0        : vis-fancyswitch       : DieterSmarthomePi                        -  enabled
                                system.adapter.vis-history.0            : vis-history           : DieterSmarthomePi                        -  enabled
                                system.adapter.vis-hqwidgets.0          : vis-hqwidgets         : DieterSmarthomePi                        -  enabled
                                system.adapter.vis-timeandweather.0     : vis-timeandweather    : DieterSmarthomePi                        -  enabled
                                system.adapter.vis-weather.0            : vis-weather           : DieterSmarthomePi                        -  enabled
                                system.adapter.vis.0                    : vis                   : DieterSmarthomePi                        -  enabled
                              + system.adapter.web.0                    : web                   : DieterSmarthomePi                        -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                              
                              + instance is alive
                              
                              Enabled adapters with bindings
                              + system.adapter.admin.0                  : admin                 : DieterSmarthomePi                        -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                              + system.adapter.hm-rpc.0                 : hm-rpc                : DieterSmarthomePi                        -  enabled, port: 0
                              + system.adapter.shelly.0                 : shelly                : DieterSmarthomePi                        -  enabled, port: 1882, bind: 0.0.0.0
                              + system.adapter.web.0                    : web                   : DieterSmarthomePi                        -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                              
                              ioBroker-Repositories
                              stable        : http://download.iobroker.net/sources-dist.json
                              beta          : http://download.iobroker.net/sources-dist-latest.json
                              
                              Active repo(s): stable
                              
                              Installed ioBroker-Instances
                              Used repository: stable
                              Adapter    "admin"        : 6.3.5    , installed 6.3.5
                              Adapter    "backitup"     : 2.5.12   , installed 2.5.10 [Updatable]
                              Adapter    "discovery"    : 3.1.0    , installed 3.1.0
                              Adapter    "flot"         : 1.11.0   , installed 1.11.0
                              Adapter    "history"      : 2.2.4    , installed 2.2.4
                              Adapter    "hm-rega"      : 3.0.44   , installed 3.0.44
                              Adapter    "hm-rpc"       : 1.15.16  , installed 1.15.16
                              Adapter    "javascript"   : 6.1.4    , installed 6.1.4
                              Controller "js-controller": 4.0.24   , installed 4.0.24
                              Adapter    "shelly"       : 6.3.1    , installed 6.0.0  [Updatable]
                              Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
                              Adapter    "socketio"     : 4.2.0    , installed 4.2.0
                              Adapter    "tankerkoenig" : 3.3.7    , installed 3.1.0  [Updatable]
                              Adapter    "vis"          : 1.4.15   , installed 1.4.15
                              Adapter    "vis-fancyswitch": 1.1.0  , installed 1.1.0
                              Adapter    "vis-history"  : 1.0.0    , installed 1.0.0
                              Adapter    "vis-hqwidgets": 1.3.0    , installed 1.3.0
                              Adapter    "vis-timeandweather": 1.2.2, installed 1.2.2
                              Adapter    "vis-weather"  : 2.5.6    , installed 2.5.6
                              Adapter    "web"          : 4.3.0    , installed 4.3.0
                              Adapter    "ws"           : 1.3.0    , installed 1.3.0
                              
                              Objects and States
                              Please stand by - This may take a while
                              Objects:        1290
                              States:         1005
                              
                              *** OS-Repositories and Updates ***
                              Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
                              Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                              Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease
                              Hit:4 https://www.pivccu.de/piVCCU stable InRelease
                              Reading package lists...
                              Pending Updates: 0
                              
                              *** Listening Ports ***
                              Active Internet connections (only servers)
                              Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
                              tcp        0      0 10.0.3.1:53             0.0.0.0:*               LISTEN      0          14148      695/dnsmasq
                              tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          12845      685/sshd: /usr/sbin
                              tcp        0      0 192.168.178.82:2001     0.0.0.0:*               LISTEN      1001       16044      1903/io.hm-rpc.0
                              tcp        0      0 0.0.0.0:1882            0.0.0.0:*               LISTEN      1001       15762      1467/io.shelly.0
                              tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1001       13068      629/iobroker.js-con
                              tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       13061      629/iobroker.js-con
                              tcp6       0      0 :::22                   :::*                    LISTEN      0          12847      685/sshd: /usr/sbin
                              tcp6       0      0 :::8081                 :::*                    LISTEN      1001       16838      1790/io.admin.0
                              tcp6       0      0 :::8082                 :::*                    LISTEN      1001       17822      2027/io.web.0
                              udp        0      0 10.0.3.1:53             0.0.0.0:*                           0          14147      695/dnsmasq
                              udp        0      0 0.0.0.0:67              0.0.0.0:*                           0          14144      695/dnsmasq
                              udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          4989       520/dhclient
                              udp        0      0 0.0.0.0:5353            0.0.0.0:*                           108        521        371/avahi-daemon: r
                              udp        0      0 0.0.0.0:34616           0.0.0.0:*                           108        523        371/avahi-daemon: r
                              udp6       0      0 :::47152                :::*                                108        524        371/avahi-daemon: r
                              udp6       0      0 :::5353                 :::*                                108        522        371/avahi-daemon: r
                              
                              *** Log File - Last 25 Lines ***
                              
                              2023-03-19 20:03:34.992  - info: tankerkoenig.0 (2198) Sync time set to 5 minutes or 300000 ms
                              2023-03-19 20:03:49.706  - info: hm-rega.0 (1947) ReGaHSS 192.168.178.83 up
                              2023-03-19 20:03:50.913  - info: hm-rega.0 (1947) time difference local-ccu 1s
                              2023-03-19 20:03:51.520  - info: hm-rega.0 (1947) request state values
                              2023-03-19 20:03:51.552  - info: hm-rega.0 (1947) Updated all datapoints
                              2023-03-19 20:03:51.571  - info: hm-rega.0 (1947) got 4 variables
                              2023-03-19 20:03:51.723  - info: hm-rega.0 (1947) added/updated 4 variables
                              2023-03-19 20:03:51.725  - info: hm-rega.0 (1947) deleted 0 variables
                              2023-03-19 20:03:51.737  - info: hm-rega.0 (1947) got 0 programs
                              2023-03-19 20:03:51.755  - info: hm-rega.0 (1947) added/updated 0 programs
                              2023-03-19 20:03:51.756  - info: hm-rega.0 (1947) deleted 0 programs
                              2023-03-19 20:03:51.779  - info: hm-rega.0 (1947) update rooms to enum.rooms
                              2023-03-19 20:03:51.831  - info: hm-rega.0 (1947) update functions to enum.functions
                              2023-03-19 20:03:51.905  - info: hm-rega.0 (1947) update favorites to enum.favorites
                              2023-03-19 20:04:14.054  - info: web.0 (2027) ==> Connected system.user.admin from ::ffff:192.168.178.54
                              2023-03-19 20:04:18.751  - info: web.0 (2027) <== Disconnect system.user.admin from ::ffff:192.168.178.54 vis.0
                              2023-03-19 20:04:19.760  - info: web.0 (2027) ==> Connected system.user.admin from ::ffff:192.168.178.54
                              2023-03-19 20:04:22.265  - info: web.0 (2027) ==> Connected system.user.admin from ::ffff:192.168.178.54
                              2023-03-19 20:04:30.199  - info: web.0 (2027) <== Disconnect system.user.admin from ::ffff:192.168.178.54 flot
                              2023-03-19 20:04:30.205  - info: web.0 (2027) <== Disconnect system.user.admin from ::ffff:192.168.178.54 vis.0
                              2023-03-19 20:04:31.633  - info: admin.0 (1790) failed connection to socket.io from ::ffff:192.168.178.54: Passport was not initialized
                              2023-03-19 20:04:38.519  - info: admin.0 (1790) ==> Connected system.user.admin from ::ffff:192.168.178.54
                              2023-03-19 20:05:31.834  - info: admin.0 (1790) ==> Connected system.user.admin from ::ffff:192.168.178.54
                              2023-03-19 20:05:36.615  - info: admin.0 (1790) <== Disconnect system.user.admin from ::ffff:192.168.178.54
                              2023-03-19 20:07:20.901  - info: admin.0 (1790) <== Disconnect system.user.admin from ::ffff:192.168.178.54 admin
                              
                              

                              Summary:

                              ======================= 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:     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                 : DieterSmarthomePi                        -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                              
                              Pending iob updates:    3
                              
                              Active repo(s): stable
                              
                              Objects:                1290
                              States:                 1005
                              
                              Size of iob-Database:
                              
                              13M     /opt/iobroker/iobroker-data/objects.jsonl
                              6.7M    /opt/iobroker/iobroker-data/states.jsonl
                              
                              
                              =================== END OF SUMMARY ====================
                              
                              Thomas Braun 2 Replies Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Intruminator last edited by

                                @intruminator

                                Sun Mar 19 20:01:36 2023] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
                                [Sun Mar 19 20:01:36 2023] EXT4-fs (mmcblk0p2): 5 orphan inodes deleted
                                

                                Fahr die Kiste IMMER ordentlich herunter! Dann zwebröselst du dir auch nicht (so schnell) dein Dateisystem wie hier zusehen.

                                1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Intruminator last edited by

                                  @intruminator

                                  Und dann wirst du das ausführen müssen:

                                  https://forum.iobroker.net/topic/57337/fehler-25-217-oder-enotempty-bei-adapter-install-update

                                  Anschließend

                                  iob update
                                  iob upgrade all
                                  

                                  Und schau was da an Instanzen noch entbehrlich ist. Der discovery-Adapter braucht z.B. eher nicht laufen.

                                  1 Reply Last reply Reply Quote 0
                                  • Gargano
                                    Gargano last edited by

                                    Jetzt habe ich auch das Problem. .Javasript bleibt rot und bringt Fehlermeldung mit suncalc2:
                                    Was hab ich gemacht :
                                    apt-update
                                    apt-upgrade
                                    Nach dem Reboot bleiben dann die Javascript Instanzen rot. (Ging vor dem update)
                                    Dann in Putty:
                                    cd /opt/iobroker/node_modules/iobroker.javascript
                                    npm install --production
                                    bzw.
                                    npm install --omit=dev

                                    Hat aber nichts gebracht.

                                    host.raspberrypi
                                    2023-04-01 13:47:41.536	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.535	error	Caught by controller[0]: Node.js v18.15.0
                                    host.raspberrypi
                                    2023-04-01 13:47:41.535	error	Caught by controller[0]: }
                                    host.raspberrypi
                                    2023-04-01 13:47:41.534	error	Caught by controller[0]: requestPath: 'suncalc2'
                                    host.raspberrypi
                                    2023-04-01 13:47:41.521	error	Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/package.json',
                                    host.raspberrypi
                                    2023-04-01 13:47:41.520	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
                                    host.raspberrypi
                                    2023-04-01 13:47:41.519	error	Caught by controller[0]: {
                                    host.raspberrypi
                                    2023-04-01 13:47:41.519	error	Caught by controller[0]: at node:internal/main/run_main_module:23:47
                                    host.raspberrypi
                                    2023-04-01 13:47:41.518	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.517	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:958:12)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.517	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1117:32)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.516	error	Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.515	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1254:14)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.514	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:44:23)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.510	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:110:18)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.509	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1141:19)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.508	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:920:27)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.507	error	Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.506	error	Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:678:18)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.506	error	Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:436:19)
                                    host.raspberrypi
                                    2023-04-01 13:47:41.505	error	Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/suncalc2.js'. Please verify that the package.json has a valid "main" entry
                                    host.raspberrypi
                                    2023-04-01 13:47:41.504	error	Caught by controller[0]: ^
                                    host.raspberrypi
                                    2023-04-01 13:47:41.501	error	Caught by controller[0]: throw err;
                                    host.raspberrypi
                                    2023-04-01 13:47:41.501	error	Caught by controller[0]: node:internal/modules/cjs/loader:444
                                    

                                    iob diag :

                                    2023-04-01 13:49:40.349  - error: host.raspberrypi Caught by controller[0]:       ^
                                    2023-04-01 13:49:40.350  - error: host.raspberrypi Caught by controller[0]: Error: Cannot find module '/o                                                 pt/iobroker/node_modules/iobroker.javascript/node_modules/suncalc2/suncalc2.js'. Please verify that the p                                                 ackage.json has a valid "main" entry
                                    2023-04-01 13:49:40.351  - error: host.raspberrypi Caught by controller[0]:     at tryPackage (node:inter                                                 nal/modules/cjs/loader:436:19)
                                    2023-04-01 13:49:40.352  - error: host.raspberrypi Caught by controller[0]:     at Function.Module._findP                                                 ath (node:internal/modules/cjs/loader:678:18)
                                    2023-04-01 13:49:40.352  - error: host.raspberrypi Caught by controller[0]:     at Function.Module._resol                                                 veFilename (node:internal/modules/cjs/loader:1061:27)
                                    2023-04-01 13:49:40.353  - error: host.raspberrypi Caught by controller[0]:     at Function.Module._load                                                  (node:internal/modules/cjs/loader:920:27)
                                    2023-04-01 13:49:40.353  - error: host.raspberrypi Caught by controller[0]:     at Module.require (node:i                                                 nternal/modules/cjs/loader:1141:19)
                                    2023-04-01 13:49:40.355  - error: host.raspberrypi Caught by controller[0]:     at require (node:internal                                                 /modules/cjs/helpers:110:18)
                                    2023-04-01 13:49:40.355  - error: host.raspberrypi Caught by controller[0]:     at Object.<anonymous> (/o                                                 pt/iobroker/node_modules/iobroker.javascript/main.js:44:23)
                                    2023-04-01 13:49:40.356  - error: host.raspberrypi Caught by controller[0]:     at Module._compile (node:                                                 internal/modules/cjs/loader:1254:14)
                                    2023-04-01 13:49:40.356  - error: host.raspberrypi Caught by controller[0]:     at Object.Module._extensi                                                 ons..js (node:internal/modules/cjs/loader:1308:10)
                                    2023-04-01 13:49:40.357  - error: host.raspberrypi Caught by controller[0]:     at Module.load (node:inte                                                 rnal/modules/cjs/loader:1117:32)
                                    2023-04-01 13:49:40.358  - error: host.raspberrypi Caught by controller[0]:     at Function.Module._load                                                  (node:internal/modules/cjs/loader:958:12)
                                    2023-04-01 13:49:40.358  - error: host.raspberrypi Caught by controller[0]:     at Function.executeUserEn                                                 tryPoint [as runMain] (node:internal/modules/run_main:81:12)
                                    2023-04-01 13:49:40.359  - error: host.raspberrypi Caught by controller[0]:     at node:internal/main/run                                                 _main_module:23:47
                                    2023-04-01 13:49:40.359  - error: host.raspberrypi Caught by controller[0]:  {
                                    2023-04-01 13:49:40.360  - error: host.raspberrypi Caught by controller[0]:   code: 'MODULE_NOT_FOUND',
                                    2023-04-01 13:49:40.360  - error: host.raspberrypi Caught by controller[0]:   path: '/opt/iobroker/node_m                                                 odules/iobroker.javascript/node_modules/suncalc2/package.json',
                                    2023-04-01 13:49:40.361  - error: host.raspberrypi Caught by controller[0]:   requestPath: 'suncalc2'
                                    2023-04-01 13:49:40.361  - error: host.raspberrypi Caught by controller[0]: }
                                    2023-04-01 13:49:40.362  - error: host.raspberrypi Caught by controller[0]: Node.js v18.15.0
                                    2023-04-01 13:49:40.363  - error: host.raspberrypi instance system.adapter.javascript.0 terminated with c                                                 ode 1 (JS_CONTROLLER_STOPPED)
                                    2023-04-01 13:49:40.363  - info: host.raspberrypi Rebuild for adapter system.adapter.javascript.0 not suc                                                 cessful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in ada                                                 pter directory manually.
                                    2023-04-01 13:50:00.075  - info: host.raspberrypi instance system.adapter.meteoalarm.0 started with pid 5                                                 922
                                    2023-04-01 13:50:05.733  - info: host.raspberrypi instance system.adapter.meteoalarm.0 terminated with co                                                 de 11 (ADAPTER_REQUESTED_TERMINATION)
                                    
                                    

                                    iob diag summary :

                                    ======================= SUMMARY =======================
                                                         v.2023-01-02
                                    
                                    
                                    Operatingsystem:        Debian GNU/Linux 11 (bullseye)
                                    Installation:           Native
                                    Timezone:               Europe/Berlin
                                    User-ID:                1000
                                    X-Server:               false
                                    Boot Target:            multi-user.target
                                    
                                    Pending OS-Updates:     1
                                    
                                    Nodejs-Installation:    /usr/bin/nodejs         v18.15.0
                                                            /usr/bin/node           v18.15.0
                                                            /usr/bin/npm            9.5.0
                                                            /usr/bin/npx            9.5.0
                                    
                                    ioBroker Core:          js-controller           4.0.24
                                                            admin                   6.4.3
                                    
                                    ioBroker Status:        iobroker is running on this host.
                                    
                                    At least one iobroker host is running.
                                    
                                    Objects type: redis
                                    States  type: redis
                                    
                                    Status admin:
                                    + system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                    
                                    Pending iob updates:    1
                                    
                                    Active repo(s): Beta (latest)
                                    
                                    Objects:                20397
                                    States:                 18713
                                    
                                    Size of iob-Database:
                                    
                                    5.2M    /opt/iobroker/iobroker-data/objects.json.bak
                                    5.2M    /opt/iobroker/iobroker-data/objects.json
                                    40K     /opt/iobroker/iobroker-data/states.json.bak
                                    40K     /opt/iobroker/iobroker-data/states.json
                                    
                                    
                                    =================== END OF SUMMARY ====================
                                    
                                    
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Gargano last edited by Thomas Braun

                                      @gargano sagte in Instanz - Javascript bleibt rot:

                                      Mit

                                      sudo apt update
                                      sudo apt full-upgrade
                                      

                                      wird ein Schuh draus.

                                      iob upgrade javascript@7.0.3
                                      

                                      sagt?

                                      Denn eigentlich ist das eine Dependency von javascript:

                                      echad@chet:/opt/iobroker $ npm ls suncalc2
                                      iobroker.inst@3.0.0 /opt/iobroker
                                      └─┬ iobroker.javascript@7.0.3
                                        └── suncalc2@1.8.1
                                      

                                      Tip am Rande: Bitte zieh das Fenster des Terminals so breit wie möglich. Oder nutze ein Terminalprogramm das besser mit Zeilenumbrüchen umgehen kann als puTTY.

                                      Gargano 1 Reply Last reply Reply Quote 0
                                      • Gargano
                                        Gargano @Thomas Braun last edited by

                                        @thomas-braun Tatsächlich ist alles wieder da, danke.
                                        Aber eigentlich habe ich gelernt, daß sudo böse ist :-))

                                        Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Gargano last edited by

                                          @gargano sagte in Instanz - Javascript bleibt rot:

                                          Aber eigentlich habe ich gelernt, daß sudo böse ist :-))

                                          Stimmt. Wenn es für Dinge verwendet wird, die auch ohne sudo funktionieren.
                                          Ein apt update und apt full-upgrade funktionieren aber nur mit root-Rechten. Darf ja nicht jeder Heini am System herumschrauben.

                                          Gargano 1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @Gargano last edited by Homoran

                                            @gargano sagte in Instanz - Javascript bleibt rot:

                                            Aber eigentlich habe ich gelernt, daß sudo böse ist :-))

                                            ... in Verbindung mit Befehlen die mit iobroker... oder npm... beginnen.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            557
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            22
                                            901
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo