-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
nginx -s reload
not working as expected on alpine versions
#578
Comments
I can't reproduce this on amd64 or aarch64, and I don't have an armv6 device to test:
Can you post the full steps on how to reproduce it? e.g. if you're creating another image on top, etc. |
Ah, so I dug into the issue a bit more. It's very strange why the armv6 image behaves like this. I took this one from dockerhub (https://hub.docker.com/layers/nginx/library/nginx/mainline-alpine/images/sha256-826624c15f5e49e591d80f3e0c696f92a2d5967b989017572fe241edac294a2a?context=explore) and made sure I used the latest available for my architecture.
I think the previous attempts were via docker-compose, specifically the line
was why I thought it wasn't working properly. In actuality, it seems like the process dies and the container is stopped (which is why the original example showed the same number on the next run) My Hope that helps. Also tried again without it showing in the background to see the output (also noticing my clock is out of sync..) |
That behaviour seems strangely similar to #517 - can you test it the same way as in #517 (comment) for instance? Are you using the latest docker engine version available? |
Sure thing. I'll give that a read and test
Ah good mention. I just checked, it's running I'll give this a go since it seems like the path of least resistance. Thanks for the feedback @thresheek |
This is the results after a docker update (sudo apt upgrade docker)
So it appears to be the same as before. |
I randomly chose an older image (that actually downloaded), and it seems the issue is no more! Unfortunately, it does mean it's running on a older version of software in general
The one I landed on that worked was this one: |
That just confirms that the issue is similar to #517, and older alpine runtime is not affected by the lack of support in docker/libseccomp on the host. |
Tyvm, your reply in particular with regards to So to sum up, libseccomp2 needs an update on the rasp pi (running raspbian), and on raspbian it has outdated apt sources:
so @RouxAntoine summed it up nicely by providing the instructions, in edit 2 Solution for future readers - of course read up supporting information before installing this
Honorable mentions
and this to appear after running an affected docker image:
As this issue is on my end resolved, and nothing to do with this repository in particular, I'm happy to close this one off. Thanks again @thresheek |
Hi there,
Hopefully I'm reporting this in the appropriate location, but I'm having an issue where I am experiencing some 'downtime' whenever I reload the nginx configurations using
nginx -s reload
on alpine images.I've tested this on nginx:alpine-mainline and it seems
The basic setup is to use an nginx image as a reverse proxy, pointing to another web service (e.g. another nginx with a static page).
When the nginx acting as the reverse proxy's configuration is reloaded via the
nginx -s reload
command, the page fails to load (presumably because the process is no longer running?), and starts up again after a few seconds.This behaviour is NOT an issue when I use the full nginx image (non-alpine), and running
nginx -s reload
causes no downtime as expected.Here is a snippet of what the commands return when I run it using the full image (first block), and the alpine one (the one in the coloured box)
I'm not 100% sure what these numbers mean (process id??) but on the alpine one, it's always the same, and on the full nginx image, it's increasing as one might expect.
This is unfortunate because I am not able to utilize the alpine image for my needs, but would be good to understand what might be the cause of this issue. I've tried searching but couldn't find a similar issue.
Environment:
nginx:mainline-alpine
is used to test this feature, and it is NOT working. This is the image I would like to have this fixed for.nginx:mainline
is used to test this feature, and it IS working as expected.The text was updated successfully, but these errors were encountered: