Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.15 regression: bridge is not created, with "Expiring client local.xxx due to timeout" #2634

Closed
svet-b opened this issue Sep 14, 2022 · 29 comments

Comments

@svet-b
Copy link

svet-b commented Sep 14, 2022

After upgrading to 2.0.15, we observed that in about 50% of cases broker bridges are not created on start-up. The log shows the message

Expiring client local.<bridge-name> due to timeout.

immediately on start-up (i.e. not after an actual conceivable timeout).

This was first reported in #1334 (comment) and subsequent comments in that thread (thanks @everactivetim, @vomov), though it's almost certainly a separate issue from #1334. It appears to have been an unintentional side effect of c99502a. Indeed, the issue does not seem to occur in 2.0.14.

In our specific case this is on Linux on ARM.

@svet-b svet-b changed the title 2.0.15 regression: bridge is not created due to "Expiring client local.xxx due to timeout" 2.0.15 regression: bridge is not created, with "Expiring client local.xxx due to timeout" Sep 14, 2022
@everactivetim
Copy link

We also reverted to 2.0.14 to solve our problem.

@gerardsyd
Copy link

Same - had this issue and glad I saw this as I was pulling my hair out.
On 2.0.15, I was only getting these logs:

2022-09-14T21:17:29: Connecting bridge lollipop_mqtt (192.168.1.208:1883)
2022-09-14T21:17:29: Warning: Unable to connect to bridge lollipop_mqtt.
2022-09-14T21:17:29: mosquitto version 2.0.15 running
2022-09-14T21:17:29: Expiring client local.3410804944a7.lollipop_mqtt due to timeout.

@haizz
Copy link

haizz commented Oct 4, 2022

Having the same problem on Windows machine:

1664897688: mosquitto version 2.0.15 starting
1664897688: Config loaded from C:\Program Files\mosquitto/mosquitto.conf.
1664897688: Opening ipv4 listen socket on port 1883.
1664897688: Bridge local.PRODUCTION-MOSQ.main doing local SUBSCRIBE on topic ets/sensors/#
1664897688: Bridge local.PRODUCTION-MOSQ.main doing local SUBSCRIBE on topic test/#
1664897688: Connecting bridge main (mqtt:8883)
1664897688: Bridge PRODUCTION-MOSQ.main sending CONNECT
1664897688: mosquitto version 2.0.15 running
1664897688: Expiring client local.PRODUCTION-MOSQ.main due to timeout.

@jld-adriano
Copy link

jld-adriano commented Oct 27, 2022

Same issue

1666866838: Config loaded from /mosquitto/config/mosquitto.conf.
1666866838: Opening ipv4 listen socket on port 1886.
1666866838: Opening ipv6 listen socket on port 1886.
1666866838: Connecting bridge mosquitto-device-5 (xxx)
1666866838: mosquitto version 2.0.15 running
1666866839: Expiring client local.mosquitto-device-5 due to timeout.
1666866839: New connection from ::1:51704 on port 1886.
1666866839: New connection from ::1:51706 on port 1886.
1666866839: New client connected from ::1:51704 as sparkplug-maestro (p2, c1, k3000).
1666866839: New client connected from ::1:51706 as old-maestro (p2, c1, k60).
1666866841: New connection from 127.0.0.1:40616 on port 1886.
1666866841: New client connected from 127.0.0.1:40616 as processor (p2, c1, k20).```

@karlp
Copy link
Contributor

karlp commented Oct 27, 2022

I'm pretty sure I was seeing this as well today. That "expiring client local.blah due to timeout", and with zero extra info available. In my case I was only bridging to a same network, 192.168.blah, no encryption, and restarting fixed things, couldn't figure it out. I'll hopefully be able to collect more information though.

@jld-adriano
Copy link

In my case it happens every 2nd reboot, on the clock.
Reboot -> expires, reboot -> works , reboot -> expires, etc...

@markdegrootnl
Copy link

How is this still not fixed?

@Nightenom
Copy link

Can confirm with docker v2.0.15 on Debian 11 armv7l, revert to 2.0.14 fixes the problem

@serroba
Copy link

serroba commented Dec 12, 2022

Can report the same thing with:
macOS Ventura 13 M1
docker 20.10.18
v2.0.15

It was intermittent in my case. Not consistent when I could/couldn't not have the bridge running.

@pod67
Copy link

pod67 commented Dec 21, 2022

We upgraded to 2.0.15 due to #2594 but now we have to downgrade due to this bug.

This bug is severe, please look into this.

@lepgithub
Copy link

lepgithub commented Jan 15, 2023

Same issue with 2.0.15. It appears the issue has been known for some time; why in Jan 2023 it's still not fixed?

Jan 15 13:12:51 micro mosquitto.mosquitto[1597]: 1673817171: Connecting bridge (step 2) 2cloudww (cloud.x.com:8883)
Jan 15 13:12:51 micro mosquitto.mosquitto[1597]: 1673817171: Expiring client local.micro.2cloudww due to timeout.

@pod67
Copy link

pod67 commented Jan 26, 2023

Same issue with 2.0.15. It appears the issue has been known for some time; why in Jan 2023 it's still not fixed?

Jan 15 13:12:51 micro mosquitto.mosquitto[1597]: 1673817171: Connecting bridge (step 2) 2cloudww (cloud.x.com:8883) Jan 15 13:12:51 micro mosquitto.mosquitto[1597]: 1673817171: Expiring client local.micro.2cloudww due to timeout.

@ralight ??

@krzakx
Copy link

krzakx commented Apr 14, 2023

Hey.
I do face similar issue on Hassio.
With Mosquitto broker Add-On version: 6.2.0

@EpicLPer
Copy link

Same issue here right now trying to connect to HiveMQ, and it doesn't reconnect anymore as it says in the docs.
I made a separate issue for this here: #2795

@ghost
Copy link

ghost commented May 11, 2023

Same issue here: mosquitto bridge 2.0.15 to mosquitto. I had to downgrade to 2.0.14 and now is working good

@dj0abr
Copy link

dj0abr commented Jun 12, 2023

same problem here,
how to downgrade to 2.0.14 on Linux, I did not find a package

@dj0abr
Copy link

dj0abr commented Jun 26, 2023

reboot does not solve this problem

@kzajac83
Copy link

home-assistant/addons#3072

I create above issue, today found that root of cause is timeout to bridge broker. I'm wiaitng for fix but to workaround how to increase timeout for bridge and what value is default?

@kelvincesar
Copy link

Same problem here. I'm using version 2.0.15, and the issue occurs every second start of mosquitto.

I'm using the following settings on bridge:

connection test
cleansession false
try_private false
bridge_attempt_unsubscribe false
notifications true
max_inflight_messages 5
persistence true
persistence_location /var/lib/mosquitto
autosave_interval 60
persistent_client_expiration 30d
bridge_capath /etc/ssl/certs

@Makin-Things
Copy link

@ralight can you provide any insight/update on this issue?

@nikito7
Copy link

nikito7 commented Jul 21, 2023

still there...

persistence false "fixes" but create another issues

swiergot added a commit to swiergot/mosquitto that referenced this issue Jul 22, 2023
Signed-off-by: Jarek Świerczyński <[email protected]>
swiergot added a commit to swiergot/mosquitto that referenced this issue Jul 22, 2023
Signed-off-by: Jarek Świerczyński <[email protected]>
swiergot added a commit to swiergot/mosquitto that referenced this issue Jul 22, 2023
swiergot added a commit to swiergot/mosquitto that referenced this issue Jul 22, 2023
@swiergot
Copy link

I have submitted a PR.

Please note that I had zero experience with mosquitto code prior to this so if you decide to use the fix before it is reviewed by maintainers, you risk running into potential side effects I have not foreseen.

@swiergot
Copy link

Nevermind, apparently the fix (6d240a9) has been on the fixes branch for over 3 months. There just hasn't been any new release since.

@nikito7
Copy link

nikito7 commented Jul 22, 2023

In my case it happens every 2nd reboot, on the clock. Reboot -> expires, reboot -> works , reboot -> expires, etc...

I confirm this.

But no need reboot.

Just stop and start mosquitto

@tschweitzer
Copy link

Wondering if there is any progress on this since requires me a manual restart every day?

@chennin
Copy link

chennin commented Jul 30, 2023

Yes, it's fixed but not released. You can:

  • Revert to .14
  • Restart it manually
  • Wait for a new release

@kzajac83
Copy link

When is planned new release?

@EpicLPer
Copy link

Awesome! Thanks @ralight, almost thought Mosquitto was dead :)

@svet-b
Copy link
Author

svet-b commented Aug 16, 2023

I guess it's on an annual release schedule now :)

2.0.16 - 2023-08-16
2.0.15 - 2022-08-16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests