Workaround for Nginx Proxy Manager: 'certbot: error: unrecognized arguments' even though I ran '/app/scripts/install-certbot-plugins' #831
githubaff0
started this conversation in
General
Replies: 2 comments 3 replies
-
Awesome. I had the same issue and your command helped. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
-
Can't you just specify to install the duckdns plugin exclusively rather than installing all plugins? If in root folder: If in /app/scripts folder: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proxmox Virtual Environment 8.3.1
Nginx Proxy Manager v2.12.1 © 2024 jc21.com / Theme by Tabler / Proxmox VE Helper-Scripts.
I just installed NGINX Proxy Manager LXC and ran into an issue with
certbot: error: unrecognized arguments
even though I installed the plugins. I wanted to share the info I found and a potential workaround for anyone else running into the same issue./app/scripts/install-certbot-plugins
in the nginxproxymanager LXC console to install the pluginscertbot: error: unrecognized arguments: --dns-duckdns-credentials ... --dns-duckdns-no-txt-restore ...
As noted above, I did run
/app/scripts/install-certbot-plugins
and one of the plugins had an error, but the duckdns plugin seemed to install fine. I reran theinstall-certbot-plugins
script again just in case, but still got the certbot error when trying to create the SSL cert.The issue is something about python dist-packages vs site-packages as reported in this comment in a Nginx Proxy Manager issue: NginxProxyManager/nginx-proxy-manager#4191 (comment)
/app/scripts/install-certbot-plugins
installs the plugins using a certbot Python virtualenv, e.g. '/opt/certbot/bin/activate && pip install --no-cache-dir certbot-dns-duckdns~=1.0 && /opt/certbot/bin/deactivate' so they get installed in '/opt/certbot/lib/python3.11/site-packages/'The workaround for me was to install the duckdns certbot plugin without the python virtualenv used by /app/scripts/install-certbot-plugins, i.e. I ran
pip install --no-cache-dir certbot-dns-duckdns~=1.0
in the nginxproxymanager LXC console, which installed the plugin in /usr/local/lib/python3.11/dist-packages/.After doing that, I was able to create my SSL cert via the Nginx Proxy Manager Web GUI successfully.
I don't think that's the proper solution for the issue, but I wanted to post the workaround to help anyone else.
I'm out of my depth with Python, but there's an explanation here about Debian using dist-packages vs site-packages: https://stackoverflow.com/questions/9387928/whats-the-difference-between-dist-packages-and-site-packages.
I'm not sure if this a bug in NginxProxyManager or if this is due to some subtle difference between NginxProxyManager under Docker vs NginxProxyManager under ProxmoxVE/LXC or if its a one-off issue for me because of how I installed things because I'm a newbie to Proxmox and the helper scripts.
Beta Was this translation helpful? Give feedback.
All reactions