SOLVED: certbot-dns-cloudflare install fails for Nginx Proxy Manager
Problem occurred while configuring cloudflare dns on nginx proxy manager:
The Error:
Error: Command failed: . /opt/certbot/bin/activate && pip install --no-cache-dir certbot-dns-cloudflare==$(certbot --version | grep -Eo '0-9+') cloudflare && deactivate
The 'certbot_dns_cloudflare._internal.dns_cloudflare' plugin errored while loading: No module named 'acme.magic_typing'. You may need to remove or update this plugin. The Certbot log will contain the full error details and this should be reported to the plugin developer.
Ask for help or search for solutions at https://community.letsencrypt.org 1. See the logfile /tmp/certbot-log-drz10np0/log or re-run Certbot with -v for more details.
ERROR: Could not find a version that satisfies the requirement certbot-dns-cloudflare==
ERROR: No matching distribution found for certbot-dns-cloudflare==
The Fix:
docker ps
Use the container id to execute into the terminal of that container:
docker exec -it 4f9e14a5d713 /bin/bash
Try this:
apt update
pip3 install certbot-dns-cloudflare==2.11.0
replace 2.11.0 with some other versions that meet the latest version nginx proxy manager
Note:
If you have network issue, then you must fix your dns resolve first then continue the steps above.
No Comments