Plug.Cowboy.Drainer shut down abnormally
まだ誰も着手していません。
評価
調査の方向性
レポートで言及されている SASL ログと Plug.Cowboy.Drainer.start_link エントリポイントから始めます。ローカル環境でシャットダウンを再現し、疑われているメモリまたはファイルディスクリプタの制限を調査して、発生しない環境と比較します。原因を特定するか、これらの障害モードを区別できる診断結果を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi!
My app has been shutting down seemingly randomly. This only happens on my local machine (not on other devs, not in production environments) so I suspect it has something to do with my set up.
There are no logs when my app shuts down. It doesn't seem to correlate to any particular behavior. This has been happening for at least a couple weeks with regular daily development happening.
I finally got a clue by enabling SASL logging:
[error] Child Plug.Cowboy.Drainer of Supervisor MyApp.Endpoint shut down abnormally
** (exit) killed
Pid: #PID<0.1011.0>
Start Call: Plug.Cowboy.Drainer.start_link([refs: [MyAppWeb.Endpoint.HTTP]])
Restart: :permanent
Shutdown: 5000
Type: :worker
[notice] Application my_app exited: shutdown
Based on looking at what Plug.Cowboy.Drainer does, this seems like the error could be a red herring? Any ideas how I could get more diagnostic information? I highly suspect this is a memory limit or running out of file descriptors or something else specific to my environment but I can't seem to get any more clues.
I'm using plug_cowboy 2.6.0 with Phoenix 1.7.0-rc.2 on Elixir 1.14.3, OTP 25
- 主要言語
- Elixir
- スター
- 264
- フォーク
- 59
- 平均マージ
- 6時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
carverauto/serviceradar#5732 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 93/100
TomerAberbach/profiler-md#732 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
inertiajs/inertia-phoenix#84 ·
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
beyond-all-reason/teiserver#1676 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
beam-community/jsonapi#473 ·