Comments (4)
My setup: Running with upstream node apps.
The error I was getting when I ran ./init-letsencrypt.sh
was always "Challenge failed for domain <domain-name>"
So I first mounted the nginx access and error logs to a volume and it always showed 1 of 2 things
1. nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/<domain-name>/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/<domain-name>/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2. nginx: [emerg] host not found in upstream "auth" in /etc/nginx/sites-enabled/default.conf:13
-> The certificate error made sense as it did not exist and hence this error occured
-> The upstream error was the one I kept ignoring thinking it was due to certbot or nginx. But this in reality was the real error.
SOLUTION
My nginx server had no clue about the "auth" upstream as it would only be available when my docker service - "auth" would be up. So after a lot of ignoring the error, I just ran docker-compose up before the script and then ran the
script.
Voila solved my issue.
Hope my stupidness helps others hours of googling. Cheers!
from nginx-certbot.
Hi, I have the same issue, how did you managed to correct it?
My NGINX Docker runs but impossible to have it accessible even though ports 80 and 443 are open.
from nginx-certbot.
Having the same issue as above @melvinmajor
from nginx-certbot.
I'm also getting similar errors.
I have no more "example.org" in any of the files
I'm only testing for a single domain pointing to a static IP on a linux EC2 server where I run docker-compose
I've tried the exact steps in the medium tutorial, and I've taken the latest code from the github repo.
I've tried it with the proposed nginx server, and with my own set-up of my server which, if run by itself, works (but only over HTTP)
I have the feeling the server with docker-compose doesn't start correctly. But I have no idea how to check this or how to fix it
from nginx-certbot.
Related Issues (20)
- Init script produces this error (some challenges failed) HOT 2
- Certbot failed to authenticate some domains HOT 3
- Problems creating certificates with subdomains HOT 8
- problems when setting up an application in a different docker-compose.yml HOT 1
- connection refused HOT 1
- Need Help on existing HTTP server conversion (on docker-compose) HOT 3
- Cant create private key file HOT 1
- Thank you for making this
- Nginx container stuck in a restart loop HOT 1
- Unable to connect to the app via https or browser HOT 1
- When setup renew, no nginx logs
- Turn off Matamo tracking in non-production environments
- Always challenge failed HOT 3
- Not creating a certificate for a subdomain HOT 3
- exec format errors HOT 1
- Configuration for certbot/dns-cloudflare
- Keep getting connection refused HOT 10
- Multiple domains don't really work well! HOT 5
- - HOT 2
- Challenges fail when using envsubst template for nginx configuration. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-certbot.