-
Notifications
You must be signed in to change notification settings - Fork 42
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
Nukihub 9.09 disconnects from MQTT server and the Web UI still shows "connected: yes" #637
Comments
Same here. I had the problem already with previous versions, but with 9.09 the hub is offline for homeassistant most of the time. Mosquitto log shows very often messages like |
Same here. Had to revert back to 9.08 |
At this point I really have no idea what could be causing this. Can you get serial logs while this is happening? |
Thanks for filing this issue. That way one can skip this 9.09 release or revert to 9.08. So far nearly every 9.x release had similar surprises unfortunately. Did you all have had similar issues (unavailable, out of sync web/HA/MQTT) with previous versions too (just not that excessively)? |
At this point it's a guessing game about what's happening. As a start, I'd need serial logs. |
All I seem to get from the serial is this:
and nothing more until I reboot and I get the same |
So after this there's no more serial output? This is from serial, not MQTT logs? |
Yes, this is from serial, USB directly plugged into my PC and reading with cutecom. Tried enabling all kinds of debug logs in the advanced settings, and rebooting, and nothing changed |
Something is wrong here, with this kind of output there shouldn't be a web UI. At the very least you should get regular messages that the Nuki and Network task are running. Without the latter, there's no web interface. |
I flashed the 9.08 binary from releases, and looked at the serial output through minicom (just in case it was a cutcom problem), and this is all the output I get:
Looks like the only serial output is from the bootloader. Nukihub 9.08 works without problem... but there is nothing logged to the serial. |
I'm trying to bisect this but I'm having trouble building some of the commits with this error:
|
The aforementioned error starts appearing after commit 59a5f02 ("Rename root CA bundle", 2025-02-16). |
I built 9.09 myself and... it kinda works. It reboots itself every 6-7 minutes with a I still can't get anything useful from the serial though. |
Anything one can do to help solve this problem? |
I don't see any obvious changes regarding MQTT between 9.08 and 9.09, at this point I'm out of ideas, especially since there are no serial logs. @ssorgatem You're using 115200 baud to get the serial logs? |
Yes, and all I can see is bootloader stuff. More puzzling still, I rebuilt 9.09 with no changes to code at all, and it now works. After a day or so it has stopped rebooting and it just works. So maybe the issue is not in the source code but on the build itself...? |
It sounds quite unlikely to me, unless you changed something about the build configuration. You could post your binary here for other users to test. |
Imho a very bad idea to suggest users try a binary from an untrusted source. |
@ssorgatem I'd think the problem is somewhere else anyway. Maybe just start over, factory reset your ESP and flash the official Nuki Hub binary. You're using the C3 which is a single core chip, maybe it's worth trying an S3 preferrably with PSRAM. Sorry I can't give you more specific help, but without proper serial logs it's impossible to tell. |
PROBLEM DESCRIPTION
NukiHub disappears from Home Assistant 2 minutes after rebooting, and won't appear until I manually reboot the nukihub. In the web UI MQTT appears as "connected" both before and after disappearing from Home Assistant (however int he info page MQTT appears as "disconnected", so t the very least this is a bug concerning the UI not agreeing witht he info page)
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
TO REPRODUCE
Steps to reproduce the behavior:
Just boot nukihub as always, but with version 9.09. It didn't happen with 9.08.
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
To keep the connection to the MQTT broker
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
The UI shows MQTT connected, but the info says it's not, and it's "unavailable" in Home Assistant
ADDITIONAL CONTEXT
Add any other context about the problem here.
The MQTT broker is mosquitto on a Debian stable server, and there's a bunch of other stuff using it. Among these, notably, a Nuki V4 lock, which I can still control through the official MQTT over thread.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: