[GH-ISSUE #2777] Cloudflare DNS Plugin won't install #1909

Closed
opened 2026-02-26 07:33:12 +03:00 by kerem · 7 comments
Owner

Originally created by @jeeftor on GitHub (Mar 29, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2777

Describe the bug

Error: Command failed: . /opt/certbot/bin/activate && pip install --no-cache-dir --user certbot-dns-cloudflare==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+') cloudflare && deactivate
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

Nginx Proxy Manager Version

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Operating System

Additional context

Originally created by @jeeftor on GitHub (Mar 29, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2777 **Describe the bug** <!-- A clear and concise description of what the bug is. --> ``` Error: Command failed: . /opt/certbot/bin/activate && pip install --no-cache-dir --user certbot-dns-cloudflare==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+') cloudflare && deactivate ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv. at ChildProcess.exithandler (node:child_process:402:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1100:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) ``` **Nginx Proxy Manager Version** <!-- What version of Nginx Proxy Manager is reported on the login page? --> **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Operating System** <!-- Please specify if using a Rpi, Mac, orchestration tool or any other setups that might affect the reproduction of this error. --> **Additional context** <!-- Add any other context about the problem here, docker version, browser version, logs if applicable to the problem. Too much info is better than too little. -->
kerem 2026-02-26 07:33:12 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@wigglerror commented on GitHub (Mar 31, 2023):

@jeeftor
Can you paste a step-by-step solution?
I have exactly the same problem.

<!-- gh-comment-id:1492538127 --> @wigglerror commented on GitHub (Mar 31, 2023): @jeeftor Can you paste a step-by-step solution? I have exactly the same problem.
Author
Owner

@jeeftor commented on GitHub (Apr 3, 2023):

I just retested everything I think all you need is to log in to the box/vm/container as root and run:

# Although if you are root prob dont need sudo
sudo pip install certbot-dns-cloudflare
<!-- gh-comment-id:1493561342 --> @jeeftor commented on GitHub (Apr 3, 2023): I just retested everything I think all you need is to log in to the box/vm/container as root and run: ```bash # Although if you are root prob dont need sudo sudo pip install certbot-dns-cloudflare ```
Author
Owner

@jeeftor commented on GitHub (Apr 3, 2023):

Ok here is the step by step ... (oh baby)

I'm running Proxmox so I use one of the scripts to make a new container for proxymanager:

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/nginxproxymanager.sh)"

image

Once that's done I open a shell into that container and run:

sudo pip install certbot-dns-cloudflare

image

Login with default creds:

image

Go make a cert:

image

And then everything should work...

👏🏼 👏🏼 👏🏼 🚀

image

<!-- gh-comment-id:1493564056 --> @jeeftor commented on GitHub (Apr 3, 2023): Ok here is the step by step ... (oh baby) I'm running **Proxmox** so I use one of the scripts to make a new container for proxymanager: ```bash bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/nginxproxymanager.sh)" ``` ![image](https://user-images.githubusercontent.com/6491743/229400324-edf2d6f0-3585-4b73-b6c2-b515b494b07e.png) Once that's done I open a shell into that container and run: ```bash sudo pip install certbot-dns-cloudflare ``` ![image](https://user-images.githubusercontent.com/6491743/229400446-030e2051-9362-4ca8-b1a6-964b4e13b624.png) Login with default creds: ![image](https://user-images.githubusercontent.com/6491743/229400495-7dd0053f-fbc9-4463-bac3-f92f2890e6dd.png) Go make a cert: ![image](https://user-images.githubusercontent.com/6491743/229400657-15ab4e2a-5470-4bc4-a1ea-2eb5513b0205.png) And then everything should work... 👏🏼 👏🏼 👏🏼 🚀 ![image](https://user-images.githubusercontent.com/6491743/229400848-80bcd7e2-ee66-4412-b093-e6e661dd4b25.png)
Author
Owner

@Joriempie commented on GitHub (Apr 3, 2023):

@jeeftor Thanks! This solved the issue for me! :)

<!-- gh-comment-id:1493819289 --> @Joriempie commented on GitHub (Apr 3, 2023): @jeeftor Thanks! This solved the issue for me! :)
Author
Owner

@wigglerror commented on GitHub (Apr 3, 2023):

Thanks @jeeftor for good and clear instruction.
I also have proxmox and install NPM with tteck script.
I follow you steps, but still have same error.
certbot-dns-cloudflare was already installed on my host

I managed to solve the problem.
Go to the pyvenv.cfg file in the Virtual environment folder
Set the include-system-site-packages to true and save the change

<!-- gh-comment-id:1493958853 --> @wigglerror commented on GitHub (Apr 3, 2023): Thanks @jeeftor for good and clear instruction. I also have proxmox and install NPM with tteck script. I follow you steps, but still have same error. certbot-dns-cloudflare was already installed on my host I managed to solve the problem. Go to the pyvenv.cfg file in the Virtual environment folder Set the include-system-site-packages to true and save the change
Author
Owner

@github-actions[bot] commented on GitHub (Jan 24, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1907216923 --> @github-actions[bot] commented on GitHub (Jan 24, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Mar 10, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2709242911 --> @github-actions[bot] commented on GitHub (Mar 10, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1909
No description provided.