[Bug]: Invalid YAML indentation generated in /etc/dokploy/traefik/dynamic/dokploy.yml breaks Traefik v3 file provider (404 on all domains)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- docker, typescript, yaml
Direzione di ricerca
Inizia individuando il codice che genera /etc/dokploy/traefik/dynamic/dokploy.yml ed esamina come scrive l’elenco servers e annida routers sotto http. Riproduci il problema usando le versioni di Dokploy e Traefik segnalate, poi verifica che Traefik carichi lo YAML generato e che i domini distribuiti restituiscano HTTP 200.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 38.8k
- Fork
- 3.2k
- Merge medio
- 1g 8h
- PR unite (30g)
- 117
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
-
Docker > Volumes: sorting by Size does nothing, and text columns sort inconsistentlyForse già presa @BitPluto l’ha presa oggi. Apertaneeds-triage🔍
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
Dokploy/dokploy#6203 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tabForse già presa @AyhamJo7 l’ha presa 7 giorni fa. Apertaneeds-triage🔍
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Dokploy/dokploy#6115 · 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 13 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 15 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Dokploy/dokploy#6029 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Volume backup silently uploads an empty tar when the volume does not exist on the host (stack prefix missing / service on swarm worker)Forse già presa @PAtreju l’ha presa 15 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Dokploy/dokploy#6022 · 1 commento · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Dokploy/dokploy
Issue simili
-
🔨 tool 🧰 library
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
I maintainer di solito rispondono entro 1 giorno
-
Ajouter la page Plan du siteAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
DISIC/teleservice-conformite#230 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
rothgar/rabble.radio#410 ·
I maintainer di solito rispondono entro 1 giorno
-
area/webapp comp/desktop P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NousResearch/hermes-agent#163341 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
smart-village-solutions/smart-speech-flow#765 ·
I maintainer di solito rispondono entro 1 giorno