Brokers disconnected

Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Brokers disconnected

Post 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"
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Brokers disconnected

Post by FlyingDiver »

That makes no sense. Unless you can reproduce it, I'm chalking that one up to cosmic rays.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Brokers disconnected

Post by Colly »

Cosmic rays it is for the time being...
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Brokers disconnected

Post 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.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Brokers disconnected

Post by Colly »

Yes I restarted the Broker.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Brokers disconnected

Post 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.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Brokers disconnected

Post 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.
Post Reply

Return to “MQTT”