NginxProxyManager / NginxProxyManager/nginx-proxy-manager

NPM won't detect Netbird container after restart

オープン
#5,653 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
TypeScript
スター
34.2k
フォーク
3.9k
平均マージ
21時間 12分
マージ済み PR(30日)
20

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

NetBird より前に Nginx Proxy Manager を起動するか、NetBird を再起動して失敗を再現し、その後 /data/nginx/proxy_host/yy.conf を参照している nginx のエラーを調査します。Nginx Proxy Manager v2.15.1 と Ubuntu 24.04 での動作を確認します。netbird-server の再起動後に、NPM を手動で再起動しなくてもプロキシが復旧すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, nginx, typescript
領域
infrastructure, networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。