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-proxy returns 503 error over http and https #426
Comments
Can you paste the generated nginx conf? does it work with version 1 compose config? |
Here's nginx.conf:
Where should I be seeing generated conf? There's only this in conf.d:
default.conf:
I added
I suppose there is a weird error in Nginx log output when I look now:
|
|
Hello! Just to report that: We have the following docker-compose project and it works fine on:
But we are having a 503 from nginx-proxy on:
the logs are something like:
It could seem that contents of /etc/nginx/conf.d/default.conf is not changing, but looking at the generated file:
I can see that it has indeed been modified. So it would seem also that for some reason, dockergen is not detecting the modification and thus skipping 'nginx -s reload', but issuing that command by hand does not resolve the problem. Anyway, I just realized is that the only service that has this problem is nginx-proxy. proxied services seem to work just fine. Could this be useful for the diagnose? Cheers, Edu. |
I am having the same problem. |
Same problem here for me: Running macOS sierra with docker 1.12.13 returning a 503.
|
I think I'm having the same issue: The configuration reloads but nothing changes, the upstream section is still empty:
And I just get 503 from the server. |
+1 Getting the same error using docker nginx-proxy and docker gitlab. |
+1 Also seeing exactly this on Docker for Mac. I'm just going to roll my own I think. Shame this looked very cool awesome! |
I have worked with docker for some time now, but just started working with both docker-compose and jwilder/nginx-proxy today. I am currently experiencing this issue on Linux Mint (Ubuntu 14.04.1) with docker 1.13.0 and docker-compose 1.9.0 but only when using docker-compose / docker-compose.yml. When I execute Does this have to do with networking in docker-compose? I noticed the following when running two containers of interest – one via docker, one via docker-compose: docker container log (working):
docker-compose container log (not working):
The following log message appeared most of the time in early stages of todays trial/error (not working):
The error page shows: "503 Service Temporarily Unavailable – nginx/1.11.8" The tail of /etc/nginx/conf.d/default.conf when both, working and not working, are up:
I find this line interesting that exists only for the working container: |
Just noticed that there's a workaround for this issue here: #552 (haven't tested it myself yet). [UPDATE] |
503 server error solved:TRY TO SETUPhttps://github.com/presentator/presentator-docker Solution
|
This did not work =( |
I managed to get around this by commenting out the |
I'm setting up nginx-proxy in front of an app server. They're defined in separate compose definitions. For some reason I'm getting a
503
, but I don't know why and I've gone over thenginx-proxy
docs in detail.The app server originally served https over
443
with10443
exposed on the host. I switched to serving http over80
with10443
exposed on the host.I can curl from the app server directly, but curling through nginx-proxy throws up an error
I initially had nginx-proxy on
443
, but I switched it to80
for now.Until I added
default.crt
anddefault.key
, I was getting a connection refused error. After adding them, I'm getting a503
.Here's my compose definition for nginx-proxy. I'm using
network_mode: bridge
which is supposed to work even withversion: 2
.Here's my app server composition:
The certs are less relevant since I switched to port
80
to debug. I have a wildcard certificate for*.example.com
. I made a copy namedfoo.example.com
in case nginx-proxy couldn't find it. I tried both setting and not settingCERT_NAME
. I've now also generated thedhparam
stuff.root@8b02a7deb220:/etc/nginx/certs# ls -la total 48 drwxr-xr-x 2 root root 4096 Apr 21 18:15 . drwxr-xr-x 4 root root 4096 Apr 21 18:06 .. -rw------- 1 root root 3575 Apr 21 18:03 example.com.crt -rw-r--r-- 1 root root 769 Apr 21 18:03 example.com.dhparam.pem -rw------- 1 root root 1679 Apr 21 18:03 example.com.key -rw-r--r-- 1 root root 1838 Apr 21 18:03 default.crt -rw-r--r-- 1 root root 3268 Apr 21 18:03 default.key -rw------- 1 root root 3575 Apr 21 17:37 foo.example.com.crt -rw-r--r-- 1 root root 769 Apr 21 18:15 foo.example.com.dhparam.pem -rw------- 1 root root 1679 Apr 21 17:37 foo.example.com.key
This is the only thing that shows up in the nginx-proxy log when I curl:
Nothing shows up in app server log, meaning it does not see the request.
How do I debug this? Are there better logs somewhere?
The text was updated successfully, but these errors were encountered: