Sonos AirPlay Not Working After Update (ref#JUJ67K) [Ticket In]

What best describes your playback issue?

· Music doesn't start when I press "Play"

What type of Zone is affected by this problem?

· *Network Zones* are affected.

Is the affected network Zone connected with Ethernet or WiFi?

· WiFi

Does the issue affect all file formats?

· The issue affects *multiple/all* file formats.

Does the issue happen with local library music, streaming service music, or both?

· *Both streaming and local* *library* music are affected.

Do you encounter any playback errors with the "System Output" Zone?

· The System Output has *no problem*, it's only my other Zone.

How is the affected Zone connected to your RoonServer machine?

· Network - WiFi

Which network audio protocol is the Zone using with Roon?

· Airplay

Since this is an Airplay Zone, have you tried toggling Airplay Compatibility Mode for this Zone in the Device Setup window?

· There is no change in behavior.

Does the device show up at all in Roon Settings -> Audio?

· The Zone is listed under the wrong protocol

Does the device play audio from another source when using the same connection?

· The device has no problems with another audio source

Have you checked that Roon is whitelisted in any firewalls?

· I've checked the firewall and the issue remains

If the device has multiple output options, do the other options work as expected?

· Only one output type is affected while the other output type works as expected

Is the device using the latest firmware as per the manufacturer?

· Firmware is up-to-date but the issue remains

What are the make and model of the affected audio device(s) and the connection type?

· Sonos Move 2 After 10/16 Sonos Update, Wifi, AirPlay

Describe the issue

Sonos AirPlay Not Working After [Sonos Update?]

Describe your network setup

Wifi from Roon Server To Sonos

Seems Sonos had an update around 10/15 - 10/16, (I know it is for software, but they just don’t disclose the firmware update) Release notes for Sonos software updates | Sonos

In the meanwhile, Sonos Own Protocol works well, but I just need to group the speaker with other airplay devices :frowning:

From the log, seems Sonos forbids Roon making airplay call to it.

10/21 21:37:59 Trace: [airplay/client] Sending ANNOUNCE
10/21 21:37:59 Warn: [airplay/client] ANNOUNCE failed: 403 Forbidden
10/21 21:37:59 Trace: [prebuffer] ready 163200/480000 (34%) @ 37/210 sec
10/21 21:38:00 Info: 
--[ SignalPath ]---------------------------------------------
SignalPath Quality = HighQuality
Elements:
    Source Format=Flac 48000/24/2 BitRate=1861 Quality=Lossless
    UpgradeBitDepth FromBitsPerSample=24 ToBitsPerSample=64 Quality=Lossless
    VolumeNormaliation GainDb=0 Quality=Lossless
    SampleRateConversion FromSampleRate=48000 ToSampleRate=44100 Algorithm=HighQuality Quality=HighQuality
    Truncate FromBitsPerSample=64 ToBitsPerSample=16 Quality=HighQuality
    Output OutputType=AirPlay Quality=HighQuality SubType=2 Model=Move 2
------------------------------------------------------------
10/21 21:38:01 Trace: [library] endmutation in 12ms
10/21 21:38:02 Trace: [library] endmutation in 11ms
10/21 21:38:09 Trace: [library] endmutation in 12ms
10/21 21:38:09 Trace: [library] endmutation in 12ms
10/21 21:38:11 Info: [stats] 8940mb Virtual, 3367mb Physical, 1115mb Managed, 392 Handles, 71 Threads
10/21 21:38:26 Info: [stats] 8932mb Virtual, 3366mb Physical, 1117mb Managed, 392 Handles, 71 Threads
10/21 21:38:40 Trace: [library] endmutation in 11ms
10/21 21:38:41 Info: [stats] 8932mb Virtual, 3366mb Physical, 1121mb Managed, 392 Handles, 73 Threads
10/21 21:38:46 Trace: [zone Sonos Airplay] Seek 78
10/21 21:38:46 Trace: [Sonos Airplay] [HighQuality, 24/48 FLAC => 16/44] [PLAYING @ 1:18/3:30]
10/21 21:38:46 Info: [audio/env] [zoneplayer -> stream] All streams were disposed
10/21 21:38:46 Trace: [airplay/client] Sending ANNOUNCE
10/21 21:38:46 Trace: [prebuffer] ready 163200/480000 (34%) @ 78/210 sec
10/21 21:38:46 Warn: [airplay/client] ANNOUNCE failed: 403 Forbidden
10/21 21:38:47 Trace: [zone Sonos Airplay] Seek 106
10/21 21:38:47 Info: 
--[ SignalPath ]---------------------------------------------
SignalPath Quality = HighQuality
Elements:
    Source Format=Flac 48000/24/2 BitRate=1861 Quality=Lossless
    UpgradeBitDepth FromBitsPerSample=24 ToBitsPerSample=64 Quality=Lossless
    VolumeNormaliation GainDb=0 Quality=Lossless
    SampleRateConversion FromSampleRate=48000 ToSampleRate=44100 Algorithm=HighQuality Quality=HighQuality
    Truncate FromBitsPerSample=64 ToBitsPerSample=16 Quality=HighQuality
    Output OutputType=AirPlay Quality=HighQuality SubType=2 Model=Move 2

Hey @Peter_Liu,

Thanks for writing in! Have you attempted to add the sonos devices under airplay to your apple home app prior to using it via airplay?
:raised_hands:

Have you tested out using the airplay compatibility toggle under the Sonos device settings within Roon yet? That may be worth a test as well.

I’d also test out setting up a more simplified audio signal chain, and disable any DSP to see if that changes any behavior.

Let us know the results!

Thanks for the tips, yeah, I’ve already tried these tips before submitting the post, none of them works.
And one interesting finding is that, if I select compatible mode, the play will hang, however, if I don’t select the compatible mode, the server will crash for the connection timeout

10/22 09:17:56 Info: [airplay] AirPlay device connected: AirPlayDevice[DeviceId=C43875068890@Move 2._raop._tcp.local, Name=Sonos-C43875068890.local, Model=Move 2, IPEndPoint=192.168.68.177:7000]
10/22 09:17:56 Trace: [airplay] connected
10/22 09:17:56 Trace: [airplay/clientV2] [192.168.68.177] Sending SETUP #1 (session)
10/22 09:17:56 Warn: [airplay/clientV2] [192.168.68.177] SETUP failed: 403 Forbidden, attempting pairing
10/22 09:17:56 Trace: [airplay/clientV2] [192.168.68.177] Sending pair-verify
10/22 09:17:56 Trace: [airplay/clientV2] [192.168.68.177] pair-verify Succeeded
10/22 09:17:56 Trace: [airplay/clientV2] [192.168.68.177] Sending pair-setup #1
10/22 09:17:56 Trace: [airplay/clientV2] [192.168.68.177] pair-setup #1 Succeeded
10/22 09:17:56 Trace: [roonapi] [apiclient 192.168.68.120:18825] CONTINUE Changed {"zones_changed":[{"zone_id":"16010662e0705b2e77ecbba362bc4900c817","display_name":"move airplay","outputs":[{"output_id":"17010662e0705b2e77ecbba362bc4900c817","zone_id":"16010662e0705b2e77ecbba362bc4900c817","can_group_with_output_ids":["1701f68083095d5aa10707cc2c2bd5a3b357","170161430c50f4513212b35643666619ff1e","17010662e0705b2e77ecbba362bc4900c817","170181cdceb976ccbc82a0f4d345676471d2","1701cb0cf7d96021de8dd549de5c2ba8731e","17013ac010f5ea3da5fc1c4900a50281cd4d"],"display_name":"move airplay","volume":{"type":"number","min":1,"max":100,"value":29,"step":1,"is_muted":false,"hard_limit_min":1,"hard_limit_max":100,"soft_limit":100},"source_controls":[{"control_key":"1","display_name":"Move 2 (Move 2)","supports_standby":false,"status":"indeterminate"}]}],"state":"playing","is_next_allowed":true,"is_previous_allowed":true,"is_pause_allowed":true,"is_play_allowed":false,"is_seek_allowed":true,"queue_items_remaining":11,"queue_time_remaining":2782,"settings":{"loop":"disabled","shuffle":false,"auto_radio":true},"now_playing":{"seek_position":null,"length":67,"one_line":{"line1":"\u0f04 - L\u00dcCY"},"two_line":{"line1":"\u0f04","line2":"L\u00dcCY"},"three_line":{"line1":"\u0f04","line2":"L\u00dcCY","line3":"Dance on the Shoreline"},"image_key":"4c097d31af8b568177740120766bb505"}}]}
10/22 09:17:56 Info: 
--[ SignalPath ]---------------------------------------------
SignalPath Quality = HighQuality
Elements:
    Source Format=Flac 48000/24/2 BitRate=1517 Quality=Lossless
    UpgradeBitDepth FromBitsPerSample=24 ToBitsPerSample=64 Quality=Lossless
    SampleRateConversion FromSampleRate=48000 ToSampleRate=44100 Algorithm=HighQuality Quality=HighQuality
    Truncate FromBitsPerSample=64 ToBitsPerSample=16 Quality=HighQuality
    Output OutputType=AirPlay Quality=HighQuality SubType=2 Model=Move 2
------------------------------------------------------------
10/22 09:17:56 Trace: [airplay/clientV2] [192.168.68.177] Sending pair-setup #2
10/22 09:17:56 Trace: [airplay/clientV2] [192.168.68.177] pair-setup #2 Succeeded



10/22 09:20:03 Warn: [airplay/clientV2] [192.168.68.177] Got exception connecting to device at 192.168.68.177,42829: System.Net.Sockets.SocketException (110): Connection timed out
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
   at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task)
   at Sooloos.Audio.AirPlay.AirPlayClientV2.<>c__DisplayClass82_0.<<SetupAirPlay2Session>b__0>d.MoveNext()
10/22 09:20:03 Trace: [airplay/clientV2] [192.168.68.177] Sending RECORD
10/22 09:20:03 Info: 
Local Time:            10/22/2024 09:20:03 -07:00
Device Serial Number:  CD114E94-7014-4669-B9D9-069A81D7B621
User Id:               9d06ca41-6eaf-4c51-89ff-edc9f0d20203
Roon Version:       2.0 (build 1470) production
OS Version:            Linux 4.4.302+
Mono Version:          unknown

Application Domain:    RoonAppliance
Assembly Codebase:     file:///volume3/@appstore/RoonServer/RoonServer/Appliance/RoonAppliance.dll
Assembly Full Name:    RoonAppliance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

   Exception Source:      System.Net.Sockets
   Exception Type:        System.InvalidOperationException
   Exception Target Site: TcpClient.GetStream
   Exception Message:     The operation is not allowed on non-connected sockets.
   Exception Data:        none

   --[ Stack Trace ]------------
   System.Net.Sockets.TcpClient.GetStream()
       System.Net.Sockets.dll, IL 24, N 84153447
   Sooloos.Audio.AirPlay.AirPlayClientV2/<_EventBeginRecv>d__64.MoveNext()
       Roon.Audio.AirPlay.dll, IL 17, N 96
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       System.Private.CoreLib.dll, IL 17, N 10541596
   System.Threading.Tasks.Task/<>c.<ThrowAsync>b__128_1(Object state)
       System.Private.CoreLib.dll, IL 0, N 21
   System.Threading.ThreadPoolWorkQueue.Dispatch()
       System.Private.CoreLib.dll, IL 310, N 65648337
   System.Threading.PortableThreadPool/WorkerThread.WorkerThreadStart()
       System.Private.CoreLib.dll, IL 462, N 65653728

I, too, am having the same problem.

I’m also having this issue. None of my Apple TVs, Receiver, or TVs using airplay work with Roon anymore.

Hi @Peter_Liu,
Have you tried using this procedure to play to your Sonos device over AirPlay?

Mac:

  1. Make sure that the Mac’s “System Output” zone is enabled in the Settings > Audio screen in Roon.

  2. Open the System Preferences app on the Mac.

  3. Navigate to Sound > Output and select the AirPlay 2 device in the device list.

  4. Start playback to the “System Output” zone in Roon.

Screenshot of the System Preferences > Sound > Output screen:

Yes, I can use iPhone or iPad to directly stream to the Sonos devices, or I can stream from Roon to my device and let my device to stream to Sonos, seems Sonos is ok to get airplay from apple devices, it just rejects airplay from Roon, or other 3rd party providers? Maybe

Maybe. This page from their support section seems to suggest that. Stream AirPlay audio to Sonos | Sonos It only shows methods for using AirPlay with iOS and MacOS devices.

Since Roon has officially supported airplay 2, could the team reach out to Sonos for the collaborations? Seems already a few of sonos devices are Roon Tested
https://roon.app/en/partners/9/sonos

Hello @Peter_Liu ,

We’ve escalated this issue to our dev team and we are actively working on a fix. Thanks again for your details report and your patience while this makes its way through the queue.

2 Likes

On my side I can stream to my pair of Sonos One SL with airplay from roon, but, not on my pair of Sonos era 300 though.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.