Certbot renew --dry-run fails

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: www.allstarlink.org

I ran this command: certbot renew --dry-run

It produced this output:Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/web-grr.allstarlink.org.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Attempting to renew cert (web-grr.allstarlink.org) from /etc/letsencrypt/renewal/web-grr.allstarlink.org.conf produced an unexpected error: urn:ietf:params:acme:error:malformed :: The request message was malformed :: Method not allowed. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/web-grr.allstarlink.org/fullchain.pem (failure)


** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/web-grr.allstarlink.org/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)


1 renew failure(s), 0 parse failure(s)
root@web-grr:/etc/apache2# vi sites-enabled/000-default.conf
root@web-grr:/etc/apache2# vi sites-enabled/000-default-le-ssl.conf
root@web-grr:/etc/apache2# apache2ctl configtest
Syntax OK
root@web-grr:/etc/apache2# apache2ctl restart
root@web-grr:/etc/apache2# certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/web-grr.allstarlink.org.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Attempting to renew cert (web-grr.allstarlink.org) from /etc/letsencrypt/renewal/web-grr.allstarlink.org.conf produced an unexpected error: urn:ietf:params:acme:error:malformed :: The request message was malformed :: Method not allowed. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/web-grr.allstarlink.org/fullchain.pem (failure)


** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/web-grr.allstarlink.org/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)


1 renew failure(s), 0 parse failure(s)

apachectl -t -D DUMP_VHOSTS
VirtualHost configuration:
*:443 web-grr.allstarlink.org (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)
*:80 is a NameVirtualHost
default server web-grr.allstarlink.org (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost web-grr.allstarlink.org (/etc/apache2/sites-enabled/000-default.conf:1)
alias www.allstarlink.org
port 80 namevhost bsdtelephony.net (/etc/apache2/sites-enabled/bsdtelephony.conf:1)
alias www.bsdtelephony.net
port 80 namevhost duuuude.com (/etc/apache2/sites-enabled/duuuude.conf:1)
alias www.duuuude.com
port 80 namevhost lambdatel.com (/etc/apache2/sites-enabled/lambdatel.conf:1)
alias www.lambdatel.com
port 80 namevhost ofaa.org (/etc/apache2/sites-enabled/ofaa.conf:1)
alias www.ofaa.org
port 80 namevhost zapatatelephony.org (/etc/apache2/sites-enabled/zapata.conf:1)
alias www.zapatatelephony.org

My web server is (include version): Apache/2.4.25 (Debian)

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is: self

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): certbot 0.28.0

1 Like

You need to upgrade one of Certbot's components.

On a supported version of Debian, that should be easy to do.

Can you answer that question?

1 Like

Yes, it’s Debian 9.9

If you installed Certbot with apt, and have the stretch-updates repository enabled, it should be as simple as apt update and apt upgrade.

If stretch-updates isn’t enabled, enable it by adding it to /etc/apt/sources.list, then run apt update and apt upgrade.

3 Likes

There is always that fear that apt-get upgrade will break something. :frowning:

Would apt-get upgrade certbot likely work?

1 Like

The specific package that you need to upgrade for this error is python3-acme. The issue is fixed in >=0.28.0-1~deb9u2.

As you can see, not running upgrades also breaks stuff :stuck_out_tongue: .

Debian is very conservative with package upgrades anyway ...

4 Likes

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