![]() |
[PROBLEM] Airplay 2 troubleshooting - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] Airplay 2 troubleshooting (/showthread.php?tid=5933) |
RE: Airplay 2 troubleshooting - Meestor_X - 11-14-2023 Any thoughts as to the cause? RE: Airplay 2 troubleshooting - TheOldPresbyope - 11-14-2023 @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 RE: Airplay 2 troubleshooting - Tim Curtis - 11-14-2023 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 RE: Airplay 2 troubleshooting - TheOldPresbyope - 11-14-2023 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 RE: Airplay 2 troubleshooting - TheOldPresbyope - 11-14-2023 @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 RE: Airplay 2 troubleshooting - Tim Curtis - 11-14-2023 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. RE: Airplay 2 troubleshooting - TheOldPresbyope - 11-14-2023 Seems a safe approach. Clearly, shairport-sync expects nqptp to have been initialized. Regards, Kent RE: Airplay 2 troubleshooting - Tim Curtis - 11-15-2023 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. RE: Airplay 2 troubleshooting - Meestor_X - 11-16-2023 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. RE: Airplay 2 troubleshooting - Tim Curtis - 11-16-2023 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. |