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 @sven12 last edited by

      @sven12 Ok, dann bitte vorher die nroamellaufende shelly instanz stoppen und erst dann an der Kommandozeile ausführen. Doppelt laufen geht kaputt ggf

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

        @coyote Bitte sei mal etwas grösszügiger mit dem Anfang des Logs ... direkt da zu starten wo die Fehler kommen ist da nicht sehr hilfreich weil irgendwas muss die ja verursachen ... bedeutet: Bitte noch etwas Log von davor

        coyote 1 Reply Last reply Reply Quote 0
        • S
          sven12 @apollon77 last edited by

          @apollon77
          Wenn ich den Adapter im Admin gestoppt habe, kommt auf der Konsole das hier:

          iobroker@iobroker-host:/opt/iobroker$ node node_modules/iobroker.shelly/shelly.js --force --logs
          2019-10-04 20:45:07.776  - error: shelly.0 (20885) adapter disabled
          2019-10-04 20:45:07.779  - info: shelly.0 (20885) starting. Version 3.1.0 in /opt/iobroker/node_modules/iobroker.shelly, node: v8.16.1
          2019-10-04 20:45:07.841  - info: shelly.0 (20885) Stating Shelly adapter in CoAP modus.
          Exception: Error: addMembership EADDRINUSE/Error: addMembership EADDRINUSE
          2019-10-04 20:45:07.960  - error: shelly.0 (20885) Exception: Error: addMembership EADDRINUSE
          2019-10-04 20:45:07.961  - info: shelly.0 (20885) Closing Adapter
          
          
          apollon77 1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 @sven12 last edited by

            @sven12 Kann es sein das da irgendwie noch eine Instanz läuft? Schau al mit "ps auxww|grep shelly"

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

              @apollon77 sagte in [Aufruf] js-controller 2.0 Beta Test:

              ps auxww|grep shelly

              iobroker@iobroker-host:/opt/iobroker$ ps auxww|grep shelly
              iobroker 26889  0.0  0.0  12780   928 pts/3    S+   20:48   0:00 grep shelly
              iobroker@iobroker-host:/opt/iobroker$ node node_modules/iobroker.shelly/shelly.js --force --logs
              2019-10-04 20:48:48.376  - error: shelly.0 (27548) shelly.0 invalid process id scenario 25918 vs. 27548. Stopping
              
              
              
              apollon77 1 Reply Last reply Reply Quote 0
              • coyote
                coyote Most Active @apollon77 last edited by

                @apollon77 sorry, klar macht vllt mehr Sinn...

                Hier mal ab Start von iobroker bis Anfang der Warnings:

                Log.txt

                Übrigens habe ich noch ein kleines Problem, es gibt ein Unifi Script von liv-in-the-sky, dass schreibt ein html file nach /opt/iobroker/iobroker-data/files/iqontrol/htmlclients.html
                Die Datei ist auch definitiv dort vorhanden und wird auch stetig geändert, nur wird sie mir jetzt nach der Umstellung in iQontrol nicht mehr angezeigt und iQontrol sagt, nicht vorhanden.

                Muss in iQontrol der Pfad jetzt geändert werden oder woran kann das liegen?

                iqontrol.JPG

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

                  @sven12 Un dläuft auf dem Slave vllt noch ein Prozess?

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

                    @coyote Das bitte im iqontrol Thread besprechen. Userfiles wurden bei dem Adapter generell in einen andern Pfad verschoben. Und am Ende sind wir wieder bei "komische Wege an den unterstützten Standards vorbei ;-))

                    Das Skript sollte das mit "writeFile" korrekt im ioBroker-Storage ablegen und nicht an allem vorbei 😉 Aber wie gesagt: Thema am besten im iqontrol Thread besprechen

                    coyote 1 Reply Last reply Reply Quote 0
                    • S
                      sven12 @apollon77 last edited by

                      @apollon77
                      Nein auf beiden läuft kein Prozess mehr...

                      apollon77 1 Reply Last reply Reply Quote 0
                      • coyote
                        coyote Most Active @apollon77 last edited by

                        @apollon77 ok, dann werde ich das dort mal anschneiden.

                        Was ist mit den Warnings im Log? Ist da was zu erkennen warum die beim Start kamen? Oder einfach mal so lassen und sich freuen, dass jetzt alles läuft 😉

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

                          @coyote Wieviele Objekte/States hast Du? Siehst Du in ioBroker unter Tab "Objekte"

                          coyote 1 Reply Last reply Reply Quote 0
                          • coyote
                            coyote Most Active @apollon77 last edited by

                            @apollon77 sind ein paar 😉

                            Objekte: 44287, Zustände: 40604

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

                              @coyote Ok, I need to think about it ... I have a solution, but don't know if I want this ... https://github.com/ioBroker/ioBroker.js-controller/issues/487

                              Apollon77 created this issue in ioBroker/ioBroker.js-controller

                              closed Redis-LUA scripts need too long ... #487

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

                                @sven12 Sehr strange ... wenn Meldungen wie bei deinem manuellen Log kommen bzw "addrinuse" dann nutzt irgendwas den Port. Magst Du mal einen Reboot versuchen?

                                S 1 Reply Last reply Reply Quote 0
                                • coyote
                                  coyote Most Active @apollon77 last edited by

                                  @apollon77 alles klar, dann weiß ich Bescheid, sagen wir einfach ich habe zu viele States 😉

                                  sigi234 apollon77 2 Replies Last reply Reply Quote 0
                                  • S
                                    sven12 @apollon77 last edited by

                                    @apollon77 sagte in [Aufruf] js-controller 2.0 Beta Test:

                                    addrinuse

                                    Also das "addrinuse" kam ja nur weil die alte Instanz noch nicht sauber beendet war als ich die Instanz neu gestartet habe.
                                    Ich glaube das kann ich mittlerweile ausschließen. Habe einfach zu schnell den Adapter neu gestartet
                                    Die letzten Logs haben das ja auch nicht mehr angezeigt.... Ich glaube das ist nicht das Problem..
                                    Reboot geht heute nicht mehr.. Morgen evtl.

                                    1 Reply Last reply Reply Quote 0
                                    • sigi234
                                      sigi234 Forum Testing Most Active @coyote last edited by

                                      @coyote sagte in [Aufruf] js-controller 2.0 Beta Test:

                                      sagen wir einfach ich habe zu viele States

                                      Sind nicht wenige. Ich habe 18500 😀

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

                                        @coyote neee passt schon. Das ist Realität 🙂 Das könnte aktuell bei einem neustart oder neustart des sourceanalytics passieren bei dir, aber ich kläre es und wir finden eine Lösung.

                                        coyote 1 Reply Last reply Reply Quote 0
                                        • coyote
                                          coyote Most Active @apollon77 last edited by

                                          @apollon77 OK. Ist halt über die Jahre bisschen was zusammen gekommen, aber genau dieses Zusammenspiel der verschiedenen Komponenten macht ioBroker ja so interessant 😀 👍

                                          1 Reply Last reply Reply Quote 0
                                          • Stuebi
                                            Stuebi @Stuebi last edited by Stuebi

                                            @Stuebi sagte in [Aufruf] js-controller 2.0 Beta Test:

                                            Ich habe eben das update auf den js-controller 2.0 Beta auf meinem Entwicklerrechner (macbook, nodejs 10) durchgeführt. Seit dem wird im Visual Studio Code (VSC) kein Logging im Debug Modus angezeigt. Jemand eine Idee was ich dort ändern muss.
                                            ....

                                            VG
                                            Stübi

                                            Ich habe jetzt eine Lösung gefunden damit das Logfile im Debugging Modus im Visual Studio Code (VSC) bei dem js-controller >= 2 wieder angezeigt wird. In der launch.json im .vscode Verzeichnis ist der Eintrag "outputCapture": "std" hinzuzufügen. Damit wird über STDOUT im Terminal des VSC angezeigt. Die Args sind

                                            Beispiel:

                                            {
                                                "configurations": [
                                                    {
                                                        "type": "node",
                                                        "request": "launch",
                                                        "name": "Programm starten",
                                                        "program": "${workspaceFolder}/shelly.js",
                                                        "cwd": "${workspaceRoot}",
                                                        "args": [
                                                            "--debug", "--force", "--logs", "--trace-warnings"
                                                        ],
                                                        "outputCapture": "std"
                                                    }
                                                ]
                                            }
                                            

                                            Debugging Output:
                                            vsc_debuger_20.png

                                            VG
                                            Stübi

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            742
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

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