Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Shelly Instanz CoAp steigt seit inst. vom neuen Node.js aus

    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

    Shelly Instanz CoAp steigt seit inst. vom neuen Node.js aus

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active @arminrey last edited by crunchip

      @arminrey du sollst auf den Schraubenschlüssel klicken, dadurch erfolgt ein rebuild des Adapters

      PS
      bei Fehler bitte das Log zeigen

      1 Reply Last reply Reply Quote 1
      • Homoran
        Homoran Global Moderator Administrators @arminrey last edited by Homoran

        @arminrey hast du auf beta umgestellt und danach neu geladen?
        Screenshot_20250213-133818_Firefox.jpg

        EDIT:
        @crunchip wollte auf etwas anderes raus

        A 1 Reply Last reply Reply Quote 0
        • A
          arminrey @Homoran last edited by Homoran

          @homoran

          So, musste wieder auf node20 um, da der Shelly 9 nicht akzeptiert wurde.

          Leider nein

          shelly.0
          2025-02-13 14:05:52.131	info	terminating
          
          shelly.0
          2025-02-13 14:05:51.629	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
          
          shelly.0
          2025-02-13 14:05:51.629	info	terminating
          
          shelly.0
          2025-02-13 14:05:51.616	error	Error ERROR writeFile-Meta id=shelly.0: UNKNOWN: unknown error, open 'C:\ioBroker\iobroker-data\files\shelly.0\_data.json'
          
          shelly.0
          2025-02-13 14:05:51.616	error	ReplyError: Error ERROR writeFile-Meta id=shelly.0: UNKNOWN: unknown error, open 'C:\ioBroker\iobroker-data\files\shelly.0\_data.json' at parseError (C:\ioBroker\node_modules\redis-parser\lib\parser.js:179:12) at parseType (C:\ioBroker\node_modules\redis-parser\lib\parser.js:302:14)
          
          shelly.0
          2025-02-13 14:05:51.614	error	unhandled promise rejection: Error ERROR writeFile-Meta id=shelly.0: UNKNOWN: unknown error, open 'C:\ioBroker\iobroker-data\files\shelly.0\_data.json'
          
          shelly.0
          2025-02-13 14:05:51.613	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().
          
          shelly.0
          2025-02-13 14:03:39.594	info	[CoAP] Device 192.168.1.130 (shellyplug-s / shellyplug-s-4022D889B232 / SHPLG-S#4022D889B232#1) connected! Polltime set to 10 sec.
          
          shelly.0
          2025-02-13 14:03:38.209	info	[CoAP] Device 192.168.1.167 (shellyem / shellyem-485519D6C5DA / SHEM#485519D6C5DA#1) connected! Polltime set to 10 sec.
          
          shelly.0
          2025-02-13 14:03:37.922	info	[CoAP] Device 192.168.1.132 (shelly1 / shelly1-C45BBE764758 / SHSW-1#C45BBE764758#1) connected! Polltime set to 10 sec.
          
          shelly.0
          2025-02-13 14:03:37.865	info	[CoAP] Device 192.168.1.162 (shellyplug-s / shellyplug-s-4022D88943F7 / SHPLG-S#4022D88943F7#1) connected! Polltime set to 10 sec.
          
          shelly.0
          2025-02-13 14:03:37.687	info	[CoAP] Device 192.168.1.168 (shelly1pm / shelly1pm-8CAAB55FD700 / SHSW-PM#8CAAB55FD700#1) connected! Polltime set to 10 sec.
          

          MOD-EDIT: Code in code-tags gesetzt!

          iob1.JPG

          A 1 Reply Last reply Reply Quote 0
          • A
            arminrey @arminrey last edited by

            iob2.JPG

            akutell

            crunchip 1 Reply Last reply Reply Quote 0
            • crunchip
              crunchip Forum Testing Most Active @arminrey last edited by crunchip

              @arminrey kein Mensch sagte etwas davon, dass du v9 installieren solltest und es fehlt auch das Installationslog dazu

              lediglich auf den Schraubenschlüssel solltest du drücken und das LOG bei Fehler zeigen
              und solange deine Instanz Fehler wirft ist logisch das der Ram nicht runter geht

              ggf stell die Instanz auf debug und zeig den Startvorgang aus dem Log

              A Homoran 2 Replies Last reply Reply Quote 0
              • A
                arminrey @crunchip last edited by

                @crunchip
                Falsch verstanden.... habs wieder rückgängig gemach... danke für Eure Neven zu mir, aber wenn das System lange ohne Probleme läuft, sucht man erst wieder länger...

                log.txt

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

                  @arminrey Ich hab den Adapter nie unter Windows getestet. Aber die Zeile hier ist schon komisch:

                  2025-02-13 15:00:48.318  - warn: host.ADMINIS-ROKLDQE-Server Objects 127.0.0.1:56580 Error from InMemDB: Error: ERROR writeFile-Meta id=shelly.0: UNKNOWN: unknown error, open 'C:\ioBroker\iobroker-data\files\shelly.0\_data.json'
                  

                  Stimmen da eventuell Ordnerrechte nicht?

                  crunchip 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @crunchip last edited by

                    @arminrey

                    @crunchip sagte in Shelly Instanz CoAp steigt seit inst. vom neuen Node.js aus:

                    zeig den Startvorgang aus dem Log

                    bedeutet immer als Text in code-tags!

                    siehe auch:
                    https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

                    1 Reply Last reply Reply Quote 0
                    • crunchip
                      crunchip Forum Testing Most Active @haus-automatisierung last edited by crunchip

                      @haus-automatisierung sagte in Shelly Instanz CoAp steigt seit inst. vom neuen Node.js aus:

                      Stimmen da eventuell Ordnerrechte nicht

                      Wenn ichs richtig gelesen habe, hat er ja 2 Instanzen, jedoch nur bei Instanz. 0 dieses Problem

                      Edit
                      Grad das log per Handy überflogen, da stimmt ja auch etwas nicht

                      2025-02-13 15:04:15.400  - error: shelly.1 (16624) [MQTT] (Shelly?) device unknown, configuration for client with id "Gaszaehler" (Gaszaehler / Gaszaehler / undefined) does not exist! Maybe this device is not supported in this adapter version.
                      2025-02-13 15:04:15.400  - error: shelly.1 (16624) [MQTT] DO NOT CHANGE THE CLIENT-ID OF YOUR SHELLY DEVICES (see adapter documentation for details)
                      2025-02-13 15:04:15.411  - info: shelly.1 (16624) [MQTT] Client Close: (Gaszaehler / Gaszaehler / undefined) (false)
                      
                      haus-automatisierung 1 Reply Last reply Reply Quote 0
                      • haus-automatisierung
                        haus-automatisierung Developer Most Active @crunchip last edited by

                        @crunchip sagte in Shelly Instanz CoAp steigt seit inst. vom neuen Node.js aus:

                        Grad das log per Handy überflogen, da stimmt ja auch etwas nicht

                        Das ist aber egal und hat mit dem Fehler nix zu tun. Da wurde nur (mal wieder) die Doku nicht gelesen.

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          arminrey @haus-automatisierung last edited by

                          @haus-automatisierung

                          Gas hab ich raus, war mein Fehler.

                          Jetzt habe ich bei einem anderen NUC ein altes BackUp 31.12.24 drauf und nur mal den Shelly.0 gestartet. Da passiert das Gleiche. Bin mir aber sicher, dass das damals nicht war. Somit meine Vermutung, dass das an einem ShellyUpdate liegen kann? Nur mal so als User der sich freut, wenn alles läuft....

                          haus-automatisierung crunchip 2 Replies Last reply Reply Quote 0
                          • haus-automatisierung
                            haus-automatisierung Developer Most Active @arminrey last edited by

                            @arminrey Und die andere Frage zu den Rechten des Ordners? Zeig mal die Instanz-Einstellungen

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

                              @haus-automatisierung

                              iob3.JPG

                              Das?

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                arminrey @arminrey last edited by

                                Die Frage von voher, der "Schraubenschlüssel", wurde nichts angezeigt. Wenn man aber auf Version einstellen geht, dann kommen Fehlermeldungen, die Ihr vermutlich wolltet.

                                Aber das muss ich in Ruhe probieren, da blick ich nicht mehr durch..... komisch dass das vorher immer gegangen ist.
                                Bin von PI4 irgendwann auf P5, der hat dann auch gekotzt und nun auf NUC wo alles ohne dass die CPU auf 100% geht, läuft. Im Schnitt bei 20%.

                                Hier der Prozess:

                                $ iobroker upgrade shelly@8.5.1 --debug

                                Update shelly from @8.5.0 to @8.5.1

                                host.ADMINIS-ROKLDQE Adapter "system.adapter.shelly.1" is stopped.

                                NPM version: 10.8.2

                                Installing iobroker.shelly@8.5.1... (System call)

                                diskusage@1.2.0 install > node-gyp rebuild

                                gyp info it worked if it ends with ok

                                gyp info using node-gyp@10.1.0 gyp info using node@20.18.3 | win32 | x64

                                gyp info find Python using Python version 3.13.1 found at "C:\Python313\python.exe"

                                gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details. gyp ERR! find VS

                                gyp ERR! find VS Failure details: undefined gyp ERR! find VS checking VS2022 (17.12.35410.144) found at: gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Preview" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - missing any VC++ toolset gyp ERR! find VS checking VS2022 (17.11.35327.3) found at: gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - missing any VC++ toolset gyp ERR! find VS checking VS2019 (16.11.35731.53) found at: gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - found VC++ toolset: v142 gyp ERR! find VS - missing any Windows SDK gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details. gyp ERR! find VS gyp ERR! find VS Failure details: undefined gyp ERR! find VS unsupported version "16.11.35731.53" found at "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" gyp ERR! find VS unsupported version "17.12.35410.144" found at "C:\Program Files\Microsoft Visual Studio\2022\Preview" gyp ERR! find VS unsupported version "17.11.35327.3" found at "C:\Program Files\Microsoft Visual Studio\2022\Community" gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18 gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS gyp ERR! find VS ************************************************************** gyp ERR! find VS You need to install the latest version of Visual Studio gyp ERR! find VS including the "Desktop development with C++" workload. gyp ERR! find VS For more information consult the documentation at: gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! find VS ************************************************************** gyp ERR! find VS

                                gyp ERR! configure error gyp ERR! stack Error: Could not find any Visual Studio installation to use gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:116:11) gyp ERR! stack at VisualStudioFinder.findVisualStudio (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:72:17) gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5) gyp ERR! stack at async createBuildDir (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:95:26) gyp ERR! stack at async run (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18) gyp ERR! System Windows_NT 10.0.22631 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\ioBroker\node_modules\diskusage gyp ERR! node -v v20.18.3 gyp ERR! node-gyp -v v10.1.0 gyp ERR! not ok

                                unix-dgram@2.0.6 install > node-gyp rebuild

                                gyp info it worked if it ends with ok

                                gyp info using node-gyp@10.1.0

                                gyp info using node@20.18.3 | win32 | x64

                                gyp info find Python using Python version 3.13.1 found at "C:\Python313\python.exe"

                                gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details. gyp ERR! find VS gyp ERR! find VS Failure details: undefined gyp ERR! find VS checking VS2022 (17.12.35410.144) found at:

                                gyp ERR! node-gyp -v v10.1.0 gyp ERR! not ok

                                changed 1 package, and audited 1687 packages in 16s

                                305 packages are looking for funding run npm fund for details

                                44 vulnerabilities (4 low, 27 moderate, 11 high, 2 critical)

                                To address issues that do not require attention, run: npm audit fix To address all issues possible (including breaking changes), run: npm audit fix --force Some issues need review, and may require choosing a different dependency. Run npm audit for details.

                                Updating objects from io-package.json for adapter "shelly" with version "8.5.1"

                                Update "system.adapter.shelly.0"

                                Update "system.adapter.shelly.1"

                                upload [16] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/i18n/de/translations.json i18n/de/translations.json application/json

                                upload [15] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/i18n/en/translations.json i18n/en/translations.json application/json

                                upload [14] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/i18n/es/translations.json i18n/es/translations.json application/json

                                upload [13] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/i18n/fr/translations.json i18n/fr/translations.json application/json

                                upload [12] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/i18n/it/translations.json i18n/it/translations.json application/json

                                upload [11] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/i18n/nl/translations.json i18n/nl/translations.json application/json

                                upload [10] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/i18n/pl/translations.json i18n/pl/translations.json application/json

                                upload [5] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/img/mqttGen1.png img/mqttGen1.png image/png

                                upload [4] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/img/mqttGen2.png img/mqttGen2.png image/png

                                upload [3] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/img/restrictedLoginGen1.png img/restrictedLoginGen1.png image/png

                                upload [2] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/img/restrictedLoginGen2.png img/restrictedLoginGen2.png image/png

                                upload [1] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/jsonConfig.json jsonConfig.json application/json

                                upload [0] shelly.admin C:/ioBroker/node_modules/iobroker.shelly/admin/shelly.png shelly.png image/png

                                host.ADMINIS-ROKLDQE Adapter "system.adapter.shelly.1" is started

                                Process exited with code 0

                                1 Reply Last reply Reply Quote 0
                                • crunchip
                                  crunchip Forum Testing Most Active @arminrey last edited by crunchip

                                  @arminrey sagte in Shelly Instanz CoAp steigt seit inst. vom neuen Node.js aus:

                                  Somit meine Vermutung, dass das an einem ShellyUpdate liegen kann?

                                  Dann geh doch mal ein paar Versionen zurück und teste
                                  bzw

                                  @arminrey sagte in Shelly Instanz CoAp steigt seit inst. vom neuen Node.js aus:

                                  anderen NUC ein altes BackUp 31.12.24 drauf und nur mal den Shelly.0 gestartet. Da passiert das Gleiche. Bin mir aber sicher, dass das damals nicht war.

                                  was ist/war da für eine Version installiert und welche nodejs ist da drauf?

                                  A 1 Reply Last reply Reply Quote 0
                                  • A
                                    arminrey @crunchip last edited by

                                    @crunchip
                                    Mit dem TestNUC bin ich beim Shelly bis zu 3 Versionen runter gegangen. Bei Node bis zu 15 und dann stufenweise rauf.

                                    Ich schätze das hat was mit Visual und Pyton zu tun, nur da steige ich aus.

                                    Ich liebe den iob wegen scripte und einfache Einbindung in KNX was bei HA mit dem yaml schon eine nervige Sache ist.

                                    crunchip 1 Reply Last reply Reply Quote 0
                                    • crunchip
                                      crunchip Forum Testing Most Active @arminrey last edited by crunchip

                                      @arminrey sagte in Shelly Instanz CoAp steigt seit inst. vom neuen Node.js aus:

                                      bis zu 3 Versionen runter gegangen. Bei Node bis zu 15 und dann stufenweise rauf.

                                      macht ja keinen Sinn, zumal gewisse Abhängigkeiten vorhanden sind und du oben schon den Hinweis bekommen hattest, ungerade nodejs Versionen sind tabu.

                                      siehe z.b. v7.0.0
                                      https://github.com/iobroker-community-adapters/ioBroker.shelly/releases

                                      @arminrey sagte in Shelly Instanz CoAp steigt seit inst. vom neuen Node.js aus:

                                      Ich schätze das hat was mit Visual und Pyton zu tun, nur da steige ich aus.
                                      Ich liebe den iob wegen scripte und einfache Einbindung in KNX was bei HA mit dem yaml schon eine nervige Sache ist.

                                      warum dann nicht einfach ein Linux nutzen?

                                      A 1 Reply Last reply Reply Quote 0
                                      • A
                                        arminrey @crunchip last edited by

                                        So den TestNUC iob, visual und Python deinstalliert. Neu gestartet und iob neu inst.
                                        Shelly installiert und ohne Fehlermeldungen zum laufen gebracht und läuft stabil.

                                        Werde das, wenn ich mal Zeit habe beim LiveNuC versuchen. Erst mal nur die Shelly Adapter löschen und dann neu aufsetzten.

                                        ... ich berichte

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          arminrey @arminrey last edited by

                                          Kein Change, das Problem direkt zu eliminieren. Trotzdem Dank an den Beteiligten, die versucht haben, mir zu helfen.

                                          Ich schätze von BackUp und Restore von P4 auf P5 und dann noch auf NUC ist irgendwas schief gelaufen.

                                          Habe den Shelly-Adapter gelöscht und wieder neu installiert und nachträglich die HistoryDB wieder aufgespielt um die alten Daten zu haben. Läuft jetzt seit 2 Tagen problemlos. Die Einstellungen der Objekte musste neu erstellt werden.

                                          Ich hoffe, dass es nun läuft.

                                          ByTheWay hatte ich damals für einen Fixer für PC gesucht. Lt. Google gibts den nur für Linux. Stimmt aber nicht, wenn man die Inst von W aktiviert und IOB installiert ist, läuft ein Fixer. (oder ich hatte es überlesen 🤷‍♂️ )

                                          Gruß und Danke

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          555
                                          Online

                                          31.8k
                                          Users

                                          80.0k
                                          Topics

                                          1.3m
                                          Posts

                                          6
                                          30
                                          1199
                                          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