question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

certbot-dns-cloudflare no longer installed

See original GitHub issue

Starting with 2.6.0 and also on 2.6.1, I get an error on startup and any time I try to renew my let’s encrypt certs.

[10/16/2020] [10:54:23 AM] [SSL      ] › ✖  error     Error: Command failed: /usr/bin/certbot renew --non-interactive --quiet --config "/etc/letsencrypt.ini" --preferred-challenges "dns,http" --disable-hook-validation  ,
Renewal configuration file /etc/letsencrypt/renewal/npm-3.conf (cert: npm-3) produced an unexpected error: 'Namespace' object has no attribute 'dns_cloudflare_credentials'. Skipping.,
Renewal configuration file /etc/letsencrypt/renewal/npm-4.conf (cert: npm-4) produced an unexpected error: 'Namespace' object has no attribute 'dns_cloudflare_credentials'. Skipping.,
Renewal configuration file /etc/letsencrypt/renewal/npm-5.conf (cert: npm-5) produced an unexpected error: 'Namespace' object has no attribute 'dns_cloudflare_credentials'. Skipping.,
0 renew failure(s), 3 parse failure(s),
    at ChildProcess.exithandler (child_process.js:308:12),
    at ChildProcess.emit (events.js:314:20),
    at maybeClose (internal/child_process.js:1051:16),
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5),

Running pip3 list | grep certbot in the docker image shows that only certbot is installed. It looks like the certbot-dns-cloudflare module isn’t installed.

I can run pip3 install certbot-dns-cloudflare in the docker image and the error goes away. I am now able to automatically & manually renew my certs.

Going through the diffs between 2.5.0 and 2.6.0, it looks like the this change to the Dockerfile is causing the problem.

I’m guessing that this is to handle the change to allow for multiple DNS providers.


For those that have the same problem, running docker exec -it PROXY_APP_NAME pip3 install certbot-dns-cloudflare should fix the issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chaptergycommented, Oct 17, 2020

Okay, the issue is in processExpiringHosts, where a non-certificate-specific renew is called and no plugins are installed prior. I’ll get to fixing the issue. So as a workaround for now klicking on the three dots next to the certificate and then on “renew now” should work too.

0reactions
chaptergycommented, Nov 6, 2020

Fixed by #664, can be closed @jc21

Read more comments on GitHub >

github_iconTop Results From Across the Web

certbot-dns-cloudflare no longer installed · Issue #662 - GitHub
It looks like the certbot-dns-cloudflare module isn't installed. I can run pip3 install certbot-dns-cloudflare in the docker image and the error ...
Read more >
Certbot-dns-cloudflare installed but not working - Help
Hi. I am getting an error with using the certbot-dns-cloudflare plugin. I have already installed it using the command: snap install ...
Read more >
Welcome to certbot-dns-cloudflare's documentation! — certbot ...
Welcome to certbot-dns-cloudflare's documentation!¶ ... The plugin is not installed by default. It can be installed by heading to certbot.eff.org, ...
Read more >
Install certbot-dns-cloudflare on Linux | Snap Store - Snapcraft
Install certbot-dns-cloudflare on your Linux distribution​​ Choose your Linux distribution to get detailed installation instructions. If yours is ...
Read more >
Why doesn't certbot-dns-cloudflare plugin install under aws linux
This appears to get certbot installed and I see no error messages. Next I do this: $ cd /opt/eff.org/certbot/venv $ source bin/activate $...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found