balena-io-experimental / balena-sound

Build a single or multi-room streamer for an existing audio device using a Raspberry Pi! Supports Bluetooth, Airplay and Spotify Connect
https://balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/
MIT License
2.43k stars 431 forks source link

Can't connect to device after powerloss #27

Closed mcmuffindk closed 4 years ago

mcmuffindk commented 5 years ago

When you unplug and plug the Pi back in i have to remove it from "My Devices" and then connect to it from scratch or it will error on connection

Enviroment: iPhone XS iOS 12.4 Raspberry Pi Zero WH balenaOS 2.32.0+rev1 Balena-Sound master v0.0.11

chrisys commented 5 years ago

We’ve seen this before, and it has been resolved in balenaOS versions 2.38 and higher. I’m guessing as you’re still seeing it now that you’re running a Raspberry Pi Zero as the current version of balenaOS on the dashboard is 2.32 which exhibits this problem; other Pis have more recent OS versions available.

You can work around this by downloading the latest OS for the Pi Zero from staging: https://dashboard.balena-staging.com/login If you combine a download of config.json from the normal dashboard with the OS download from staging, you should be able to get it working. You can flash the staging OS to your SD card, then plug it back into your computer and replace the config.json file within the resin-boot partition with the one downloaded from your app on the production dashboard.

tmigone commented 4 years ago

Closing this issue in favor of Chris' solution: update balenaOS to version 2.38 or higher.