ej52 / proxmox-scripts

MIT License
587 stars 308 forks source link

Bad Gateway is back in 2.10.1 #113

Closed JBHorne2 closed 11 months ago

JBHorne2 commented 1 year ago

Script nginx-proxy-manager

Describe the bug Getting the "bad gateway" error after upgrading to 2.10.1

System info:

Screenshots image

Additional context It appears this was fixed in 2.9.x per another thread, but now I'm having this issue with 2.10.1.

Hackerjef commented 1 year ago

This may be related:

[4/21/2023] [2:16:04 PM] [Migrate  ] › ℹ  info      Current database version: none
[4/21/2023] [2:16:06 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
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

[notice] A new release of pip is available: 23.0.1 -> 23.1
[notice] To update, run: pip install --upgrade pip

This is after I updated my npm alpine install and i'm getting the same problem this keeps cycling trying to install certbot's cf plugin, dunno for sure I fixed it by making include-system-site-packages true in /opt/certbot/pyvenv.cfg and it fixed it

@JBHorne2 could you look at top/htop to see if these a pip process trying to install it over and over again? (check npm logs as well)

JBHorne2 commented 1 year ago

@Hackerjef Holy heck you fixed it! That's all I needed to do. I did see certbot and pip both reappearing when running 'top'. I looked at /usr/local/openresty/nginx/logs/error.log but this was empty. Are you aware of another npm log file? Just curious.

Hackerjef commented 1 year ago

@JBHorne2

So for all nginx/openresty based logs for http its /data/logs/*.log insted of /usr/local/openresty/nginx/logs/ image

but for npm based logs /var/log/npm.* image

Now this is with the alpine install - but its prob the same for the others

OutOfThisPlanet commented 8 months ago

I still get this issue.