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.39k stars 427 forks source link

Spotify fails to build for amd64 #623

Open lumbarthought opened 1 year ago

lumbarthought commented 1 year ago

Deploying balenasound to a generic x86_64 or Intel NUC fails due to Spotify not building. Error log shows:

[Error]             Some services failed to build:
[Error]               Service: spotify
[Error]                 Error: no matching manifest for linux/amd64 in the manifest list entries
lumbarthought commented 1 year ago

From the spotify build log

Step 1/4 : FROM andrewn/librespot:0.4.2-pulseaudio
no matching manifest for linux/amd64 in the manifest list entries
maggie44 commented 1 year ago

Thanks for reporting this.

@andrewn, it does look like the amd64 image version hasn't built: https://hub.docker.com/r/andrewn/librespot/tags

maggie44 commented 1 year ago

@andrewn, this may be an easier approach: https://github.com/andrewn/librespot-docker/pull/1

If we merge that in to the repo then we can build the containers here on GitHub rather than need to push to Docker Hub. We should be able to merge that, then add two tags to the latest commit called ghcr and 0.4.2 (need to make sure they are both pushed at the same time). It will start a build. Assuming they all build ok, then we can point balenaSound at those new GHCR images instead.

andrewn commented 1 year ago

@maggie0002 Thanks for opening the PR! I managed to get the builds working and the containers are here .

I'm not sure if it makes a difference—or if I don't understand the Github UI—but it looks like only one of the four architectures is tagged? But they all seem to have the correct metadata. 🤷

I'm travelling until the end of February so won't be able to test on a real Pi until then.

jkr442 commented 1 year ago

Would there be a workaround possible for those of us trying to set up devices in the meantime?

andrewn commented 1 year ago

I created the amd64 image here.

It should install if you try the build again. Want to give it a go @jkr442?

jkr442 commented 1 year ago

Success! Thanks