11-14-2023, 03:22 AM
Any thoughts as to the cause?
Thank you for your donation!
Problem: Airplay 2 troubleshooting
|
11-14-2023, 03:22 AM
Any thoughts as to the cause?
11-14-2023, 03:54 AM
(This post was last modified: 11-14-2023, 03:57 AM by TheOldPresbyope.
Edit Reason: ETA
)
@Tim Curtis
I cranked moOde up to debug logging just in case and looked at /var/log/shairport-sync.log as I set the AirPlay renderer to AirPlay 2 protocol and turned the service on. Here's what I see at the end of the log Code: 0.028485417 "ptp-utilities.c:223" Send control message to NQPTP: "/nqptp T" Yikes. According to systemctl the nqptp service, which is needed by shairport-sync for AirPlay 2 timing and synchronization, is running Code: pi@Sunroom:/var/log $ systemctl status nqptp Might it not be starting fast enough? Or something like that? ETA - rereading the error message more carefully, t suspect timing isn't itself the issue. Regards, Kent
11-14-2023, 12:24 PM
Could be some breakage in the protocol switcher having to do with latest ver of Shairport-sync and nqptp. Maybe nqptp has to be part of the process??
Here are the commands used by the switcher. Going from 2 to 1 Code: sudo apt update Going from 1 back to 2 Code: sudo apt update
11-14-2023, 01:26 PM
Yeah, I could see the switching action going on in the moOde log. I have a thought (sometimes that's a good sign; sometimes not so much!) but have to run some errands this AM before I can test it. Later.
Regards, Kent
11-14-2023, 06:31 PM
(This post was last modified: 11-14-2023, 06:53 PM by TheOldPresbyope.
Edit Reason: ETA
)
@Tim Curtis
Merely stopping and starting (or simply restarting) the nqptp service didn't clear the problem. The systemctl clear subcommand got me the response that there were no resources associated with the service or somesuch. However, Code: sudo apt reinstall nqptp (ETA - and then starting the setvice) before turning the renderer back on was sufficient to restore AirPlay2 operation. I'm feeling unsettled about this, though. I haven't been able reliably to repro the original issue, which makes me wonder if I treated a symptom rather than a cause. I'll try again later today. Regards, Kent
11-14-2023, 09:03 PM
I suspect that 2 -> 1 should first remove the nqptp package. Then 1 back to 2 should install nqptp then shairport-sync. IIRC nqptp has to be install first before shairport-sync in order to setup security, comms and other things correctly.
11-14-2023, 09:30 PM
Seems a safe approach.
Clearly, shairport-sync expects nqptp to have been initialized. Regards, Kent
11-15-2023, 12:49 AM
After some testing it looks like the whole package manipulation process to manage shairport-sync and nqptp is not robust. For example the shairport-sync config file was reverted to default during one of my tests which caused a lot of breakage -0
I suppose if protocol switching were part of shairport-sync itself then no problem.
11-16-2023, 04:39 PM
Well, I'm happy that at least the problem was reproducible and you have a good idea as to the cause!
Let me know if you make any changes that you'd like me to test.
11-16-2023, 05:17 PM
The protocol switcher process is simply too prone to breakage, especially with the latest shairport-sync and nqptp so it's been removed for upcoming 8.3.7 and only AirPlay 2 is supported going forward.
|
« Next Oldest | Next Newest »
|