Hi,
Get “ERROR: Can’t setup Home Assistant service mqtt” in logg when start mqtt up.
In Node-Red im connected but dont receive any data.
Mqtt explorer working well, no problem there.
Someone maybe have a solution on this problem?
Can you please upload the logs of the mosquito mqtt broker logs?
Hi,
Hope you can find something in there I’m probably doing something wrong! Is new to this …
1616933564: New client connected from 172.30.32.1 as mqtt_57552a57.b14c14 (p2, c1, k60, u’mhogberg’).
1616934695: Socket error on client 5e1emuRDCVt5BVf7iuvzaH, disconnecting.
1616934709: New connection from 172.30.32.1 on port 1883.
[14:31:50] INFO: [INFO] found homeassistant on local database
1616934710: New client connected from 172.30.32.1 as 4cVxa7ut8EltrhDdT9u0rx (p2, c1, k60, u’homeassistant’).
1616935359: Saving in-memory database to /data/mosquitto.db.
1616935661: Socket error on client 4cVxa7ut8EltrhDdT9u0rx, disconnecting.
1616935675: New connection from 172.30.32.1 on port 1883.
[14:47:55] INFO: [INFO] found homeassistant on local database
1616935675: New client connected from 172.30.32.1 as 6Ncmk9Pifg4Ih7w8h7oOYo (p2, c1, k60, u’homeassistant’).
1616936146: Socket error on client 6Ncmk9Pifg4Ih7w8h7oOYo, disconnecting.
1616936160: New connection from 172.30.32.1 on port 1883.
[14:56:01] INFO: [INFO] found homeassistant on local database
1616936161: New client connected from 172.30.32.1 as 3i2mVKZFqXbQIkIlOlQasC (p2, c1, k60, u’homeassistant’).
1616936913: Socket error on client 3i2mVKZFqXbQIkIlOlQasC, disconnecting.
1616936927: New connection from 172.30.32.1 on port 1883.
[15:08:48] INFO: [INFO] found homeassistant on local database
1616936928: New client connected from 172.30.32.1 as 5zSxhd5hAIKh7abV1ftrw3 (p2, c1, k60, u’homeassistant’).
1616937160: Saving in-memory database to /data/mosquitto.db.
1616937683: Socket error on client 5zSxhd5hAIKh7abV1ftrw3, disconnecting.
1616937697: New connection from 172.30.32.1 on port 1883.
[15:21:37] INFO: [INFO] found homeassistant on local database
1616937697: New client connected from 172.30.32.1 as 0tbvSjfnouzNecJWFAgyko (p2, c1, k60, u’homeassistant’).
1616937881: Socket error on client 0tbvSjfnouzNecJWFAgyko, disconnecting.
1616937895: New connection from 172.30.32.1 on port 1883.
1616937895: New client connected from 172.30.32.1 as 0mPv7A0tF6O4Xss23nkUYU (p2, c1, k60, u’homeassistant’).
1616938230: Socket error on client 0mPv7A0tF6O4Xss23nkUYU, disconnecting.
1616938244: New connection from 172.30.32.1 on port 1883.
[15:30:45] INFO: [INFO] found homeassistant on local database
1616938245: New client connected from 172.30.32.1 as 1duDRvFFNJpoDaGTdacBqC (p2, c1, k60, u’homeassistant’).
1616938423: Client mqtt_57552a57.b14c14 disconnected.
1616938423: New connection from 172.30.32.1 on port 1883.
[15:33:44] INFO: [INFO] found mhogberg on Home Assistant
1616938424: New client connected from 172.30.32.1 as mqtt_d8c181ce.054f9 (p2, c1, k60, u’mhogberg’).
1616938628: Client mqtt_d8c181ce.054f9 disconnected.
1616938629: New connection from 172.30.32.1 on port 1883.
1616938629: New client connected from 172.30.32.1 as mqtt_8706c0bf.2bc7 (p2, c1, k60, u’mhogberg’).
1616938713: Client mqtt_8706c0bf.2bc7 disconnected.
1616938713: New connection from 172.30.32.1 on port 1883.
1616938713: New client connected from 172.30.32.1 as mqtt_5f4afad8.657594 (p2, c1, k60, u’mhogberg’).
1616938790: Client mqtt_5f4afad8.657594 disconnected.
1616938790: New connection from 172.30.32.1 on port 1883.
[15:39:51] INFO: [INFO] found mhogberg on Home Assistant
1616938791: New client connected from 172.30.32.1 as mqtt_8a66925c.433c5 (p2, c1, k60, u’mhogberg’).
1616938961: Saving in-memory database to /data/mosquitto.db.
1616939129: Client mqtt_8a66925c.433c5 disconnected.
1616939129: New connection from 172.30.32.1 on port 1883.
[15:45:29] INFO: [INFO] found mhogberg on Home Assistant
1616939129: New client connected from 172.30.32.1 as mqtt_a3bb2847.1eeee8 (p2, c1, k60, u’mhogberg’).
1616939217: Client mqtt_a3bb2847.1eeee8 disconnected.
1616939217: New connection from 172.30.32.1 on port 1883.
1616939217: New client connected from 172.30.32.1 as mqtt_c4d98b20.6de7d8 (p2, c1, k60, u’mhogberg’).
1616939347: Client mqtt_c4d98b20.6de7d8 disconnected.
1616939347: New connection from 172.30.32.1 on port 1883.
1616939347: New client connected from 172.30.32.1 as mqtt_5d2d98a6.c8daf8 (p2, c1, k60, u’mhogberg’).
1616939471: Client mqtt_5d2d98a6.c8daf8 disconnected.
1616939471: New connection from 172.30.32.1 on port 1883.
[15:51:12] INFO: [INFO] found mhogberg on Home Assistant
1616939472: New client connected from 172.30.32.1 as mqtt_bc3fe0b8.fdb91 (p2, c1, k60, u’mhogberg’).
1616939554: Client mqtt_bc3fe0b8.fdb91 disconnected.
1616939554: New connection from 172.30.32.1 on port 1883.
1616939554: New client connected from 172.30.32.1 as mqtt_140e8849.c63118 (p2, c1, k60, u’mhogberg’).
1616939649: Client mqtt_140e8849.c63118 disconnected.
1616939649: New connection from 172.30.32.1 on port 1883.
1616939649: New client connected from 172.30.32.1 as mqtt_39d4c7c3.696ad8 (p2, c1, k60, u’mhogberg’).
1616940013: Client mqtt_39d4c7c3.696ad8 disconnected.
1616940013: New connection from 172.30.32.1 on port 1883.
[16:00:13] INFO: [INFO] found mhogberg on Home Assistant
1616940013: New client connected from 172.30.32.1 as mqtt_6839cc6.3108f34 (p2, c1, k60, u’mhogberg’).
1616940073: Client mqtt_6839cc6.3108f34 disconnected.
1616940073: New connection from 172.30.32.1 on port 1883.
1616940073: New client connected from 172.30.32.1 as mqtt_912cab49.824fd8 (p2, c1, k60, u’mhogberg’).
1616940313: Client mqtt_912cab49.824fd8 disconnected.
1616940313: New connection from 172.30.32.1 on port 1883.
1616940313: New client connected from 172.30.32.1 as mqtt_3c34a868.aa1c78 (p2, c1, k60, u’mhogberg’).
1616940505: Client mqtt_3c34a868.aa1c78 disconnected.
1616940505: New connection from 172.30.32.1 on port 1883.
[16:08:26] INFO: [INFO] found mhogberg on Home Assistant
1616940506: New client connected from 172.30.32.1 as mqtt_3485ec96.332d64 (p2, c1, k60, u’mhogberg’).
1616940590: Client mqtt_3485ec96.332d64 disconnected.
1616940591: New connection from 172.30.32.1 on port 1883.
1616940591: New client connected from 172.30.32.1 as mqtt_d73d4ef9.1dd14 (p2, c1, k60, u’mhogberg’).
1616940762: Saving in-memory database to /data/mosquitto.db.
1616941187: Client mqtt_d73d4ef9.1dd14 disconnected.
1616941187: New connection from 172.30.32.1 on port 1883.
[16:19:47] INFO: [INFO] found mhogberg on Home Assistant
1616941187: New client connected from 172.30.32.1 as mqtt_2de2fc7b.c815a4 (p2, c1, k60, u’mhogberg’).
1616941502: Client mqtt_2de2fc7b.c815a4 disconnected.
1616941502: New connection from 172.30.32.1 on port 1883.
[16:25:03] INFO: [INFO] found mhogberg on Home Assistant
1616941503: New client connected from 172.30.32.1 as mqtt_6889cf01.f55ad (p2, c1, k60, u’mhogberg’).
1616941977: Client mqtt_6889cf01.f55ad disconnected.
1616941977: New connection from 172.30.32.1 on port 1883.
[16:32:58] INFO: [INFO] found mhogberg on Home Assistant
1616941978: New client connected from 172.30.32.1 as mqtt_adb5e703.4d8dd8 (p2, c1, k60, u’mhogberg’).
1616942563: Saving in-memory database to /data/mosquitto.db.
1616943034: Client mqtt_adb5e703.4d8dd8 disconnected.
1616943044: New connection from 172.30.32.1 on port 1883.
[16:50:44] INFO: [INFO] found mhogberg on Home Assistant
1616943044: New client connected from 172.30.32.1 as mqtt_9afa1031.b6fb7 (p2, c1, k60, u’mhogberg’).
Having this log itself shows that the mqtt addon is working fine. But it seems that some of your devices are using wrong username or password to login to the broker. That is why we get the socket error in logs. Other than that it looks ok for me. Is there any issue with devices working because of this?
Have thought about it with password!
But how do I know which devices should have a password to log in to mqtt?
I have tried uninstalling and reinstalling but it does not help. Do not know where to see which devices need a password to log in
Actually all devices should have a username and password. There is an option in the mosquito configuration to add username and password but if this left empty, by default the HA username and password will be taken by the broker to authenticate clients.