Pool not released after (a specific) Puppeteer error
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, node.js
- 領域
- backend
調査の方向性
lib/pool.js の 356 行目付近から始めます。そこでは、Puppeteer detached-frame error の後に worker を解放すべきだと issue に記載されています。detached-frame failure と、それに続く pool acquisition timeout を再現または追跡します。完了条件は、失敗した requests が worker を解放し、その後の export requests がサーバーを再起動せずに利用可能なエントリを取得できることです。
索引モデルが issue の本文から書いたものです。
説明
We are running the Highcharts export server on Heroku. At some point we get some Puppeteer detached frame errors. We are not sure why, maybe because of the specific chart configs being exported (to SVG). However, those export requests crashing isn't that big of a deal, but after those errors the worker pool seems to be exhausted (old workers are not released to the pool) and all subsequent requests crash with "Error encountered when acquiring an available entry". They keep crashing until we manually restart the export server.
So in detail, we first get two of these errors (we have a minWorker pool size of 2):
Request to export server not successful. code: 400, response: {"statusCode":400,"message":"[pool] In pool.postWork: Attempted to use detached Frame 'B3381E6334D5B8B0CADB3E9197D43969'."}
After which all subsequent requests crash with:
Request to export server not successful. code: 400, response: {"statusCode":400,"message":"[pool] In pool.postWork: For request with ID e0b3bd5f9ec04233ae22320e5ab5f370 - Error encountered when acquiring an available entry: 5001.070848ms."}
Looking at the code in pool.js, the worker should be released after the first error, but for some reason it doesn't and we can't acquire any new workers afterwards. So we end up with a running export server process with no workers in the pool at all, which seems pretty useless. Only way to fix this is to (manually) restart the process.
Any help with this would be appreciated!
- 主要言語
- JavaScript
- スター
- 368
- フォーク
- 265
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
highcharts/node-export-server のほかの issue
-
Update Puppeteer to version 25.11.0+ to allow ARM64 linux images to run node-export-server対応中かも @daniatic が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
highcharts/node-export-server#686 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
highcharts/node-export-server#680 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
highcharts/node-export-server#679 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
highcharts/node-export-server#678 ·
-
Not working on s390xオープン
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
highcharts/node-export-server#676 ·
highcharts/node-export-server の issue をすべて見る
似ている issue
-
triage-needed
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
MicrosoftDocs/edge-developer#3970 ·
メンテナーはふだん 1 日以内に返信
-
agent/scanner hive/hosted-available-lke648397-260827-5n31 quality testing
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
PWA stores a grouped number entry 1000x too small in German locale対応中かも @Minhal128 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Add: YRF Musicオープンcheck:passed feeds:add
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
iptv-org/database#37102 · コメント 2 件 ·
メンテナーはふだん 9 日以内に返信
-
[workshop-sim] Repair: Add a fallback sample .lock.yml to the Agentic Workflows Intro Activity 1オープンfeedback simulation workshop
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
githubnext/gh-aw-workshop#4328 ·
メンテナーはふだん 1 日以内に返信