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.
    • crunchip
      crunchip Forum Testing Most Active @MiPl last edited by crunchip

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

      X-Server: true

      ebenfalls tödlich und dadurch auch kein Ram mehr zur Verfügung, siehe

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

      Mem: 923M 774M 23M 8.0M 125M 87M
      Swap: 99M 99M 0.0K
      Total: 1.0G 874M 23M

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

      load average: 12.29, 4.86, 1.79

      ja der is aktuell schwer am werkeln

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

      Codename: buster

      ist ebenfalls tot

      würde jetzt erstmal den iobroker stoppen

      iob stop
      

      danach
      raspi config Desktop deaktivieren
      anschließend neu booten

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

        @mipl
        Die Möhre wird auch zu heiß:

        Raspberry only:
        throttled=0x20000
        Other values than 0x0 hint to temperature/voltage problems
        temp=76.3'C
        volt=1.2813V
        

        Da wurde dann in den Notbetrieb gewechselt.

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

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

          raspi config Desktop deaktivieren

          iob stop
          raspi-config: Desktop deaktiviert
          Neustart

          ok, hab ich gemacht und ioBroker steht wieder auf.

          Nun erst "Codename: buster - ist ebenfalls tot" erledigen = Systemupdate oder sollte ich anders vorgehen?

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

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

            Nun erst "Codename: buster - ist ebenfalls tot" erledigen = Systemupdate oder sollte ich anders vorgehen?

            wäre theoretisch das OS neu aufsetzen, ist allerdings auch möglich ein Update zu fahren ohne Neuinstallation, dies kann muss aber nicht auf Anhieb funktionieren.

            Wenn du Zeitnah eh vor hast dir etwas besseres anzuschaffen, würde ichs erstmal so belassen.

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

              @crunchip
              ok, es wird ein größerer Raspi kommen. Wahrscheinlich nehme ich diesen Vorgang auch als Anlass heute ein teureres Modell anzuschaffen.

              mqtt.0 hat weiterhin keine Verbindung. Auch das ändern von Parametern am Device ändert daran weiterhin nichts.

              ble.0 ist weiterhin rot. Im Protokoll steht: Terminating because A dependency requires a rebuild.

              crunchip Thomas Braun 2 Replies Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @MiPl last edited by

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

                mqtt.0 hat weiterhin keine Verbindung. Auch das ändern von Parametern am Device ändert daran weiterhin nichts.

                dann scheint irgend etwas noch nicht zu stimmen
                Ausgabe von

                sudo netstat -ltp
                

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

                Im Protokoll steht:

                mehr nicht?

                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:

                  Terminating because A dependency requires a rebuild.

                  Dann mach das.

                  iobroker rebuild ble
                  

                  Zur Not den Adapter nochmal neu installieren.

                  M 1 Reply Last reply Reply Quote 0
                  • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            898
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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