Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tab
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- docker, typescript
- Área
- backend
Línea de trabajo
Empieza en packages/server/src/services/docker.ts en getStackTaskContainers, donde las filas de tareas de Docker se recortan, se dividen por | y se elimina la etiqueta de campo Error:. Reproduce el caso de campo final vacío del issue e inspecciona por qué la fila final conserva la etiqueta mientras que las filas anteriores quedan vacías. La corrección debería quitar la etiqueta independientemente del espacio final, y la cobertura de regresión debería cubrir dos errores vacíos más un error final no vacío; terminado significa que la pestaña Containers muestra solo Running … cuando Docker no informa ningún error.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 38.8k
- Forks
- 3.2k
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 110
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Dokploy/dokploy
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Dokploy/dokploy#6151 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Global search (Cmd/Ctrl+J) never sorts results by relevancePosiblemente ocupada @hamidzr la tomó hace 6 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Dokploy/dokploy#6107 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining itPosiblemente ocupada @SyncWithRaj la tomó hace 8 días. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
Dokploy/dokploy#6075 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)Posiblemente ocupada @ghazy2001 la tomó hace 10 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Dokploy/dokploy#6051 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dokploy monitoring API returns partial container metrics with HTTP 200 when a row read failsPosiblemente ocupada @PAtreju la tomó hace 12 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Dokploy/dokploy#6029 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de Dokploy/dokploy
Issues similares
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
ag-ui-protocol/ag-ui#3504 ·
Los mantenedores suelen responder en 1 día
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NousResearch/hermes-agent#161712 ·
Los mantenedores suelen responder en 1 día
-
bug p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rothgar/rabble.radio#283 ·
Los mantenedores suelen responder en 1 día
-
bug from-app needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
nightly-labs/openbot#19805 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
OHDSI/Data2Evidence#3760 ·
Los mantenedores suelen responder en 3 días