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.0/3.1 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.0/3.1 jetzt im Latest!

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

      @knopers1 rflink 2.1.4 sollte das gefixt haben

      K 1 Reply Last reply Reply Quote 0
      • Thisoft
        Thisoft last edited by

        Hallo,

        ich bekomme aktuell nach dem Update auf Node 12 und js-controller 3.0.20 folgenden Fehler vom SQL-Adapter:

        sql.0
        2020-05-03 04:26:14.114
        error
        (7144) ConnectionError: Failed to connect to 192.168.137.xxx:1433 - Cannot call write after a stream was destroyed
        

        was kann ich denn dagegen tun?

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

          @apollon77 said in js-controller 3.0 jetzt im Latest!:

          @knopers1 rflink 2.1.4 sollte das gefixt haben

          ja, 2.1.4 läuft wieder :). Besten Dank. Meine Anerkennung apollon77. "Du hast es drauf"

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

            @Thisoft nur Update von dem genannten oder auch von sql? Welche sql Version?

            Wann kommt der Fehler?

            Bissl mehr context und log wäre schön.

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

              @apollon77 Sorry, war schon spät 😉 Also, ich hab zuerst von nodejs 8.x auf 12.16.3 updatet. Danach:

              npm rebuild
              

              was mir mit der folgenden Ausgabe antwortet:

              @types/node@12.7.1 /home/iobroker/node_modules/@types/node
              

              das kommt mir schonmal komisch vor...?

              Dann reboot, danach "iobroker" update und "iobroker upgrade self"
              Danach den Installationsfixer drüber laufen lassen. Der hat alles ohne Fehlermeldung ausgeführt.
              Danach alle Adapter die zum Update anstanden über die Adminoberfläche updatet, u.a. auch den SQL-Adapter auf 1.12.3

              Ja, und das wäre jetzt ertstmal der Stand. Hier nochmal ein Log vom SQL-Adapter mit Debug-Logging:

              2020-05-03 11:11:57.617  - info: host.ioBroker-Ubuntu Restart adapter system.adapter.sql.0 because enabled
              2020-05-03 11:11:58.636  - info: host.ioBroker-Ubuntu instance system.adapter.sql.0 started with pid 5436
              2020-05-03 11:11:58.915  - debug: sql.0 (5436) Redis Objects: Use Redis connection: 0.0.0.0:9001
              2020-05-03 11:11:58.933  - debug: sql.0 (5436) Objects client ready ... initialize now
              2020-05-03 11:11:58.935  - debug: sql.0 (5436) Objects create System PubSub Client
              2020-05-03 11:11:58.935  - debug: sql.0 (5436) Objects create User PubSub Client
              2020-05-03 11:11:58.936  - debug: sql.0 (5436) Objects client initialize lua scripts
              2020-05-03 11:11:58.946  - debug: sql.0 (5436) Objects connected to redis: 0.0.0.0:9001
              2020-05-03 11:11:58.948  - debug: sql.0 (5436) objectDB connected
              2020-05-03 11:11:58.948  - debug: sql.0 (5436) Redis States: Use Redis connection: 0.0.0.0:9000
              2020-05-03 11:11:58.952  - debug: sql.0 (5436) States create User PubSub Client
              2020-05-03 11:11:58.953  - debug: sql.0 (5436) States create System PubSub Client
              2020-05-03 11:11:58.957  - debug: sql.0 (5436) States connected to redis: 0.0.0.0:9000
              2020-05-03 11:11:58.958  - debug: sql.0 (5436) statesDB connected
              2020-05-03 11:11:59.755  - debug: sql.0 (5436) Plugin sentry Initialize Plugin (enabled=true)
              2020-05-03 11:11:59.801  - info: sql.0 (5436) starting. Version 1.12.3 in /opt/iobroker/node_modules/iobroker.sql, node: v12.16.3, js-controller: 3.0.20
              2020-05-03 11:12:00.024  - info: host.ioBroker-Ubuntu instance system.adapter.weatherunderground.0 started with pid 5452
              2020-05-03 11:12:00.072  - debug: sql.0 (5436) system.adapter.admin.0: logging true
              2020-05-03 11:12:00.091  - error: sql.0 (5436) ConnectionError: Failed to connect to 192.168.137.13:1433 - Cannot call write after a stream was destroyed
              

              Hilft das weiter?

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

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

                • Der neue js-controller kann erkennen wenn es ein Node.js Update gab durch welches ggf, Adapter nicht mehr funktionieren und sollte diese automatisch reparieren (rebuilden). Wer also überlegt in dem Zuge des Tests seine Node.js Version anzuheben bitte mal explizit NICHT die übliche Anleitung nach dem Node-js update mit dem Rebuild befolgen sondern ioBroker einfach nach dem Node.js Update starten. Interessant ist ob sich alles selbst "heilt" 🙂
                  ....

                Update wie beschrieben durchgeführt, Zigbee war veraltet beim ersten "Trying to rebuild it..." kein Erfolg danach kam dann ein zweiter Versuch welcher den Zigbee-Adapter wieder reparieren konnte.

                Bis jetzt bei mir keine Probleme Top wie immer

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

                  @Thisoft ip ist korrekt? Port auch? Es sieht so aus als ob die dB Verbindung geschlossen wird. Sagt das logfile der Datenbank irgendwas?

                  Downgrade gern mal auf sql 1.9.x und schau was da passiert. Würde mich aber wundern wenn es da tut.

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

                    @Peoples Jupp. So soll es quasi sein.

                    liv-in-sky 1 Reply Last reply Reply Quote 0
                    • Thisoft
                      Thisoft @apollon77 last edited by

                      @apollon77 Auch wenn Du's nicht erwartest, aber die Version 1.9.5 funktioniert. Was mir dabei allerdings auffällt, er führt beim Starten automatisch ein Rebuild aus:

                      2020-05-03 11:34:26.099 - info: host.ioBroker-Ubuntu Adapter system.adapter.sql.0 needs rebuild and will be restarted afterwards.
                      2020-05-03 11:34:26.099 - info: host.ioBroker-Ubuntu system.adapter.sql.0 will be rebuilt
                      2020-05-03 11:34:26.099 - warn: host.ioBroker-Ubuntu adapter "sql" seems to be installed for a different version of Node.js. Trying to rebuild it... 2 attempt
                      2020-05-03 11:34:26.100 - info: host.ioBroker-Ubuntu iobroker rebuild sql --install
                      2020-05-03 11:34:26.240 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: npm install --loglevel error --production (System call) in "/opt/iobroker/node_modules/iobroker.sql"
                      2020-05-03 11:34:40.150 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: ../deps/libmagic/src/fsmagic.c: In function ‘file_fsmagic’:../deps/libmagic/src/fsmagic.c:223:13: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . COMMA, (long)major(sb->st_rdev), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libmagic/src/fsmagic.c:224:13: warning: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . (long)minor(sb->st_rdev)) == -1) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libmagic/src/fsmagic.c:258:13: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . COMMA, (long)major(sb->st_rdev), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libmagic/src/fsmagic.c:259:13: warning: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . (long)minor(sb->st_rdev)) == -1) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 
                      2020-05-03 11:34:45.056 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: 
                      2020-05-03 11:34:45.057 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: Rebuild sql done
                      2020-05-03 11:34:46.060 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: exit 0
                      2020-05-03 11:34:46.082 - info: host.ioBroker-Ubuntu instance system.adapter.sql.0 started with pid 7239
                      

                      Wenn ich wieder auf die 1.12 gehe macht er das nicht - und es funktioniert eben auch nicht...

                      Übrigens, ich hab einen MS-SQLServer im Einsatz. Ist der vielleicht zu selten um genug getestet zu sein 😉 ?

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

                        @apollon77 Würde ich natürlich machen, aber ich stehe mit dem VIS auf Kriegsfuß und blicke bis heute bei dem Tool nicht durch. Ich habe über die Zeit vermutlich irgendwo in den Verzeichnissen herumgefummelt und ich würde nicht ausschließen, dass ich da Mist gebaut habe und dass die Warnings drauf zurückzuführen sind.

                        1 Reply Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @apollon77 last edited by

                          @apollon77

                          vis alleine ist das nicht

                          habe auch von sayit meldungen - leider weiß ich nicht mehr, wo diese dateien herkommen (ob das standard dateien sind oder ob ich kopiert habe) - sayit habe ich schon ewig nicht mehr angesehen - die dateien liegen unter
                          Image 4.png

                          readFile	2020-05-03 16:03:35.104	warn	will not read this file (tts.userfiles/gong.mp3) in future versions: sayit.0 is not an object of type "meta"
                          sayit.0	2020-05-03 16:03:35.103	warn	(423) readFile will not read this file (tts.userfiles/gong.mp3) in future versions: sayit.0 is not an object of type "meta"
                          readFile	2020-05-03 16:03:35.100	warn	will not read this file (tts.userfiles/scifi.mp3) in future versions: sayit.0 is not an object of type "meta"
                          sayit.0	2020-05-03 16:03:35.064	warn	(423) readFile will not read this file (tts.userfiles/scifi.mp3) in future versions: sayit.0 is not an object of type "meta"
                          

                          muss bei jedem adapter ein git issue angelegt werden ?

                          crunchip apollon77 2 Replies Last reply Reply Quote 0
                          • crunchip
                            crunchip Forum Testing Most Active @liv-in-sky last edited by

                            @liv-in-sky hehe, ich schon wieder
                            scheinbar standard Dateien, die habe ich auch, habe sie auch bereits gelöscht und werden wieder angelegt

                            liv-in-sky 1 Reply Last reply Reply Quote 0
                            • liv-in-sky
                              liv-in-sky @crunchip last edited by

                              @crunchip bekommst du die warnungen auch im log ?

                              crunchip 1 Reply Last reply Reply Quote 0
                              • crunchip
                                crunchip Forum Testing Most Active @liv-in-sky last edited by

                                @liv-in-sky ja

                                liv-in-sky 1 Reply Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @crunchip last edited by

                                  @crunchip diese files finde ich wenigstens - die anderen von weiter oben finde ich nicht mal - da scheint tatsächlich irgendwo in der vis noch etwas altes zu stehen ???

                                  crunchip apollon77 2 Replies Last reply Reply Quote 0
                                  • crunchip
                                    crunchip Forum Testing Most Active @liv-in-sky last edited by

                                    @liv-in-sky welche meinst du?

                                    liv-in-sky 1 Reply Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @crunchip last edited by liv-in-sky

                                      @crunchip

                                      https://forum.iobroker.net/post/424007

                                      crunchip 1 Reply Last reply Reply Quote 0
                                      • crunchip
                                        crunchip Forum Testing Most Active @liv-in-sky last edited by crunchip

                                        @liv-in-sky hat ich doch direkt ein post darunter geschrieben,
                                        ah...editiert, ...
                                        dazu hab ich leider keine Idee

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          e-i-k-e last edited by e-i-k-e

                                          Moin,
                                          js.controller läuft auf 3.0.20.
                                          Habe soeben ein update von node.js 10 auf 12 gewagt.

                                          Bis auf einen Adapter läuft alles.
                                          Der SQL-Adapter (Version 1.12.3) steht auf Gelb.
                                          Auszug aus dem log.

                                          sql.0	2020-05-03 14:39:38.818	error	(12037) TypeError: Cannot read property 'close' of undefined
                                          sql.0	2020-05-03 14:39:38.818	error	(12037) TypeError: Cannot read property 'close' of undefined
                                          sql.0	2020-05-03 16:39:38.818	error	(12037) TypeError: Cannot read property 'close' of undefined
                                          sql.0	2020-05-03 16:37:38.810	error	(12037) TypeError: Cannot read property 'close' of undefined
                                          sql.0	2020-05-03 16:37:38.809	error	(12037) Selected SQL DB was not installed properly: "sqlite". SQLite requires build tools on system. See README.md
                                          sql.0	2020-05-03 16:37:08.808	error	(12037) TypeError: Cannot read property 'close' of undefined
                                          sql.0	2020-05-03 16:37:08.807	error	(12037) Selected SQL DB was not installed properly: "sqlite". SQLite requires build tools on system. See README.md
                                          

                                          Auch nach einem Downgrade auf 1.9.5 läuft der Adapter nicht.

                                          sql.0	2020-05-03 15:13:43.535	error	(5376) TypeError: Cannot read property 'borrow' of undefined
                                          sql.0	2020-05-03 15:13:43.534	error	(5376) Selected SQL DB was not installed properly: "sqlite". SQLite requires build tools on system. See README.md
                                          sql.0	2020-05-03 15:13:43.498	info	(5376) starting. Version 1.9.5 in /opt/iobroker/node_modules/iobroker.sql, node: v12.16.3, js-controller: 3.0.20
                                          

                                          Gibt es dazu Lösungen?

                                          Edit: SQL wurde soeben grün. Habe iobroker rebuild sql --install ausgeführt. iobroker rebuild sql brachte keine Besserung.
                                          Nachdem ich wieder auf die aktuelle Version 1.12.3 gesprungen bin, war der Adapter wieder gelb. Ein erneutes iobroker rebuild sql --install konnte den Fehler beheben.

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

                                            @Thisoft vor allem der Mssql war in 1.11 kaputt und haben wir mit einigen Usern im Forum getestet. Daher sollte an sich tun.

                                            Ich schaue nochmal heute Abend. Bitte mach nochmal die 1.12 und Starterin debug und zeig mal das log davon bitte.

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

                                            Support us

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

                                            943
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller
                                            127
                                            1340
                                            425118
                                            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