mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #2381] certbot-dns-cloudflare install fails. #1679
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1679
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Wasca on GitHub (Nov 8, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2381
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
Installing certbot-dns-cloudflare fails when creating a new SSL certificate
Nginx Proxy Manager Version
2.9.19
To Reproduce
Steps to reproduce the behavior:
Expected behavior
SSL Certificate is created.
Screenshots
This is the error
Operating System
Ubuntu 20.04 LTS
Additional context
Docker version 20.10.21
docker-compose.yml
I've checked my network and the container is able to download other files using curl.
@supermamon commented on GitHub (Nov 9, 2022):
I'm getting a similar issue. Encounters an error installing
certbot-dns-cloudflare.Operating System
Raspbian / Linux hostname 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux
Additional context
Docker version 19.03.13, build 4484c46
Last working version for me is 2.9.14
@jc21 commented on GitHub (Nov 9, 2022):
Running this command inside the docker container for v2.9.18 on amd64 works fine for me:
@Wasca your problem looks to be network related, can you run this command manually in your docker container and see if it still fails?
@supermamon your problem looks more problematic. I don't have a arm7l instance to play with. Can you run these in your container first, then try to install the plugin as above:
Let me know if that works?
@Wasca commented on GitHub (Nov 9, 2022):
@jc21
I tend to agree, there does seems to be a network issue. I need to do a 'apt update' first and it seems to be timing out or going really slow, see below image.
I also tested just downloading a file using curl and I was able to download at 44MB/s so I know my internet connection on this docker container is working.
So far I've not had any luck in running the command you asked me to run.
@Wasca commented on GitHub (Nov 9, 2022):
@jc21
Oops I miss read your post sorry, here it the result of the command you asked about.
@supermamon commented on GitHub (Nov 9, 2022):
I needed to run
apt updatebefore i could installpython-devandpython3-dev.The plugin install keep failing when installing
cryptography@jc21 commented on GitHub (Nov 9, 2022):
ugh I've seen this before but I can't remember what the solution was. I'll keep thinking
@jc21 commented on GitHub (Nov 9, 2022):
So, apparently the
cryptographywheel should come precompiled for python, since 2 years ago. What we're seeing here is that it's trying to be compiled upon installing the plugin that needs it. I'm not sure if this is a raspbian thing or what. This SO suggests that installing some build tools will allow it to build. This isn't a practical solution everyone, as it will bloat the image and the majority of users won't need that bloat.The strange thing is that this didn't happen for you in 2.9.18? or for some reason, the
pipcommand is using v2 instead of a v3 symlink. Maybe usingpip3is different?@supermamon commented on GitHub (Nov 10, 2022):
I'm not entire sure if Raspbian matters here since it still uses the
linux/arm/v7base when in docker.I haven't updated a while (was on 2.9.14 before) and jumping to 2.9.19. That didn't work so I tried incremental updates. 2.9.15 started showing this issue.
The logs above where on 2.9.18. Below is what I get on 2.9.15 - after the base image change from
nginxproxymanager/nginx-full:nodetonginxproxymanager/nginx-full:certbot-node. Not sure if that matters.These are the docker logs where it just hangs there. From what I understand, it hangs there because it's trying to install cryptography from version 38.0.3 working backwards until it can find a successful install.
Into the container.
using
pipto install seems like it's using the pip3 symlink but hits thecryptographypackage error.@jc21 commented on GitHub (Nov 10, 2022):
I'm pretty sure that base image change will be a cause of your issue. It could also be the version change for the plugin, though this is less likely.
@supermamon commented on GitHub (Nov 10, 2022):
I just found this open issue - https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1769.
I guess I'll stay on 2.9.14 for now until there's a definite fix.
@jc21 commented on GitHub (Nov 10, 2022):
Ok yeah I must have missed those newer comments. As they suggested, compiling inside will add the bloat, but does this work for you?
@supermamon commented on GitHub (Nov 10, 2022):
looks like that installed successfully:
@jc21 commented on GitHub (Nov 14, 2022):
Can you please try the
github-developdocker tag, it should have the fix@supermamon commented on GitHub (Nov 16, 2022):
yes, that works thank you.
@promiseofcake commented on GitHub (Nov 18, 2022):
Also confirmed worked, thanks!
@Wasca commented on GitHub (Nov 21, 2022):
@jc21 My original issue is resolved, there was a routing issue within my docker environment which was blocking access to the routes the container was trying to access.
@github-actions[bot] commented on GitHub (Feb 5, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@engemil commented on GitHub (Jun 26, 2024):
This worked for me!
Hope the changes made in github-develop becomes a stable release soon.
@GeorgKlaussner commented on GitHub (Jun 26, 2024):
Using github-develop docker tag also fixed it for me. Thanks.
@teotimepacreau commented on GitHub (Jun 27, 2024):
github-develop docker tag fixing it also for me
@diabolo511 commented on GitHub (Aug 17, 2024):
Would you mind sharing your solution if you can remember?
@asmoura commented on GitHub (Oct 14, 2024):
Just ran the command and still got an error:
pip3 install certbot-dns-cloudflare --index-url https://www.piwheels.org/simple --prefer-binary
Error:
Could not find a version that satisfies the requirement cryptography>=3.2.1 (from certbot>=2.7.4->certbot-dns-cloudflare) (from versions: )
No matching distribution found for cryptography>=3.2.1 (from certbot>=2.7.4->certbot-dns-cloudflare)
Log:
root@dea2531247a8:/app# pip3 install certbot-dns-cloudflare --index-url https://www.piwheels.org/simple --prefer-binary
Looking in indexes: https://www.piwheels.org/simple
Collecting certbot-dns-cloudflare
Downloading https://www.piwheels.org/simple/certbot-dns-cloudflare/certbot_dns_cloudflare-2.7.4-py3-none-any.whl
Collecting certbot>=2.7.4 (from certbot-dns-cloudflare)
Downloading https://www.piwheels.org/simple/certbot/certbot-2.7.4-py3-none-any.whl (405kB)
100% |████████████████████████████████| 409kB 735kB/s
Collecting cloudflare>=1.5.1 (from certbot-dns-cloudflare)
Downloading https://www.piwheels.org/simple/cloudflare/cloudflare-3.1.0-py3-none-any.whl (2.9MB)
100% |████████████████████████████████| 2.9MB 398kB/s
Collecting acme>=2.7.4 (from certbot-dns-cloudflare)
Downloading https://www.piwheels.org/simple/acme/acme-2.7.4-py3-none-any.whl (95kB)
100% |████████████████████████████████| 102kB 1.2MB/s
Collecting setuptools>=41.6.0 (from certbot-dns-cloudflare)
Downloading https://www.piwheels.org/simple/setuptools/setuptools-68.0.0-py3-none-any.whl (804kB)
100% |████████████████████████████████| 808kB 784kB/s
Collecting pytz>=2019.3 (from certbot>=2.7.4->certbot-dns-cloudflare)
Downloading https://www.piwheels.org/simple/pytz/pytz-2024.2-py3-none-any.whl (507kB)
100% |████████████████████████████████| 512kB 1.2MB/s
Collecting importlib-resources>=1.3.1; python_version < "3.9" (from certbot>=2.7.4->certbot-dns-cloudflare)
Downloading https://www.piwheels.org/simple/importlib-resources/importlib_resources-5.12.0-py3-none-any.whl
Collecting configobj>=5.0.6 (from certbot>=2.7.4->certbot-dns-cloudflare)
Downloading https://www.piwheels.org/simple/configobj/configobj-5.0.9-py2.py3-none-any.whl
Collecting parsedatetime>=2.4 (from certbot>=2.7.4->certbot-dns-cloudflare)
Downloading https://www.piwheels.org/simple/parsedatetime/parsedatetime-2.6-py3-none-any.whl (42kB)
100% |████████████████████████████████| 51kB 3.8MB/s
Collecting cryptography>=3.2.1 (from certbot>=2.7.4->certbot-dns-cloudflare)
Could not find a version that satisfies the requirement cryptography>=3.2.1 (from certbot>=2.7.4->certbot-dns-cloudflare) (from versions: )
No matching distribution found for cryptography>=3.2.1 (from certbot>=2.7.4->certbot-dns-cloudflare)
@suditugeorge commented on GitHub (Mar 15, 2025):
The version 2.11.3 seems to resolve this issue
@Silicon51 commented on GitHub (May 21, 2025):
So, there's a chance that you have my case: both piHole and NPM as docker containers.
Due to some weird behavior of DNS resolver NPM container do not have access to internet so cannot request for cert.
For me it log errors like
Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/cloudflare/Also I have error
Failed to check the reachability due to a communication error with site24x7.com nginx proxywhen in version 2.12.3 I use option "Test Server Reachability" from tab SSL Certificates.How to solve it?
add following to your NPM docker compose:
@github-actions[bot] commented on GitHub (Dec 3, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍