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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    js-controller 3.0/3.1 jetzt im Latest!

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

      @Steff wie sieht das log jetzt aus

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

        @Steff Alao da ist irgend ein kleiner bug im javascript adapter und dann wird aber dein ganzes iobroker mit einem SIGTERM scheinbar vom Betriebssystem gekillt. Reboote mal bzw schau mal ob /var/log/syslog was hergibt

        Steff 1 Reply Last reply Reply Quote 0
        • Steff
          Steff @wendy2702 last edited by

          @wendy2702
          Hier mal ein Log vom Start und ein anschliessender Restart

          2020-05-10 11:35:32.142  - info: host.Smarthome "system.adapter.javascript.0" enabled
          2020-05-10 11:35:32.174  - info: host.Smarthome instance system.adapter.javascript.0 started with pid 20479
          2020-05-10 11:35:33.677  - info: javascript.0 (20479) starting. Version 4.5.1 in /opt/iobroker/node_modules/iobroker.javascript, node: v12.16.3, js-controller: 3.0.20
          2020-05-10 11:35:33.729  - info: javascript.0 (20479) requesting all states
          2020-05-10 11:35:33.730  - info: javascript.0 (20479) requesting all objects
          2020-05-10 11:35:34.699  - info: javascript.0 (20479) received all objects
          2020-05-10 11:35:34.833  - info: javascript.0 (20479) received all states
          2020-05-10 11:35:35.481  - error: javascript.0 (20479) uncaught exception: Cannot read property 'ts' of undefined
          2020-05-10 11:35:35.482  - error: javascript.0 (20479) TypeError: Cannot read property 'ts' of undefined
             at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:214:92)
             at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:207:22)
             at /opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:49:22
             at /opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:553:23
             at _0x30230c._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:116731)
             at processTicksAndRejections (internal/process/task_queues.js:97:5)
          2020-05-10 11:35:35.494  - info: javascript.0 (20479) terminating
          2020-05-10 11:35:35.495  - info: javascript.0 (20479) Terminated (NO_ERROR): Without reason
          2020-05-10 11:35:36.022  - error: host.Smarthome Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
          2020-05-10 11:35:36.023  - error: host.Smarthome Caught by controller[1]: TypeError: Cannot read property 'ts' of undefined
          2020-05-10 11:35:36.023  - error: host.Smarthome Caught by controller[1]:     at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:214:92)
          2020-05-10 11:35:36.023  - error: host.Smarthome Caught by controller[1]:     at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:207:22)
          2020-05-10 11:35:36.024  - error: host.Smarthome Caught by controller[1]:     at /opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:49:22
          2020-05-10 11:35:36.024  - error: host.Smarthome Caught by controller[1]:     at /opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:553:23
          2020-05-10 11:35:36.024  - error: host.Smarthome Caught by controller[1]:     at _0x30230c._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:116731)
          2020-05-10 11:35:36.024  - error: host.Smarthome Caught by controller[1]:     at processTicksAndRejections (internal/process/task_queues.js:97:5)
          2020-05-10 11:35:36.025  - info: host.Smarthome instance system.adapter.javascript.0 terminated with code 0 (NO_ERROR)
          2020-05-10 11:35:36.025  - info: host.Smarthome Restart adapter system.adapter.javascript.0 because enabled
          2020-05-10 11:36:06.053  - info: host.Smarthome instance system.adapter.javascript.0 started with pid 20503
          2020-05-10 11:36:07.714  - info: javascript.0 (20503) starting. Version 4.5.1 in /opt/iobroker/node_modules/iobroker.javascript, node: v12.16.3, js-controller: 3.0.20
          2020-05-10 11:36:07.766  - info: javascript.0 (20503) requesting all states
          2020-05-10 11:36:07.767  - info: javascript.0 (20503) requesting all objects
          2020-05-10 11:36:08.683  - info: javascript.0 (20503) received all objects
          2020-05-10 11:36:08.824  - info: javascript.0 (20503) received all states
          2020-05-10 11:36:09.468  - error: javascript.0 (20503) uncaught exception: Cannot read property 'ts' of undefined
          2020-05-10 11:36:09.469  - error: javascript.0 (20503) TypeError: Cannot read property 'ts' of undefined
             at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:214:92)
             at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:207:22)
             at /opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:49:22
             at /opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:553:23
             at _0x30230c._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:116731)
             at processTicksAndRejections (internal/process/task_queues.js:97:5)
          2020-05-10 11:36:09.477  - info: javascript.0 (20503) terminating
          2020-05-10 11:36:09.477  - info: javascript.0 (20503) Terminated (NO_ERROR): Without reason
          2020-05-10 11:36:10.010  - error: host.Smarthome Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
          2020-05-10 11:36:10.011  - error: host.Smarthome Caught by controller[1]: TypeError: Cannot read property 'ts' of undefined
          2020-05-10 11:36:10.011  - error: host.Smarthome Caught by controller[1]:     at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:214:92)
          2020-05-10 11:36:10.011  - error: host.Smarthome Caught by controller[1]:     at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:207:22)
          2020-05-10 11:36:10.012  - error: host.Smarthome Caught by controller[1]:     at /opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:49:22
          2020-05-10 11:36:10.012  - error: host.Smarthome Caught by controller[1]:     at /opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:553:23
          2020-05-10 11:36:10.012  - error: host.Smarthome Caught by controller[1]:     at _0x30230c._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:116731)
          2020-05-10 11:36:10.012  - error: host.Smarthome Caught by controller[1]:     at processTicksAndRejections (internal/process/task_queues.js:97:5)
          2020-05-10 11:36:10.013  - info: host.Smarthome instance system.adapter.javascript.0 terminated with code 0 (NO_ERROR)
          2020-05-10 11:36:10.013  - info: host.Smarthome Restart adapter system.adapter.javascript.0 because enabled
          2020-05-10 11:36:14.480  - info: host.Smarthome "system.adapter.javascript.0" disabled
          

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

            @apollon77
            Ja da steht ziemlich viel drinne, was soll ich hier posten?

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

              @Steff Bitte GitHub Issue zum javasctipt adapter anlegen und ggf erstmal das mirroring auschalten. Muss ich heute abend prüfen. Bzw welche javascript Version?

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

                @apollon77
                Mach ich gern, wie schalte ich das Mirroring aus und was ist das überhaupt??

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

                  @Steff In den Adapter-Einstellungen vom JavaScript Adapter ist eine EInstellung. Da gibst Du auch einen Pfad an ... Was hast Du da stehen?

                  Das Feature synct die Skripte als Datein ins Dateisystem das man sie mit einem anderen Editor ändern kann

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

                    @apollon77
                    Ach so, das hatte ich erst vor ca. 2 Wochen aktiviert, da gab es keine Probleme damit.
                    Ich habe da als Pfad das hier drin stehen --> /opt/iobroker/jscript/

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

                      @Steff Scheinbar gefällt Ihn irgendein Skript nicht. Aber das muss ich im Code suchen. Welche Javascript Version hast Du denn nun?

                      Steff 1 Reply Last reply Reply Quote 0
                      • M
                        Maverick78 @Jan1 last edited by Maverick78

                        @Jan1 Ich finde solche großkotzigen Bemerkungen echt daneben.
                        Ich habe mein Script gerade mit 3.0.20 und 3.1.3 überprüft und es läuft fehlerfrei, genau wie auch bei 2.2.9. Wenn es bei @TH-G mit 3.0.20 nicht läuft, liegt der verdacht nahe, das es sich hier um ein Problem mit 3.0.22 und seiner Node Version handelt. Meine Node Version ist 10.20.1

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

                          Hi All,

                          Version 3.1.4 vom js-controller der die oben genannten Fehler bzw "User undefined Meldungen" bei Nutzung von Binär-States ist auf dem Web ins Latest Repository. Sorry für die Umstände 😞

                          Ingo

                          S Feuersturm 2 Replies Last reply Reply Quote 0
                          • Steff
                            Steff @apollon77 last edited by

                            @apollon77
                            ich hatte vor dem Upgrade heute morgen den Controllere V3.0.20 und die JSE 4.5.1 drauf, und da bin ich dank meinem Backup wieder.

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

                              @Steff Hat er denn die Files bei Dir ins Filesystem gesynct? Hat das für alle geklappt? Aber ok, ich checke heute abend. An sich gab es da maximal Fixes und keine Änderungen in dem Sinne. Vllt hast Du ein altes Objekt was er nciht mag und bisher ignoriert hat oder so. ich checke mal. Bitte GitHub issue bei javascript mit dem Log.Danke!

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

                                @apollon77
                                Mache ich später bin gerade am schrittweise Auftstarten meiner Scripte

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

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

                                  @Steff .... erstmal das mirroring auschalten.

                                  Kurzer Zwischenstand, Mirroring ist aus JSController läuft wieder bin nun am Aufstarten meiner ganzen Scripte

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

                                    @Steff Also controller wieder auf 3.1.4? 🙂

                                    Steff BBTown 3 Replies Last reply Reply Quote 0
                                    • Steff
                                      Steff @apollon77 last edited by

                                      @apollon77
                                      Hmm...
                                      hab noch die Hosen voll 😊
                                      Mal schauen, vielleicht im Laufe der Woche

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

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

                                        Hi All,

                                        . Sorry für die Umstände 😞

                                        Ingo

                                        Mach Dir doch keinen Kopf.
                                        Ohne Dich würde die Hälfte aller Installationen schon lange gar nicht mehr laufen.
                                        Schön dass es Dich gibt !!!

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

                                          Hatte im javascript adapter auch die Skript Spiegelung aktiv und mit 3.0.20 gab es keine Probs, aber nach Update auf 3.1.4 startet der javascript adapter 4.5.1 ständig neu:

                                          javascript.0	2020-05-10 12:26:55.969	error	at process._tickCallback (internal/process/next_tick.js:68:7)
                                          javascript.0	2020-05-10 12:26:55.969	error	at _0x30230c._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:116731)
                                          javascript.0	2020-05-10 12:26:55.969	error	at adapter.getObjectView (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:553:23)
                                          javascript.0	2020-05-10 12:26:55.969	error	at scanDB.list (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:49:22)
                                          javascript.0	2020-05-10 12:26:55.969	error	at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:207:22)
                                          javascript.0	2020-05-10 12:26:55.969	error	at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:214:92)
                                          javascript.0	2020-05-10 12:26:55.969	error	(963768) TypeError: Cannot read property 'ts' of undefined
                                          javascript.0	2020-05-10 12:26:55.968	error	(963768) unhandled promise rejection: Cannot read property 'ts' of undefined
                                          Unhandled	2020-05-10 12:26:55.968	error	promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                          [...]
                                          host.BT3-PRO	2020-05-10 12:25:16.934	error	instance system.adapter.javascript.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                                          host.BT3-PRO	2020-05-10 12:25:16.933	error	Caught by controller[0]: at process._tickCallback (internal/process/next_tick.js:68:7)
                                          host.BT3-PRO	2020-05-10 12:25:16.933	error	Caught by controller[0]: at _0x30230c._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:116731)
                                          host.BT3-PRO	2020-05-10 12:25:16.933	error	Caught by controller[0]: at adapter.getObjectView (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:553:23)
                                          host.BT3-PRO	2020-05-10 12:25:16.933	error	Caught by controller[0]: at scanDB.list (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:49:22)
                                          host.BT3-PRO	2020-05-10 12:25:16.928	error	Caught by controller[0]: at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:207:22)
                                          host.BT3-PRO	2020-05-10 12:25:16.927	error	Caught by controller[0]: at Mirror.sync (/opt/iobroker/node_modules/iobroker.javascript/lib/mirror.js:214:92)
                                          host.BT3-PRO	2020-05-10 12:25:16.927	error	Caught by controller[0]: TypeError: Cannot read property 'ts' of undefined
                                          host.BT3-PRO	2020-05-10 12:25:16.926	error	Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejecte
                                          javascript.0	2020-05-10 12:25:15.492	info	(962631) terminating
                                          
                                          
                                          

                                          Nach Deaktivieren des Spiegelns in der Instanz, läuft es anscheinend.

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

                                            @apollon77, @Diginix
                                            Github Issue ist erstellt --> Github-Link

                                            @apollon77, @wendy2702: Danke Euch für die Hilfe!

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

                                            Support us

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

                                            939
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

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