eugene-khyst/letsencrypt-docker-compose

Waiting for Let's Encrypt certificate for <bad-domain-name>

Closed this issue · 3 comments

tka85 commented

I added a new service but I mistyped the domain name. Something like example.orgg instead of .org.

I realized it too late and re-run to remove it. Removed successfully (no traces in config.json or under nginx-conf/) but now I see in the logs of letsencrypt-docker-compose-nginx-1 constantly the message Waiting for Let's Encrypt certificate for example.orgg.

Something I can do to clean up so this stops?

Hi @tka85,

Try running:

docker compose restart --no-deps nginx

This is a bug. After removing the domain, CLI reloads Nginx config:

await execNginxReload();

But reloading Nginx config doesn't have any effect on this line of the already running Bash script:

wait_for_lets_encrypt_certificate "$domain" &

After removing the domain CLI should restart nginx container.

I will fix it. Thanks for reporting the bug.

@tka85 , have you solved the problem?

tka85 commented

Yep. Thank you very much.

Worked like a charm!