Connect MQTT on boot
Hi,
When using MQTT, Repetier Server doesn't automatically connect MQTT on boot. I have to go to "Global Settings -> MQTT -> Save" to get it to connect and use it. On Raspberry, I have Mosquitto installed and MQTT service configured to start on boot. MQTT on Raspberry works always when using the terminal. MQTT through Repetier Server commands only works when I manually connect it on Global Settings. Could you point me in the right direction to enable Repetier to connect MQTT on boot? Please tell me if you need any extra information. Best regards, ITFAB.
Comments
Connection failed: MQTT error [135]: CONNACK return code
which means MQTT was not reachable at time of startup. During my test I started disconnected and it disappeared once MQTT became active.
Save is not needed I think. Just use the active button at the top. I think that it just works because save stops and restarts connection. And here I think mqtt is not running at startup or in a condition that triggers issues when server tries to connect, also I can not say which exactly since it works in my case at least.
Also check server.log to see if server had issues with connecting.
Also mybe tell me how you connect (tls, verify certificate, mqtt version) in case it depends on mqtt version. I test it with mosquito on homeassistant installation using MQTT 5.
My server.log when I reboot the server is:
Finally, I have mosquitto version 1.5.7 which is an MQTT v3.1.1 broker. That's the output of the command mosquitto -h.
14:31:14.400: Connection failed: MQTT error [-1]: TCP connect timeout
I noticed you are using older 1.4.9 version and I had some fixes on MQTT for 1.4.10 so please upgrade and see if that makes a difference.
Excuse my mistake and thanks a lot for the assistance.