Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 3.2 jetzt im Latest!

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    js-controller 3.2 jetzt im Latest!

    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      KHK @apollon77 last edited by

      @apollon77
      Mit dem Update auf einem RPi4 habe ich schon beim Start folgende Fehler:
      4008aba9-09ab-49f8-b934-0a5c580c1e33-grafik.png
      wenn ich iobroker fix mache kommt ähnliches :

      c6152c92-e619-406b-810f-a7fa94e50fa5-grafik.png

      Karl

      apollon77 1 Reply Last reply Reply Quote 0
      • Diginix
        Diginix last edited by Diginix

        @apollon77 mein Host lief bisher mit loglevel warn. Ob es daran liegt, dass man nicht mehr sieht weiß ich nicht.
        Hier mal von 11:00 Uhr und 11:30 wieder so ein Fall wo die Instanz nicht gestartet wurde und jeweils zweimal die 3 Prozesse zum Restart der Instanz nicht beendert wurden. 11:45 Uhr hat es dann funktioniert. Aber die Zombies von den 2 Läufen davor blieben. Die CPU Last steigt mit jedem mal wo die 3 Prozesse bleiben um ca. 1-2.

        iobroker   28628  0.0  0.0  10156  2888 ?        S    11:00   0:00 /bin/bash /usr/bin/iobroker restart radar2.0
        root       28629  0.0  0.1  12640  4944 ?        S    11:00   0:00 sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js restart radar2.0
        iobroker   28630 98.2  3.4 743112 134900 ?       Rl   11:00  45:34 node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js restart radar2.0
        iobroker   32996  0.0  0.0  10156  2900 ?        S    11:30   0:00 /bin/bash /usr/bin/iobroker restart radar2.0
        root       32997  0.0  0.1  12636  4932 ?        S    11:30   0:00 sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js restart radar2.0
        iobroker   32998 95.8  2.9 743352 118528 ?       Rl   11:30  15:42 node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js restart radar2.0
        iobroker   35355 16.2  1.9 638660 77188 ?        Sl   11:46   0:03 io.radar2.0
        
        

        Und hier das Log:

        2021-01-23 11:00:06.485  - info: javascript.0 (1408) script.js.automatization.Door_Window.Smart_Lock: *** Smart Lock radar2.0.alive: false / radar2.0.connected: false
        2021-01-23 11:00:14.150  - info: javascript.0 (1408) script.js.automatization.Door_Window.Smart_Lock: *** Smart Lock: unlocked #1
        2021-01-23 11:00:17.152  - info: javascript.0 (1408) script.js.automatization.Door_Window.Smart_Lock: *** Smart Lock: #1 Starting radar2
        2021-01-23 11:00:27.096  - info: javascript.0 (1408) script.js.automatization.Door_Window.Smart_Lock: *** Smart Lock: #1 Unable to increase LUA script timeout: Error: Connection is closed.
         Cannot load "custom": Error: Connection is closed.
         Cannot load "custom": Error: Connection is closed.
         [...]
        over 40000 mal die Zeile "Cannot load "custom": Error: Connection is closed."
         [...]
         Cannot load "custom": Error: Connection is closed.
         Cannot load "custom": Error: Connection is clos
        2021-01-23 11:30:48.377  - info: javascript.0 (1408) script.js.automatization.Door_Window.Smart_Lock: *** Smart Lock: #1 radar2.0.connected: false
        2021-01-23 11:30:48.378  - info: javascript.0 (1408) script.js.automatization.Door_Window.Smart_Lock: *** Smart Lock: #2 Starting radar2
        2021-01-23 11:30:55.122  - info: javascript.0 (1408) script.js.automatization.Door_Window.Smart_Lock: *** Smart Lock: #2 The adapter "radar2.0" was started.
        2021-01-23 11:31:15.124  - info: javascript.0 (1408) script.js.automatization.Door_Window.Smart_Lock: *** Smart Lock: #2 radar2.0.connected: true
        2021-01-23 11:31:58.030  - error: daswetter.0 (33006) force terminate
        2021-01-23 11:31:58.036  - warn: daswetter.0 (33006) Terminated (15): Without reason
        2021-01-23 11:32:04.439  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.440  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.441  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.442  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.442  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.443  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.444  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.444  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.445  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.446  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.447  - warn: daswetter.0 (33006) get state Error: DB closed
        2021-01-23 11:32:04.451  - error: daswetter.0 (33006) exception in await insertIntoList [Error: DB closed]
        2021-01-23 11:32:05.765  - error: daswetter.0 (33006) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
        2021-01-23 11:32:05.766  - error: daswetter.0 (33006) unhandled promise rejection: Cannot read property 'setState' of null
        2021-01-23 11:32:05.812  - error: daswetter.0 (33006) TypeError: Cannot read property 'setState' of null
            at Adapter.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6065:35)
            at processTicksAndRejections (internal/process/task_queues.js:97:5)
        2021-01-23 11:32:05.813  - error: daswetter.0 (33006) Cannot read property 'setState' of null
        2021-01-23 11:32:06.187  - error: host.BT3-PRO instance system.adapter.daswetter.0 terminated with code 15 (15)
        2021-01-23 11:40:23.212  - warn: ical.0 (34385) get state Error: Connection is closed.
        2021-01-23 11:40:23.232  - warn: ical.0 (34385) get state Error: DB closed
        

        Die Konsolenausgaben bei "iobroker restart radar2.0" sind entweder: "The adapter "radar2.0" was started." oder gar keine.
        Im Fall von "...was started" läuft nicht zwingend die Instanz wieder. Deswegen prüfe ich den .connected state.
        Wenn gar keine Ausgabe kommt, ist es der zur Zeit der Fall mit "Cannot load "custom": Error: Connection is closed."

        Das Skript ist eigentlich ein Blockly, aber hier mal der Teil zum Stoppen und Starten der Instanz als Javascript:

        var command, restart_count, run_count, result, timeout_keyble, check_radar_running, timeout_radar_restart;
        
        // Smart Lock Control
        async function control_smart_lock(command) {
          run_count = (typeof run_count == 'number' ? run_count : 0) + 1;
          exec('iobroker stop radar2.0', async function (error, result, stderr) {
              // 5000 ms bis 2020-05-25
            timeout_keyble = setTimeout(async function () {
              console.log((['*** Smart Lock radar2 alive: ',getState("system.adapter.radar2.0.alive").val,' / connected: ',getState("system.adapter.radar2.0.connected").val].join('')));
              exec('keyble-sendcommand --address 00:11:22:33:44:55 --user_id 2 --user_key *** --command status', async function (error, result, stderr) {
                  console.log(('*** Smart Lock: ' + String(result)));
                // war 20s und nach exec keyble, nicht innerhalb
                // bis 2020-05-25
                //
                // seit 2020-06-25 7s statt 2s damit bei unlock/lock
                // retry radar2 nicht erst zwischen gestartet wird
                timeout_radar_restart = setTimeout(async function () {
                  await start_radar2(1);
                }, 3000);
              });
            }, 2000);
          });
        }
        
        // Beschreibe diese Funktion …
        async function start_radar2(restart_count) {
          console.log((['*** Smart Lock: #',restart_count,' Starting radar2'].join('')));
          exec('iobroker restart radar2.0', async function (error, result, stderr) {
              console.log((['*** Smart Lock: #',restart_count,' ',result].join('')));
            check_radar_running = setTimeout(async function () {
              console.log((['*** Smart Lock: #',restart_count,' radar2 connected: ',getState("system.adapter.radar2.0.connected").val].join('')));
              if (getState("system.adapter.radar2.0.connected").val != true && restart_count < 3) {
                restart_count = (typeof restart_count == 'number' ? restart_count : 0) + 1;
                await start_radar2(restart_count);
              } else if (getState("system.adapter.radar2.0.connected").val != true && restart_count >= 3) {
                console.log((['*** Smart Lock radar2 running: ',getState("system.adapter.radar2.0.connected").val,', kein ',restart_count + 1,'. Versuch'].join('')));
              }
            }, 20000);
          });
        }
        
        
        await control_smart_lock('status');
        

        M apollon77 2 Replies Last reply Reply Quote 0
        • M
          MHeymann @Diginix last edited by MHeymann

          Ich habe eben auch auf 3.2.8 geupdatet. Jetzt bleibt mein Mein javascript Adapter rot.

          host.ioBroker	2021-01-23 12:08:46.875	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
          host.ioBroker	2021-01-23 12:08:46.875	error	Caught by controller[0]: }
          host.ioBroker	2021-01-23 12:08:46.875	error	Caught by controller[0]: ]
          host.ioBroker	2021-01-23 12:08:46.875	error	Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.javascript/main.js'
          host.ioBroker	2021-01-23 12:08:46.875	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/index.js',
          host.ioBroker	2021-01-23 12:08:46.875	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/server.js',
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: requireStack: [
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: {
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at internal/main/run_main_module.js:17:47
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:35:24)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/index.js:8:16)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:08:46.874	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/server.js:4:10)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.javascript/main.js
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/index.js
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/server.js
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: Require stack:
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: Error: Cannot find module 'typescript'
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: ^
          host.ioBroker	2021-01-23 12:08:46.873	error	Caught by controller[0]: throw err;
          host.ioBroker	2021-01-23 12:08:46.872	error	Caught by controller[0]: internal/modules/cjs/loader.js:818
          host.ioBroker	2021-01-23 12:08:16.724	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
          host.ioBroker	2021-01-23 12:08:16.724	error	Caught by controller[0]: }
          host.ioBroker	2021-01-23 12:08:16.724	error	Caught by controller[0]: ]
          host.ioBroker	2021-01-23 12:08:16.724	error	Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.javascript/main.js'
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/index.js',
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/server.js',
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: requireStack: [
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: {
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at internal/main/run_main_module.js:17:47
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:35:24)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/index.js:8:16)
          host.ioBroker	2021-01-23 12:08:16.723	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/server.js:4:10)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.javascript/main.js
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/index.js
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/server.js
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: Require stack:
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: Error: Cannot find module 'typescript'
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: ^
          host.ioBroker	2021-01-23 12:08:16.722	error	Caught by controller[0]: throw err;
          host.ioBroker	2021-01-23 12:08:16.721	error	Caught by controller[0]: internal/modules/cjs/loader.js:818
          host.ioBroker	2021-01-23 12:07:46.602	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
          host.ioBroker	2021-01-23 12:07:46.602	error	Caught by controller[0]: }
          host.ioBroker	2021-01-23 12:07:46.602	error	Caught by controller[0]: ]
          host.ioBroker	2021-01-23 12:07:46.602	error	Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.javascript/main.js'
          host.ioBroker	2021-01-23 12:07:46.602	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/index.js',
          host.ioBroker	2021-01-23 12:07:46.602	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/server.js',
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: requireStack: [
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: {
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at internal/main/run_main_module.js:17:47
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:35:24)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/index.js:8:16)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:07:46.601	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/server.js:4:10)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.javascript/main.js
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/index.js
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/server.js
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: Require stack:
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: Error: Cannot find module 'typescript'
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: ^
          host.ioBroker	2021-01-23 12:07:46.600	error	Caught by controller[0]: throw err;
          host.ioBroker	2021-01-23 12:07:46.599	error	Caught by controller[0]: internal/modules/cjs/loader.js:818
          host.ioBroker	2021-01-23 12:07:16.473	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: }
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: ]
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.javascript/main.js'
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/index.js',
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/server.js',
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: requireStack: [
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: {
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: at internal/main/run_main_module.js:17:47
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:07:16.473	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:35:24)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/index.js:8:16)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/server.js:4:10)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
          host.ioBroker	2021-01-23 12:07:16.472	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
          host.ioBroker	2021-01-23 12:07:16.471	error	Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.javascript/main.js
          host.ioBroker	2021-01-23 12:07:16.471	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/index.js
          host.ioBroker	2021-01-23 12:07:16.471	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/server.js
          host.ioBroker	2021-01-23 12:07:16.471	error	Caught by controller[0]: Require stack:
          host.ioBroker	2021-01-23 12:07:16.471	error	Caught by controller[0]: Error: Cannot find module 'typescript'
          host.ioBroker	2021-01-23 12:07:16.471	error	Caught by controller[0]: ^
          host.ioBroker	2021-01-23 12:07:16.471	error	Caught by controller[0]: throw err;
          host.ioBroker	2021-01-23 12:07:16.471	error	Caught by controller[0]: internal/modules/cjs/loader.js:818
          

          Keine Ahnung was da falsch gelaufen ist.

          Hat da jemand ne lösung für mich?

          LG Marko

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

            @mheymann
            node-Installation sauber?

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

              @thomas-braun
              Keine Ahnung??? Wie Prüfe ich das? Vor dem Update war alles io.

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

                @mheymann
                Sicher das du im Beta-Zweig richtig bist?

                which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                
                M 1 Reply Last reply Reply Quote 0
                • apollon77
                  apollon77 @crunchip last edited by

                  @crunchip Hm .. ok denke braucht einen neuen installer bzw fixer. Dann ist das weg. sind dran

                  1 Reply Last reply Reply Quote 1
                  • apollon77
                    apollon77 @KHK last edited by

                    @khk Liegt am installation fixer, nicht controller. Fix kommt nachher

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

                      @apollon77 sagte in js-controller 3.2 jetzt im Latest!:

                      Liegt am installation fixer, nicht controller. Fix kommt nachher

                      bleibt der dann 3.1.x oder gar 2.2.x kompatibel?

                      apollon77 1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @MHeymann last edited by Homoran

                        @mheymann AM besten den javascript Adapte rnochmals installieren ...

                        am besten in /opt/iobroker

                        ein "npm i iobroker.javascript"

                        ausführen. Das ist komisch

                        M 1 Reply Last reply Reply Quote 0
                        • apollon77
                          apollon77 @Homoran last edited by

                          @homoran Komplett unabhängig vom controller

                          1 Reply Last reply Reply Quote 0
                          • apollon77
                            apollon77 @Diginix last edited by

                            @diginix Ich bereite für nachmittag eine 3.2.9 vor (muss nur erst einkaufen), dann müsste das problem weg sein

                            1 Reply Last reply Reply Quote 1
                            • M
                              MHeymann @Thomas Braun last edited by

                              @thomas-braun
                              Durchaus möglich das ich hier nicht ganz richtig bin. Hab nur gelesen das crunchip auch nen Fehler nach dem update hat. Da mir ehrlich gesagt gerade das Hertz in die Hose gerutscht ist als ich die lange Fehlermeldung gesehen habe versuche ich einfach hier mein Glück. Sorry dafür.

                              /usr/bin/nodejs
                              v12.20.1
                              /usr/bin/node
                              v12.20.1
                              /usr/bin/npm
                              6.14.10
                              nodejs:
                                Installed: 12.20.1-1nodesource1
                                Candidate: 12.20.1-1nodesource1
                                Version table:
                               *** 12.20.1-1nodesource1 500
                                      500 https://deb.nodesource.com/node_12.x bionic/main amd64 Packages
                                      100 /var/lib/dpkg/status
                                   8.10.0~dfsg-2ubuntu0.4 500
                                      500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
                                   8.10.0~dfsg-2ubuntu0.2 500
                                      500 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
                                   8.10.0~dfsg-2 500
                                      500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @MHeymann last edited by

                                @mheymann Passt soweit.
                                Dann die Änderungen abwarten.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  MHeymann @apollon77 last edited by

                                  @thomas-braun
                                  @apollon77

                                  am besten in /opt/iobroker

                                  ein "npmi iobroker.javascript"

                                  ausführen. Das ist komisch

                                  Hat funktioniert. Vielen Dank für die Hilfe.

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

                                    Der Installation Fixer ist "gefixt" 🙂 Also bitte nochmal iobroker stoppen und "iobroker fix" ausführen, dann sollten die komischen Shell meldungen weg sein

                                    crunchip 1 Reply Last reply Reply Quote 2
                                    • crunchip
                                      crunchip Forum Testing Most Active @apollon77 last edited by

                                      @apollon77 super und danke für den schnellen fix, läuft wieder👍
                                      was mir grad aufgefallen ist, die zweite Zeile, die ist neu

                                      tankerkoenig.0	2021-01-23 13:47:47.399	warn	(15196) State "tankerkoenig.0.stations.8.e10.combined" has no existing object, this might lead to an error in future versions
                                      tankerkoenig.0	2021-01-23 13:47:46.387	warn	(15196) Please update js-controller to at least 1.2.0
                                      
                                      apollon77 1 Reply Last reply Reply Quote 0
                                      • apollon77
                                        apollon77 @crunchip last edited by

                                        @crunchip Nee die ist Uralt und kommt dann wenn der zum anlegen der Objekte mal "Länger" als erwartet braucht ... ist ein mega hack und bullshit inzwischen 🙂 leg mal eher ein issue an das man das ausbaut 😉

                                        crunchip 1 Reply Last reply Reply Quote 0
                                        • crunchip
                                          crunchip Forum Testing Most Active @apollon77 last edited by crunchip

                                          @apollon77 ok, mach ich
                                          seltsam, sonst wurde mir nur die erste Zeile angezeigt

                                          edit:
                                          @apollon77 Alexa2 (weil es ja dein Part ist☺ und ich den passenden Thread grad nicht finde)
                                          version 3.5.6 bei start von iobroker

                                          2021-01-23 13:47:18.036 - error: alexa2.0 (14667) Error: Error while checking Authentication: Error: no JSON
                                          2021-01-23 13:47:18.039 - info: alexa2.0 (14667) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
                                          2021-01-23 13:47:19.461 - error: alexa2.0 (14667) Cannot check object existence of "alexa2.0.info.connection": Error: Connection is closed.
                                          2021-01-23 13:47:19.462 - warn: alexa2.0 (14667) Could not check object existence of state alexa2.0.info.connection: Error: Cannot check object existence of "alexa2.0.info.connection": Error: Connection is closed.
                                          2021-01-23 13:47:19.463 - error: alexa2.0 (14667) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                          2021-01-23 13:47:19.463 - error: alexa2.0 (14667) unhandled promise rejection: Cannot read property 'setState' of null
                                          2021-01-23 13:47:19.492 - error: alexa2.0 (14667) TypeError: Cannot read property 'setState' of null
                                          at Adapter.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6065:35)
                                          at processTicksAndRejections (internal/process/task_queues.js:97:5)
                                          2021-01-23 13:47:19.493 - error: alexa2.0 (14667) Cannot read property 'setState' of null
                                          2021-01-23 13:47:19.494 - info: alexa2.0 (14667) sendToHost not processed because States database not connected
                                          2021-01-23 13:47:20.015 - info: alexa2.0 (14667) terminating
                                          
                                          apollon77 1 Reply Last reply Reply Quote 0
                                          • foxriver76
                                            foxriver76 Developer last edited by

                                            Wenn man nun den Fixer ausführt, sollte die iobroker CLI in Kombination mit "Grace" auch Auto-Completion unterstützen.

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

                                            Support us

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

                                            463
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            70
                                            575
                                            108519
                                            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