Page 1 of 1

Brokers disconnected

PostPosted: Thu Aug 25, 2022 3:34 pm
by Colly
Hi Joe,
Returned from a few days away and found that my 2 MQTT brokers were disconnected. I restarted the plugin and no changes. What did fix it was when I selected Amazon IOT broker and the returned back to MQTT broker. Below is all I could get from the error messages:
Code: Select all
   Reloading plugin "MQTT Broker 2022.1.0" using API v3.0
   Stopping plugin "MQTT Broker 2022.1.0" (pid 1545)
   Stopped plugin "MQTT Broker 2022.1.0"
   Starting plugin "MQTT Broker 2022.1.0" (pid 1620)
   MQTT Connector Error            Shelly Broker: Disconnected with result code 1
   Started plugin "MQTT Broker 2022.1.0"

Re: Brokers disconnected

PostPosted: Thu Aug 25, 2022 4:03 pm
by FlyingDiver
That makes no sense. Unless you can reproduce it, I'm chalking that one up to cosmic rays.

Re: Brokers disconnected

PostPosted: Thu Aug 25, 2022 4:12 pm
by Colly
Cosmic rays it is for the time being...

Re: Brokers disconnected

PostPosted: Thu Aug 25, 2022 4:16 pm
by FlyingDiver
Colly wrote:
Cosmic rays it is for the time being...


Oh wait. You restarted the Broker plugin. You should have restarted the Connector plugin.

Re: Brokers disconnected

PostPosted: Thu Aug 25, 2022 4:21 pm
by Colly
Yes I restarted the Broker.

Re: Brokers disconnected

PostPosted: Thu Aug 25, 2022 4:22 pm
by FlyingDiver
Colly wrote:
Yes I restarted the Broker.


It's an MQTT Connector device that connects to a Broker. So if there's a disconnect, it's the connector device. And that's the plugin that needs to be restarted.

Re: Brokers disconnected

PostPosted: Thu Aug 25, 2022 4:26 pm
by Colly
OK so I've created a trigger to notify me if the broker gets disconnected and then added a plugin restart for the connector device. That should at least avoid it staying disconnected for long if it were to happen again.