Problems with Balena Sound installation

Hi all. This is my first time doing anything like this so sorry if I seem a little ill-informed.
Have tried installing Balena Sound on my Raspberry Pi 3 for the first time today. I’ve deployed the project code and the Airplay, Spotify and Bluetooth-audio services are all displayed as running on the dashboard. However, the logs keep repeating the following entries on a loop:

16.10.19 17:29:54 (+0100) bluetooth-audio /usr/bin/env: ‘bash\r’: No such file or directory
16.10.19 17:30:57 (+0100) bluetooth-audio /usr/bin/env: ‘bash\r’: No such file or directory
16.10.19 17:30:58 (+0100) Service exited ‘bluetooth-audio
16.10.19 17:31:52 (+0100) Restarting service ‘airplay
16.10.19 17:30:50 (+0100) airplay /usr/src/start.sh: line 2: ‘\r’: command not found
16.10.19 17:30:50 (+0100) airplay /usr/src/start.sh: line 8: syntax error: unexpected end of file
16.10.19 17:31:52 (+0100) airplay /usr/src/start.sh: line 2: ‘\r’: command not found
16.10.19 17:31:52 (+0100) airplay /usr/src/start.sh: line 8: syntax error: unexpected end of file
16.10.19 17:31:54 (+0100) Service exited ‘airplay
16.10.19 17:31:56 (+0100) Restarting service ‘spotify
16.10.19 17:30:54 (+0100) spotify /usr/src/start.sh: line 2: ‘\r’: command not found
16.10.19 17:30:54 (+0100) spotify /usr/src/start.sh: line 8: syntax error: unexpected end of file 16.10.19 17:31:56 (+0100) spotify /usr/src/start.sh: line 2: ‘\r’: command not found
16.10.19 17:31:56 (+0100) spotify /usr/src/start.sh: line 8: syntax error: unexpected end of file

16.10.19 17:31:57 (+0100) Service exited ‘spotify
16.10.19 17:31:59 (+0100) Restarting service ‘bluetooth-audio

What can I do to fix this? All help appreciated!

Thom

Hi,

I am guessing you’re using Windows? If so, this is caused by the line endings being converted to DOS ones by Git for Windows. When you push the repo to Balena these endings are incorrect for the Linux system they run in on your device and so this kind of error is shown: \r: command not found

You should delete the local repo you downloaded, reconfigure Git to ignore the line ending conversion, and re-clone the BalenaSound source & push to Balena again.

1 Like

Great, this has done the trick.
Thank you!