Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test js-controller v2.0.x (GitHub)

    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

    Test js-controller v2.0.x (GitHub)

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

      @crunchip meldungen vom Host (wie da zu sehen) werden nach dem Loglevel des Hosts geloggt ... und das steht bei dir auf info also kommen die noch. Die Adapter geben selbst noch ein "starting" aus ... das wäre weg

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

        @crunchip Naja wie ist der Log Befehl im Skript wenns fehlt?

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

          @apollon77

          var logging = true;
          
          var idAnzahlEin = 'javascript.0.Status.Lichter.Anzahl_ein',
          idAnzahl = 'javascript.0.Status.Lichter.Anzahl',
          idText = 'javascript.0.Status.Lichter.Text',
          idRaum = 'javascript.0.Status.Lichter.Raum', // <---- NEU
          idAnsage = 'javascript.0.Status.Lichter.Ansage';
          
          // Ab hier nix mehr ändern
          createState(idAnzahl, { // wenn benötigt: Anzahl der vorhandenen Lichter
          type: 'number',
          name: 'Anzahl aller Lichter',
          min: 0,
          def: 0,
          role: 'value'
          });
          createState(idAnzahlEin, { // Anzahl der Lichter, die auf sind als Variable unter Javascript.0 anlegen
          type: 'number',
          name: 'Anzahl der eingeschalteten Lichter',
          min: 0,
          def: 0,
          role: 'value'
          });
          createState(idText, { // Anzahl der brennenden Lichter und deren Namen als Variable unter Javascript.0 anlegen
          type: 'string',
          name: 'Eingeschaltete Lichter',
          desc: 'Namen der eingeschalteten Lichter',
          def: ' ',
          role: 'value'
          });
          createState(idAnsage, {
          type: 'string',
          name: 'Eingeschaltete Lichter (Ansage)',
          desc: 'Namen der eingeschalteten Lichter (für Ansage aufbereitet)',
          def: ' ',
          role: 'value'
          });
          createState(idRaum, { // Räume, in denen Lichter brennen // <---- NEU
          type: 'string',
          name: 'Räume mit eingeschalteten Lichter',
          desc: 'Namen der Räume, in denen Lichter eingeschaltet sind',
          def: ' ',
          role: 'value'
          });
          
          var cacheSelectorState = $('channel[state.id=*.STATE](functions="licht")'); // Gewerk licht
          var cacheSelectorLevel = $('channel[state.id=*.level](functions="licht")');
          var cacheSelectorPOWER = $('state[id=*.POWER](functions="licht")'); // Sonoff
          var cacheSelectorSwitch = $('state[id=*.Switch](functions="licht")'); // Shelly
          var cacheSelectorMi = $('state[id=*.state](functions=licht)'); //Mi-Light
          
          function checkDevices(obj) {
          // Setzt die Zähler vor dem Durchlauf aller Elemente *.STATE im Gewerk licht auf 0
          var anzahlLichterAn = 0;
          var anzahlLichter = 0;
          var textLichterAn = [];
          var textRaum = [];
          
          if (logging) {
          log('++++++ Lichter Anzahl ++++ ');
          log('#### SCHALTER ##### ');
          }
          cacheSelectorState.each(function (id, i) { // Schleife für jedes gefundenen Element *.STATE im Gewerk Licht
          var obj = getObject(id);
          var name = getObject(id).common.name;
          var status = getState(id).val; // Zustand *.STATE abfragen (jedes Element)
          var devicename = name.substring(0, name.indexOf(".STATE")); //.state aus Text entfernen
          var raumname = getObject(id, "rooms"); // <---- NEU
          
          
          // ########## Abfrage ob Virtueller Kanal? VK oder : im Namen)
          // if ( (devicename.search(/(CUX)|(K2)|(K3)|(VK)|(:)/ig) == -1) ) { 
          /*
          if (logging) {
          log('-------');
          log('Kanal: ' + name);
          log('Status: ' + status); 
          }
          */
          
          if (status) { // wenn Zustand = true, dann wird die ANzahl der Lichter hochgezählt
          ++anzahlLichterAn; 
          textLichterAn.push(devicename); // Zu Array hinzufügen
          textRaum.push(raumname.enumNames); // <---- NEU
          }
          ++anzahlLichter; // Zählt die Anzahl der vorhandenen Lichter unabhängig vom Status
          // } // ENDE VK-Abfrage
          
          });
          
          
          if (logging) log('#### DIMMER ##### ');
          cacheSelectorLevel.each(function (id, i) { // Schleife für jedes gefundenen Element *.LEVEL im Gewerk Licht
          var obj = getObject(id);
          var name = getObject(id).common.name;
          var status = getState(id).val; // Zustand *.LEVEL abfragen (jedes Element)
          var devicename = name.substring(0, name.indexOf(".LEVEL")); //.state aus Text entfernen
          var raumname = getObject(id, "rooms"); // <---- NEU
          
          // ########## Abfrage ob Virtueller Kanal? VK oder : im Namen)
          // if ( (devicename.search(/(CUX)|(K2)|(K3)|(V10)|(VK)|(:)/ig) == -1) ) { // Geräte mit diesen Strings im namen nicht beachten
          /*
          if (logging) {
          log('-------');
          log('Kanal: ' + name);
          log('Status: ' + status + '%'); 
          }
          */
          
          if (parseFloat(status) > 0) { // Wenn Dimmwert über 0
          ++anzahlLichterAn; 
          textLichterAn.push(devicename); // Zu Array hinzufügen
          textRaum.push(raumname.enumNames); // <---- NEU
          }
          ++anzahlLichter; // Zählt die Anzahl der vorhandenen Lichter unabhängig vom Status
          // } // Ende Abfrage VK 
          
          }); 
          
          if (logging) {
          log('++++++ Lichter Anzahl ++++ ');
          log('#### SCHALTER ##### ');
          }
          cacheSelectorPOWER.each(function (id, i) { // Schleife für jedes gefundenen Element *.POWER im Gewerk Licht
          var obj = getObject(id);
          var name = getObject(id).common.name;
          var status = getState(id).val; // Zustand *.STATE abfragen (jedes Element)
          var devicename = name.substring(0, name.indexOf("POWER")); //.state aus Text entfernen
          var raumname = getObject(id, "rooms"); // <---- NEU
          
          
          // ########## Abfrage ob Virtueller Kanal? VK oder : im Namen)
          // if ( (devicename.search(/(CUX)|(K2)|(K3)|(VK)|(:)/ig) == -1) ) { 
          /*
          if (logging) {
          log('-------');
          log('Kanal: ' + name);
          log('Status: ' + status); 
          }
          */
          
          if (status) { // wenn Zustand = true, dann wird die ANzahl der Lichter hochgezählt
          ++anzahlLichterAn; 
          textLichterAn.push(devicename); // Zu Array hinzufügen
          textRaum.push(raumname.enumNames); // <---- NEU
          }
          ++anzahlLichter; // Zählt die Anzahl der vorhandenen Lichter unabhängig vom Status
          // } // ENDE VK-Abfrage
          
          });
          
          if (logging) {
          log('++++++ Lichter Anzahl ++++ ');
          log('#### SCHALTER ##### ');
          }
          cacheSelectorSwitch.each(function (id, i) { // Schleife für jedes gefundenen Element *.POWER im Gewerk Licht
          var obj = getObject(id);
          var name = getObject(id).common.name;
          var status = getState(id).val; // Zustand *.STATE abfragen (jedes Element)
          var devicename = name;
          var raumname = getObject(id, "rooms"); // <---- NEU
          
          // ########## Abfrage ob Virtueller Kanal? VK oder : im Namen)
          // if ( (devicename.search(/(CUX)|(K2)|(K3)|(VK)|(:)/ig) == -1) ) { 
          /*
          if (logging) {
          log('-------');
          log('Kanal: ' + name);
          log('Status: ' + status); 
          }
          */
          
          if (status) { // wenn Zustand = true, dann wird die ANzahl der Lichter hochgezählt
          ++anzahlLichterAn; 
          textLichterAn.push(devicename); // Zu Array hinzufügen
          textRaum.push(raumname.enumNames); // <---- NEU
          }
          ++anzahlLichter; // Zählt die Anzahl der vorhandenen Lichter unabhängig vom Status
          // } // ENDE VK-Abfrage
          });
          
          
          
          if (logging) {
          log('++++++ Lichter Anzahl ++++ ');
          log('#### SCHALTER ##### ');
          }
          cacheSelectorMi.each(function (id, i) { // Schleife für jedes gefundenen Element *.POWER im Gewerk Licht
          var obj = getObject(id);
          var name = getObject(id).common.name;
          var status = getState(id).val; // Zustand *.STATE abfragen (jedes Element)
          var devicename = name.substring(0, name.indexOf(" Switch ON/OFF")); //.state aus Text entfernen
          var raumname = getObject(id, "rooms"); // <---- NEU
          
          // ########## Abfrage ob Virtueller Kanal? VK oder : im Namen)
          // if ( (devicename.search(/(CUX)|(K2)|(K3)|(VK)|(:)/ig) == -1) ) { 
          /*
          if (logging) {
          log('-------');
          log('Kanal: ' + name);
          log('Status: ' + status); 
          }
          */
          
          if (status) { // wenn Zustand = true, dann wird die ANzahl der Lichter hochgezählt
          ++anzahlLichterAn; 
          textLichterAn.push(devicename); // Zu Array hinzufügen
          textRaum.push(raumname.enumNames); // <---- NEU
          }
          ++anzahlLichter; // Zählt die Anzahl der vorhandenen Lichter unabhängig vom Status
          // } // ENDE VK-Abfrage
          });
          
          // Array mit Lichternamen sortieren
          textLichterAn.sort();
          textRaum.sort(); // <---- NEU
          // Schleife ist durchlaufen. Im Log wird der aktuelle Status (Anzahl, davon an) ausgegeben
          if (logging) log("Text: " + textLichterAn);
          if (logging) log("Anzahl Lichter: " + anzahlLichter + " # davon Lichter an: " + anzahlLichterAn);
          // die ermittelten Werte werden als javascript.0. Variable in ioBroker gespeichert (z.B. für die Verarbeitung in VIS)
          setState(idText, textLichterAn.join(', ')); // Schreibt die aktuelle Namen der eingeschalteten Lichter
          setState(idAnzahlEin, textLichterAn.length); // Schreibt die aktuelle Anzahl der eingeschalteten Lichter
          setState(idAnzahl, anzahlLichter); // Schreibt die aktuelle Anzahl der vorhandene Elemente im Gewerk Licht
          // setState(idRaum, textRaum.join(',<br>')); // Räume, in denen Licht brennt // <---- NEU
          setState(idRaum, textRaum.join(', ')); // Räume, in denen Licht brennt // <---- NEU
          }
          
          // Trigger
          cacheSelectorState.on(function(obj) { // bei Zustandänderung *.STATE im Gewerk licht
          if (logging) log('Auslösender Schalter: ' + obj.id + ': ' + obj.state.val); // Info im Log, welcher Zustand sich geändert hat
          checkDevices();
          });
          cacheSelectorLevel.on(function(obj) { // bei Zustandänderung *.LEVEL im Gewerk licht
          if (logging) log('Auslösender Dimmer: ' + obj.id + ': ' + obj.state.val); // Info im Log, welcher Zustand sich geändert hat
          checkDevices();
          });
          cacheSelectorPOWER.on(function(obj) { // bei Zustandänderung *.STATE im Gewerk licht
          if (logging) log('Auslösender Schalter: ' + obj.id + ': ' + obj.state.val); // Info im Log, welcher Zustand sich geändert hat
          checkDevices();
          });
          cacheSelectorSwitch.on(function(obj) { // bei Zustandänderung *.STATE im Gewerk licht
          if (logging) log('Auslösender Schalter: ' + obj.id + ': ' + obj.state.val); // Info im Log, welcher Zustand sich geändert hat
          checkDevices();
          });
          cacheSelectorMi.on(function(obj) { // bei Zustandänderung *.STATE im Gewerk licht
          if (logging) log('Auslösender Schalter: ' + obj.id + ': ' + obj.state.val); // Info im Log, welcher Zustand sich geändert hat
          checkDevices();
          });
          function main() {
          setTimeout(function(){
          if (logging) log('Auslöser Skriptstart');
          checkDevices();
          }, 2000);
          }
          
          main(); // Skriptstart-Auslöser
          
          // Aufbereitung für Ansage
          function strip_tags(data) {
          var rueckgabe = data.replace(/(&nbsp;|<([^>]+)>)/ig, " ");
          return(rueckgabe);
          }
          
          on(idText, function (obj) {
          var text = obj.state.val;
          text = (getState(idAnzahl).val > 0 ) ? 'Lichter eingeschaltet: ' + strip_tags(text) : 'Alle Lichter ausgeschaltet';
          setState(idAnsage, text);
          });
          
          apollon77 1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 @crunchip last edited by

            @crunchip passt denke ich zum javascript issue 😉

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

              2.0.29 kommt jetzt demnächst ins Latest ... geht dann wieder dort weiter sobald es draussen ist ...

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

                @apollon77 alles klar, dann wart ich mal ab

                ansonsten läuft nun alles zur vollen Zufriedenheit----bis jetzt😁

                KLASSE ARBEIT👍

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

                  Hi, habe auch mal upgedatet. Alles sofort geklappt. Mir fällt nur auf, dass ich unter den Objekten welche mittels Historie oder statistics mitlogge nicht mehr deaktivieren kann. Also die Maulschlüssel öffnen ganz normal die Einstellungen.Der Haken aktiv lässt sich auch ohne weiteres deaktiviern nur beim Speichern werden Änderungen nicht übernommen.

                  Systemdaten:

                   ioBroker-Rock
                  
                      Typ: js-controller
                      Titel: JS controller
                      OS: linux
                      Verfügbar: 2.0.29
                      Eingerichtet: 2.0.29
                      Ereignisse: ⇥24 / ↦13
                  
                  
                  
                  ioBroker-Rock
                  
                  Betriebssystem
                      linux
                  Architektur
                      arm64
                  CPUs
                      4
                  Geschwindigkeit
                      1296 MHz
                  Modell
                      unknown
                  RAM
                      3.9 GB
                  System Betriebszeit
                      2 T. 18:38:11
                  Node.js
                      v10.16.3
                  NPM
                      6.9.0
                  Festplatte Größe
                      56.1 GB
                  Festplatte frei
                      47.85 GB
                  Anzahl der Adapter
                      293
                  Betriebszeit
                      00:11:12
                  Aktive Instanzen
                      22
                  Hostname
                      ioBroker-Rock
                  

                  das hier taucht auch im log auf.Nach neustart..
                  Error 2019-10-14 17:46:22.010 warn from InMemDB: Error: Unknown Script 47ca5e051ba19850d94c45a1fc8725ff04ae868f
                  Error 2019-10-14 17:46:22.007 warn from InMemDB: Error: Unknown Script 47ca5e051ba19850d94c45a1fc8725ff04ae868f

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

                    @smartboart Die Scripts Fehler könnten kommen wenn Du verschiedene Versionen laufen hast (Master/Slave ode rso) . Kann dass sein? Ggf bitte nochmal neu starten. Ich arbeite noch an einer nächsten version die da Dinge noch fixt.

                    Das andere mit Custom ich ansehen. Ist aktuell nicht bekannt. Kann es noch jemand nachvollziehen?

                    smartboart 2 Replies Last reply Reply Quote 0
                    • smartboart
                      smartboart @apollon77 last edited by smartboart

                      @apollon77
                      ja hab nen multihost system, aber beide hochgezogen...
                      Beides neu gestartet, der Skript Fehler ist aber immernoch im log..

                      Der tauchte auch im master bei iobroker upgrade self im Anschluss auf. Das Upgrade ging erst beim 2 mal durch.. Hatte vorher das vorletzte releas drauf 2.0.25, was ohne Probleme zu installieren war..
                      Unbenannt.JPG

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

                        @apollon77
                        hallo, hatte vorher nur states auf redis..Hab jetzt auch file auf redis umgestellt. Im Anschluss waren meine oben beschriebenen Fehler beseitigt.. Falls die Info hilfreich ist. Danke für eure tolle Arbeit!

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

                          Bei Adapter Updates habe ich folgende Gyp Fehler im Log.. oben wurde beschrieben es hat hier mit dem js controller nix zu tun . Meine Python Installation meldet bei
                          apt-get install python-dev allerdings dass alles aktuell ist und nichts upzudaten wäre.. Die fehler haben keine Auswirkungen. mich würde trotzdem interessieren was die Ursache dafür ist...


                          host.ioBroker-Rock 2019-10-14 19:39:11.291 info iobroker ERR! not ok
                          host.ioBroker-Rock 2019-10-14 19:39:11.289 info iobroker gyp
                          host.ioBroker-Rock 2019-10-14 19:39:11.277 info iobroker v3.8.0
                          host.ioBroker-Rock 2019-10-14 19:39:11.274 info iobroker node -v v10.16.3gyp ERR! node-gyp -v
                          host.ioBroker-Rock 2019-10-14 19:39:11.271 info iobroker cwd /opt/iobroker/node_modules/utf-8-validategyp ERR!
                          host.ioBroker-Rock 2019-10-14 19:39:11.269 info iobroker ERR!
                          host.ioBroker-Rock 2019-10-14 19:39:11.266 info iobroker "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp
                          host.ioBroker-Rock 2019-10-14 19:39:11.264 info iobroker ERR! command
                          host.ioBroker-Rock 2019-10-14 19:39:11.261 info iobroker gyp
                          host.ioBroker-Rock 2019-10-14 19:39:11.258 info iobroker at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)gyp ERR! stack at ChildProcess.emit (events.js:198:13)gyp ERR! stack at Process.Child
                          host.ioBroker-Rock 2019-10-14 19:39:11.256 info iobroker stack
                          host.ioBroker-Rock 2019-10-14 19:39:11.253 info iobroker ERR!
                          host.ioBroker-Rock 2019-10-14 19:39:11.251 info iobroker Error: make failed with exit code: 2gyp
                          host.ioBroker-Rock 2019-10-14 19:39:11.248 info iobroker stack
                          host.ioBroker-Rock 2019-10-14 19:39:11.246 info iobroker ERR!
                          host.ioBroker-Rock 2019-10-14 19:39:11.243 info iobroker gyp
                          host.ioBroker-Rock 2019-10-14 19:39:11.240 info iobroker build error
                          host.ioBroker-Rock 2019-10-14 19:39:11.238 info iobroker ERR!
                          host.ioBroker-Rock 2019-10-14 19:39:11.236 info iobroker
                          host.ioBroker-Rock 2019-10-14 19:39:11.233 info iobroker gyp

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

                            Den ersten Härtetest hat das System heute schon hinter sich.
                            Stromausfall und die USV war abgeschaltet 😵 weil ich den Batteriepack mit zur Arbeit hatte zum Austausch.
                            Nach 30 Minuten fährt das System wieder hoch als wäre nichts geschehen. 😊

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

                              @smartboart mehr log bitte

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

                                Hallo nochmals ich,

                                ich habe mit das Reconnection Handling nochmal angesehen, weil es anders war wie gewollt.
                                Die 2.0.30 auf GitHub hat das umgebaut.

                                Ich wäre hier nochmal froh wenn Ihr checken könntet. Vor allem interessant ist das Verhalten von Slaves wenn der Master weg ist bzw. das verhalten des Gesamtsystems bei Redis-Nutzung wenn Redis weg ist.
                                Mit der 2.0.30 wird bis zu ca. 40s versucht die Verbindung wieder herzustellen. Wenn das gelingt kommt das ganze ohne Restarts aus und auch aufgelaufene Datenänderungen (zB setState oder Infos zu State-Änderungen) werden nachgespielt.
                                Wenn es länger braucht beenden sich die Adapter wie bisher und alles wartet das die DB wieder da ist.

                                1 Reply Last reply Reply Quote 0
                                • D
                                  darkiop Most Active last edited by

                                  Habe beide auf die 2.0.30 gezogen.

                                  Beim installieren gab es ungewöhnlich viele Warnungen, die hatte ich vorher nicht - siehe Log. Beide laufen aber ohne Auffälligkeiten.

                                  iobroker-switch.sh 
                                  type '1.5' (latest) or '2.0' (from github)
                                  switch js-controller to: 2.0
                                  ioBroker is terminated ...
                                  Install js-controller 2.0.x ...
                                  
                                  > iobroker.js-controller@2.0.30 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                                  > node lib/preinstallCheck.js
                                  
                                  NPM version: 6.9.0
                                  
                                  > unix-dgram@2.0.2 install /opt/iobroker/node_modules/unix-dgram
                                  > node-gyp rebuild
                                  
                                  make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird betreten
                                    CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
                                  ../src/unix_dgram.cc: In function ‘void {anonymous}::OnRecv({anonymous}::SocketContext*)’:
                                  ../src/unix_dgram.cc:121:25: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                                                       argv);
                                                           ^
                                  In file included from ../src/unix_dgram.cc:5:0:
                                  ../../nan/nan.h:1024:46: note: declared here
                                     NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                                                                ^~~~~~~~~~~~
                                  ../src/unix_dgram.cc: In function ‘void {anonymous}::OnWritable({anonymous}::SocketContext*)’:
                                  ../src/unix_dgram.cc:129:28: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                                                       0, NULL);
                                                              ^
                                  In file included from ../src/unix_dgram.cc:5:0:
                                  ../../nan/nan.h:1024:46: note: declared here
                                     NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                                                                ^~~~~~~~~~~~
                                  ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Socket(Nan::NAN_METHOD_ARGS_TYPE)’:
                                  ../src/unix_dgram.cc:189:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     domain      = info[0]->Int32Value();
                                                                       ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here
                                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc:190:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     type        = info[1]->Int32Value();
                                                                       ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here
                                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc:191:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     protocol    = info[2]->Int32Value();
                                                                       ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here
                                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Bind(Nan::NAN_METHOD_ARGS_TYPE)’:
                                  ../src/unix_dgram.cc:230:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     fd = info[0]->Int32Value();
                                                              ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here
                                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc:231:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
                                     String::Utf8Value path(info[1]);
                                                                   ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2892:28: note: declared here
                                                     explicit Utf8Value(Local<v8::Value> obj));
                                                              ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::SendTo(Nan::NAN_METHOD_ARGS_TYPE)’:
                                  ../src/unix_dgram.cc:258:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     fd = info[0]->Int32Value();
                                                              ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here
                                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc:259:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     buf = info[1]->ToObject();
                                                             ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63:0,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:10046:15: note: declared here
                                   Local<Object> Value::ToObject() const {
                                                 ^~~~~
                                  ../src/unix_dgram.cc:260:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     offset = info[2]->Uint32Value();
                                                                   ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2477:47: note: declared here
                                     V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
                                                                                 ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc:261:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     length = info[3]->Uint32Value();
                                                                   ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2477:47: note: declared here
                                     V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
                                                                                 ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc:262:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
                                     String::Utf8Value path(info[4]);
                                                                   ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2892:28: note: declared here
                                                     explicit Utf8Value(Local<v8::Value> obj));
                                                              ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Send(Nan::NAN_METHOD_ARGS_TYPE)’:
                                  ../src/unix_dgram.cc:302:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     fd = info[0]->Int32Value();
                                                              ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here
                                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc:303:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     buf = info[1]->ToObject();
                                                             ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63:0,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:10046:15: note: declared here
                                   Local<Object> Value::ToObject() const {
                                                 ^~~~~
                                  ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Connect(Nan::NAN_METHOD_ARGS_TYPE)’:
                                  ../src/unix_dgram.cc:340:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     fd = info[0]->Int32Value();
                                                              ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here
                                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc:341:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
                                     String::Utf8Value path(info[1]);
                                                                   ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2892:28: note: declared here
                                                     explicit Utf8Value(Local<v8::Value> obj));
                                                              ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                  ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)’:
                                  ../src/unix_dgram.cc:361:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     fd = info[0]->Int32Value();
                                                              ^
                                  In file included from /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:26:0,
                                                   from /home/iobroker/.node-gyp/10.16.3/include/node/node.h:63,
                                                   from ../../nan/nan.h:54,
                                                   from ../src/unix_dgram.cc:5:
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here
                                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                                ^
                                  /home/iobroker/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                     declarator __attribute__((deprecated(message)))
                                     ^~~~~~~~~~
                                    SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
                                    COPY Release/unix_dgram.node
                                  make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird verlassen
                                  
                                  > iobroker.js-controller@2.0.30 install /opt/iobroker/node_modules/iobroker.js-controller
                                  > node iobroker.js setup first
                                  
                                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.1 (node_modules/fsevents):
                                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor):
                                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                                  
                                  + iobroker.js-controller@2.0.30
                                  updated 4 packages and audited 35156 packages in 96.546s
                                  found 52 vulnerabilities (40 low, 12 high)
                                    run `npm audit fix` to fix them, or `npm audit` for details
                                  ioBroker will be started ...
                                  Starting iobroker controller daemon...
                                  iobroker controller daemon started. PID: 20872
                                  ┬─[root@iobroker-master:/opt/iobroker]─[10:16:27]
                                  ╰─># 
                                  

                                  apollon77 1 Reply Last reply Reply Quote 0
                                  • D
                                    darkiop Most Active last edited by

                                    Zu deinen gewünschten Tests:

                                    Testfall 1:

                                    master + slave = alive
                                    master beenden
                                    nicht wieder starten

                                    Testfall 2:

                                    master + slave = alive
                                    master beenden
                                    20s warten
                                    wieder starten

                                    Testfall 3:

                                    master + slave = alive
                                    redis beenden
                                    nicht wieder starten

                                    Testfall 4:

                                    master + slave = alive
                                    redis beenden
                                    paar Sekunden warten
                                    redis starten
                                    prüfen ob States die innerhalb der 40s erzeugt werden nach dem starten von redis verfügbar sind

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      darkiop Most Active last edited by

                                      Testfall 1:

                                      iobroker-master um 10:26:02 beendet und nicht wieder gestartet, log auf slave. Nach ner gewissen Zeit beenden sich die Adapter und der controller lauert:

                                      2019-10-15 10:26:31.418  - error: host.iobroker-hwr connect ETIMEDOUT
                                      2019-10-15 10:26:31.415  - error: smartmeter.1 (641) connect ETIMEDOUT
                                      2019-10-15 10:26:31.416  - error: smartmeter.0 (626) connect ETIMEDOUT
                                      2019-10-15 10:26:43.421  - error: host.iobroker-hwr connect ETIMEDOUT
                                      2019-10-15 10:26:43.423  - error: smartmeter.1 (641) connect ETIMEDOUT
                                      2019-10-15 10:26:43.423  - error: smartmeter.0 (626) connect ETIMEDOUT
                                      2019-10-15 10:26:45.929  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:26:45.929  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:26:45.928  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:26:57.926  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:26:57.926  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:26:57.928  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:03.926  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:03.926  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:03.928  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:09.926  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:09.926  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:09.926  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:15.926  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:15.926  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:18.927  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:21.926  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:21.926  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:24.926  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:27.926  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:30.926  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:33.926  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:33.926  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:36.927  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:36.927  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:39.927  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:42.926  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:42.926  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:45.926  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:48.926  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:48.927  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:51.927  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:54.926  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:54.926  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:57.926  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:27:57.927  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:28:00.927  - error: smartmeter.1 (641) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:28:00.929  - error: smartmeter.0 (626) connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:28:03.430  - warn: host.iobroker-hwr Slave controller detected objects disconnection. Stop all instances.
                                      2019-10-15 10:28:03.435  - info: host.iobroker-hwr stopInstance system.adapter.smartmeter.0
                                      2019-10-15 10:28:03.436  - info: host.iobroker-hwr stopInstance forced system.adapter.smartmeter.0 killing pid 626
                                      2019-10-15 10:28:03.437  - info: host.iobroker-hwr stopInstance system.adapter.smartmeter.1
                                      2019-10-15 10:28:03.438  - info: host.iobroker-hwr stopInstance forced system.adapter.smartmeter.1 killing pid 641
                                      2019-10-15 10:28:03.926  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:28:06.927  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:28:09.927  - error: host.iobroker-hwr connect EHOSTUNREACH 192.168.1.82:9001
                                      2019-10-15 10:28:09.938  - error: host.iobroker-hwr Cannot find view "system" for search "instance" : Error: Connection is closed.
                                      2019-10-15 10:28:09.942  - info: host.iobroker-hwr instance system.adapter.smartmeter.1 terminated with code 156 (156)
                                      2019-10-15 10:28:09.943  - info: host.iobroker-hwr All instances are stopped.
                                      2019-10-15 10:28:09.944  - error: host.iobroker-hwr Cannot find view "system" for search "instance" : Error: Connection is closed.
                                      2019-10-15 10:28:09.945  - info: host.iobroker-hwr instance system.adapter.smartmeter.0 terminated with code 156 (156)
                                      2019-10-15 10:28:09.945  - info: host.iobroker-hwr All instances are stopped.
                                      2019-10-15 10:28:12.439  - warn: host.iobroker-hwr Slave controller detected objects disconnection. Stop all instances.
                                      2019-10-15 10:28:12.440  - info: host.iobroker-hwr stopInstance system.adapter.smartmeter.0
                                      2019-10-15 10:28:12.441  - info: host.iobroker-hwr stopInstance system.adapter.smartmeter.1
                                      2019-10-15 10:28:25.052  - info: host.iobroker-hwr iobroker _restart
                                      2019-10-15 10:28:25.602  - info: host.iobroker-hwr iobroker Starting node restart.js
                                      2019-10-15 10:28:27.058  - info: host.iobroker-hwr iobroker.js-controller version 2.0.30 js-controller starting
                                      2019-10-15 10:28:27.065  - info: host.iobroker-hwr Copyright (c) 2014-2019 bluefox, 2014 hobbyquaker
                                      2019-10-15 10:28:27.066  - info: host.iobroker-hwr hostname: iobroker-hwr, node: v10.16.3
                                      2019-10-15 10:28:27.068  - info: host.iobroker-hwr ip addresses: 10.3.1.22 fe80::561e:8619:1900:f27
                                      

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        darkiop Most Active last edited by

                                        Testfall 2:

                                        iobroker-master um 10:30:05 beendet und nach 20s wieder gestartet, log auf slave:

                                        --> Kein Log das die Verbindung wieder besteht. 10:32:37 wurde der iobroker-master wieder gestartet und war ein paar Sekunden später auch wieder Verbunden (--> ersichtlich im Admin).

                                        2019-10-15 10:30:01.626  - info: host.iobroker-hwr iobroker Starting node restart.js
                                        2019-10-15 10:30:03.055  - info: host.iobroker-hwr iobroker.js-controller version 2.0.30 js-controller starting
                                        2019-10-15 10:30:03.063  - info: host.iobroker-hwr Copyright (c) 2014-2019 bluefox, 2014 hobbyquaker
                                        2019-10-15 10:30:03.064  - info: host.iobroker-hwr hostname: iobroker-hwr, node: v10.16.3
                                        2019-10-15 10:30:03.065  - info: host.iobroker-hwr ip addresses: 10.3.1.22 fe80::561e:8619:1900:f27
                                        2019-10-15 10:30:20.413  - info: host.iobroker-hwr connected to Objects and States
                                        2019-10-15 10:30:20.684  - info: host.iobroker-hwr 87 instances found
                                        2019-10-15 10:30:20.709  - info: host.iobroker-hwr starting 2 instances
                                        2019-10-15 10:30:20.727  - info: host.iobroker-hwr instance system.adapter.smartmeter.0 started with pid 928
                                        2019-10-15 10:30:24.719  - info: host.iobroker-hwr instance system.adapter.smartmeter.1 started with pid 943
                                        2019-10-15 10:32:28.828  - error: host.iobroker-hwr connect ETIMEDOUT
                                        2019-10-15 10:32:28.833  - error: smartmeter.0 (928) connect ETIMEDOUT
                                        2019-10-15 10:32:28.838  - error: smartmeter.1 (943) connect ETIMEDOUT
                                        2019-10-15 10:32:40.833  - error: host.iobroker-hwr connect ETIMEDOUT
                                        2019-10-15 10:32:40.841  - error: smartmeter.0 (928) connect ETIMEDOUT
                                        2019-10-15 10:32:40.864  - error: smartmeter.1 (943) connect ETIMEDOUT
                                        2019-10-15 10:32:42.839  - error: host.iobroker-hwr connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:42.847  - error: smartmeter.0 (928) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:42.867  - error: smartmeter.1 (943) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:44.844  - error: host.iobroker-hwr connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:44.850  - error: smartmeter.0 (928) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:44.870  - error: smartmeter.1 (943) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:46.846  - error: host.iobroker-hwr connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:46.851  - error: smartmeter.0 (928) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:46.873  - error: smartmeter.1 (943) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:48.850  - error: host.iobroker-hwr connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:48.854  - error: smartmeter.0 (928) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:48.876  - error: smartmeter.1 (943) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:50.852  - error: host.iobroker-hwr connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:50.857  - error: smartmeter.0 (928) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:50.878  - error: smartmeter.1 (943) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:52.855  - error: host.iobroker-hwr connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:52.859  - error: smartmeter.0 (928) connect ECONNREFUSED 192.168.1.82:9001
                                        2019-10-15 10:32:52.881  - error: smartmeter.1 (943) connect ECONNREFUSED 192.168.1.82:9001
                                        

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          darkiop Most Active last edited by

                                          Testfall 3

                                          iobroker-redis um 10:45:13 Uhr beendet. Log Master.
                                          Einige Minuten später iobroker-redis wieder gestartet - der iobroker-master schafft es nicht wieder auf die Beine. Nach einem restart des Containers für den Master ist wieder alles verbunden.

                                          log_tf3.txt

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            darkiop Most Active last edited by darkiop

                                            Testfall 4

                                            ┬─[darkiop@odin:~]─[11:00:32]
                                            ╰─>$ docker stop iobroker-redis

                                            ┬─[darkiop@odin:~]─[11:02:15]
                                            ╰─>$ docker start iobroker-redis

                                            smartmeter.1 hat einen Wert von 2019-10-15 11:01:34.726 über sql.0 in die DB geschrieben!

                                            9d6934f0-bc1c-4b95-99fe-2c5f4222c80a-grafik.png

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            512
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller
                                            48
                                            1047
                                            253225
                                            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