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

Đang mở
#5,901 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, docker-compose
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
38.8k
Fork
3.2k
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
110

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Dokploy/dokploy

Tất cả issue của Dokploy/dokploy

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.