-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Latest version is throwing InitTopology error (again) #190
Comments
Looks like this concerns the LS speaker of the Family Room. It used to work normally, but then starts acting up:
After restarting Homebridge ZP, it's missing from the overview at 8:46:20 PM, but apparently comes online 10 minutes later. You're not running Homebridge in DEBUG mode, so I cannot tell whether it's discovered though UPnP or reported through another zone player. However, the first request (getting
This is a bug in Homebidge ZP alright, in that it doesn't handle this case correctly. It's going to be very hard to reproduce this issue and test for it, though. Homebridge ZP keeps the uninitialised client for the zone player, reporting every 5 minutes on it's reachability. Or rather trying to, as this fails due to the client not being initialised:
(note the different call stack from the first error). Not sure if this is a bug in itself, there shouldn't be any unintialised client if the previous case would have been handled correctly. I'm still not sure what's the matter with the surround speaker. Does the Sonos app show it missing as well? What happens if you power-cycle the speaker? I'm afraid Homebridge ZP might not recover from the un-initialised client, even when the player does come online fully, but restarting Homebridge ZP after that should get rid of the errors. I'm also puzzled that there's 7 zones in your household, but only 5 were persisted by Homebridge ZP.
Did you add new players or change the home theatre setup? |
No changes to the equipment in the house. But the RS speaker was missing in the Sonos Controller. I have power cycled it and it seems to be back now and errors resolved. For good, measure I cycled the HB container as well: [12/8/2021, 10:51:44 AM] [Sonos] warning: RINCON_7828CA73966C01400 [Boost]: no ZoneGroupTopology event received in 15s Looks good, not urgent to fix the above. |
I tried to install the previous version to get rid of this bug and this somehow removed all plugins of my homebridge except of yours. Now all my stuff in Homekit is gone I am starting from scratch as HomeKit removed all accessories and added them as new ones... So please get rid of this bug... |
Yesterday, I received an update of the Sonos app, including an upgrade of the zone player firmware. It took the app several attempts to upgrade all players. This caused all sorts of initTopology errors, and I don't think the subscriptions where restored properly. I suspect a zone player might reboot more than once during a firmware upgrade, or maybe announces itself before it's fully ready. On zones with multilple players (stereo pairs, home theatre setups), the master zone player might become available before the slaves or satellites (or maybe the upgrade of the slaves / satellites only starts after the master has been upgraded?). Restarting Homebridge ZP (a couple of times) eventually got rid of all errors. Anyways, it might be prudent to monitor for firmware upgrades, and suspend Homebridge ZP while they're happening. Also, I need to review the re-connect logic after reboot. |
Issue
As the log message shows. I think this is something that had been fixed before but it's back.
Log Messages
[12/6/2021, 10:26:50 AM] [Sonos] error: RINCON_B8E937BA3CC801400: [192.168.1.12]: SyntaxError: initTopology() not yet called
at ZpClient.checkInitTopology (/homebridge/node_modules/homebridge-zp/lib/ZpClient.js:528:13)
at ZpClient.get bootSeq [as bootSeq] (/homebridge/node_modules/homebridge-zp/lib/ZpClient.js:594:10)
at ZpPlatform.heartbeat (/homebridge/node_modules/homebridge-zp/lib/ZpPlatform.js:148:42)
at ZpPlatform.emit (node:events:390:28)
at ZpPlatform.emit (/homebridge/node_modules/homebridge-zp/node_modules/homebridge-lib/lib/Delegate.js:174:13)
at ZpPlatform._heartbeat (/homebridge/node_modules/homebridge-zp/node_modules/homebridge-lib/lib/Platform.js:317:10)
at ZpPlatform._beat (/homebridge/node_modules/homebridge-zp/node_modules/homebridge-lib/lib/Platform.js:305:42)
at Timeout._onTimeout (/homebridge/node_modules/homebridge-zp/node_modules/homebridge-lib/lib/Platform.js:295:12)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
Debug Files
homebridge.log.txt.zip
The text was updated successfully, but these errors were encountered: