'Namespace' object has no attribute 'dns_linode_credentials'

After successfully running:

~# certbot certonly -a dns-linode --dns-linode-credentials /root/.linode_api/certbot -d *.algasol.com -d albusaurum.com -d *.albusaurum.com -d *.aquatuta.com -d *.algasolrenewables.com -d algasol.com -d aquatuta.com -d algasolrenewables.com

The renewal command certbot renew failed with this error:

Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/algasol.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Renewal configuration file /etc/letsencrypt/renewal/algasol.com.conf (cert: algasol.com) produced an unexpected error: 'Namespace' object has no attribute 'dns_linode_credentials'. Skipping.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

No renewals were attempted.

Additionally, the following renewal configurations were invalid:
  /etc/letsencrypt/renewal/algasol.com.conf (parsefail)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0 renew failure(s), 1 parse failure(s)

~# cat /etc/letsencrypt/renewal/algasol.com.conf
# renew_before_expiry = 30 days
version = 1.5.0
archive_dir = /etc/letsencrypt/archive/algasol.com
cert = /etc/letsencrypt/live/algasol.com/cert.pem
privkey = /etc/letsencrypt/live/algasol.com/privkey.pem
chain = /etc/letsencrypt/live/algasol.com/chain.pem
fullchain = /etc/letsencrypt/live/algasol.com/fullchain.pem

# Options used in the renewal process
[renewalparams]
account = 3db0bdb7e22398800acd96f3ad40ec66
authenticator = dns-linode
dns_linode_credentials = /root/.linode_api/certbot
server = https://acme-v02.api.letsencrypt.org/directory

~# certbot --version
certbot 1.5.0

What is your Linux distribution, and how did you install Certbot and the Linode DNS plugin?

~# cat /etc/debian_version
10.4
~# snap install --beta --classic certbot
~# pip install certbot_dns_linode

I don’t think you are able to mix installation methods like this.

Installing certbot_dns_linode will actually also pull certbot from from pip, so you will end up with another Certbot installation alongside the one from snap.

The results will be confusing to say the least.

Today, I believe your choices are:

  • Install certbot and python3-certbot-dns-linode from Debian’s apt repository. Old version, but should work.
  • Wait for DNS plugins to be packaged for snap.
  • Roll the dice with pip, but it’s not a supported installation method (please at least use a virtualenv in this case).

In any case, the installation source of Certbot and of the DNS plugin should be the same.

1 Like

Stretch doesn’t package dns-linode. I’ll probably have to upgrade to Buster.

Oh. Your debian_version is telling fibs!

No I was… looking at another system when I said that. I’ll try uninstalling everything and reinstalling from just the buster repository.

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