NginxProxyManager / NginxProxyManager/nginx-proxy-manager

NPM won't detect Netbird container after restart

Open
#5,653 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
34.2k
Forks
3.9k
Avg merge
21h 12m
Merged PRs (30d)
20

Description

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes / No
  • Are you sure you're not using someone else's docker image?
    • Yes / No
  • Have you searched for similar issues (both open and closed)?
    • Yes / No

Describe the bug

When NPM starts before netbird or when netbird(netbird-server) restarts, NPM keeps spamming cannot find netbird-server upstream. Even though the server is fully restarted and fully active, it still says the same thing.

Nginx Proxy Manager Version
v2.15.1

To Reproduce
Steps to reproduce the behavior:
All the above.
So, setup npm and netbird and then after verifying that everything works normally, restart netbird(server) and wait for npm to say that it cant find upstream.

Expected behavior
Error:
❯ Starting nginx ...
nginx: [emerg] host not found in upstream "netbird-server" in /data/nginx/proxy_host/yy.conf:xx

Operating System

Ubuntu 24.04 x86_64

Additional context
This issue is very annoying as it requires restarting npm to resolve. Sometimes, it even clogs at startup so I cant even access absolutely anything that is behind NPM namely Portainer, ..... .

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by starting Nginx Proxy Manager before NetBird or restarting NetBird, then inspect the nginx error referencing /data/nginx/proxy_host/yy.conf. Verify the behavior on Nginx Proxy Manager v2.15.1 and Ubuntu 24.04. Done means the proxy recovers after netbird-server restarts without manually restarting NPM.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, nginx, typescript
Domain
infrastructure, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.