Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Sonoff Adapter Rot nach Updaten (Port?)

    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

    Sonoff Adapter Rot nach Updaten (Port?)

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

      Ich habe heute nach ganz langer Zeit ein Update meiner IOBroker Instanz gemacht. Von Admin über Node etc etc etc.
      Jetzt stellt der Sonoff Adapter keine Verbindung mehr her:

      Ich bekomme folgenden Log Eintrag:

      
      sonoff.0
      2021-09-12 18:55:47.799	error	Exception-Code: EADDRINUSE: listen EADDRINUSE: address already in use 0.0.0.0:1883
      
      sonoff.0
      2021-09-12 18:55:47.798	error	Error: listen EADDRINUSE: address already in use 0.0.0.0:1883 at Server.setupListenHandle [as _listen2] (net.js:1320:16) at listenInCluster (net.js:1368:12) at doListen (net.js:1505:7) at processTicksAndRejections (internal/process/task_queues.js:83:21)
      
      sonoff.0
      2021-09-12 18:55:47.797	error	uncaught exception: listen EADDRINUSE: address already in use 0.0.0.0:1883
      
      sonoff.0
      2021-09-12 18:55:47.685	info	starting. Version 2.4.5 in /opt/iobroker/node_modules/iobroker.sonoff, node: v14.17.6, js-controller: 3.3.18
      

      Es sieht ja danach aus, als wenn das Problem vom Port 1883 kommt? Oder sehe ich das falsch?

      Bei Überprüfung des Ports komme ich auf folgendes:

      pi@raspberrypi-ioB:~ $ netstat -tanp | grep 1883
      (Es konnten nicht alle Prozesse identifiziert werden; Informationen über
      nicht-eigene Processe werden nicht angezeigt; Root kann sie anzeigen.)
      tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      -
      tcp        0      0 192.168.2.102:1883      192.168.2.156:58030     VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.101:54147     VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.161:59593     VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.117:55576     VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.154:55698     VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.159:56214     VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.158:55068     VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.160:54529     VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.65:59954      VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.151:65292     VERBUNDEN   -
      tcp        0      0 192.168.2.102:1883      192.168.2.30:60719      VERBUNDEN   -
      tcp6       0      0 :::1883                 :::*                    LISTEN      -
      
      pi@raspberrypi-ioB:~ $ iobroker list instances
      + system.adapter.admin.0                  : admin                 : raspberrypi-ioB                          -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
      + system.adapter.alexa2.0                 : alexa2                : raspberrypi-ioB                          -  enabled
      + system.adapter.backitup.0               : backitup              : raspberrypi-ioB                          -  enabled
        system.adapter.daswetter.0              : daswetter             : raspberrypi-ioB                          - disabled
      + system.adapter.discovery.0              : discovery             : raspberrypi-ioB                          -  enabled
        system.adapter.dwd.0                    : dwd                   : raspberrypi-ioB                          -  enabled
        system.adapter.flot.0                   : flot                  : raspberrypi-ioB                          -  enabled
        system.adapter.history.0                : history               : raspberrypi-ioB                          - disabled
      + system.adapter.hue.0                    : hue                   : raspberrypi-ioB                          -  enabled, port: 80
      + system.adapter.hue.1                    : hue                   : raspberrypi-ioB                          -  enabled, port: 80
        system.adapter.ical.0                   : ical                  : raspberrypi-ioB                          -  enabled
        system.adapter.icons-mfd-svg.0          : icons-mfd-svg         : raspberrypi-ioB                          -  enabled
      + system.adapter.info.0                   : info                  : raspberrypi-ioB                          -  enabled
        system.adapter.iot.0                    : iot                   : raspberrypi-ioB                          - disabled
      + system.adapter.javascript.0             : javascript            : raspberrypi-ioB                          -  enabled
        system.adapter.mihome-vacuum.0          : mihome-vacuum         : raspberrypi-ioB                          - disabled, port: 54321
      + system.adapter.milight.0                : milight               : raspberrypi-ioB                          -  enabled, port: 8899
        system.adapter.mqtt.0                   : mqtt                  : raspberrypi-ioB                          - disabled, port: 1500, bind: 0.0.0.0
      + system.adapter.node-red.0               : node-red              : raspberrypi-ioB                          -  enabled, port: 1880, bind: 192.168.2.102
        system.adapter.onvif-alt.0              : onvif-alt             : raspberrypi-ioB                          - disabled
        system.adapter.pollenflug.0             : pollenflug            : raspberrypi-ioB                          - disabled
        system.adapter.procon-ip.0              : procon-ip             : raspberrypi-ioB                          - disabled
      + system.adapter.pushover.0               : pushover              : raspberrypi-ioB                          -  enabled
        system.adapter.robonect.0               : robonect              : raspberrypi-ioB                          - disabled
      + system.adapter.scenes.0                 : scenes                : raspberrypi-ioB                          -  enabled
        system.adapter.sonoff.0                 : sonoff                : raspberrypi-ioB                          -  enabled, port: 1883, bind: 0.0.0.0
        system.adapter.sonos.0                  : sonos                 : raspberrypi-ioB                          - disabled
      + system.adapter.tankerkoenig.0           : tankerkoenig          : raspberrypi-ioB                          -  enabled
        system.adapter.telegram.0               : telegram              : raspberrypi-ioB                          - disabled, port: 8443, bind: 0.0.0.0
      + system.adapter.tr-064.0                 : tr-064                : raspberrypi-ioB                          -  enabled
        system.adapter.trashschedule.0          : trashschedule         : raspberrypi-ioB                          - disabled
      + system.adapter.upnp.0                   : upnp                  : raspberrypi-ioB                          -  enabled
        system.adapter.vis-bars.0               : vis-bars              : raspberrypi-ioB                          -  enabled
        system.adapter.vis-colorpicker.0        : vis-colorpicker       : raspberrypi-ioB                          -  enabled
        system.adapter.vis-google-fonts.0       : vis-google-fonts      : raspberrypi-ioB                          -  enabled
        system.adapter.vis-history.0            : vis-history           : raspberrypi-ioB                          -  enabled
        system.adapter.vis-hqwidgets.0          : vis-hqwidgets         : raspberrypi-ioB                          -  enabled
        system.adapter.vis-jqui-mfd.0           : vis-jqui-mfd          : raspberrypi-ioB                          -  enabled
        system.adapter.vis-justgage.0           : vis-justgage          : raspberrypi-ioB                          -  enabled
        system.adapter.vis-keyboard.0           : vis-keyboard          : raspberrypi-ioB                          -  enabled
        system.adapter.vis-map.0                : vis-map               : raspberrypi-ioB                          -  enabled
        system.adapter.vis-material.0           : vis-material          : raspberrypi-ioB                          -  enabled
        system.adapter.vis-materialdesign.0     : vis-materialdesign    : raspberrypi-ioB                          -  enabled
        system.adapter.vis-metro.0              : vis-metro             : raspberrypi-ioB                          -  enabled
        system.adapter.vis-players.0            : vis-players           : raspberrypi-ioB                          -  enabled
        system.adapter.vis-plumb.0              : vis-plumb             : raspberrypi-ioB                          -  enabled
        system.adapter.vis-rgraph.0             : vis-rgraph            : raspberrypi-ioB                          -  enabled
        system.adapter.vis-timeandweather.0     : vis-timeandweather    : raspberrypi-ioB                          -  enabled
        system.adapter.vis-weather.0            : vis-weather           : raspberrypi-ioB                          -  enabled
        system.adapter.vis.0                    : vis                   : raspberrypi-ioB                          -  enabled
      + system.adapter.web.0                    : web                   : raspberrypi-ioB                          -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
        system.adapter.zigbee.0                 : zigbee                : raspberrypi-ioB                          -  enabled, port: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2193048-if00
      
      + instance is alive
      pi@raspberrypi-ioB:~ $ netstat -tle | grep 1883
      tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      root       18033
      tcp6       0      0 [::]:1883               [::]:*                  LISTEN      root       18034
      

      Hat jemand eine Idee, was das Problem sein könnte?!

      Danke
      Gruß Christian

      Glasfaser 1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @BamBam89 last edited by

        @bambam89 sagte in Sonoff Adapter Rot nach Updaten (Port?):

        Es sieht ja danach aus, als wenn das Problem vom Port 1883 kommt? Oder sehe ich das falsch?

        Ja , siehst du richtig

        Laut deinen Angaben nutzt du den Port 1883 für Sonoff und laut Log ist er schon in Benutzung .

        Entweder ein demon im Hintergrund oder hast du noch ein MQTT Server wo anders laufen .

        zeige mal :

        lsof -i -P | grep -i LISTEN
        

        Wenn der Befehl nicht geht dann nachinstallieren :
        https://wiki.ubuntuusers.de/lsof/

        und die Ausgabe von :

        ps auxww|grep io
        

        Hast du auch mal dein System mal neu gestartet ( Reboot )

        B Glasfaser 2 Replies Last reply Reply Quote 0
        • B
          BamBam89 @Glasfaser last edited by

          @glasfaser

          @glasfaser said in Sonoff Adapter Rot nach Updaten (Port?):

          Ja es läuft auch eine MQTT Instanz aber unter dem Port 1500

          Ein Reset wurde auch schon mehrfach durchgeführt.

          pi@raspberrypi-ioB:~ $ ps auxww|grep io
          root        13  0.0  0.0      0     0 ?        S    18:32   0:00 [migration/0]
          root        16  0.0  0.0      0     0 ?        S    18:32   0:00 [migration/1]
          root        21  0.0  0.0      0     0 ?        S    18:32   0:00 [migration/2]
          root        26  0.0  0.0      0     0 ?        S    18:32   0:00 [migration/3]
          root        58  0.0  0.0      0     0 ?        I<   18:32   0:00 [blkcg_punt_bio]
          root        62  0.0  0.0      0     0 ?        I<   18:32   0:00 [rpciod]
          root        64  0.0  0.0      0     0 ?        I<   18:32   0:00 [xprtiod]
          root        66  0.0  0.0      0     0 ?        I<   18:32   0:00 [nfsiod]
          root        76  0.0  0.0      0     0 ?        I<   18:32   0:00 [DWC Notificatio]
          message+   352  0.0  0.0   6560  3000 ?        Ss   18:32   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
          avahi      359  4.5  0.0   5900  2560 ?        Ss   18:32   3:49 avahi-daemon: running [raspberrypi-ioB.local]
          root       363  0.1  0.5  63312 21040 ?        Ssl  18:32   0:10 /usr/bin/python /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
          root       544 62.8  3.6 334920 144556 ?       SLl  18:32  53:08 /usr/bin/motion -n -c /etc/motioneye/motion.conf -d 5
          root       550  0.0  0.3  35396 12528 ?        S    18:32   0:00 /usr/bin/python /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
          iobroker   741 20.8  5.3 331736 208380 ?       Ssl  18:32  17:38 iobroker.js-controller
          iobroker   900  0.4  1.9 208856 76016 ?        Sl   19:21   0:10 io.hmip.0
          iobroker   920  2.0  3.0 244132 120224 ?       Sl   18:32   1:45 io.admin.0
          iobroker  1043  0.1  1.6 197956 63020 ?        Sl   18:32   0:08 io.pushover.0
          iobroker  1112  0.1  1.5 174876 59796 ?        Sl   18:32   0:09 io.node-red.0
          iobroker  1198  0.2  1.7 199612 68276 ?        Sl   18:33   0:12 io.scenes.0
          iobroker  1221  0.2  2.4 207248 94980 ?        Sl   18:33   0:12 node-red
          iobroker  1236  0.2  1.8 201112 70884 ?        Sl   18:33   0:13 io.hue.0
          iobroker  1304  0.8  2.2 217224 88140 ?        Sl   18:33   0:41 io.hue.1
          iobroker  1393  0.1  1.6 201892 66228 ?        Sl   18:33   0:09 io.tr-064.0
          iobroker  1500  1.2  1.9 208352 75640 ?        Sl   18:33   1:01 io.alexa2.0
          iobroker  1636  0.1  1.5 198464 62612 ?        Sl   18:33   0:09 io.discovery.0
          iobroker  1678  0.2  1.9 207128 76704 ?        Sl   18:33   0:13 io.info.0
          iobroker  1762  2.7  2.1 221484 83532 ?        Sl   18:33   2:17 io.web.0
          iobroker  1797  0.1  1.3 175944 54636 ?        Sl   18:33   0:08 io.milight.0
          iobroker  2130  0.3  1.7 187388 69812 ?        Sl   18:33   0:17 io.tankerkoenig.0
          iobroker  2404  1.9  2.2 196368 89216 ?        Sl   18:34   1:35 io.upnp.0
          iobroker  2611  0.2  2.0 206924 79756 ?        Sl   18:34   0:10 io.backitup.0
          root      8938  0.0  0.0      0     0 ?        I    19:33   0:01 [kworker/u8:0-ext4-rsv-conversion]
          iobroker 16956  4.4  3.1 253168 125600 ?       Sl   19:45   0:30 io.javascript.0
          iobroker 19695  1.4  2.0 208068 78792 ?        Sl   19:49   0:06 io.iot.0
          iobroker 19825  1.1  1.8 199760 71512 ?        Sl   19:49   0:04 io.mqtt.0
          iobroker 20842  8.2  1.8 181652 71352 ?        Sl   19:51   0:27 io.robonect.0
          iobroker 21236  1.3  1.7 196288 67948 ?        Sl   19:51   0:04 io.trashschedule.0
          iobroker 22000  1.7  1.7 198236 67656 ?        Sl   19:52   0:04 io.history.0
          iobroker 22588  1.3  1.3 171284 53560 ?        Sl   19:53   0:02 io.procon-ip.0
          pi       25391  0.0  0.0   7360   560 pts/0    S+   19:57   0:00 grep --color=auto io
          
          1 Reply Last reply Reply Quote 0
          • Glasfaser
            Glasfaser @Glasfaser last edited by Glasfaser

            @BamBam89

            @glasfaser sagte in Sonoff Adapter Rot nach Updaten (Port?):
            zeige mal :
            lsof -i -P | grep -i LISTEN

            Was ist hiermit !

            B 1 Reply Last reply Reply Quote 0
            • B
              BamBam89 @Glasfaser last edited by

              @glasfaser said in Sonoff Adapter Rot nach Updaten (Port?):

              lsof -i -P | grep -i LISTEN

              Sorry. Da bekomme ich keine Information:

              pi@raspberrypi-ioB:~ $ lsof -i -P | grep -i LISTEN
              pi@raspberrypi-ioB:~ $ sudo apt-get install lsof
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              lsof ist schon die neueste Version (4.91+dfsg-1).
              0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
              
              Glasfaser 1 Reply Last reply Reply Quote 0
              • Glasfaser
                Glasfaser @BamBam89 last edited by

                @bambam89

                Sorry. Da bekomme ich keine Information:

                Komisch !?

                Und hiermit

                lsof -n | grep LISTEN
                
                B 1 Reply Last reply Reply Quote 0
                • B
                  BamBam89 @Glasfaser last edited by

                  @glasfaser said in Sonoff Adapter Rot nach Updaten (Port?):

                  lsof -n | grep LISTEN

                  nix:

                  pi@raspberrypi-ioB:~ $ lsof -n | grep LISTEN
                  pi@raspberrypi-ioB:~ $
                  
                  Glasfaser 1 Reply Last reply Reply Quote 0
                  • Glasfaser
                    Glasfaser @BamBam89 last edited by

                    @bambam89

                    sudo lsof -i -P | grep -i LISTEN
                    
                    B 1 Reply Last reply Reply Quote 0
                    • B
                      BamBam89 @Glasfaser last edited by

                      @glasfaser said in Sonoff Adapter Rot nach Updaten (Port?):

                      sudo lsof -i -P | grep -i LISTEN

                      Ich hatte dieses mosquitto schon im verdacht:

                      pi@raspberrypi-ioB:~ $ sudo lsof -i -P | grep -i LISTEN
                      meyectl     363      root   12u  IPv4  15903      0t0  TCP *:8765 (LISTEN)
                      deCONZ      381        pi    5u  IPv4  15856      0t0  TCP *:80 (LISTEN)
                      deCONZ      381        pi   10u  IPv4  14995      0t0  TCP *:443 (LISTEN)
                      motion      544      root    5u  IPv4  17173      0t0  TCP *:8085 (LISTEN)
                      motion      544      root    7u  IPv4  17174      0t0  TCP localhost:7999 (LISTEN)
                      iobroker.   741  iobroker   19u  IPv4  20537      0t0  TCP localhost:9001 (LISTEN)
                      iobroker.   741  iobroker   24u  IPv4  18238      0t0  TCP localhost:9000 (LISTEN)
                      mosquitto   745 mosquitto    5u  IPv4  18033      0t0  TCP *:1883 (LISTEN)
                      mosquitto   745 mosquitto    6u  IPv6  18034      0t0  TCP *:1883 (LISTEN)
                      sshd        755      root    3u  IPv4  18630      0t0  TCP *:22 (LISTEN)
                      sshd        755      root    4u  IPv6  18632      0t0  TCP *:22 (LISTEN)
                      dnsmasq     757   dnsmasq    5u  IPv4  18039      0t0  TCP *:53 (LISTEN)
                      dnsmasq     757   dnsmasq    7u  IPv6  18041      0t0  TCP *:53 (LISTEN)
                      io.admin.   920  iobroker   27u  IPv6  18361      0t0  TCP *:8081 (LISTEN)
                      node-red   1221  iobroker   22u  IPv4  21060      0t0  TCP raspberrypi-ioB.fritz.box:1880 (LISTEN)
                      node-red   1221  iobroker   23u  IPv6  20138      0t0  TCP *:8080 (LISTEN)
                      io.web.0   1762  iobroker   27u  IPv6  22816      0t0  TCP *:8082 (LISTEN)
                      io.upnp.0  2404  iobroker   29u  IPv6  32939      0t0  TCP *:8000 (LISTEN)
                      io.mqtt.0 19825  iobroker   27u  IPv4 188190      0t0  TCP *:1500 (LISTEN)
                      pi@raspberrypi-ioB:~ $
                      

                      Wie bekommt man denn da den Port geändert? Oder was kann man da machen?

                      Glasfaser Wal 2 Replies Last reply Reply Quote 0
                      • Glasfaser
                        Glasfaser @BamBam89 last edited by

                        @bambam89 sagte in Sonoff Adapter Rot nach Updaten (Port?):

                        Ich hatte dieses mosquitto schon im verdacht:

                        Bingo ,

                        Kenne mich nicht mit mosquitto aus

                        B 1 Reply Last reply Reply Quote 1
                        • Wal
                          Wal Developer @BamBam89 last edited by

                          @bambam89 ,
                          die mosquitto.conf in /etc/mosquitto ändern oder Mosquitto löschen.

                          1 Reply Last reply Reply Quote 2
                          • B
                            BamBam89 @Glasfaser last edited by

                            @glasfaser Danke dir!!

                            @Wal kannst du mir sagen, wozu mosquitto genutzt wird?

                            Wal 1 Reply Last reply Reply Quote 1
                            • Wal
                              Wal Developer @BamBam89 last edited by

                              @bambam89 ,
                              das ist ein MQTT-Server und den musst du installiert haben.

                              sudo apt remove mosquitto
                              
                              B 1 Reply Last reply Reply Quote 1
                              • B
                                BamBam89 @Wal last edited by

                                @wal

                                und zack ist der Sonoff Adapter wieder grün. Mal schauen was durch die Deinstallation jetzt dann nicht mehr geht 🙂

                                Danke euch beiden und noch einen schönen Restsonntag

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

                                  @bambam89 sagte in Sonoff Adapter Rot nach Updaten (Port?):

                                  Mal schauen was durch die Deinstallation jetzt dann nicht mehr geht

                                  mosquitto

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

                                  Support us

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

                                  801
                                  Online

                                  31.9k
                                  Users

                                  80.1k
                                  Topics

                                  1.3m
                                  Posts

                                  4
                                  15
                                  720
                                  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