Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tab
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 85/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- docker, typescript
- Ambito
- backend
Direzione di ricerca
Inizia in packages/server/src/services/docker.ts da getStackTaskContainers, dove le righe delle attività Docker vengono tagliate, divise su | e l’etichetta del campo Error: viene rimossa. Riproduci il caso del campo finale vuoto dall’issue e ispeziona perché la riga finale mantiene l’etichetta mentre le righe precedenti diventano vuote. La correzione dovrebbe rimuovere l’etichetta indipendentemente dallo spazio finale, e la copertura di regressione dovrebbe coprire due errori vuoti più un errore finale non vuoto; fatto significa che la scheda Containers mostra solo Running … quando Docker non segnala alcun errore.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 38.8k
- Fork
- 3.2k
- Merge medio
- 1g 10h
- PR unite (30g)
- 110
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Dokploy/dokploy
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Dokploy/dokploy#6151 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Global search (Cmd/Ctrl+J) never sorts results by relevanceForse già presa @hamidzr l’ha presa 6 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Dokploy/dokploy#6107 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining itForse già presa @SyncWithRaj l’ha presa 8 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
Dokploy/dokploy#6075 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)Forse già presa @ghazy2001 l’ha presa 10 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Dokploy/dokploy#6051 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Dokploy monitoring API returns partial container metrics with HTTP 200 when a row read failsForse già presa @PAtreju l’ha presa 12 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Dokploy/dokploy#6029 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Dokploy/dokploy
Issue simili
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
ag-ui-protocol/ag-ui#3504 ·
I maintainer di solito rispondono entro 1 giorno
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#161712 ·
I maintainer di solito rispondono entro 1 giorno
-
bug p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rothgar/rabble.radio#283 ·
I maintainer di solito rispondono entro 1 giorno
-
bug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nightly-labs/openbot#19805 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
OHDSI/Data2Evidence#3760 ·
I maintainer di solito rispondono entro 3 giorni