balena-sound
balena-sound copied to clipboard
Airplay doesn't show on Apple devices on initial boot up.
Describe the problem When booting my rp3b+ airplay service starts and runs fine, but doesn't show up on any devices on the local wifi. A restart of the airplay service corrects the issue. Happens on both my balena-sound Rpi devices.
To Reproduce Steps to reproduce the behavior:
- Turn on pi.
- Wait for it to boot and be 'ready'
- Open another apple device (iphone, ect) and look for device listing on airplay - not there.
- open balena sound app, and restart airplay service, then device shows up and works at expected.
Expected behavior Airplay should be available upon initial startup.
Device information
- Board (hardware info) Raspberry Pi 3B+
- Device type (as seen in balenaCloud): [e.g. Raspberry Pi 3 (using 64bit OS)]
- balenaOS version: balenaOS 2.80.3+rev1
Additional context Add any other context about the problem here.
I have the same issue in a RP3 model B with a fresh installation. After rebooting the airplay service the device appeared, but not at first. I tested it with a MacBook Pro. This is what I see in the logs of airplay
:
30.07.21 20:23:35 (+0200) airplay Starting AirPlay plugin...
30.07.21 20:23:35 (+0200) airplay Device name: balenaSound AirPlay a8f9
30.07.21 20:23:37 (+0200) airplay Shairport-sync started. Device is discoverable as balenaSound AirPlay a8f9
30.07.21 20:23:37 (+0200) airplay fatal error: pa context is not good -- the error message "Connection terminated".
I have the same problem, I must restart airplay service for see rpi on apple device.
airplay fatal error: pa context is not good -- the error message "Connection terminated"
Fixed in v3.6.11. For details see https://github.com/balenalabs/balena-sound/pull/508
Same happens on clean install on RPi3B with 3.9.6 In fact on boot Airplay does not start, it can be manually started when device is up