dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Trafik stop working after using reload option in server settings

Open AmadorSV opened this issue 4 months ago • 5 comments

To Reproduce

  1. Create any application from the template list that has an exposed web link. (affinepro,outline,etc)
  2. Deploy the application
  3. Access the application using the domain
  4. Go to Web Server Settings
  5. Click Traefik button and then Reload
  6. Try to access to the domain again (its not going to work).

Current vs. Expected behavior

Currently it is sending me to my router ui like if im trying to acess 192.168.0.1 (In using self hosted in a pc in my local network.). I'm getting errors on the traefik logs

If I reload the traefik it should still work, this only happens if I use the reload option after installing dokploy.

Provide environment information

Operating System:
Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-84-generic x86_64)

Dokploy version: v0.25.3
VPS Provider: My own machine in my local network.

What Applications/services:
Any application that exposes a domain with traefik

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

This are the latest logs from traefik:

2025-09-27T04:14:40Z ERR error="accept tcp [::]:8080: use of closed network connection" entryPointName=traefik 2025-09-27T04:14:40Z ERR error="accept tcp [::]:80: use of closed network connection" entryPointName=web 2025-09-27T04:14:40Z ERR Error while starting server error="accept tcp [::]:8080: use of closed network connection" entryPointName=traefik 2025-09-27T04:14:40Z ERR error="close tcp [::]:80: use of closed network connection" entryPointName=web 2025-09-27T04:14:40Z ERR error="accept tcp [::]:443: use of closed network connection" entryPointName=websecure 2025-09-27T04:14:40Z ERR error="close tcp [::]:443: use of closed network connection" entryPointName=websecure 2025-09-27T04:18:34Z ERR error="accept tcp [::]:8080: use of closed network connection" entryPointName=traefik 2025-09-27T04:18:34Z ERR error="accept tcp [::]:443: use of closed network connection" entryPointName=websecure 2025-09-27T04:18:34Z ERR error="accept tcp [::]:80: use of closed network connection" entryPointName=web 2025-09-27T04:18:34Z ERR error="close tcp [::]:80: use of closed network connection" entryPointName=web 2025-09-27T04:18:34Z ERR error="close tcp [::]:443: use of closed network connection" entryPointName=websecure 2025-09-27T04:18:34Z ERR error="close tcp [::]:8080: use of closed network connection" entryPointName=traefik

Will you send a PR to fix it?

No

AmadorSV avatar Sep 27 '25 04:09 AmadorSV

Found this ticket through looking for "443: use of closed network connection" .

Can't get dokploy to reliably generate letsencrypt certificates. Debugging why but the traefik log isn't that helpful

https://github.com/Dokploy/dokploy/issues/2865

digitalbase avatar Oct 23 '25 09:10 digitalbase

I experienced something similar. I haven't found the root cause but reloading your stacks should help here (at least it did for me). Depending on how much stacks you have it is not a workaround.

tafaust avatar Nov 02 '25 17:11 tafaust

@tafaust reloading does not work for me. After testing again, I noticed that the issue starts when I restart my router. I don't know if it's related to my ipv4 changing. but I'm trying to access through my local Ip.

AmadorSV avatar Nov 10 '25 18:11 AmadorSV

This is an issue with your router/ISP not having a fixed IPv4 imho. Try to get some dyndns and cname your domains to the dyndns domain name.

tafaust avatar Nov 10 '25 18:11 tafaust

I couldn't reproduce this issue:

https://github.com/user-attachments/assets/c0578e77-e660-4e3a-a7d3-8b83126cabb1

Siumauricio avatar Nov 26 '25 07:11 Siumauricio