Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Einsteigerfragen
  4. Einbindung von Geräten
  5. [gelöst] Keine Verbindung zu mqtt-Server/Broker

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

[gelöst] Keine Verbindung zu mqtt-Server/Broker

Scheduled Pinned Locked Moved Einbindung von Geräten
37 Posts 5 Posters 3.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M MiPl

    @crunchip

    sudo netstat -ltp liefert:

    Aktive Internetverbindungen (Nur Server)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
    tcp        0      0 localhost:9000          0.0.0.0:*               LISTEN      494/iobroker.js-con 
    tcp        0      0 localhost:9001          0.0.0.0:*               LISTEN      494/iobroker.js-con 
    tcp        0      0 localhost:mysql         0.0.0.0:*               LISTEN      589/mysqld          
    tcp        0      0 0.0.0.0:tproxy          0.0.0.0:*               LISTEN      762/motion          
    tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN      516/sshd            
    tcp        0      0 localhost:ipp           0.0.0.0:*               LISTEN      435/cupsd           
    tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      886/io.mqtt.0       
    tcp        0      0 0.0.0.0:1884            0.0.0.0:*               LISTEN      886/io.mqtt.0       
    tcp        0      0 0.0.0.0:8765            0.0.0.0:*               LISTEN      392/python          
    tcp        0      0 localhost:7999          0.0.0.0:*               LISTEN      762/motion          
    tcp6       0      0 [::]:8082               [::]:*                  LISTEN      789/io.admin.0      
    tcp6       0      0 [::]:8083               [::]:*                  LISTEN      976/io.web.0        
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      516/sshd            
    tcp6       0      0 localhost:3350          [::]:*                  LISTEN      525/xrdp-sesman     
    tcp6       0      0 localhost:ipp           [::]:*                  LISTEN      435/cupsd           
    tcp6       0      0 [::]:3389               [::]:*                  LISTEN      545/xrdp 
    

    und zum ble.0-Adapter sieht das Protokoll so aus:

    2023-05-21 11:05:20.210	error	Terminating because A dependency requires a rebuild.
    2023-05-21 11:05:18.823	info	starting scanner process...
    2023-05-21 11:05:18.763	info	monitored services: fe95
    2023-05-21 11:05:18.758	info	enabled plugins: mi-flora, _default
    2023-05-21 11:05:18.753	info	loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default
    2023-05-21 11:05:18.633	info	starting. Version 0.13.0 in /opt/iobroker/node_modules/iobroker.ble, node: v18.16.0, js-controller: 4.0.24
    2023-05-21 11:05:18.116	debug	States connected to redis: 127.0.0.1:9000
    2023-05-21 11:05:18.087	debug	States create User PubSub Client
    2023-05-21 11:05:18.083	debug	States create System PubSub Client
    2023-05-21 11:05:18.063	debug	Redis States: Use Redis connection: 127.0.0.1:9000
    2023-05-21 11:05:18.012	debug	Objects connected to redis: 127.0.0.1:9001
    2023-05-21 11:05:17.990	debug	Objects client initialize lua scripts
    2023-05-21 11:05:17.919	debug	Objects create User PubSub Client
    2023-05-21 11:05:17.903	debug	Objects create System PubSub Client
    2023-05-21 11:05:17.898	debug	Objects client ready ... initialize now
    2023-05-21 11:05:17.813	debug	Redis Objects: Use Redis connection: 127.0.0.1:9001
    
    crunchipC Away
    crunchipC Away
    crunchip
    Forum Testing Most Active
    wrote on last edited by crunchip
    #21

    @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

    localhost:7999 0.0.0.0:* LISTEN 762/motion

    da wundert mich die Auslastung nicht, wenn motioneye auch noch darauf läuft

    ansonsten passen die Ports
    und du bist sicher das die Zugangsdaten für mqtt stimmen, möglicher Kopierfehler Leerzeichen oder so?

    @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

    error Terminating because A dependency requires a rebuild

    wenn er kein automatisches erfolgreiches rebuild tätigt, dann installier in neu bzw selbst wie oben erwähnt ein rebuild anstoßen

    umgestiegen von Proxmox auf Unraid

    Thomas BraunT M 2 Replies Last reply
    0
    • crunchipC crunchip

      @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

      localhost:7999 0.0.0.0:* LISTEN 762/motion

      da wundert mich die Auslastung nicht, wenn motioneye auch noch darauf läuft

      ansonsten passen die Ports
      und du bist sicher das die Zugangsdaten für mqtt stimmen, möglicher Kopierfehler Leerzeichen oder so?

      @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

      error Terminating because A dependency requires a rebuild

      wenn er kein automatisches erfolgreiches rebuild tätigt, dann installier in neu bzw selbst wie oben erwähnt ein rebuild anstoßen

      Thomas BraunT Online
      Thomas BraunT Online
      Thomas Braun
      Most Active
      wrote on last edited by
      #22

      @crunchip sagte in Keine Verbindung zu mqtt-Server/Broker:

      da wundert mich die Auslastung nicht, wenn motioneye auch noch darauf läuft

      Und Cups und MySQL und RemoteDesktop...

      Linux-Werkzeugkasten:
      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
      NodeJS Fixer Skript:
      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

      1 Reply Last reply
      0
      • crunchipC crunchip

        @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

        localhost:7999 0.0.0.0:* LISTEN 762/motion

        da wundert mich die Auslastung nicht, wenn motioneye auch noch darauf läuft

        ansonsten passen die Ports
        und du bist sicher das die Zugangsdaten für mqtt stimmen, möglicher Kopierfehler Leerzeichen oder so?

        @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

        error Terminating because A dependency requires a rebuild

        wenn er kein automatisches erfolgreiches rebuild tätigt, dann installier in neu bzw selbst wie oben erwähnt ein rebuild anstoßen

        M Offline
        M Offline
        MiPl
        wrote on last edited by
        #23

        @crunchip

        bin mir sicher. Habe es jetzt nochmal eingegeben:
        mqtt-layzspa.jpg
        mqtt-iobroker.jpg

        @Thomas Braun
        CUPS und rDesktop könnte ich noch terminieren. MySQL und motion wird aber genutzt.

        Thomas BraunT 1 Reply Last reply
        0
        • crunchipC crunchip

          @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

          leider nur teuer zu bekommen

          aktuell für 176€,
          allerdings bekommt man für den Preis sogar fast ne bessere gebrauchte alternative

          HomoranH Do not disturb
          HomoranH Do not disturb
          Homoran
          Global Moderator Administrators
          wrote on last edited by
          #24

          @crunchip sagte in Keine Verbindung zu mqtt-Server/Broker:

          @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

          leider nur teuer zu bekommen

          aktuell für 176€,
          allerdings bekommt man für den Preis sogar fast ne bessere gebrauchte alternative

          oder @MiPl denkt pber einen sofort verfügbaren Odroid C4 nach

          kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

          Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

          der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

          M 1 Reply Last reply
          0
          • M MiPl

            @crunchip

            bin mir sicher. Habe es jetzt nochmal eingegeben:
            mqtt-layzspa.jpg
            mqtt-iobroker.jpg

            @Thomas Braun
            CUPS und rDesktop könnte ich noch terminieren. MySQL und motion wird aber genutzt.

            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            wrote on last edited by
            #25

            @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

            MySQL und motion wird aber genutzt.

            Dafür ist ein Pi3 mit 1Gb RAM unterdimensioniert. Wie man sieht.

            Linux-Werkzeugkasten:
            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
            NodeJS Fixer Skript:
            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

            1 Reply Last reply
            0
            • HomoranH Homoran

              @crunchip sagte in Keine Verbindung zu mqtt-Server/Broker:

              @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

              leider nur teuer zu bekommen

              aktuell für 176€,
              allerdings bekommt man für den Preis sogar fast ne bessere gebrauchte alternative

              oder @MiPl denkt pber einen sofort verfügbaren Odroid C4 nach

              M Offline
              M Offline
              MiPl
              wrote on last edited by
              #26

              @homoran
              ich bin da gerade parallel an einem Kauf eines Raspi dran. Habe dafür 7"-Display und möchte das nach Möglichkeit weiter nutzen.

              M 1 Reply Last reply
              0
              • M MiPl

                @homoran
                ich bin da gerade parallel an einem Kauf eines Raspi dran. Habe dafür 7"-Display und möchte das nach Möglichkeit weiter nutzen.

                M Offline
                M Offline
                MiPl
                wrote on last edited by
                #27

                @mipl
                da das System (mehr oder weniger) läuft sollte aber dennoch auch der mqtt sich verbinden können, oder? Gibt es dazu noch eine Anregung?

                Marc BergM crunchipC 2 Replies Last reply
                0
                • M MiPl

                  @mipl
                  da das System (mehr oder weniger) läuft sollte aber dennoch auch der mqtt sich verbinden können, oder? Gibt es dazu noch eine Anregung?

                  Marc BergM Offline
                  Marc BergM Offline
                  Marc Berg
                  Most Active
                  wrote on last edited by
                  #28

                  @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

                  Gibt es dazu noch eine Anregung?

                  Websockets auf jeden Fall abschalten, das brauchst du hier nicht. Dann würde ich mal testen, ob ich mit einem MQTT Client wie "MQTT Explorer" auf den Broker zugreifen kann. Ist umgekehrt das Gerät, von welchem aus zugegriffen werden soll, anpingbar?

                  NUC10I3+Ubuntu+Docker+ioBroker+influxDB2+Node Red+RabbitMQ+Grafana

                  Pi-hole, Traefik, Checkmk, Conbee II+Zigbee2MQTT, ESPSomfy-RTS, LoRaWAN, Arduino, KiCad

                  Benutzt das Voting im Beitrag, wenn er euch geholfen hat.

                  1 Reply Last reply
                  0
                  • M MiPl

                    @mipl
                    da das System (mehr oder weniger) läuft sollte aber dennoch auch der mqtt sich verbinden können, oder? Gibt es dazu noch eine Anregung?

                    crunchipC Away
                    crunchipC Away
                    crunchip
                    Forum Testing Most Active
                    wrote on last edited by crunchip
                    #29

                    @mipl mach mal alle Haken raus in der mqtt Instanz-Einstellung und websocket aus
                    andernfalls, liegt es möglicherweise an deinem Netzwerk

                    umgestiegen von Proxmox auf Unraid

                    M 1 Reply Last reply
                    0
                    • crunchipC crunchip

                      @mipl mach mal alle Haken raus in der mqtt Instanz-Einstellung und websocket aus
                      andernfalls, liegt es möglicherweise an deinem Netzwerk

                      M Offline
                      M Offline
                      MiPl
                      wrote on last edited by
                      #30

                      @crunchip
                      Web-Sockets aus, alle Haken bei Einstellungen entfernt. Keine Änderung.

                      @Marc-Berg MQTT-LayZSpa ist anpingbar. MQTT-Explorer: Werde mich damit auseinandersetzen.

                      1 Reply Last reply
                      0
                      • Thomas BraunT Thomas Braun

                        @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

                        Terminating because A dependency requires a rebuild.

                        Dann mach das.

                        iobroker rebuild ble
                        

                        Zur Not den Adapter nochmal neu installieren.

                        M Offline
                        M Offline
                        MiPl
                        wrote on last edited by
                        #31

                        @thomas-braun
                        hatte den Beitrag nicht gesehen.

                        iobroker rebuild ble
                        Rebuilding native module "ble" ...
                        rebuilt dependencies successfully
                        
                        Rebuilding native modules done
                        

                        bleibt trotzdem rot. Neuinstallation des Adapters - weiterhin rot. Rebuild successfully - weiterhin rot. 😞

                        1 Reply Last reply
                        0
                        • Marc BergM Offline
                          Marc BergM Offline
                          Marc Berg
                          Most Active
                          wrote on last edited by
                          #32

                          @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

                          MQTT-Explorer: Werde mich damit auseinandersetzen.

                          Naja, "auseinandersetzen" muss sich damit nicht, einfach die Portable-Version runterladen, starten, IP+Port+User+PW eingeben, fertig. Und schwupps, hat man 50% der möglichen Fehlerursachen ausgeschlossen.

                          Außerdem ist es noch ratsam, das Log-Level des MQTT Adapters auf "debug" hochzusetzen, dann sieht man jeden Verbindungsversuch, ob erfolgeich oder nicht.

                          NUC10I3+Ubuntu+Docker+ioBroker+influxDB2+Node Red+RabbitMQ+Grafana

                          Pi-hole, Traefik, Checkmk, Conbee II+Zigbee2MQTT, ESPSomfy-RTS, LoRaWAN, Arduino, KiCad

                          Benutzt das Voting im Beitrag, wenn er euch geholfen hat.

                          M 1 Reply Last reply
                          0
                          • Marc BergM Marc Berg

                            @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

                            MQTT-Explorer: Werde mich damit auseinandersetzen.

                            Naja, "auseinandersetzen" muss sich damit nicht, einfach die Portable-Version runterladen, starten, IP+Port+User+PW eingeben, fertig. Und schwupps, hat man 50% der möglichen Fehlerursachen ausgeschlossen.

                            Außerdem ist es noch ratsam, das Log-Level des MQTT Adapters auf "debug" hochzusetzen, dann sieht man jeden Verbindungsversuch, ob erfolgeich oder nicht.

                            M Offline
                            M Offline
                            MiPl
                            wrote on last edited by MiPl
                            #33

                            @marc-berg
                            damit ist eine Verbindung möglich. MQTT ist grün.

                            2023-05-21 13:15:17.800	debug	Client [mqtt-explorer-4852ba5f] pingreq
                            mqtt.0
                            	2023-05-21 13:14:17.748	debug	Client [mqtt-explorer-4852ba5f] pingreq
                            mqtt.0
                            	2023-05-21 13:13:17.735	info	Client [mqtt-explorer-4852ba5f] subscribes on "$SYS/#" with regex /^mqtt\.0\.\$SYS(\..*)?/
                            mqtt.0
                            	2023-05-21 13:13:17.734	info	Client [mqtt-explorer-4852ba5f] subscribes on "$SYS/#" with regex /^\$SYS(\..*)?/
                            mqtt.0
                            	2023-05-21 13:13:17.733	debug	Client [mqtt-explorer-4852ba5f] Handle subscribe: {"topic":"$SYS/#","qos":0}
                            mqtt.0
                            	2023-05-21 13:13:17.729	info	Client [mqtt-explorer-4852ba5f] subscribes on "#" with regex /^mqtt\.0(\..*)?/
                            mqtt.0
                            	2023-05-21 13:13:17.728	info	Client [mqtt-explorer-4852ba5f] subscribes on "#" with regex /.*/
                            mqtt.0
                            	2023-05-21 13:13:17.724	debug	Client [mqtt-explorer-4852ba5f] Handle subscribe: {"topic":"#","qos":0}
                            mqtt.0
                            	2023-05-21 13:13:17.714	debug	stateChange mqtt.0.info.connection: {"val":"mqtt-explorer-4852ba5f","ack":true,"ts":1684667597709,"q":0,"from":"system.adapter.mqtt.0","user":"system.user.admin","lc":1684667597709}
                            mqtt.0
                            	2023-05-21 13:13:17.683	debug	Client [mqtt-explorer-4852ba5f] with keepalive 60 set timeout to 90 seconds
                            mqtt.0
                            	2023-05-21 13:13:17.459	info	Client [mqtt-explorer-4852ba5f] connected with secret 1684667597443_6267
                            
                            Marc BergM 1 Reply Last reply
                            0
                            • M MiPl

                              @marc-berg
                              damit ist eine Verbindung möglich. MQTT ist grün.

                              2023-05-21 13:15:17.800	debug	Client [mqtt-explorer-4852ba5f] pingreq
                              mqtt.0
                              	2023-05-21 13:14:17.748	debug	Client [mqtt-explorer-4852ba5f] pingreq
                              mqtt.0
                              	2023-05-21 13:13:17.735	info	Client [mqtt-explorer-4852ba5f] subscribes on "$SYS/#" with regex /^mqtt\.0\.\$SYS(\..*)?/
                              mqtt.0
                              	2023-05-21 13:13:17.734	info	Client [mqtt-explorer-4852ba5f] subscribes on "$SYS/#" with regex /^\$SYS(\..*)?/
                              mqtt.0
                              	2023-05-21 13:13:17.733	debug	Client [mqtt-explorer-4852ba5f] Handle subscribe: {"topic":"$SYS/#","qos":0}
                              mqtt.0
                              	2023-05-21 13:13:17.729	info	Client [mqtt-explorer-4852ba5f] subscribes on "#" with regex /^mqtt\.0(\..*)?/
                              mqtt.0
                              	2023-05-21 13:13:17.728	info	Client [mqtt-explorer-4852ba5f] subscribes on "#" with regex /.*/
                              mqtt.0
                              	2023-05-21 13:13:17.724	debug	Client [mqtt-explorer-4852ba5f] Handle subscribe: {"topic":"#","qos":0}
                              mqtt.0
                              	2023-05-21 13:13:17.714	debug	stateChange mqtt.0.info.connection: {"val":"mqtt-explorer-4852ba5f","ack":true,"ts":1684667597709,"q":0,"from":"system.adapter.mqtt.0","user":"system.user.admin","lc":1684667597709}
                              mqtt.0
                              	2023-05-21 13:13:17.683	debug	Client [mqtt-explorer-4852ba5f] with keepalive 60 set timeout to 90 seconds
                              mqtt.0
                              	2023-05-21 13:13:17.459	info	Client [mqtt-explorer-4852ba5f] connected with secret 1684667597443_6267
                              
                              Marc BergM Offline
                              Marc BergM Offline
                              Marc Berg
                              Most Active
                              wrote on last edited by
                              #34

                              @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

                              damit ist eine Verbindung möglich. MQTT ist grün.

                              Dann wird der Fehler wohl auf Client-Seite zu suchen sein, wenn beim Broker nicht mal ein Verbindungsversuch zu sehen ist.

                              NUC10I3+Ubuntu+Docker+ioBroker+influxDB2+Node Red+RabbitMQ+Grafana

                              Pi-hole, Traefik, Checkmk, Conbee II+Zigbee2MQTT, ESPSomfy-RTS, LoRaWAN, Arduino, KiCad

                              Benutzt das Voting im Beitrag, wenn er euch geholfen hat.

                              M 1 Reply Last reply
                              0
                              • Marc BergM Marc Berg

                                @mipl sagte in Keine Verbindung zu mqtt-Server/Broker:

                                damit ist eine Verbindung möglich. MQTT ist grün.

                                Dann wird der Fehler wohl auf Client-Seite zu suchen sein, wenn beim Broker nicht mal ein Verbindungsversuch zu sehen ist.

                                M Offline
                                M Offline
                                MiPl
                                wrote on last edited by
                                #35

                                @marc-berg
                                schlussfolgere ich auch. Ist ja ein Github-Projekt - sollte ich da ein Issue aufmachen, obwohl es bei zahlreichen Nutzern scheinbar klappt?

                                crunchipC 1 Reply Last reply
                                0
                                • M MiPl

                                  @marc-berg
                                  schlussfolgere ich auch. Ist ja ein Github-Projekt - sollte ich da ein Issue aufmachen, obwohl es bei zahlreichen Nutzern scheinbar klappt?

                                  crunchipC Away
                                  crunchipC Away
                                  crunchip
                                  Forum Testing Most Active
                                  wrote on last edited by
                                  #36

                                  @mipl ggf noch mal alle Netzwerkeinstellungen deiner Spa Platine prüfen, Neustart bringt auch nichts?

                                  umgestiegen von Proxmox auf Unraid

                                  M 1 Reply Last reply
                                  0
                                  • crunchipC crunchip

                                    @mipl ggf noch mal alle Netzwerkeinstellungen deiner Spa Platine prüfen, Neustart bringt auch nichts?

                                    M Offline
                                    M Offline
                                    MiPl
                                    wrote on last edited by MiPl
                                    #37

                                    @crunchip
                                    IP's nochmal gecheckt - kein Fehler gefunden. ESP restartet - MQTT weiterhin gelb.

                                    Falsch - ist jetzt grün geworden!

                                    Danke Euch für die Hilfe.

                                    Setze den Thread auf gelöst.

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    250

                                    Online

                                    32.4k

                                    Users

                                    81.4k

                                    Topics

                                    1.3m

                                    Posts
                                    Community
                                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                    ioBroker Community 2014-2025
                                    logo
                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Recent
                                    • Tags
                                    • Unread 0
                                    • Categories
                                    • Unreplied
                                    • Popular
                                    • GitHub
                                    • Docu
                                    • Hilfe