Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Shelly Adapter Probleme - coaptest.js nicht vorhanden?

    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 Adapter Probleme - coaptest.js nicht vorhanden?

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @samoht0403 last edited by Thomas Braun

      @samoht0403

      Schaut mir so auf den ersten Blick nach einer 'krummen Installation' von nodejs, mindestens aber von npm aus.

      sudo ln -s /usr/bin/node /usr/bin/nodejs
      uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
      

      sagt?

      Davon abgesehen:

      echad@chet:~ $ ls -la /opt/iobroker/node_modules/iobroker.shelly/coaptest.js
      ls: cannot access '/opt/iobroker/node_modules/iobroker.shelly/coaptest.js': No such file or directory
      

      Stimmt, die Datei gibt es nicht. Sollte es die denn überhaupt geben?

      Ein Adapterstart schaut wie aus? Hier startet der nämlich total unauffällig:

      2022-09-16 18:33:29.206  - info: shelly.0 (1349242) starting. Version 6.2.0 in /opt/iobroker/node_modules/iobroker.shelly, node: v18.9.0, js-controller: 4.0.23
      2022-09-16 18:33:29.389  - info: shelly.0 (1349242) Starting in CoAP mode.
      2022-09-16 18:33:29.475  - info: shelly.0 (1349242) [CoAP Server] Listening for packets in the network
      
      1 Reply Last reply Reply Quote 0
      • samoht0403
        samoht0403 last edited by

        Danke für Deine schnelle Antwort @Thomas-Braun.

        pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs
        ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
        pi@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
        armv7l
        /usr/bin/nodejs
        /usr/bin/node
        /usr/bin/npm
        v16.17.0
        v16.17.0
        8.19.2
        4.0.23
        pi
        pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker
        /home/pi
        OK:1 http://archive.raspberrypi.org/debian buster InRelease
        OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease                                                 
        OK:3 https://deb.nodesource.com/node_16.x buster InRelease                                                     
        OK:4 https://repos.influxdata.com/debian buster InRelease                                  
        Paketlisten werden gelesen... Fertig
        Abhängigkeitsbaum wird aufgebaut.       
        Statusinformationen werden eingelesen.... Fertig
        Aktualisierung für 4 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
        nodejs:
          Installiert:           16.17.0-deb-1nodesource1
          Installationskandidat: 16.17.0-deb-1nodesource1
          Versionstabelle:
         *** 16.17.0-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                100 /var/lib/dpkg/status
             10.24.0~dfsg-1~deb10u1 500
                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        

        Die Datei dachte ich schon, dass es die geben sollte, war aus diesem Post: https://forum.iobroker.net/topic/41906/test-adapter-shelly-v4-0-6-latest/16

        Und zu guter Letzt zum Adapterstart:

        shelly.0
        2022-09-17 15:59:40.309 info [CoAP Server] Listening for packets in the network

        shelly.0
        2022-09-17 15:59:40.215 debug [CoAP Server] Starting shelly listener with options: {}

        shelly.0
        2022-09-17 15:59:40.213 info Starting in CoAP mode.

        shelly.0
        2022-09-17 15:59:39.921 info starting. Version 6.2.0 in /opt/iobroker/node_modules/iobroker.shelly, node: v16.17.0, js-controller: 4.0.23

        shelly.0
        2022-09-17 15:59:39.443 debug Plugin sentry Initialize Plugin (enabled=true)

        shelly.0
        2022-09-17 15:59:39.083 debug States connected to redis: 0.0.0.0:9000

        shelly.0
        2022-09-17 15:59:38.984 debug States create User PubSub Client

        shelly.0
        2022-09-17 15:59:38.982 debug States create System PubSub Client

        shelly.0
        2022-09-17 15:59:38.929 debug Redis States: Use Redis connection: 0.0.0.0:9000

        shelly.0
        2022-09-17 15:59:38.857 debug Objects connected to redis: 0.0.0.0:9001

        shelly.0
        2022-09-17 15:59:38.848 debug Objects client initialize lua scripts

        shelly.0
        2022-09-17 15:59:38.677 debug Objects create User PubSub Client

        shelly.0
        2022-09-17 15:59:38.675 debug Objects create System PubSub Client

        shelly.0
        2022-09-17 15:59:38.673 debug Objects client ready ... initialize now

        shelly.0
        2022-09-17 15:59:38.581 debug Redis Objects: Use Redis connection: 0.0.0.0:9001

        Bin gespannt, was noch rauskommt.

        Danke!

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @samoht0403 last edited by Thomas Braun

          @samoht0403

          iob stop
          sudo apt update
          sudo apt full-upgrade
          sudo apt install --reinstall nodejs
          sudo reboot
          

          Und lass die Finger von individuellen Upgrades von npm.

          samoht0403 1 Reply Last reply Reply Quote 0
          • samoht0403
            samoht0403 @Thomas Braun last edited by

            @thomas-braun said in Shelly Adapter Probleme - coaptest.js nicht vorhanden?:

            sudo apt install --reinstall nodejs

            Krass, ich wusste nichtmal, dass ich da was manuell gemacht hatte...

            Mache ich das nur für den Master oder auch für Slave?

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @samoht0403 last edited by

              @samoht0403

              Auf allen System wo es verfummelt ist.

              samoht0403 1 Reply Last reply Reply Quote 0
              • samoht0403
                samoht0403 @Thomas Braun last edited by

                @thomas-braun

                😁 wird gemacht, mal schauen. ob's das war.

                Danke Dir!

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @samoht0403 last edited by

                  @samoht0403
                  Nein, war es nicht.
                  Ist aber trotzdem verfummelt.

                  samoht0403 1 Reply Last reply Reply Quote 0
                  • samoht0403
                    samoht0403 @Thomas Braun last edited by

                    @thomas-braun

                    Alles klar, dann warte ich mal, ob noch Input kommt von jemandem.

                    Schönen Samstag.

                    DJMarc75 samoht0403 2 Replies Last reply Reply Quote 0
                    • DJMarc75
                      DJMarc75 @samoht0403 last edited by

                      @samoht0403 Wenn Du das System geradegezogen hast dann nochmals die Ein- und Ausgaben posten:

                      sudo ln -s /usr/bin/node /usr/bin/nodejs
                      
                      uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                      
                      1 Reply Last reply Reply Quote 0
                      • samoht0403
                        samoht0403 @samoht0403 last edited by

                        @DJMarc75 :

                        Wie von @Thomas-Braun beschrieben beide geupdatet.

                        Hier der Output vom Master

                        pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs
                        ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
                        pi@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        armv7l
                        /usr/bin/nodejs
                        /usr/bin/node
                        /usr/bin/npm
                        v16.17.0
                        v16.17.0
                        8.15.0
                        4.0.23
                        pi
                        pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker
                        /home/pi
                        OK:1 http://archive.raspberrypi.org/debian buster InRelease
                        OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease                                                                                                          
                        OK:3 https://repos.influxdata.com/debian buster InRelease                                                                                                               
                        OK:4 https://deb.nodesource.com/node_16.x buster InRelease                                 
                        Paketlisten werden gelesen... Fertig                               
                        Abhängigkeitsbaum wird aufgebaut.       
                        Statusinformationen werden eingelesen.... Fertig
                        Alle Pakete sind aktuell.
                        nodejs:
                          Installiert:           16.17.0-deb-1nodesource1
                          Installationskandidat: 16.17.0-deb-1nodesource1
                          Versionstabelle:
                         *** 16.17.0-deb-1nodesource1 500
                                500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                                100 /var/lib/dpkg/status
                             10.24.0~dfsg-1~deb10u1 500
                                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                        

                        und hier vom Slave:

                        pi@iobrokerslave:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs
                        ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
                        pi@iobrokerslave:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        armv7l
                        /usr/bin/nodejs
                        /usr/bin/node
                        /usr/bin/npm
                        v16.17.0
                        v16.17.0
                        8.15.0
                        4.0.23
                        pi
                        pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker
                        /home/pi
                        OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                        OK:2 http://archive.raspberrypi.org/debian buster InRelease                                
                        OK:3 https://deb.nodesource.com/node_16.x buster InRelease                                 
                        Paketlisten werden gelesen... Fertig                               
                        Abhängigkeitsbaum wird aufgebaut.       
                        Statusinformationen werden eingelesen.... Fertig
                        Alle Pakete sind aktuell.
                        nodejs:
                          Installiert:           16.17.0-deb-1nodesource1
                          Installationskandidat: 16.17.0-deb-1nodesource1
                          Versionstabelle:
                         *** 16.17.0-deb-1nodesource1 500
                                500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                                100 /var/lib/dpkg/status
                             10.24.0~dfsg-1~deb10u1 500
                                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                        
                        samoht0403 1 Reply Last reply Reply Quote 0
                        • samoht0403
                          samoht0403 @samoht0403 last edited by

                          @samoht0403:

                          Für diejenigen, die dasselbe Problem haben, hier die Lösung:

                          https://github.com/iobroker-community-adapters/ioBroker.shelly/blob/v6.0.0/docs/de/protocol-coap.md

                          VG,
                          Thomas

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          805
                          Online

                          31.8k
                          Users

                          80.0k
                          Topics

                          1.3m
                          Posts

                          3
                          12
                          505
                          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