wmnnd / nginx-certbot

Boilerplate configuration for nginx and certbot with docker-compose
MIT License
3.16k stars 1.17k forks source link

Stuck on No renewals were attempted #92

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi,

I'm trying to launch a simple static website on Ubuntu 20.04 server. Repository LINK

After following all the steps and pushing my docker image to docker hub when I run the docker-compose up I'm stuck on "No renewals were attempted.". No error or warnings, the terminal just waits.

I have modified your docker-compose.yaml file to use my own image since my image is based on the nginx image and contains all the files needed for my website.

Terminal log:

Pulling nginx (fajkovicsasa/sasa-fajkovic.com:latest)...
latest: Pulling from fajkovicsasa/sasa-fajkovic.com
bb79b6b2107f: Pull complete
111447d5894d: Pull complete
a95689b8e6cb: Pull complete
1a0022e444c2: Pull complete
32b7488a3833: Pull complete
bdafa92a5347: Pull complete
dac9a1d829ff: Pull complete
624b3bdab3aa: Pull complete
1ff3172a00e7: Pull complete
1c297a1724bc: Pull complete
7613d7bd0ce1: Pull complete
91b7fa9994f6: Pull complete
c85aa739a3ca: Pull complete
f2cb7c0b20f4: Pull complete
f531c76ba6d8: Pull complete
4b767f441781: Pull complete
Digest: sha256:530c467f0074bf45facd743349f3029e6bb6b7a39f647aec2ba316489bf35649
Status: Downloaded newer image for fajkovicsasa/sasa-fajkovic.com:latest
Pulling certbot (certbot/certbot:)...
latest: Pulling from certbot/certbot
df20fa9351a1: Pull complete
36b3adc4ff6f: Pull complete
7eaf559fa1af: Pull complete
ff42851d39f6: Pull complete
8ba142e34a43: Pull complete
cdd1e7f9bfb7: Pull complete
6a8fec83b604: Pull complete
c7f2f4b652f5: Pull complete
6f610157929b: Pull complete
7b3a14b04221: Pull complete
b905b5141bf0: Pull complete
1a0692f68940: Pull complete
79c7fad257a1: Pull complete
79ba4c673acc: Pull complete
25af5a42667c: Pull complete
f6a1611973d6: Pull complete
Digest: sha256:d650cb5dd297b5dc499b14767ebcb3ab4999d858637bd0d5c5f176be20521567
Status: Downloaded newer image for certbot/certbot:latest
Creating root_certbot_1 ... done
Creating root_nginx_1   ... done
Attaching to root_certbot_1, root_nginx_1
certbot_1  | Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot_1  | 
certbot_1  | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
certbot_1  | 
certbot_1  | No renewals were attempted.
certbot_1  | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Content of letsencrypt.log

2020-10-17 21:20:32,539:DEBUG:certbot._internal.main:certbot version: 1.9.0
2020-10-17 21:20:32,540:DEBUG:certbot._internal.main:Arguments: []
2020-10-17 21:20:32,540:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,Plugin>
2020-10-17 21:20:32,562:DEBUG:certbot._internal.log:Root logging level set at 20
2020-10-17 21:20:32,563:INFO:certbot._internal.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2020-10-17 21:20:32,566:DEBUG:certbot._internal.renewal:no renewal failures
ghost commented 4 years ago

After pressing the Ctrl+C I get:

^CGracefully stopping... (press Ctrl+C again to force)
Stopping root_nginx_1   ... done
Stopping root_certbot_1 ... done
ghost commented 4 years ago

I forgot to run the init-letsencrypt.sh scrypt before runnig docker-compose.

Closing