nginx-certbot icon indicating copy to clipboard operation
nginx-certbot copied to clipboard

Unable to run the container

Open aasimenator opened this issue 4 years ago • 2 comments

Hi, I am following the steps as mentioned in the README.md file. yet I am having some sort of a path issue. can you help fix this?

server:~/nginx-certbot$ docker-compose up
Starting nginx-certbot_nginx_1   ... done
Starting nginx-certbot_certbot_1 ... done
Attaching to nginx-certbot_certbot_1, nginx-certbot_nginx_1
nginx_1    | 2021/03/05 07:43:16 [emerg] 1#1: open() "/etc/letsencrypt/options-ssl-nginx.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/app.conf:22
nginx_1    | nginx: [emerg] open() "/etc/letsencrypt/options-ssl-nginx.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/app.conf:22
certbot_1  | Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot_1  |
certbot_1  | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
certbot_1  | No renewals were attempted.
certbot_1  | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping nginx-certbot_certbot_1 ... done
Stopping nginx-certbot_nginx_1   ... done

aasimenator avatar Mar 05 '21 07:03 aasimenator

I have the exact same error and can't run this docker-compose. :( I tried a few different approaches but wasn't able to get it running ...

Is anybody here who could help resolving this issue?! Greets Daniel

DanielOberlechner avatar Mar 26 '21 22:03 DanielOberlechner

What was the output of the actual init script? From the log above, the ssl file doesn't exist so it was never created. I would make sure it exists and there are no errors after running the init script.

tjmoses avatar Apr 05 '21 04:04 tjmoses