Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Javascript-Adapter stürzt immer ab (restart loop detected)

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Javascript-Adapter stürzt immer ab (restart loop detected)

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Steve 1 @haus-automatisierung last edited by

      @haus-automatisierung said in Javascript-Adapter stürzt immer ab (restart loop detected):

      @steve-1 sagte in Javascript-Adapter stürzt immer ab (restart loop detected):

      Welche Version würdest du mir empfehlen?

      Die aktuelle Beta 8.3.1 - habe ich heute zur Freigabe als Stable eingereicht:

      https://github.com/ioBroker/ioBroker.repositories/pull/3657

      Vielen Dank, hab meinen Adapter auf 8.3.1 aktualisiert und den Haken bei -Erstelle Zustände für alle Astrozeiten- wieder gesetzt. Läuft alles wieder super!!

      klein0r created this issue in ioBroker/ioBroker.repositories

      closed Update javascript to 8.3.1 #3657

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Steve 1 last edited by

        @steve-1 sagte: Haken bei -Erstelle Zustände für alle Astrozeiten- wieder gesetzt.

        Die Fehlermeldung wird erst in der nächsten Version nicht mehr erscheinen. In Version 8.3.1 kommt sie noch beim Start der Javascript-Instanz.

        haus-automatisierung 1 Reply Last reply Reply Quote 0
        • haus-automatisierung
          haus-automatisierung Developer Most Active @paul53 last edited by

          @paul53 sagte in Javascript-Adapter stürzt immer ab (restart loop detected):

          In Version 8.3.1 kommt sie noch beim Start der Javascript-Instanz.

          Führt aber nicht mehr zum Crash der Instanz - nur Fehler im Log.

          1 Reply Last reply Reply Quote 0
          • H
            HackyPaddy last edited by HackyPaddy

            @haus-automatisierung

            Leider crasht der Adapter unter 8.3.1 immer noch.
            Und zwar dann, wenn ein Script einer dieser beiden Punkte nutzt (night / night end) oder man im Blockly oben die Astrozeiten / Astronomische Ereignisse aufruft.

            -> Crash

            haus-automatisierung 1 Reply Last reply Reply Quote 0
            • haus-automatisierung
              haus-automatisierung Developer Most Active @HackyPaddy last edited by

              @hackypaddy sagte in Javascript-Adapter stürzt immer ab (restart loop detected):

              Leider crasht der Adapter unter 8.3.1 immer noch.

              Log + Script bitte

              H 1 Reply Last reply Reply Quote 0
              • H
                HackyPaddy @haus-automatisierung last edited by

                @haus-automatisierung

                Kann Dir erstmal nur das Log schicken, wenn man die astronomischen Ereignisse im Blockly aufruft:

                
                javascript.0
                2024-05-24 11:14:32.717	error	[sunTimeSchedules] Unable to set state for astro time "night"
                
                javascript.0
                2024-05-24 11:14:32.714	error	[sunTimeSchedules] Unable to set state for astro time "nightEnd"
                
                javascript.0
                2024-05-24 11:13:53.510	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                
                javascript.0
                2024-05-24 11:13:53.453	error	Invalid time value
                
                javascript.0
                2024-05-24 11:13:53.453	error	RangeError: Invalid time value at Date.toISOString (<anonymous>) at /opt/iobroker/node_modules/iobroker.javascript/main.js:817:145 at Array.forEach (<anonymous>) at Object.message (/opt/iobroker/node_modules/iobroker.javascript/main.js:817:34) at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8431:47) at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/db-states-redis/build/lib/states/statesInRedisClient.js:270:37) at process.processImmediate (node:internal/timers:476:21)
                
                javascript.0
                2024-05-24 11:13:53.453	error	unhandled promise rejection: Invalid time value
                
                javascript.0
                2024-05-24 11:13:53.452	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                
                javascript.0
                2024-05-24 11:02:28.728	error	[sunTimeSchedules] Unable to set state for astro time "night"
                
                javascript.0
                2024-05-24 11:02:28.725	error	[sunTimeSchedules] Unable to set state for astro time "nightEnd"
                

                Das mit dem Script reiche ich heute Abend nach, wenn ich zuhause bin.

                haus-automatisierung 1 Reply Last reply Reply Quote 0
                • haus-automatisierung
                  haus-automatisierung Developer Most Active @HackyPaddy last edited by

                  @hackypaddy sagte in Javascript-Adapter stürzt immer ab (restart loop detected):

                  wenn man die astronomischen Ereignisse im Blockly aufruft:

                  Danke! Weiß schon wo das Problem ist.

                  1 Reply Last reply Reply Quote 0
                  • H
                    HackyPaddy last edited by

                    @haus-automatisierung

                    DIe Instanz crasht nicht, wenn ein Script einer der beiden Bedinungen hat. Das hatte ich verwechselt.

                    Das Script wird aber nicht mehr ausgeführt. Da muss ich wohl etwas umbauen.

                    Kannst Du da in Zukunft sonst was einbauen, das Astroblock etwas vordefiniertes macht, wenn eine Zeit nicht verfügbar ist?

                    haus-automatisierung 1 Reply Last reply Reply Quote 0
                    • haus-automatisierung
                      haus-automatisierung Developer Most Active @HackyPaddy last edited by

                      @hackypaddy sagte in Javascript-Adapter stürzt immer ab (restart loop detected):

                      Kannst Du da in Zukunft sonst was einbauen, das Astroblock etwas vordefiniertes macht, wenn eine Zeit nicht verfügbar ist?

                      Was soll er denn dann machen? Eine Zeit raten? 🙂 Aber zumindest eine Info dass nix passieren wird wäre ja schon hilfreich, oder?

                      H paul53 2 Replies Last reply Reply Quote 0
                      • H
                        HackyPaddy @haus-automatisierung last edited by

                        @haus-automatisierung

                        Die Sterne vom Himmel holen, das soll er 😆

                        Ne, einfach ne Info bzw. für mich wäre ne telegramm nachricht dann nicht schlecht. Dann weiß man, dass es nicht klappt.

                        Wie ein "Sonst-Block" halt...

                        1 Reply Last reply Reply Quote 1
                        • paul53
                          paul53 @haus-automatisierung last edited by

                          @haus-automatisierung: Eine Zeit raten?

                          Man könnte z.B. "night" und "nightEnd" auf die Uhrzeit von "nadir" setzen.

                          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

                          1.0k
                          Online

                          31.7k
                          Users

                          79.8k
                          Topics

                          1.3m
                          Posts

                          7
                          29
                          1627
                          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