AirPlay stops playback in Zone A when starting playback in Zone B #93
When I start an internet radio stream via AirPlay in Zone A (e.g., bathroom), everything works normally. But as soon as I start AirPlay in Zone B (e.g., WC or kitchen), the following happens:
Playback in Zone A stops immediately
Sometimes AirPlay automatically switches to the newly selected zone
Sometimes both zones lose their connection entirely
It feels as if AirPlay only allows one active session at a time, so starting playback in another zone terminates the previous one
Unless they are synchronized, it should not have any impact. I confirm 100% you can have as many devices as you want, pending network bandwidth availability
Since version 1.3.1+, starting an AirPlay stream on one Sonos speaker immediately stops the AirPlay stream on any other Sonos speaker. With 1.3.0, I could run multiple independent AirPlay streams on different Sonos speakers without interruptions.
So the plugin supports multiple RAOP sessions, but Sonos now terminates the previous AirPlay session as soon as a new one starts. I want to understand why this changed and whether it’s expected behavior with newer versions.
1.3.1 is pretty old, are you sure?
I was running version 1.3.0 on an older server, and with that version everything worked perfectly — I could run multiple independent AirPlay streams to different Sonos speakers without any interruptions. Now I’ve set up a new server with the current version 1.8.4, and with this version I’m seeing the issue: starting an AirPlay stream on one Sonos speaker immediately stops the stream on another Sonos speaker.
Can you take some logs of what you have in 1.3.0 and 1.8.4 and post them so I can compare?
I was running version 1.3.0 on my old server, and with that setup everything worked perfectly — I could run multiple independent AirPlay streams to different Sonos speakers without any interruptions. This old server is still running because 1.3.0 continues to work fine there.
I set up a new server with the current version 1.8.4, and with this version I’m seeing the issue: starting an AirPlay stream on one Sonos speaker immediately stops the stream on another.
It’s no problem for me to provide logs — just let me know exactly which ones you need. When I download the log file from the plugin’s log section in LMS, the file is empty.
And can you confirm whether multiple simultaneous AirPlay streams to different Sonos speakers should work in general?**
Just enable the sefuakt log to start with. And yes, AirPlay to multiple speakers works, that's one of the main reasons why I wrote that plugin. I wanted to have sync between AirPlay and squeezboxes and within AirPlay.
I just powered up the new server running version 1.8.4 and tested it again. AirPlay is working right now with my Sonos group “Essen + Kochen”, and at the same time “Bad” was active — in this moment it worked without interruptions.
However, this is exactly what I noticed a few weeks ago: the issue does not always appear immediately. After some time, unfortunately, the problem returns — as soon as music starts playing on another Sonos speaker, the stream in the group stops.
Attached are the two logs.
At around 13:49 all streams were stopped because a new stream was started in the WC.
I'm not in front of a computer right now but are you sure that both servers have the same configuration in terme on codec (alac or plain) and have access to the same network bandwidth? With the limite access I have, I did not see anything weird in the log.
The old version 1.3.0 is running on a Raspberry Pi 3a, while the newer 1.8.4 is running on a mini‑PC with Proxmox. In the log of 1.8.4 you should see the interruption around 13:49 — at that time playback was stopped on all Sonos speakers because music was started in the WC.
Yes, there is a clear stream interruption in the log. The critical moment happens at 13:49:22.000.
Up to that point, the stream threads are continuously reading data normally. Then, at exactly 13:49:22, all active stream clients suddenly receive a strm command t. This command means TEARDOWN, which is the AirPlay instruction to stop a stream.
Because multiple stream instances receive this command at the same timestamp, it is not a network glitch or buffer underrun. It is a coordinated stop triggered by either:
the sender (LMS / squeezelite‑raop / AirPlay bridge),
the receiver (Sonos / AirPlay endpoint),
or a session reset (for example due to a track change or a timeout).
In short: Yes, the log clearly shows an intentional stream stop at 13:49:22.000.
If you want, I can also help determine whether the stop came from the sender or the receiver.
Again, not easy to look at the log from my phone but strm t is a status command requested by the server, not a stop or flush so unless we are not looking at the same log, I do t see an issue there.
Log 1.8.3 13:49:22
Log 1.8.3 13:49:22
I understand but these message are normal
[13:49:29.964] process:533 [0x5d6a00] aude [13:49:29.964] process_aude:413 [0x5d6a00] on/off using aude 1 [13:49:29.964] sq_callback:280 [0x62b380]: device set on/off 1 [13:49:29.965] process:533 [0x5d6a00] strm [13:49:29.965] process_strm:233 [0x5d6a00] strm command q [13:49:29.965] decode_flush:196 [0x5d6a00]: decode flush [13:49:29.965] output_flush:331 [0x5d6a00]: flush output buffer (full) [13:49:29.965] sendSTAT:131 [0x5d6a00]: ms_played: 0 [13:49:29.965] sendSTAT:155 [0x5d6a00]: STAT: STMf
Restarting Squeeze2raop after crash:
strm command q
In the log there is a clear interruption at 13:49:22.000. Up to that point the stream threads are reading data normally. Then, at exactly 13:49:22, all active RAOP/AirPlay clients receive a strm command t, which is the AirPlay TEARDOWN command. This means the stream was actively stopped, not just interrupted by a network glitch.
Immediately after this TEARDOWN, playback on all four AirPlay speakers is terminated at the same time. For a short period they are also not reachable before coming back online. This strongly suggests that the session reset is triggered by the sender (LMS / RAOP bridge) or by the AirPlay protocol itself during metadata/artwork updates, rather than by a random network error.
So the key point is: At 13:49:22.000 the AirPlay session is torn down, and right after that all four speakers stop playback and briefly disappear from the network.
Il sorry but I have already told you 3 times that "strm t" is not a session tear down, it is a status request. It looks like you are using ChatGPT for analysis and in like many other cases, it is plainly wrong. Don't believe what ChatGPT tells you ...
The restart after crash, where does it come from ?
I honestly don’t know where the crash‑restart is coming from, but what I do see in practice is this: the moment the WC AirPlay speaker comes online, playback on all four players stops at the same time.
Isn’t that visible in the log? Because from the user perspective it happens instantly and consistently.
How can I fix this? With version 1.3.0 everything worked perfectly
Because if I have the log with restart after crash proper time, I will know better. All what is happening is that the application that is in charge of airplay commun tIon crashes when you start playing on the other player and that's why everything stops
Unfortunately I don’t have any other log from the moment the issue happened. This is the only log that was generated when the problem occurred.
Given that, what can I do to fix the issue on my side? All I can see is that when the WC AirPlay speaker becomes active, playback on all four AirPlay players stops at the same time and they briefly become unreachable. This behaviour didn’t exist in version 1.3.0, so something must have changed since then.
Is there anything I can adjust in the settings to prevent the AirPlay communication component from crashing when another player starts?