Skip to content

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

Description

@cmcginty

βœ… 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalThis problem is external

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions