Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Shelly Adapter: RangeError

    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

    SOLVED Shelly Adapter: RangeError

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Baki074 last edited by

      @haselchen said in Shelly Adapter: RangeError:

      Gib ruhig Feedback wenn Du mehr weisst.

      Sieht nicht gut aus. Adapter startet nun wesentlich öfter neu.
      Nodejs upzudaten ist relativ aufwendig und nicht ganz ohne Risiko wenn ich mich an folgender Anleitung orientiere: https://forum.iobroker.net/topic/22867/how-to-node-js-für-iobroker-richtig-updaten

      Gibt es evtl. eine andere Möglichkeit die ich probieren könnte?

      shelly.0	2020-03-28 13:58:03.632	info	(1317) Shelly device 192.168.178.52 (shellyswitch25 / shellyswitch25-F380FA / SHSW-25#F380FA#1) with CoAP connected!
      shelly.0	2020-03-28 13:58:02.646	info	(1317) Shelly device 192.168.178.43 (shellyswitch25 / shellyswitch25-10C21B / SHSW-25#10C21B#1) with CoAP connected!
      shelly.0	2020-03-28 13:58:01.977	info	(1317) Shelly device 192.168.178.49 (shelly1 / shelly1-F42B0C / SHSW-1#F42B0C#1) with CoAP connected!
      shelly.0	2020-03-28 13:58:00.062	info	(1317) Shelly device 192.168.178.50 (shelly1 / shelly1-98F4ABF24F1E / SHSW-1#98F4ABF24F1E#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:59.116	info	(1317) Shelly device 192.168.178.58 (shelly1 / shelly1-98F4ABF3CB7F / SHSW-1#98F4ABF3CB7F#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:58.836	info	(1317) Shelly device 192.168.178.44 (shellyswitch25 / shellyswitch25-F36E41 / SHSW-25#F36E41#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:58.816	info	(1317) Shelly device 192.168.178.47 (shelly1pm / shelly1pm-C4AC19 / SHSW-PM#C4AC19#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:57.179	info	(1317) Shelly device 192.168.178.21 (shelly1pm / shelly1pm-C4A636 / SHSW-PM#C4A636#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:57.113	info	(1317) Shelly device 192.168.178.55 (shellyswitch25 / shellyswitch25-10BA6F / SHSW-25#10BA6F#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:56.169	info	(1317) Shelly device 192.168.178.53 (shellyswitch25 / shellyswitch25-F3FFA9 / SHSW-25#F3FFA9#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:54.026	info	(1317) Shelly device 192.168.178.45 (shelly1pm / shelly1pm-C4AA63 / SHSW-PM#C4AA63#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:54.015	info	(1317) Shelly device 192.168.178.54 (shellyswitch25 / shellyswitch25-F40ED7 / SHSW-25#F40ED7#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:53.177	info	(1317) Shelly device 192.168.178.40 (shellyswitch25 / shellyswitch25-10C294 / SHSW-25#10C294#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:52.680	info	(1317) Shelly device 192.168.178.51 (shellyswitch25 / shellyswitch25-110B3F / SHSW-25#110B3F#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:51.765	info	(1317) Shelly device 192.168.178.37 (shellyswitch25 / shellyswitch25-73FF32 / SHSW-25#73FF32#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:51.745	info	(1317) Shelly device 192.168.178.56 (shelly1 / shelly1-98F4ABF295EB / SHSW-1#98F4ABF295EB#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:51.147	info	(1317) Shelly device 192.168.178.42 (shellyswitch25 / shellyswitch25-F37908 / SHSW-25#F37908#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:49.494	info	(1317) Shelly device 192.168.178.57 (shelly1 / shelly1-98F4ABF286DB / SHSW-1#98F4ABF286DB#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:49.208	info	(1317) Shelly device 192.168.178.48 (shelly1pm / shelly1pm-C4B07F / SHSW-PM#C4B07F#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:48.903	info	(1317) Shelly device 192.168.178.59 (shelly1pm / shelly1pm-C4A798 / SHSW-PM#C4A798#1) with CoAP connected!
      shelly.0	2020-03-28 13:57:48.794	info	(1317) Listening for Shelly packets in the network
      shelly.0	2020-03-28 13:57:48.717	info	(1317) Starting Shelly adapter in CoAP modus.
      shelly.0	2020-03-28 13:57:48.666	info	(1317) starting. Version 3.2.3 in /opt/iobroker/node_modules/iobroker.shelly, node: v10.18.0
      host.phoscon-iob	2020-03-28 13:57:46.289	info	instance system.adapter.shelly.0 started with pid 1317
      host.phoscon-iob	2020-03-28 13:57:16.273	info	Restart adapter system.adapter.shelly.0 because enabled
      host.phoscon-iob	2020-03-28 13:57:16.272	info	instance system.adapter.shelly.0 terminated with code 0 (NO_ERROR)
      shelly.0	2020-03-28 13:57:16.222	error	(20896) Exception: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to write outside buffer bounds
      shelly.0	2020-03-28 13:38:46.698	info	(20896) Shelly device 192.168.178.52 (shellyswitch25 / shellyswitch25-F380FA / SHSW-25#F380FA#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:45.671	info	(20896) Shelly device 192.168.178.43 (shellyswitch25 / shellyswitch25-10C21B / SHSW-25#10C21B#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:45.567	info	(20896) Shelly device 192.168.178.57 (shelly1 / shelly1-98F4ABF286DB / SHSW-1#98F4ABF286DB#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:43.127	info	(20896) Shelly device 192.168.178.47 (shelly1pm / shelly1pm-C4AC19 / SHSW-PM#C4AC19#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:43.112	info	(20896) Shelly device 192.168.178.49 (shelly1 / shelly1-F42B0C / SHSW-1#F42B0C#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:41.814	info	(20896) Shelly device 192.168.178.44 (shellyswitch25 / shellyswitch25-F36E41 / SHSW-25#F36E41#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:41.718	info	(20896) Shelly device 192.168.178.55 (shellyswitch25 / shellyswitch25-10BA6F / SHSW-25#10BA6F#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:41.265	info	(20896) Shelly device 192.168.178.21 (shelly1pm / shelly1pm-C4A636 / SHSW-PM#C4A636#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:40.759	info	(20896) Shelly device 192.168.178.50 (shelly1 / shelly1-98F4ABF24F1E / SHSW-1#98F4ABF24F1E#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:39.729	info	(20896) Shelly device 192.168.178.58 (shelly1 / shelly1-98F4ABF3CB7F / SHSW-1#98F4ABF3CB7F#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:38.410	info	(20896) Shelly device 192.168.178.45 (shelly1pm / shelly1pm-C4AA63 / SHSW-PM#C4AA63#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:37.857	info	(20896) Shelly device 192.168.178.53 (shellyswitch25 / shellyswitch25-F3FFA9 / SHSW-25#F3FFA9#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:37.274	info	(20896) Shelly device 192.168.178.54 (shellyswitch25 / shellyswitch25-F40ED7 / SHSW-25#F40ED7#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:36.357	info	(20896) Shelly device 192.168.178.40 (shellyswitch25 / shellyswitch25-10C294 / SHSW-25#10C294#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:35.752	info	(20896) Shelly device 192.168.178.51 (shellyswitch25 / shellyswitch25-110B3F / SHSW-25#110B3F#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:34.842	info	(20896) Shelly device 192.168.178.37 (shellyswitch25 / shellyswitch25-73FF32 / SHSW-25#73FF32#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:34.418	info	(20896) Shelly device 192.168.178.42 (shellyswitch25 / shellyswitch25-F37908 / SHSW-25#F37908#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:33.490	info	(20896) Shelly device 192.168.178.48 (shelly1pm / shelly1pm-C4B07F / SHSW-PM#C4B07F#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:33.185	info	(20896) Shelly device 192.168.178.59 (shelly1pm / shelly1pm-C4A798 / SHSW-PM#C4A798#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:32.689	info	(20896) Shelly device 192.168.178.56 (shelly1 / shelly1-98F4ABF295EB / SHSW-1#98F4ABF295EB#1) with CoAP connected!
      shelly.0	2020-03-28 13:38:32.129	info	(20896) Listening for Shelly packets in the network
      shelly.0	2020-03-28 13:38:32.008	info	(20896) Starting Shelly adapter in CoAP modus.
      shelly.0	2020-03-28 13:38:31.944	info	(20896) starting. Version 3.2.3 in /opt/iobroker/node_modules/iobroker.shelly, node: v10.18.0
      host.phoscon-iob	2020-03-28 13:38:29.774	info	instance system.adapter.shelly.0 started with pid 20896
      host.phoscon-iob	2020-03-28 13:37:59.747	info	Restart adapter system.adapter.shelly.0 because enabled
      host.phoscon-iob	2020-03-28 13:37:59.746	info	instance system.adapter.shelly.0 terminated with code 0 (NO_ERROR)
      shelly.0	2020-03-28 13:37:59.701	error	(14216) Exception: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to write outside buffer bounds
      
      haselchen 1 Reply Last reply Reply Quote 0
      • haselchen
        haselchen Most Active @Baki074 last edited by haselchen

        @Baki074

        Also Nodejs updaten ist keine große Sache.

        B 1 Reply Last reply Reply Quote 0
        • B
          Baki074 @haselchen last edited by

          @haselchen said in Shelly Adapter: RangeError:

          Also Nodejs updaten ist keine große Sache.

          Für dich vielleicht ^^

          Wie kann ich beispielsweise genau die Version 10.19 installieren?
          Kann ich dabei im folgendem Code das x durch 19 einfach so ersetzen?

          curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
          sudo apt-get install -y nodejs

          haselchen 1 Reply Last reply Reply Quote 0
          • haselchen
            haselchen Most Active @Baki074 last edited by

            @Baki074
            Normal sollte das schon reichen für 10.19

            Ich meine das auch
            apt-get update
            apt-get upgrade

            die Version updaten, bin mir aber nicht sicher.
            Mit den apt-get Befehlen würde ich erstmal anfangen.

            B 1 Reply Last reply Reply Quote 0
            • harrym
              harrym last edited by

              https://github.com/schmupu/ioBroker.shelly/issues/138

              Voodoo2man created this issue in schmupu/ioBroker.shelly

              closed [ERR_BUFFER_OUT_OF_BOUNDS] #138

              1 Reply Last reply Reply Quote 0
              • B
                Baki074 @haselchen last edited by

                @haselchen said in Shelly Adapter: RangeError:

                Mit den apt-get Befehlen würde ich erstmal anfangen.

                Gesagt, getan. Habe durch den Befehl apt-get upgrade nun nodejs 10.19 installiert. Danke für den Ansatz 😉

                Aktuell startet der Adapter nicht mehr neu.

                @harrym said in Shelly Adapter: RangeError:

                https://github.com/schmupu/ioBroker.shelly/issues/138

                Falls ich jedoch wieder Probleme erhalte, starte ich den Raspi mal neu.

                Ich melde mich auf jeden Fall nochmal um zu berichten wie es aussieht - auch als Lösungsansatz für die anderen mit ähnlichem/gleichen Problem.

                haselchen 1 Reply Last reply Reply Quote 0
                • haselchen
                  haselchen Most Active @Baki074 last edited by

                  @Baki074

                  Solltest Du doch den Fehler wieder bekommen , solltest Du Dich an das von @harrym gepostete Issue mit ranhängen.

                  1 Reply Last reply Reply Quote 0
                  • A
                    ak1 last edited by

                    Ich habe jetzt versucht im Debug Modus mehr herauszufinden, aber scheitere dabei.

                    shelly.0	2020-03-28 19:50:09.331	info	(29629) Listening for Shelly packets in the network
                    shelly.0	2020-03-28 19:50:09.303	info	(29629) Starting Shelly adapter in CoAP modus.
                    shelly.0	2020-03-28 19:50:09.280	info	(29629) starting. Version 3.2.3 in /opt/iobroker/node_modules/iobroker.shelly, node: v10.16.0
                    shelly.0	2020-03-28 19:49:37.933	debug	(29569) Set state SHPLG-S#xxxxxx#1.rssi, Value: -77 for 192.168.x.xxx (shellyplug-s / shellyplug-s-xxxxxx / SHPLG-S#xxxxxx#1)
                    shelly.0	2020-03-28 19:49:37.933	debug	(29569) Set state SHPLG-S#xxxxxx#1.uptime, Value: "2D02:31:41" for 192.168.x.xxx (shellyplug-s / shellyplug-s-xxxxxx / SHPLG-S#xxxxxx#1)
                    

                    Der Fehler "RangeError" taucht nicht auf, der Adapter startet trotzdem alle paar Minuten neu.

                    Ich habe es mal versucht, wie es im verlinkten Github Issue beschrieben ist, also aus dem Terminal. Auch hier stoppt dann der Adapter plötzlich, ohne das vorher eine Fehlermeldung im Log war. Natürlich startet der Adapter hier nicht einfach neu, wie es direkt unter den ioBroker der Fall ist.

                    Hmm, seltsam. Aber so ist es schwer das gewünschte Log dem Issue hinzuzufügen.

                    haselchen 1 Reply Last reply Reply Quote 0
                    • haselchen
                      haselchen Most Active @ak1 last edited by haselchen

                      @ak1

                      Bei Baki074 hat es anscheinend geholfen die Nodejs Version upzudaten.
                      Paar Posts über Dir.
                      Baki074 hat jetzt 10.19

                      1 Reply Last reply Reply Quote 0
                      • A
                        ak1 last edited by

                        Ich bin auf node.js 10.16.0
                        Ich werde es später mal mit einem Update versuchen ...

                        1 Reply Last reply Reply Quote 0
                        • A
                          ak1 last edited by

                          Node.js habe ich nun aktualisiert auf 10.19.0. Der Shelly-Adapter läuft nun seit etwas mehr als einer Stunde ohne Fehlermeldung und ohne Neustart. Bisher sieht es also gut aus!

                          haselchen 1 Reply Last reply Reply Quote 0
                          • haselchen
                            haselchen Most Active @ak1 last edited by

                            @ak1

                            Würde mich freuen , wenn es nun wieder läuft.

                            1 Reply Last reply Reply Quote 0
                            • B
                              Baki074 last edited by Baki074

                              Bei mir hat es trotzdem nichts gebracht.
                              Im Gegenteil, habe nun größere Probleme als zuvor.

                              Und zwar startet der Shelly Adapter alle ca. halbe Stunde neu.
                              Damit leider nicht genug. Mit "hängt" es zudem den Raspberry Pi auf. Ich kann mich also nicht via VNC Viewer verbinden, außer ich starte den Raspi manuell neu. Dann hält die Verbindung vlt. 10 Minuten, allerdings bricht sie dann wieder ab. IoBroker läuft damit logischerweise auch nicht.

                              Kann dies mit dem Update von Nodejs zusammenhängen? Oder woher könnte das Problem plötzlich kommen?

                              Edit: Was ich vergessen hatte zu erwähnen, dass trotz des "Aufhängen" Pushover und alle Skripte funktionieren.

                              haselchen 1 Reply Last reply Reply Quote 0
                              • haselchen
                                haselchen Most Active @Baki074 last edited by

                                @Baki074

                                Ein Log zu dem Zeitpunkt wo er neu startet oder sich aufhängt wäre hilfreich.

                                B 1 Reply Last reply Reply Quote 0
                                • A
                                  ak1 last edited by

                                  Das Update auf Node.js 10.19.0 behebt das Problem leider nicht. Auch ich habe wieder die RangeErrors im Log. Etwa alle 5-10 Minuten verbunden mit einem Neustart des Shelly Adapters.
                                  Der ioBroker selbst (Debian unter Proxmox) läuft aber ohne sonstige Auffälligkeiten.

                                  Jetzt bin ich langsam ratlos. Insbesondere, da es mir bislang nicht gelingt ein Debug-Log mit dem Fehler zu erzeugen. Wenn der Adapter auf Debug-Ausgabe eingestellt ist, startet er einfach nur in den genannten Abständen neu, gibt aber vorher nicht den RangeError aus.

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

                                    @Baki074
                                    @ak1

                                    Wenn ein Debug Log für den Entwickler @Stuebi nicht zu bekommen ist, dann müsstet ihr euch an das von @harrym gepostete Issue ranhängen.

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      ak1 last edited by

                                      Ja, erledigt.

                                      1 Reply Last reply Reply Quote 1
                                      • B
                                        Baki074 @haselchen last edited by Baki074

                                        @haselchen said in Shelly Adapter: RangeError:

                                        Ein Log zu dem Zeitpunkt wo er neu startet oder sich aufhängt wäre hilfreich.

                                        iot.0	2020-03-29 13:36:52.221	error	(1434) Error by device connection: "getaddrinfo EAI_AGAIN a18wym7vjdl22g.iot.eu-west-1.amazonaws.com a18wym7vjdl22g.iot.eu-west-1.amazonaws.com:8883"
                                        iot.0	2020-03-29 13:36:27.196	error	(1434) Error by device connection: "premature close"
                                        

                                        Bekomme diese Meldung vom ioT Adapter. Die Verbindung wird getrennt und ich kann kurzfristig nicht auf iobroker zugreifen. Wie oben beschrieben kann ich mich auch nicht per VNC Viewer auf den Raspi verbinden. Nach ein paar Minuten läuft alles wieder normal. Ich schätze weil auch dieser Adapter neustartet?
                                        Die Fehlermeldung habe ich erst gestern Abend das erste Mal erhalten.

                                        Weiß evtl. jemand was man dagegen tun kann?

                                        haselchen harrym 2 Replies Last reply Reply Quote 0
                                        • haselchen
                                          haselchen Most Active @Baki074 last edited by haselchen

                                          @Baki074

                                          Moin , das hat aber nix mit dem Shelly Adapter zu tun?! Dafür müsstest du einen eigenen Thread aufmachen.

                                          Edit: Welche Adapter starten denn alle neu?
                                          Aus den 2 Zeilen kann man nicht viel erkennen.

                                          1 Reply Last reply Reply Quote 0
                                          • harrym
                                            harrym @Baki074 last edited by

                                            @Baki074 internetverbindung wurde neu hergestellt. das besgat der "fehler".

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            638
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            shelly error
                                            8
                                            57
                                            3393
                                            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