Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tab
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 85/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- docker, typescript
- 領域
- backend
調査の方向性
packages/server/src/services/docker.ts の getStackTaskContainers から始めてください。ここでは Docker のタスク行がトリムされ、| で分割され、Error: フィールドラベルが削除されます。issue の末尾が空のフィールドのケースを再現し、最後の行ではラベルが残る一方で以前の行が空になる理由を調べてください。修正では末尾のスペースとは独立してラベルを除去し、リグレッションカバレッジでは空のエラー2件と最後の非空エラー1件をカバーする必要があります。完了とは、Docker がエラーを報告しないときに Containers タブが Running … のみを表示することです。
索引モデルが issue の本文から書いたものです。
説明
To Reproduce
- In Dokploy, deploy a Docker Stack with at least two running tasks. Open the stack’s Containers tab.
- On the Swarm manager, run
docker stack ps <stack> --no-trunc --filter desired-state=running --format '{{.ID}} | {{.CurrentState}} | {{json .Error}}'. Pick the last task and confirm its error is an empty string (""). - Compare that task’s status on the Containers tab with the status of the preceding task.
Current vs. Expected behavior
The final row displayed running and Running 42 seconds ago (Error:). I matched the task ID on the manager: Docker reported running, the service was 1/1, and docker inspect --type task showed no Status.Err field. The application also started successfully.
Expected: Running 42 seconds ago. A suffix should appear only when Docker supplies an actual error message.
Provide environment information
Dokploy v0.31.4 (self-hosted)
Docker Stack on a remote Linux Swarm cluster
Affected view: Compose → Containers
Which area(s) are affected? (Select all that apply)
Docker Compose
Are you deploying the applications where Dokploy is installed or on a remote server?
Remote server
Additional context
In getStackTaskContainers in v0.31.4, tasksSection.trim() removes the space after the final Error:. The parser then strips the literal Error: , including its trailing space. For the last row the label survives as the nonempty string Error:, which is appended to the status.
Minimal parser reproduction using two empty Docker error fields:
const rows = ['web.1', 'web.2'].map(name =>
`TASK : id | Name: ${name} | Node: worker | CurrentState: Running | Error: `
);
const errors = (rows.join('\n') + '\n').trim().split('\n').map(line =>
line.split(' | ')[4].replace('Error: ', '').trim()
);
console.log(errors); // ['', 'Error:']
Stripping the field label independently of trailing whitespace (e.g. replace(/^Error:\s*/, '')) would handle the empty final field. A regression test could cover empty errors on both rows and a nonempty error on the final row.
Will you send a PR to fix it?
No
- 主要言語
- TypeScript
- スター
- 38.8k
- フォーク
- 3.2k
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 110
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Dokploy/dokploy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Dokploy/dokploy#6151 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Global search (Cmd/Ctrl+J) never sorts results by relevance対応中かも @hamidzr が 6 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Dokploy/dokploy#6107 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining it対応中かも @SyncWithRaj が 8 日前に担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
Dokploy/dokploy#6075 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)対応中かも @ghazy2001 が 10 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Dokploy/dokploy#6051 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Dokploy monitoring API returns partial container metrics with HTTP 200 when a row read fails対応中かも @PAtreju が 12 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Dokploy/dokploy#6029 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
Dokploy/dokploy の issue をすべて見る
似ている issue
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ag-ui-protocol/ag-ui#3504 ·
メンテナーはふだん 1 日以内に返信
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#161712 ·
メンテナーはふだん 1 日以内に返信
-
bug p3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rothgar/rabble.radio#283 ·
メンテナーはふだん 1 日以内に返信
-
bug from-app needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
nightly-labs/openbot#19805 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
OHDSI/Data2Evidence#3760 ·
メンテナーはふだん 3 日以内に返信