question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sonos : UPnP Error 501 and Large Sonos Installations

See original GitHub issue

The problem

I have 20+ Sonos devices that always work great via the Sonos applications. However, they almost never work via the HA Sonos integration. I am constantly receiving this error in the HA logs:

Failed to request visible zones from IP ADDRESS: UPnP Error 501 received: Action Failed from IP ADDRESS

Very rarely, I see the devices show up as working in HA… but, they usually start throwing the above 501 error and/or go unavailable within a few minutes of interacting with them via HA. They continue to work fine in the Sonos apps before, during, and after these errors occur.

I’m happy to provide logs and try anything to resolve the issue.

I seem to be having the same issue as #70194… That issue describes all of the issues and my environment pretty well. I also have a lot of Sonos devices and UniFi network equipment. I have tried everything from that thread including the adjustments to STP within the UniFi environment.

#61003 and #43190 also seem to be similar issues which were never fully resolved.

#70194 is the closest to what I am experiencing where we both have a large Sonos system on a UniFi network architecture… but all of these issues seem to revolve around having a large Sonos installation.

I also found this thread in the HA forums which is describing similar issues. Some of the more recent comments mention UniFi network components and large Sonos networks.

It’s also worth mentioning that the Sonos Cloud integration always seems to work fine as well, but obviously doesn’t have the full Sonos functionality. Thanks @jjlawren !!

What version of Home Assistant Core has the issue?

core-2022.11.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Sonos

Link to integration documentation on our website

https://www.home-assistant.io/integrations/sonos/

Diagnostics information

config_entry-sonos-347495fd55deaa8ed6ce64fc5992d3ee.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.sonos
Source: components/sonos/__init__.py:191 
Integration: Sonos (documentation, issues) 
First occurred: 7:58:43 PM (1296 occurrences) 
Last logged: 9:28:31 PM

Failed to request visible zones from 10.10.10.111: UPnP Error 501 received: Action Failed from 10.10.10.111
Failed to request visible zones from 10.10.10.139: UPnP Error 501 received: Action Failed from 10.10.10.139
Failed to request visible zones from 10.10.10.250: UPnP Error 501 received: Action Failed from 10.10.10.250
Failed to request visible zones from 10.10.10.192: UPnP Error 501 received: Action Failed from 10.10.10.192
Failed to request visible zones from 10.10.10.128: UPnP Error 501 received: Action Failed from 10.10.10.128

Additional information

No response

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:1
  • Comments:31 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
jezzaminecommented, Dec 28, 2022

Thank you! For the first time, all of my Sonos devices are available on startup

2reactions
jjlawrencommented, Dec 24, 2022

I posted my theory on what’s happening over here. I have a rough idea on how to address this in HA (no library changes necessary), but it’s not a super trivial change as it requires a bit of redesign. I hope to find time over the holidays but no promises.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sonos configuration issues “Failed to request visible zones ...
Solved: Sonos configuration issues “Failed to request visible zones” due to “UPnP Error 501 received” error in logs · Configuration · bgalbs ( ......
Read more >
Sonos not working? How to fix the most common Sonos ...
Here's a guide explaining what some of the most common Sonos problems are, as well as how to fix them –including Wi-Fi, connection...
Read more >
Why is sonos broken? : r/homeassistant - Reddit
What gives? Failed to connect to discovered player '192.168.1.149': UPnP Error 501 received: Action Failed from 192.168.1.149 Failed to connect ...
Read more >
Tips for Installing Sonos - Multi Room Audio Solutions
This can happen with Sonos when you have multiple routes back to the network, i.e. the Sonos is communicating over it's mesh as...
Read more >
Sonos Error Code List and Troubleshooting - techjut.com
Error 501 is specifically with the Sonos Bridge, so try and power that down for at least 10 seconds before retrying. Error 800...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found