tteck / Proxmox

Proxmox VE Helper-Scripts
https://Helper-Scripts.com
MIT License
14.43k stars 2.37k forks source link

Error while updating nginxproxymanager #3713

Closed xijio closed 2 months ago

xijio commented 2 months ago

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

I can't update nginxproxymanager using the update command or by running the script in the lxc console.

What settings are you currently utilizing?

Default Settings

Which Linux distribution are you employing?

Alpine

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

No response

Please provide detailed steps to reproduce the issue.

I tried to update nginxproxymanager from the lxc console:

root@nginxproxymanager:~# update
-bash: update: command not found

so then I used the whole script from the lxc console: bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/nginxproxymanager.sh)" and I get this error:

 / Installing pnpm   
[ERROR] in line 65: exit code 0: while executing command npm install -g pnpm@8.15 &> /dev/null

I see the steps above about enabling verbose mode, but I don't see any way to enable it for updates. I googled and found that verbose mode is in the Advanced section which I think you can only select for initial installs. So this report is two fold:

1) Enable verbose mode for updates (or make it more clear how to enable if it is available) 2) The pnpm error above

tteck commented 2 months ago

There is not an Alpine version in this repository.

xijio commented 2 months ago

It's running whatever the default is, I didn't know how to check. uname -a doesn't show it.

tteck commented 2 months ago

No issue here.

    _   __      _               ____                           __  ___                                 
   / | / /___ _(_)___  _  __   / __ \_________ __  ____  __   /  |/  /___ _____  ____ _____ ____  _____
  /  |/ / __  / / __ \| |/_/  / /_/ / ___/ __ \| |/_/ / / /  / /|_/ / __  / __ \/ __  / __  / _ \/ ___/
 / /|  / /_/ / / / / />  <   / ____/ /  / /_/ />  </ /_/ /  / /  / / /_/ / / / / /_/ / /_/ /  __/ /    
/_/ |_/\__, /_/_/ /_/_/|_|  /_/   /_/   \____/_/|_|\__, /  /_/  /_/\__,_/_/ /_/\__,_/\__, /\___/_/     
      /____/                                      /____/                            /____/             

 ✓ Stopped Services
 ✓ Cleaned Old Files
 ✓ Downloaded NPM v2.11.3
 ✓ Setup Enviroment
 ✓ Built Frontend
 ✓ Initialized Backend
 ✓ Started Services
 ✓ Cleaned
 ✓ Updated Successfully
root@nginxproxymanager:~# 
xijio commented 2 months ago

How do I run it in verbose mode to get more details of what's going wrong?

tteck commented 2 months ago

I would try

export NODE_OPTIONS=--openssl-legacy-provider
npm install -g pnpm@8.15
xijio commented 2 months ago

You're on to something, thank you for the suggestion:

root@nginxproxymanager:~# export NODE_OPTIONS=--openssl-legacy-provider
root@nginxproxymanager:~# npm install -g pnpm@8.15
node: --openssl-legacy-provider is not allowed in NODE_OPTIONS

Do you know what the right step to get this sorted is? Should I backup the nginxproxymanager config and redeploy?

tteck commented 2 months ago

I will comment out export NODE_OPTIONS=--openssl-legacy-provider

tteck commented 2 months ago

Try to update again

xijio commented 2 months ago

It updated this time, thank you!