Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Einbindung von Geräten
    5. [gelöst] Keine Verbindung zu mqtt-Server/Broker

    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

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MiPl @crunchip last edited by 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
      
      crunchip 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @MiPl last edited by 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 Braun M 2 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @crunchip last edited by

          @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...

          1 Reply Last reply Reply Quote 0
          • M
            MiPl @crunchip last edited by

            @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 Braun 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @crunchip last edited by

              @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 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @MiPl last edited by

                @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.

                1 Reply Last reply Reply Quote 0
                • M
                  MiPl @Homoran last edited by

                  @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 Reply Quote 0
                  • M
                    MiPl @MiPl last edited by

                    @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 Berg crunchip 2 Replies Last reply Reply Quote 0
                    • Marc Berg
                      Marc Berg Most Active @MiPl last edited by

                      @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?

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

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

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          MiPl @crunchip last edited by

                          @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 Reply Quote 0
                          • M
                            MiPl @Thomas Braun last edited by

                            @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 Reply Quote 0
                            • Marc Berg
                              Marc Berg Most Active last edited by

                              @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 1 Reply Last reply Reply Quote 0
                              • M
                                MiPl @Marc Berg last edited by 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 Berg 1 Reply Last reply Reply Quote 0
                                • Marc Berg
                                  Marc Berg Most Active @MiPl last edited by

                                  @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 1 Reply Last reply Reply Quote 0
                                  • M
                                    MiPl @Marc Berg last edited by

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

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

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

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        MiPl @crunchip last edited by MiPl

                                        @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 Reply Quote 0
                                        • First post
                                          Last post

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        901
                                        Online

                                        31.9k
                                        Users

                                        80.1k
                                        Topics

                                        1.3m
                                        Posts

                                        5
                                        37
                                        1861
                                        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