Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build fails - librespot package version issue? #22

Open
mwild1 opened this issue Dec 23, 2024 · 2 comments · May be fixed by #23
Open

docker build fails - librespot package version issue? #22

mwild1 opened this issue Dec 23, 2024 · 2 comments · May be fixed by #23

Comments

@mwild1
Copy link
Contributor

mwild1 commented Dec 23, 2024

Thanks for the project! I've been using it happily for years, practically daily :)

Unfortunately it broke recently, so I decided it was time to update. However I'm having difficulty getting the new version to build. I had some local modifications, but I just tried a clean clone of the repo and that also fails.

Building the latest revision on 2024-12-23, commit e31a64f, it fails to build:

# docker build --no-cache --progress=plain -t librespot-snapserver .
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.1s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 384B done
#2 DONE 0.1s

#3 [internal] load metadata for docker.io/library/alpine:3.17.1
#3 DONE 0.0s

#4 [1/4] FROM docker.io/library/alpine:3.17.1
#4 CACHED

#5 [internal] load build context
#5 transferring context: 28B done
#5 DONE 0.0s

#6 [2/4] RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
#6 DONE 0.5s

#7 [3/4] RUN apk add --no-cache bash snapcast=0.26.0-r3 librespot=0.4.2-r4 sed
#7 0.483 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#7 0.783 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#7 1.089 fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
#7 1.840 ERROR: unable to select packages:
#7 1.980   librespot-0.6.0-r0:
#7 1.980     breaks: world[librespot=0.4.2-r4]
#7 ERROR: process "/bin/sh -c apk add --no-cache bash snapcast=${SNAPCAST_VERSION} librespot=${LIBRESPOT_VERSION} sed" did not complete successfully: exit code: 1
------
 > [3/4] RUN apk add --no-cache bash snapcast=0.26.0-r3 librespot=0.4.2-r4 sed:
#7 0.483 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#7 0.783 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#7 1.089 fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
#7 1.840 ERROR: unable to select packages:
#7 1.980   librespot-0.6.0-r0:
#7 1.980     breaks: world[librespot=0.4.2-r4]
------
Dockerfile:7
--------------------
   5 |     
   6 |     RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
   7 | >>> RUN apk add --no-cache bash snapcast=${SNAPCAST_VERSION} librespot=${LIBRESPOT_VERSION} sed
   8 |     
   9 |     COPY run.sh /
--------------------
ERROR: failed to solve: process "/bin/sh -c apk add --no-cache bash snapcast=${SNAPCAST_VERSION} librespot=${LIBRESPOT_VERSION} sed" did not complete successfully: exit code: 1

What's the recommended solution here?

@mwild1 mwild1 linked a pull request Dec 23, 2024 that will close this issue
@mwild1
Copy link
Contributor Author

mwild1 commented Dec 23, 2024

It looks like librespot has been updated in alpine, so I submitted a PR to bump the package version in the dockerfile, which appears to fix the build.

Unfortunately it doesn't appear to fix my playback issue, which seems to match badaix/snapcast#1186 which is apparently fixed in snapcast v0.27.0 (librespot-snapserver is currently on 0.26.0).

I'm not sure how to upgrade snapcast to a newer version... attempting to increase the version gives me similar errors to the one that I opened this issue about, although I see 0.29.0 seems to be available in alpine. Any ideas?

@mwild1
Copy link
Contributor Author

mwild1 commented Dec 23, 2024

Okay, bumping the overall alpine version was the answer here. I eventually got everything working on alpine 3.21, so we can finally enjoy some festive music. I hope you can too! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant