Skip to content

NPM won't detect Netbird container after restart #5653

Description

@frosmoon

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, ..... .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions