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
500 Internal Server Error #2302
Comments
logs of acme:
|
Everything seems correct with the network:
|
Looks like nginx-proxy is trying to forward to upstream on port 80. But your service is listening on 8080 try to add If no change it helps to post your full rendered nginx config. |
@SchoNie : Many thanks, but the server is listening on port 80, too:
I can access the testserver from the browser of any computer from within my home network, but not from the nginx-proxy container. Although as shown above its the same network.
From the server itself (host of docker), it works fine:
|
Please post your full rendered nginx config. But did you try the |
Thank you @SchoNie ! Here the output:
Strange that there should be no certificate, as the acme tells me:
|
I dont know why the nginx.conf tells me there is not SSL certificate. The nginx-proxy can access them. When I log into the docker container, it tells me:
|
I moved some docker container to another system recently. Everyhing worked on the old machine. Started the containers on the new machine, but got:
500 Internal Server Error
Here is how I started the testserver:
docker run -d --name testserver --network nextcloudpi -p 8086:8080 -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro -e 'LETSENCRYPT_EMAIL=letsencrypt@regenpost.de' -e 'LETSENCRYPT_HOST=test.bardhome.de, test.bardhome.eu' -e 'VIRTUAL_HOST=test.bardhome.de, test.bardhome.eu' nginxdemos/nginx-hello
and nginx-proxy:
docker run --detach --name nginx-proxy --publish 80:80 --publish 443:443 --volume /docker/volumes/letsencrypt:/etc/nginx/certs --volume vhost:/etc/nginx/vhost.d --volume html:/usr/share/nginx/html --volume /var/run/docker.sock:/tmp/docker.sock:ro -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --network=nextcloudpi nginxproxy/nginx-proxy
also started nginx-proxy-companion:
docker run --detach \ --name nginx-proxy-acme \ --volumes-from nginx-proxy \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ --volume acme:/etc/acme.sh \ -v /etc/timezone:/etc/timezone:ro \ -v /etc/localtime:/etc/localtime:ro \ --network=nextcloudpi \ --env "DEFAULT_EMAIL=letsencrypt@regenpost.de" \ nginxproxy/acme-companion
This is the logs when I try to open the site:
Edit: Strange, no I do not get an error in the logs, but still the same message 500 - internal server error:
Version of nginx-proxy:
nginxproxy/nginx-proxy latest b3fe70959a81 6 days ago 203MB
The text was updated successfully, but these errors were encountered: