After upgrading to Mosquitto 5.1 I’m getting intermittent socket errors and MQTT Connection failures with reason code 2 and 4.
This is a proxmox instance running only one VM being hassos and recorder redirected to Synology NAS running MariaDB10.
I’ve also recently upgraded firmware on Synology router.
Logs from Mosquitto:
[12:02:09] INFO: Setup mosquitto configuration
[12:02:09] INFO: Found local users inside config
[12:02:09] INFO: Initialize Hass.io Add-on services
[12:02:09] INFO: Initialize Home Assistant discovery
[12:02:09] INFO: Start Mosquitto daemon
1594605729: Loading config file /share/mosquitto/acl.conf
1594605729: mosquitto version 1.6.3 starting
1594605729: Config loaded from /etc/mosquitto.conf.
1594605729: Loading plugin: /usr/share/mosquitto/auth-plug.so
1594605729: ├── Username/password checking enabled.
1594605729: ├── TLS-PSK checking enabled.
1594605729: └── Extended authentication not enabled.
1594605729: |-- *** auth-plug: startup
1594605729: Opening ipv4 listen socket on port 1883.
1594605729: Opening ipv6 listen socket on port 1883.
1594605729: Opening websockets listen socket on port 1884.
1594605729: Opening ipv4 listen socket on port 8883.
1594605729: Opening ipv6 listen socket on port 8883.
1594605729: Opening websockets listen socket on port 8884.
1594605729: Warning: Mosquitto should not be run as root/administrator.
1594605729: New connection from 192.168.0.42 on port 1883.
[INFO] found xxxxxxxx on local database
1594605729: New client connected from 192.168.0.42 as DVES_D3BACD (p2, c1, k30, u'xxxxxxxx').
1594605731: New connection from 192.168.0.17 on port 1883.
1594605731: New client connected from 192.168.0.17 as auto-0EBB3489-6F74-077D-25F1-DFBCC09D4635 (p2, c1, k60, u'xxxxxxxx').
1594605731: New connection from 192.168.0.172 on port 1883.
1594605731: New client connected from 192.168.0.172 as DVES_6878A2 (p2, c1, k30, u'xxxxxxxx').
1594605731: New connection from 192.168.0.90 on port 1883.
1594605731: New client connected from 192.168.0.90 as DVES_A75C42 (p2, c1, k30, u'xxxxxxxx').
1594605731: New connection from 192.168.0.98 on port 1883.
1594605731: New client connected from 192.168.0.98 as DVES_51CD30 (p2, c1, k30, u'xxxxxxxx').
1594605731: New connection from 192.168.0.152 on port 1883.
1594605731: New client connected from 192.168.0.152 as DVES_37A1E3 (p2, c1, k30, u'xxxxxxxx').
1594605739: New connection from 192.168.0.224 on port 1883.
1594605739: New client connected from 192.168.0.224 as weatherstation-50029178e40d (p2, c1, k15, u'xxxxxxxx').
1594605739: New connection from 192.168.0.155 on port 1883.
1594605739: New client connected from 192.168.0.155 as DVES_AA3944 (p2, c1, k30, u'xxxxxxxx').
1594605739: New connection from 192.168.0.139 on port 1883.
1594605739: New client connected from 192.168.0.139 as DVES_3571C1 (p2, c1, k30, u'xxxxxxxx').
1594605739: New connection from 192.168.0.171 on port 1883.
1594605739: New client connected from 192.168.0.171 as DVES_689727 (p2, c1, k30, u'xxxxxxxx').
1594605739: New connection from 192.168.0.221 on port 1883.
1594605739: New client connected from 192.168.0.221 as DVES_330423 (p2, c1, k30, u'xxxxxxxx').
1594605739: New connection from 192.168.0.93 on port 1883.
1594605739: New client connected from 192.168.0.93 as DVES_AA33B8 (p2, c1, k30, u'xxxxxxxx').
1594605739: New connection from 192.168.0.214 on port 1883.
1594605739: New client connected from 192.168.0.214 as DVES_8F1BF8 (p2, c1, k30, u'xxxxxxxx').
1594605739: New connection from 192.168.0.200 on port 1883.
1594605739: New client connected from 192.168.0.200 as DVES_32FFC9 (p2, c1, k30, u'xxxxxxxx').
1594605739: New connection from 192.168.0.61 on port 1883.
1594605739: New client connected from 192.168.0.61 as DVES_32843F (p2, c1, k30, u'xxxxxxxx').
1594605740: New connection from 192.168.0.99 on port 1883.
1594605740: New client connected from 192.168.0.99 as DVES_68BAE2 (p2, c1, k30, u'xxxxxxxx').
1594605740: New connection from 192.168.0.91 on port 1883.
1594605740: New client connected from 192.168.0.91 as DVES_A79ACD (p2, c1, k30, u'xxxxxxxx').
1594605740: New connection from 192.168.0.207 on port 1883.
1594605740: New client connected from 192.168.0.207 as DVES_33073A (p2, c1, k30, u'xxxxxxxx').
1594605743: New connection from 192.168.0.17 on port 1883.
1594605743: New client connected from 192.168.0.17 as mqtt_3f48992b.89e316 (p2, c1, k60, u'xxxxxxxx').
1594605747: Socket error on client DVES_A75C42, disconnecting.
1594605747: Socket error on client DVES_51CD30, disconnecting.
1594605747: Socket error on client DVES_37A1E3, disconnecting.
Logs from one of the Tasmota devices:
12:02:08 MQT: Attempting connection...
12:02:08 MQT: Connect failed to 192.168.0.17:1883, rc -2. Retry in 10 sec
12:02:19 MQT: Attempting connection...
12:02:19 MQT: Connected
12:02:19 MQT: tele/kitchen_light_3/LWT = Online (retained)
Anybody else seeing issues with Mosquitto 5.1 or am I going down the wrong rabbit hole?
Thanks
Rob