Struggling to understand this problem

Hello everyone,

I am hoping someone can help me to get more information on this problem, and to resolve it.

I want to use Caddy for a very simple https:// website.

When I initially created a caddy file and started caddy, under root user account, it worked immediately. My let’s encrypt certificate was there and working wonderfully.

After several weeks I got an email from let’s encrypt that my certificate was about to expire. And indeed, it was not renewing on my caddy server.

So… I stopped caddy server and started it again, hoping it would renew the certificate. It didn’t. Now caddy doesn’t work anymore.

This is one of the error messages I get:

root@blabla# /usr/local/bin/caddy -conf /root/caddyfile
Activating privacy features…2017/10/06 21:45:33 too many renewal attempts; last error: acme: Error 429 - urn:acme:error:rateLimited - Error creating new authz :: Too many invalid authorizations recently.

When I waited an hour and tried again I got an error that the server could not be reached.

There is nothing running on port 80 and 443 that can be in the way:
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0* LISTEN 0 10735 616/sshd
tcp6 0 0 :::22 :::* LISTEN 0 10743 616/sshd

That’s all I have. Port 80 shows up for about one second when I start Caddy. Then a few seconds later, port 443 shows up for about one second. Then the error message shows.

My caddy file looks like this:
root /var/www/

That’s literally it. Nothing more.

The DNS name exists and resolves to the public IP address this server runs on. (obviously I anonymized the address). The server is directly on the Internet and there are no firewalls installed at all. This is as vanilla an installation of Linux on the Internet as you can imagine. Yet… Caddy won’t work with Let’s Encrypt anymore? It did before. It ran for 3 months. Then the Let’s Encrypt certificate expired and now nothing.

How can I find more information to try and resolve this problem…?

What version of caddy are you using?

On which OS are you using it?

Hi magikstm, thanks for paying attention.

Caddy 0.10.9 (now - I updated it when it didn’t work - unfortunately the update didn’t fix it either) on Debian Jessie (8.8 currently)

ps; just found out that the old version was 0.10.3.

Did you have logging enabled on that server? (the -log flag)

Hi magikstm,

No, I did not. It’s the simplest http thing I could find and wanted to run and I saw no benefit in logging.

What I could do is wait for a while until the rate limiting problem has passed with let’s encrypt (I don’t need the server online immediately - it can wait a while) and then start caddy with the -log ./log.txt flag and see what it logs there and report it back here.

2017/10/07 10:26:29 [INFO][] acme: Trying renewal with -719 hours remaining
2017/10/07 10:26:29 [INFO][] acme: Obtaining bundled SAN certificate
2017/10/07 10:26:29 [INFO][] AuthURL:
2017/10/07 10:26:29 [INFO][] acme: Trying to solve TLS-SNI-01
2017/10/07 10:26:33 [ERROR] Renewing: acme: Error 400 - urn:acme:error:connection - Connection refused
Error Detail:
        Validation for
        Resolved to:

; trying again in 10s

I think I figured it out. The connection refused got me to retracing my steps and it turns out my provider for this machine has implemented a firewall outside of my reach. Contacted them and it should get resolved now. Thank for your time and effort.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.