I’m using the Mosquitto broker to read heatpump data. After some time the connection breaks up. Can anyone help me how to get started on debugging/fixing this? The HA MQTT log is here below. (i’ve replaced the MAC addres with xxxxxxxxx). I can only put 2 ”links” on a post, so I have edited the log.
Edit: I’m using HA on Raspberry Pi with 1Gb RAM. Is the low amount of RAM the culprit somehow?
2025-02-15 09:08:44: New connection from 172.30.32.2:52668 on port 1883.
2025-02-15 09:08:45: Client closed its connection.
2025-02-15 09:10:44: New connection from 172.30.32.2:56148 on port 1883.
2025-02-15 09:10:44: Client closed its connection.
time=“2025-02-15T09:12:22+02:00” level=error msg=“http request error: Post "http://127.0.0.1:80/superuser\”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
2025-02-15 09:12:08: Client xxxxxxxxxxx disconnected due to out of memory.
time=“2025-02-15T09:12:42+02:00” level=error msg=“http request error: Post "hxxxx://127.0.0.1:80/acl": context deadline exceeded (Client.Timeout exceeded while awaiting headers)”
time=“2025-02-15T09:12:43+02:00” level=error msg=“Post "hxxxx://127.0.0.1:80/superuser": context deadline exceeded (Client.Timeout exceeded while awaiting headers)”
2025-02-15 09:12:54: New connection from 172.30.32.2:45628 on port 1883.
2025-02-15 09:12:58: Client closed its connection.
2025-02-15 09:13:00: New connection from 192.168.68.112:51454 on port 1883.
time=“2025-02-15T09:13:20+02:00” level=error msg=“http request error: Post "hxxxx://127.0.0.1:80/authentication": context deadline exceeded (Client.Timeout exceeded while awaiting headers)”
time=“2025-02-15T09:13:20+02:00” level=error msg=“Post "hxxxx://127.0.0.1:80/authentication": context deadline exceeded (Client.Timeout exceeded while awaiting headers)”
2025-02-15 09:13:06: Bad socket read/write on client 8813bf64e270: Unknown error.
2025-02-15 09:13:21: Client 4HRydtEwH0f62QcNy9gyBH has exceeded timeout, disconnecting.
2025-02-15 09:13:58: New connection from 172.30.32.1:37805 on port 1883.
2025-02-15 09:13:59: New client connected from 172.30.32.1:37805 as 4HRydtEwH0f62QcNy9gyBH (p2, c1, k60, u’homeassistant’).
2025-02-15 09:14:00: New connection from 192.168.68.112:51455 on port 1883.
time=“2025-02-15T09:14:06+02:00” level=error msg=“http request error: Post "hxxxxc://127.0.0.1:80/authentication": context deadline exceeded (Client.Timeout exceeded while awaiting headers)”
time=“2025-02-15T09:14:06+02:00” level=error msg=“Post "http://127.0.0.1:80/authentication\”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
2025-02-15 09:14:00: Bad socket read/write on client xxxxxxxxxxxxx: Unknown error.
2025-02-15 09:14:59: New connection from 172.30.32.2:59212 on port 1883.
2025-02-15 09:14:59: New connection from 192.168.68.112:51456 on port 1883.
2025-02-15 09:15:01: Client closed its connection.
time=“2025-02-15T09:15:09+02:00” level=error msg=“http request error: Post "hxxxx://127.0.0.1:80/authentication": context deadline exceeded (Client.Timeout exceeded while awaiting headers)”
time=“2025-02-15T09:15:09+02:00” level=error msg=“Post "hxxxx://127.0.0.1:80/authentication": context deadline exceeded (Client.Timeout exceeded while awaiting headers)”
2025-02-15 09:15:01: Bad socket read/write on client 8813bf64e270: Unknown error.
s6-rc: info: service legacy-services: stopping
2025-02-15 09:15:38: mosquitto version 2.0.20 terminating
2025-02-15 09:15:38: Saving in-memory database to /data//mosquitto.db.
s6-svwait: fatal: timed out
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[09:17:09] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
[09:17:18] INFO: Starting NGINX for authentication handling…
s6-rc: info: service legacy-services successfully started
[09:17:20] INFO: Starting mosquitto MQTT broker…
2025-02-15 09:17:21: Warning: Mosquitto should not be run as root/administrator.
2025-02-15 09:17:21: mosquitto version 2.0.20 starting
2025-02-15 09:17:21: Config loaded from /etc/mosquitto/mosquitto.conf.
2025-02-15 09:17:21: Loading plugin: /usr/share/mosquitto/go-auth.so
2025-02-15 09:17:21: ├── Username/password checking enabled.
2025-02-15 09:17:21: ├── TLS-PSK checking enabled.
2025-02-15 09:17:21: └── Extended authentication not enabled.
2025-02-15 09:17:21: Opening ipv4 listen socket on port 1883.
2025-02-15 09:17:21: Opening ipv6 listen socket on port 1883.
2025-02-15 09:17:21: Opening websockets listen socket on port 1884.
2025-02-15 09:17:21: mosquitto version 2.0.20 running
2025-02-15 09:17:27: New connection from ::1:50162 on port 1883.
2025-02-15 09:17:27: Client disconnected due to protocol error.
[09:17:28] INFO: Successfully send discovery information to Home Assistant.
[09:17:29] INFO: Successfully send service information to the Supervisor.
2025-02-15 09:18:00: New connection from 192.168.68.112:51459 on port 1883.
2025-02-15 09:18:00: New client connected from 192.168.68.112:51459 as xxxxxxxxxxxxx (p2, c1, k15, u’mqtt_useer’)