Skip to content

Nginx Proxy Manager not loading configs after updateΒ #14396

@andreibuzatu

Description

@andreibuzatu

βœ… Have you read and understood the above guidelines?

yes

πŸ”Ž Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

πŸ“œ What is the name of the script you are using?

NginxProxyManager

πŸ“‚ What was the exact command used to execute the script?

bash -x <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh) 2>&1 | tee npm-update.log

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 13

πŸ“ˆ Which Proxmox version are you on?

9.1.9

πŸ“ Provide a clear and concise description of the issue.

After updating Nginx Proxy Manager using the updated community script from PR #14353, NPM stopped working correctly.

Port 81 was no longer listening, so the web interface became inaccessible. From what I saw, only port 80 was active after the update.

I checked the container and it looks like /usr/local/openresty/nginx/conf/nginx.conf got replaced with the default OpenResty example config during the update process.

The production.conf file was still present and still contained the listen 81 configuration, but nginx was no longer loading anything from /usr/local/openresty/nginx/conf.d/.

Running nginx -T only showed the stock OpenResty localhost configuration and no NPM configs were loaded anymore.

These lines from the verbose update log looked related:

cp conf/nginx.conf '/usr/local/openresty/nginx/conf/nginx.conf.default'
sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf

I managed to get it working again by manually rebuilding the nginx.conf and restoring the missing include/map/cache settings.

I also saved the full verbose update log if needed.

πŸ”„ Steps to reproduce the issue.

Update with latest version of script.

❌ Paste the full error output (if available).

root@nginxproxymanager:# ss -ltnp | grep -E ':(80|81|443)'
LISTEN 0 511 0.0.0.0:80 0.0.0.0:* users:(("nginx",pid=9438,fd=6),("nginx",pid=9421,fd=6))
root@nginxproxymanager:
# grep -R "listen 81" /usr/local/openresty/nginx/conf.d /etc/nginx/conf.d
/usr/local/openresty/nginx/conf.d/production.conf: listen 81 default;
/etc/nginx/conf.d/production.conf: listen 81 default;

πŸ–ΌοΈ Additional context (optional).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions