Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Changes in latest version breaks watchdog

Hi

I have had the mosquitto broker running under Linux Mint 19 with a watchdog daemon without problems for several months. I have just upgraded to the latest version of mosquitto and immediately got into a cycle of perpetual reboots.

The first issue I have run down is that mosquitto no longer seems to produce a /var/run/mosquitto.pid file, which I thought was pretty standard for daemons. My watchdog was testing for the existence of this pid file to check that the broker had not terminated. So Question 1: Has the generation of /var/run/mosquitto.pid been removed from the latest version? If so, why? If not, any ideas why I am not seeing it?

Question 2: Have there been any other changes? (The change log seems to show only benign bug fixes.) Even when I stop my watchdog checking for the existence of (a non-existent) /var/run/mosquitto.pid file, I am still getting unexpected restarts. My setup is that my watchdog periodically runs an executable that writes via the broker to a service program that then responds with a message back to the first executable; all MQTT messages use libmosquitto. If the round trip works properly then I can infer that all is well; otherwise my testing program returns an error code to the watchdog that then forces a restart. On digging a little deeper, the service at the end of the chain that responds is now unable to connect to the new version of the broker. Again, this has all worked perfectly for several months but now appears to have broken on the new version of mosquitto. Any ideas? Do I need to reset the passwords when I upgrade?

Peter


Back to the top