[Bug]: Invalid YAML indentation generated in /etc/dokploy/traefik/dynamic/dokploy.yml breaks Traefik v3 file provider (404 on all domains)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- docker, typescript, yaml
Línea de trabajo
Empieza por localizar el código que genera /etc/dokploy/traefik/dynamic/dokploy.yml y examina cómo escribe la lista servers y anida routers bajo http. Reproduce el problema usando las versiones de Dokploy y Traefik indicadas y luego verifica que Traefik cargue el YAML generado y que los dominios desplegados devuelvan HTTP 200.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
To Reproduce
- Install Dokploy (
v0.31.7) on a fresh VPS (reproduced on both Debian and Ubuntu LTS, with Traefikv3.8.0). - Deploy an application (e.g., an Nginx / Hello World app) and configure a domain (such as a
sslip.iodomain). - Inspect
/etc/dokploy/traefik/dynamic/dokploy.ymland check thedokploy-traefikcontainer logs. - Attempt to access the configured domain via HTTP or
curland observe that Traefik fails to load dynamic file configs and returns404 page not found.
Current vs. Expected behavior
Current Behavior
Dokploy generates /etc/dokploy/traefik/dynamic/dokploy.yml with an unindented list item (- url: http://dokploy:3000 at column 0 under servers:) or routers: at the root level on reload/restart. Traefik v3.8.0 rejects the dynamic file configuration (ERR Error while building configuration... collecting file configs: /etc/dokploy/traefik/dynamic/dokploy.yml: routers cannot be a standalone element (type map[string]*dynamic.Router)) and does not register dynamic routers, resulting in 404 page not found across domains.
Expected Behavior
Dokploy should generate valid YAML in /etc/dokploy/traefik/dynamic/dokploy.yml with proper indentation under servers: (- url: http://dokploy:3000 indented under loadBalancer.servers) and keep routers properly nested under http:, allowing Traefik to load dynamic routers cleanly and return HTTP 200 for deployed applications.
Provide environment information
Operating System:
OS: Ubuntu LTS (also tested on Debian)
Arch: x86_64
Dokploy version: v0.31.7
VPS Provider: Contabo
What applications/services are you trying to deploy?
Nginx / Hello World demo app, Next.js / web apps, database
Which area(s) are affected? (Select all that apply)
Traefik
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
Reproduced on a fresh Contabo VPS after reinstalling from Debian to Ubuntu LTS with traefik:v3.8.0 and Dokploy v0.31.7 (dokploy-traefik connected to dokploy-network). Before upgrading to v0.31.7 (on v0.31.6), routing worked without this issue. Manually fixing the indentation of - url: http://dokploy:3000 in /etc/dokploy/traefik/dynamic/dokploy.yml immediately restored the dynamic routers in Traefik (router-1@file) and returned HTTP 200.
Generated /etc/dokploy/traefik/dynamic/dokploy.yml:
http:
routers: {}
services:
dokploy-service-app:
loadBalancer:
servers:
- url: http://dokploy:3000
passHostHeader: true
### Will you send a PR to fix it?
Yes
- Lenguaje dominante
- TypeScript
- Estrellas
- 38.8k
- Forks
- 3.2k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 117
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
-
Docker > Volumes: sorting by Size does nothing, and text columns sort inconsistentlyPosiblemente ocupada @BitPluto la tomó hoy. Abiertoneeds-triage🔍
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Dokploy/dokploy#6203 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tabPosiblemente ocupada @AyhamJo7 la tomó hace 7 días. Abiertoneeds-triage🔍
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Dokploy/dokploy#6115 · 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 13 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 15 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Dokploy/dokploy#6029 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Volume backup silently uploads an empty tar when the volume does not exist on the host (stack prefix missing / service on swarm worker)Posiblemente ocupada @imrja8 la tomó hace 1 día. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Dokploy/dokploy#6022 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de Dokploy/dokploy
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
ardia-browser/ardia#6391 ·
Los mantenedores suelen responder en 1 día
-
Feature:Actions/ConnectorTypes Team:ResponseOps
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
elastic/kibana#309028 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
🔨 tool 🧰 library
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
Los mantenedores suelen responder en 1 día
-
Ajouter la page Plan du siteAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
DISIC/teleservice-conformite#230 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
rothgar/rabble.radio#410 ·
Los mantenedores suelen responder en 1 día