-
Notifications
You must be signed in to change notification settings - Fork 627
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
librespot only outputs version information in certain docker image distributions #1408
Comments
Can you tell if it's working, just not outputting anything, or hanging after the first print message ? |
And can you rule out the docker pid 1 issue? |
It is not hanging, nor does it really appear to be outputting anything (other than version info, as above). Strace shows the write to console, and nothing else being written out. It doesn't appear to be opening any sockets anywhere. At the surface level, it appears that running When I go and run the working image and run
I am fairly certain that is not what is happening -- in the cases above, I am using bash as the init process, not librespotify or snapcast. The strace is really small, only a few hundred lines so I've included it as an attachment to help. I've also ruled out any sort of memory exhaustion -- there is something like 25G available on the host system. |
To.me.that sounds like it is hanging if it's not progressing any further than printing version info. Try running it under gdb? |
What I mean by it not "Hanging" is that it immediately exits and does not continue to process anything, to be clear. It happens super fast:
|
Ahh I understand now. Thanks |
Have you tried a debug build? |
No, just what is available through cargo; to be honest I was kinda expecting this to be some sort of problem exists between keyboard and chair, but I'm begging to think I actually found a bug or something. Hah. Are you able to duplicate it on your side? That, to me, is the last unknown variable -- is it something to do with my docker host, perhaps? (Although what, I can not fathom!) |
I don't have docker on this laptop, I'm really not a fan. You should be able to use |
Description
When running in docker, librespot does nothing except output version information.
Version
0.6.0
How to reproduce
Using a similar dockerfile as this, run librespotify:
mkdir librespot-test
(add the above for docker)
docker build . -t librespot-test
docker run -it librespot-test
note I stripped down my docker file so as to not annoy developers, but have included the additional required libraries in case there is a conflict. Eg: snapserver, npm, etc.
Log
Host (what you are running
librespot
on):Additional context
I'm not 100% sure what the deal is between various distributions, but
python:3-alpine
(~alpine version 3.20 as of time of writing) works as expected:Courtesy of this comment
But this container based on
alpine:latest
(3.20.3 as of time of writing) exhibits the same behavior:Finally, I did do an strace on it, but nothing interesting really came up. I'd be more than happy to provide that if thought to be helpful.
The text was updated successfully, but these errors were encountered: