You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run Monitoror in in container, with nginx and letsencrypt. The app itself was running fine, but when wanting to add the le certificate, my error running the init script was:
vm@status:~/monitoror$ sudo ./init-letsencrypt.sh
Existing data found for my.domain.com. Continue and replace existing certificate? (y/N) y
### Creating dummy certificate for my.domain.com ...
Creating network "monitoror_default" with the default driver
Creating monitoror_certbot_run ... done
Generating a RSA private key
.++++
.................++++
writing new private key to '/etc/letsencrypt/live/my.domain.com/privkey.pem'
-----
### Starting nginx ...
Creating monitoror ... done
Creating monitoror-certbot ... done
Recreating monitoror-nginx ... done
### Deleting dummy certificate for my.domain.com ...
Creating monitoror_certbot_run ... done
### Requesting Let's Encrypt certificate for my.domain.com ...
Creating monitoror_certbot_run ... done
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Requesting a certificate for my.domain.com
Performing the following challenges:
http-01 challenge for my.domain.com
Using the webroot path /var/www/certbot for all unmatched domains.
Waiting for verification...
Challenge failed for domain my.domain.com
http-01 challenge for my.domain.com
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: my.domain.com
Type: unauthorized
Detail: Invalid response from
http://my.domain.com/.well-known/acme-challenge/IDHFsDpFTxwli_E9vbX889ShZa9__hmsnYcr-SOYCbc
[212.114.254.89]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
2.0//EN\">\n<html><head>\n<title>503 Service
Unavailable</title>\n</head><body>\n<h1>Service"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
### Reloading nginx ...
Error response from daemon: Container a16bb0f9b9c57decafdcd543fb81c2344a4b3fd74a1bd35cc84e6cebba6f80c9 is restarting, wait until the container is running
And here is my functional setup.
Notice that for nginx the volume for the config file is - ./data/nginx:/etc/nginx and not - ./data/nginx:/etc/nginx/conf.d
I am trying to run Monitoror in in container, with nginx and letsencrypt. The app itself was running fine, but when wanting to add the le certificate, my error running the init script was:
And here is my functional setup.
Notice that for nginx the volume for the config file is - ./data/nginx:/etc/nginx and not - ./data/nginx:/etc/nginx/conf.d
I checked the logs of my nginx container and I noticed:
My conf file was called app.conf, so I renamed it to nginx.conf:
Also, in the init script itself I commented out the nginx at end of line 42:
docker-compose up --force-recreate -d #nginx
Project tree:
Everything's up and running.
Thank you!
The text was updated successfully, but these errors were encountered: