Balena Sound won't play

When I try either Bluetooth or AirPlay I get no sound. Logs are attached. Perhaps I haven’t configured something correctly? It looks like SBC decoding error is an issue? How do I fix that?

Similar problem with AirPlay.

Bluetooth logs

16.07.20 21:11:07 (+0000) Installing service 'bluetooth-audio sha256:e62c06918fd63940ed5ae16177226a37770e455f15fed27849a253f3f5d3757c'
16.07.20 21:11:07 (+0000) Installed service 'bluetooth-audio sha256:e62c06918fd63940ed5ae16177226a37770e455f15fed27849a253f3f5d3757c'
16.07.20 21:11:07 (+0000) Starting service 'bluetooth-audio sha256:e62c06918fd63940ed5ae16177226a37770e455f15fed27849a253f3f5d3757c'
16.07.20 21:11:16 (+0000) Started service 'bluetooth-audio sha256:e62c06918fd63940ed5ae16177226a37770e455f15fed27849a253f3f5d3757c'
16.07.20 21:11:18 (+0000) <bluetooth-audio> Setting output volume to 75%
16.07.20 21:11:19 (+0000) <bluetooth-audio> Connection notify volume is 75%
16.07.20 21:11:19 (+0000) <bluetooth-audio> amixer: Unable to find simple control 'PCM',0
16.07.20 21:11:19 (+0000) <bluetooth-audio> 
16.07.20 21:11:19 (+0000) <bluetooth-audio> amixer: Unable to find simple control 'Digital',0
16.07.20 21:11:19 (+0000) <bluetooth-audio> 
16.07.20 21:11:20 (+0000) <bluetooth-audio> Restarting bluetooth service
16.07.20 21:11:27 (+0000) <bluetooth-audio> Starting bluetooth agent in Secure Simple Pairing Mode (SSPM) - No PIN code provided or invalid
16.07.20 21:11:28 (+0000) <bluetooth-audio> Bluetooth agent registered
16.07.20 21:11:31 (+0000) <bluetooth-audio> Device is discoverable as "AirPi"
16.07.20 21:13:51 (+0000) <bluetooth-audio> Setting output volume to 75%
16.07.20 21:13:52 (+0000) <bluetooth-audio> Connection notify volume is 75%
16.07.20 21:13:52 (+0000) <bluetooth-audio> amixer: Unable to find simple control 'PCM',0
16.07.20 21:13:52 (+0000) <bluetooth-audio> 
16.07.20 21:13:52 (+0000) <bluetooth-audio> amixer: Unable to find simple control 'Digital',0
16.07.20 21:13:52 (+0000) <bluetooth-audio> 
16.07.20 21:13:52 (+0000) <bluetooth-audio> Restarting bluetooth service
16.07.20 21:13:57 (+0000) <bluetooth-audio> Bluetooth agent registered
16.07.20 21:13:58 (+0000) <bluetooth-audio> Starting bluetooth agent in Secure Simple Pairing Mode (SSPM) - No PIN code provided or invalid
16.07.20 21:14:02 (+0000) <bluetooth-audio> Device is discoverable as "AirPi"
16.07.20 21:15:18 (+0000) <bluetooth-audio> AuthorizeService (/org/bluez/hci0/dev_60_8B_0E_66_11_9F, 0000110d-0000-1000-8000-00805f9b34fb)
16.07.20 21:15:19 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:19 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 17 != 16
16.07.20 21:15:20 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:20 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 73 != 72
16.07.20 21:15:20 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:20 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 90 != 87
16.07.20 21:15:20 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:20 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 110 != 109
16.07.20 21:15:20 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:20 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 113 != 112
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 127 != 125
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 130 != 129
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 141 != 140
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 145 != 143
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 151 != 148
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 181 != 178
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:21 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 191 != 190
16.07.20 21:15:22 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:22 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 209 != 208
16.07.20 21:15:22 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:22 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 213 != 211
16.07.20 21:15:22 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:22 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 226 != 222
16.07.20 21:15:23 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:23 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 290 != 289
16.07.20 21:15:23 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:23 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 292 != 291
16.07.20 21:15:23 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:23 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 309 != 308
16.07.20 21:15:23 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:23 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 313 != 311
16.07.20 21:15:24 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:24 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 351 != 349
16.07.20 21:15:24 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:24 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 367 != 366
16.07.20 21:15:24 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 372 != 370
16.07.20 21:15:24 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:24 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 396 != 394
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 405 != 404
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 431 != 430
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 434 != 433
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 444 != 440
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 455 != 451
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:25 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 458 != 456
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 474 != 473
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 484 != 483
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 490 != 486
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 495 != 493
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:26 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 510 != 508
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 562 != 558
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 572 != 571
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 582 != 580
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 586 != 584
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 589 != 587
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:27 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 593 != 591
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 607 != 606
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 625 != 623
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 628 != 627
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 645 != 644
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 660 != 659
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 668 != 666
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:28 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 673 != 672
16.07.20 21:15:29 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:29 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 677 != 675
16.07.20 21:15:29 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:29 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 701 != 697
16.07.20 21:15:29 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:29 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 732 != 729
16.07.20 21:15:29 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:29 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 738 != 736
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 746 != 745
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 761 != 759
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 773 != 772
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 777 != 775
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 805 != 804
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:30 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 809 != 807
16.07.20 21:15:32 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1037 != 1036
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such process
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1046 != 1044
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1050 != 1047
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1061 != 1059
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1074 != 1072
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1077 != 1076
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:34 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1081 != 1079
16.07.20 21:15:35 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:35 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1095 != 1093
16.07.20 21:15:35 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:35 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1154 != 1152
16.07.20 21:15:36 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:36 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1159 != 1157
16.07.20 21:15:36 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:36 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1167 != 1164
16.07.20 21:15:36 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1170 != 1168
16.07.20 21:15:36 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:36 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1174 != 1173
16.07.20 21:15:36 (+0000) <bluetooth-audio> /usr/bin/bluealsa: SBC decoding error: No such file or directory
16.07.20 21:15:36 (+0000) <bluetooth-audio> /usr/bin/bluealsa: Missing RTP packet: 1202 != 1201

Hi!

Thanks for reaching out! Could you please tell me on which device are you trying balenaSound? Which version of balenaOS are you using?

Of course! Sorry.

Raspberry pi 3B i deployed latest build off the cloud.

No worries :slight_smile:

Regarding the Bluetooth, there are stuttering issues on the Raspberry Pi 3 related to a known problem with the BT/WiFi chip. Both the chip manufacturer (Cypress) and the Raspberry Pi Foundation have acknowledged this. The current “workaround” is to use a bluetooth usb dongle and disable the Pi’s internal bluetooth, as long as the bluetooth dongle gets assigned the device name hci0 you should be fine. There’s an open discussion about this topic in this BalenaSound Github issue. Some users have reported that the problem disappeared when they removed the BLUETOOTH_DEVICE_NAME env variable, although is not a definitive solution.

Regarding the AirPlay issue, could you post the logs you see when it starts failing?

Thanks!

Absolutely.

17.07.20 15:28:11 (+0000)  airplay  Device is discoverable as "balenaSound Airplay c152"
17.07.20 15:29:28 (+0000)  airplay  Error 6 opening the pipe named "/var/cache/snapcast/snapfifo": "No such device or address".

As an aside, is it possible to rename the AirPlay device like Bluetooth?

Hi @mbierman – thanks for the additional info. The error message shows that airplay can’t open a pipe file named snapfifo; this is how it expects to communicate with the Snapcast service. This pipe file should be created by Snapcast automatically if that service managed to start up correctly. Can you check the dashboard for your device and see if all the services are running correctly?

As for renaming the Airplay device, this should be possible by customizing the name of the device; you can find instructions on how to do that here. Have you gone through these instructions already?

All the best,
Hugh

So the link you provided is a little confusing. It mentions E(x) Enviornment Variables, but all I see on my end is:

image

I’m not sure where these variables need to be set.

All services say they are running correctly.

O.K. after a lot of trial and error it seems like the variables are supposed to be set like so. Is that correct?

I am not seeing anything in the AirPlay logs now. Strange. But the Device does show up as an airplay device. Just nothing happens when I chose it.

Here’s the docker-compose.yml from the build

version: '2.1'
services:
  bluetooth-audio:
    build:
      context: ./bluetooth-audio
    restart: on-failure
    network_mode: host
    privileged: true
    labels:
      io.balena.features.dbus: '1'
    volumes:
      - 'bluetoothcache:/var/cache/bluetooth'
      - 'snapcast:/var/cache/snapcast'
  airplay:
    build:
      context: ./airplay
    restart: on-failure
    network_mode: host
    privileged: true
    labels:
      io.balena.features.dbus: '1'
    volumes:
      - 'snapcast:/var/cache/snapcast'
  spotify:
    build:
      context: ./spotify
    restart: on-failure
    network_mode: host
    privileged: true
    volumes:
      - 'spotifycache:/var/cache/raspotify'
      - 'snapcast:/var/cache/snapcast'
  fleet-supervisor:
    build:
      context: ./fleet-supervisor
    restart: on-failure
    network_mode: host
    privileged: true
    ports:
      - '3000:3000'
    labels:
      io.balena.features.supervisor-api: '1'
  snapcast-server:
    build:
      context: ./snapcast-server
      args:
        SNAPCAST_VERSION: 0.19.0
    restart: on-failure
    ports:
      - '1704:1704'
      - '1705:1705'
    volumes:
      - 'snapcast:/var/cache/snapcast'
  snapcast-client:
    build:
      context: ./snapcast-client
      args:
        SNAPCAST_VERSION: 0.19.0
    restart: on-failure
    network_mode: host
    privileged: true
    volumes:
      - 'snapcast:/var/cache/snapcast'
  upnp:
    build:
      context: ./upnp
    restart: on-failure
    network_mode: host
    ports:
      - '49494:49494'
    volumes:
      - 'snapcast:/var/cache/snapcast'
volumes:
  spotifycache: {}
  bluetoothcache: {}
  snapcast: {}

Here’s the build logs:

[Info]              Starting build for balena-sound, user balena_mb
[Info]              Dashboard link: https://dashboard.balena-cloud.com/apps/1706212/devices
[Info]              Building on arm03
[Info]              Pulling previous images for caching purposes...
[Success]           Successfully pulled cache images
[Info]              Starting to build airplay
[Info]              Starting to build snapcast-server
[Info]              Starting to build spotify
[Info]              Starting to build fleet-supervisor
[Info]              Starting to build upnp
[Info]              Starting to build bluetooth-audio
[Info]              Starting to build snapcast-client
[Success]           Successfully built service airplay
[Success]           Successfully built service spotify
[Success]           Successfully built service fleet-supervisor
[Success]           Successfully built service upnp
[Success]           Successfully built service snapcast-server
[Success]           Successfully built service snapcast-client
[Success]           Successfully built service bluetooth-audio
[Info]              Uploading images
[Success]           Successfully uploaded images
[Info]              Built on arm03
[Success]           Release successfully created!
[Info]              Release: 7f57c4ce9a5d27bd8c44239290dd0074 (id: 1463608)
[Info]              Build finished in 3 minutes, 2 seconds

o.k. now I have this

17.07.20 23:51:56 (+0000)  airplay  Device is discoverable as "AirPi"
17.07.20 23:52:09 (+0000)  airplay  Error 6 opening the pipe named "/var/cache/snapcast/snapfifo": "No such device or address".

Hi,

Speaking about the environment variables, you can set them on the application level (i.e. for all your devices). And device variable are set per device.
More info is on our docs:

I see that similar errors have been reported in the other thread:

Would you try rebooting your device to see if anything changes?