MQTT Reconnection problems

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
valbuz99
Normal user
Posts: 22
Joined: 08 Jan 2019, 21:16

MQTT Reconnection problems

#1 Post by valbuz99 » 14 Oct 2019, 12:10

hi

i have 3 sonoff's with espeasy with ESP_Easy_mega-20191003_normal_ESP8266_1M.bin running.
all connected to my iobroker mqtt server.
sometimes they lost the connection to the mqtt server. in the log of the esp's:

MQTT : Intentional reconnect
MQTT : Failed to connect to broker

Restarting of the esp's or the broker doesn't solve the problems.

when i deactivate in the controller settings: MQTT enable, reboot, activate, reboot. They connect again :roll:
this on all esp's!

Is there any other way to log the error or has anyone a hint for me?

thanks
pat

TD-er
Core team member
Posts: 1818
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MQTT Reconnection problems

#2 Post by TD-er » 14 Oct 2019, 13:20

Hmm, that's strange.
If you power down the ESP units for longer than the set timeout in the MQTT broker, does it then properly reconnect?
Typical timeout on the broker side is 10 - 15 seconds.

valbuz99
Normal user
Posts: 22
Joined: 08 Jan 2019, 21:16

Re: MQTT Reconnection problems

#3 Post by valbuz99 » 14 Oct 2019, 13:27

i must wait when it happens again and test it....

i can't reproduce it manualy

valbuz99
Normal user
Posts: 22
Joined: 08 Jan 2019, 21:16

Re: MQTT Reconnection problems

#4 Post by valbuz99 » 17 Oct 2019, 08:11

after power down and waiting about 5 minutes, also no connection

if i change the ip adress and back again, it works :roll:

??

TD-er
Core team member
Posts: 1818
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MQTT Reconnection problems

#5 Post by TD-er » 17 Oct 2019, 10:29

Change the IP address of what?
The controller or the node?

valbuz99
Normal user
Posts: 22
Joined: 08 Jan 2019, 21:16

Re: MQTT Reconnection problems

#6 Post by valbuz99 » 17 Oct 2019, 11:50

The ip of the mqtt broker in espeasy.

TD-er
Core team member
Posts: 1818
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MQTT Reconnection problems

#7 Post by TD-er » 17 Oct 2019, 12:34

Is the MQTT broker in your own network?
Do you have it configured by host name or IP?
Could it be the IP of the broker has changed? This could be an indication the cache used for a DNS lookup may be flawed.

valbuz99
Normal user
Posts: 22
Joined: 08 Jan 2019, 21:16

Re: MQTT Reconnection problems

#8 Post by valbuz99 » 17 Oct 2019, 14:13

TD-er wrote:
17 Oct 2019, 12:34
Is the MQTT broker in your own network?
Yes
TD-er wrote:
17 Oct 2019, 12:34
Do you have it configured by host name or IP?
IP
TD-er wrote:
17 Oct 2019, 12:34
Could it be the IP of the broker has changed? This could be an indication the cache used for a DNS lookup may be flawed.
No, the IP of the Broker (ioBroker) is fix.

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests