Nginx proxy manager - and cert

Yesterday this was working fine. I formatted my system to reinstall ubuntu, docker and docker compose.
I installed Nginx proxy manager using Portainer and after I get in and setup I request my cert because I forgot to save them and I keep getting this error.

Error: Command failed: . /opt/certbot/bin/activate && pip install --no-cache-dir --user certbot-dns-route53==$(certbot --version | grep -Eo '0-9+') && deactivate
ERROR: Will not install to the user site because it will lack sys.path precedence to urllib3 in /opt/certbot/lib/python3.7/site-packages

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)

You have to pose this question to the nginx-proxy-manager project.

It doesn't make sense to use the --user flag when using a virtual environment like this, and our official instructions don't do it.

I would go as far as to say that this is a bug in the project and that they should replace this line with something like:

const prepareCmd = '/opt/certbot/bin/pip install --no-cache-dir' + dns_plugin.package_name + (dns_plugin.version_requirement || '') + ' ' + dns_plugin.dependencies;

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.