nginx-proxy-manager: DNS Challenge Azure failing

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you’re not using someone else’s docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

DNS challenge with Azure DNS fails.

warning   Command failed: . /opt/certbot/bin/activate && pip install --no-cache-dir --user certbot-dns-azure~=1.2.0  && deactivate
nginx-proxy-nginx-proxy-1  | ERROR: Will not install to the user site because it will lack sys.path precedence to cryptography in /opt/certbot/lib/python3.7/site-packages

Nginx Proxy Manager Version

2.10.0 - 2.10.1

In Version 2.9.22 the error is a different one:

AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

To Reproduce Steps to reproduce the behavior:

  1. Go to SSL Certificates
  2. Click on Add SSL Certificate/Let’s Encrypt
  3. Choose DNS Challenge/Azure
  4. Give Domain Name and Credentials for Azure
  5. Press Save

Expected behavior

Procede like usual to generate Certificates

Screenshots

Operating System

Additional context

About this issue

Most upvoted comments

I fixed it this way:

# docker exec -it CONTAINERID sh
# apt update
# apt install build-essential libssl-dev libffi-dev python3-dev
# . /opt/certbot/bin/activate
# rm -rf /opt/eff.org/*
# pip install -U certbot
# pip install cryptography==3.4.3

Agreed, but at least a work around for now, until this gets resolved.

Experience the same issue on 2.10.1. Resulting in not being able to login and high CPU load (due to the container constantly trying to upgrade).

[Migrate ] › ℹ info Current database version: 20211108145214 [Global ] › ✖ error Command failed: . /opt/certbot/bin/activate && pip install --no-cache-dir --user certbot-dns-transip~=0.4.3 && deactivate ERROR: Will not install to the user site because it will lack sys.path precedence to cryptography in /opt/certbot/lib/python3.7/site-packages