There are certain cases where the dokploy-traefik container goes down and then one of the containers squats on the IP reservation

Aperta
#5,901 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, docker-compose

Direzione di ricerca

Start by tracing how Dokploy configures the Traefik container's static IP and the shared dokploy-network, then inspect the watchdog mentioned in the issue. Reproduce the address conflict when a Swarm task takes 10.0.1.32 and Traefik restarts. Done means Traefik recovers reliably when its reserved address is occupied; the issue names no source files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs-triage🔍
To Reproduce

Serious issue, needs to be fixed. Has happened twice now in 2 days - probably at the same time cause when I woke up it was in this condition.

dokploy-traefik has a static IP reservation (10.0.1.32) on dokploy-network. While Traefik was down, a Swarm task (maa-enterprises-supabase-j9odm6-api-gw-1) took .32. Every Traefik start then failed with attaching to network failed ... context deadline exceeded (could not allocate IP from IPAM: Address already in use). This state persists in Swarm's IPAM, so reboots/redeploys couldn't fix it.

Partly dokploy issue actually, it's a known Docker Swarm IPAM gap that Dokploy's design exposes. The Swarm allocator hands addresses to service tasks without reserving the static IP that the standalone dokploy-traefik container holds on the shared dokploy-network overlay, so any task churn while Traefik is down can squat .32 (Docker issue class: "Address already in use" on attachable overlays).

Where Dokploy is genuinely at fault: it pins Traefik to a static IP on the same pool its services allocate from, and has no recovery path when the address is taken reinstalling services never touches the allocator stat.

Cheap hardening on my side: give Traefik an IP outside the range Swarm churns through (e.g. .2/.3 at the bottom, or a dedicated subnet), or drop the static IP entirely — DNS name dokploy-traefik is what routing uses anyway. The watchdog that I've built online self heals this regardless but I really should not have to.

Current vs. Expected behavior

Traefic's iP should never be squatted upon by one of the other services

Provide environment information
Os- Debian GNU/Linux 13 (trixie) for x64
Dokploy - 0.31.0
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

No response

Will you send a PR to fix it?

Maybe, need help

Lingua principale
TypeScript
Stelle
38.8k
Fork
3.2k
Merge medio
1g 10h
PR unite (30g)
110

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Dokploy/dokploy

Tutte le issue di Dokploy/dokploy

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.