Proxmox: Nginx Proxy Manager 2.10.1 crashes on upgrade with your script

The subject says it all. Your script is awesome and has worked perfectly for about a year. I just started to install 2.10.1, and the upgrade script throws no errors, but NPM refuses to run. When I check the log, I see the following repeated over and over:

Mar 31 17:27:02 npm systemd[1]: Started Nginx Proxy Manager.
Mar 31 17:27:02 npm node[280706]: [3/31/2023] [5:27:02 PM] [Global   ] › ℹ  info      Using Sqlite: /data/database.sqlite
Mar 31 17:27:02 npm node[280706]: [3/31/2023] [5:27:02 PM] [Global   ] › ℹ  info      Creating a new JWT key pair...
Mar 31 17:27:06 npm node[280706]: [3/31/2023] [5:27:06 PM] [Global   ] › ℹ  info      Wrote JWT key pair to config file: /data/keys.json
Mar 31 17:27:06 npm node[280706]: [3/31/2023] [5:27:06 PM] [Migrate  ] › ℹ  info      Current database version: none
Mar 31 17:27:08 npm node[280706]: [3/31/2023] [5:27:08 PM] [Global   ] › ✖  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
Mar 31 17:27:08 npm node[280706]: ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

At this point NPM becomes unreachable. I cannot access the GUI and all reverse proxying fails too. The only solution I have found is to roll back to 2.9.22. (I snap the container before the upgrade.)

It seems that other people are having NPM problems too but many of those relate to MySQL. It also seems that permissions can be a challenge and so I am not sure if that is related to this.

TIA!

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

From the instructions:

Screenshot 2023-04-16 10 08 57 AM

It just needed the Python interpreter to include packages installed in the global site-packages.

The above sed command is now in the install/update script.

Try running this command in the LXC console

sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' /opt/certbot/pyvenv.cfg