Nginx Proxy Manager post certbot install script + virtual env issues #1703

Closed
opened 2025-11-20 05:15:06 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @cmcginty on GitHub (Aug 13, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)"

📂 What was the exact command used to execute the script?

/app/scripts/install-certbot-plugins

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📝 Provide a clear and concise description of the issue.

After install, the certbot porkbin plugin fails with error when attempting to generate an SSL I got the error:
certbot: error: unrecognized arguments: --dns-porkbun-credentials /etc/letsencrypt/credentials/credentials-4

🔄 Steps to reproduce the issue.

I installed npm with and certbot extensions:

$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)"
# login to lxc host 
/app/scripts/install-certbot-plugins

The plugin installer runs the commands with the format:
. /opt/certbot/bin/activate && pip install <ARGS> && deactivate

Which installs the certbot plugins into a virtual env (this is the potential bug).

Paste the full error output (if available).

certbot: error: unrecognized arguments: --dns-porkbun-credentials /etc/letsencrypt/credentials/credentials-4

🖼️ Additional context (optional).

I was able to resolve by forcing the porkbun pip install as root
pip install --no-cache-dir certbot-dns-porkbun~=0.9

So why are the certbot plugins being installed to a virtual env if the NPM service is not actually loading it?

Originally created by @cmcginty on GitHub (Aug 13, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)" ### 📂 What was the exact command used to execute the script? /app/scripts/install-certbot-plugins ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📝 Provide a clear and concise description of the issue. After install, the certbot porkbin plugin fails with error when attempting to generate an SSL I got the error: `certbot: error: unrecognized arguments: --dns-porkbun-credentials /etc/letsencrypt/credentials/credentials-4 ` ### 🔄 Steps to reproduce the issue. I installed npm with and certbot extensions: ``` $ bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)" # login to lxc host /app/scripts/install-certbot-plugins ``` The plugin installer runs the commands with the format: `. /opt/certbot/bin/activate && pip install <ARGS> && deactivate` Which installs the certbot plugins into a virtual env (this is the potential bug). ### ❌ Paste the full error output (if available). `certbot: error: unrecognized arguments: --dns-porkbun-credentials /etc/letsencrypt/credentials/credentials-4 ` ### 🖼️ Additional context (optional). I was able to resolve by forcing the porkbun pip install as root `pip install --no-cache-dir certbot-dns-porkbun~=0.9` So why are the certbot plugins being installed to a virtual env if the NPM service is not actually loading it?
saavagebueno added the external label 2025-11-20 05:15:06 -05:00
Author
Owner

@christophengelmayer commented on GitHub (Aug 20, 2025):

I had the same issue with the hetzner plugin.
Your workaround also fixed it for me.

pip install --no-cache-dir certbot-dns-hetzner

@christophengelmayer commented on GitHub (Aug 20, 2025): I had the same issue with the hetzner plugin. Your workaround also fixed it for me. `pip install --no-cache-dir certbot-dns-hetzner`
Author
Owner

@MickLesk commented on GitHub (Aug 20, 2025):

"Since there are hundreds of Certbot instances, it's necessary to install the specific Certbot of your preference. Running /app/scripts/install-certbot-plugins within the nginxproxymanager LXC shell will install many additional plugins."

=> this tool is from npm himself, its not from us

@MickLesk commented on GitHub (Aug 20, 2025): "Since there are hundreds of Certbot instances, it's necessary to install the specific Certbot of your preference. Running /app/scripts/install-certbot-plugins within the nginxproxymanager LXC shell will install many additional plugins." => this tool is from npm himself, its not from us
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1703