balena-sound icon indicating copy to clipboard operation
balena-sound copied to clipboard

Airplay doesn't show on Apple devices on initial boot up.

Open magauthority opened this issue 3 years ago • 4 comments

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:

  1. Turn on pi.
  2. Wait for it to boot and be 'ready'
  3. Open another apple device (iphone, ect) and look for device listing on airplay - not there.
  4. 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.

magauthority avatar Jul 26 '21 16:07 magauthority

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".

pjmartorell avatar Jul 30 '21 18:07 pjmartorell

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"

thewanuza avatar Sep 28 '21 09:09 thewanuza

Fixed in v3.6.11. For details see https://github.com/balenalabs/balena-sound/pull/508

tmigone avatar Nov 24 '21 14:11 tmigone

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

bezik46 avatar Feb 25 '23 17:02 bezik46