-
Notifications
You must be signed in to change notification settings - Fork 69
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 image doesn't run on (older) Synology NAS #114
Comments
This is how the container fails when running
|
This is the specific error when hooked up to a container shell and trying to run Apache2:
|
Update: I can run older Docker images: The newest that does not have this issue (probably still be Debian Buster), is
For now I gave up building a container myself and use exactly this old version. I'm hitting a lot of bugs though that might be fixed in newer Ampache versions, so this is not a sufficient solution in the long run. Still interested in anyone else's thoughts on how to possibly build a container myself that runs a 5.x or even 6.x Ampache version compatible with my old kernel. |
I'm a docker (and linux) noob so forgive me, I thought everything is self-contained so why does the kernel matter? |
Nope, exactly not the case. To put it simple, the difference is that
Hope that clarifies and educates :-) |
But this brings me to a new idea: The problem seems to be Apache included in Debian bullsyeye that requires that kernel feature...... Ok, so is there maybe a Docker Ampache image out there that does not use Apache but Nginx as the webserver (or even any other webserver)? |
According to this SO post, the last working version of Apache that didn't require this kernel feature is 2.4.18. You could modify the Ampache Dockerfile to manually install that version of Apache. This isn't a great solution as it requires you to run vulnerable software. As you mentioned using a different webserver altogether is a much better idea. There is no "official" image that uses Nginx, but I did find this repository from 6 years ago that you could try: https://github.com/OnekO/ampache-alpine-nginx/tree/master You'll want to set a couple of the environment variables found in the Dockerfile likely. If that doesn't work, it should be possible to modify the Ampache Dockerfile to replace Apache with Nginx. You would just need to make sure to include the relevant Nginx configuration. I might be able to take a stab at it this week if I can find some time but no promises. |
If i was going to do it, i'd do this. but outside of apache and iis i'm not familiar with the other webservers |
Thanks so much, that is all very great advice! Keep me posted if you find the time to test something. I hope I manage to come back to this project soon. Thanks again! |
I couldn't let it be and thought, since my Ampache won't be accessible on the internet anyway, this could be the quickest solution, but I quickly ran out of knowledge about current possibilities with Debian package management. Wasn't it always the case that getting an older version of a Debian package involves enabling the repo in /etc/apt/sources.list.d/ for older stable version, in that case Debian Buster, to get access to that specific package version? And then most probably entering "Dependency Hell"... Is there maybe new possibilities like "snapshot.debian.org" that make things like that easier? I'm not sure if I recall this service from my days back when I had more Debian admin knowledge. Maybe before I dig to deep, the straight up question, is there a quick way to install 2.4.18 Apache? What to roughly change in the Dockerfile? (building the container takes ages on my machine, thus it's pretty frustrating if I trial and error what to change exactly!) Thanks!!!!!!!!! PS: Only thing I know is |
Synology NAS systems aged a couple of years old (mine is 10+years old) still run a kernel 3.x.something (DSM6.x, DSM7.x), the Ampache docker image uses a compiled apache2 package that requires features (urandom related) that these kernels don't have.
I suggest providing a docker image that is compatible with such older machines/kernels. Updating kernels on such NAS boxes is not a good idea, if not impossible, I suppose.
I think the best stolution would be to create an Ampache container that is based on Debian buster, instead of bullsyeye. I'm trying to get one built with an altered
Dockerfile
at the moment but no success so far.Drop me a note for any hints with similar problems.
HTH
The text was updated successfully, but these errors were encountered: