dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Worker node status goes to down after some time.

Open RahulVerma989 opened this issue 1 year ago • 3 comments

To Reproduce

  1. Go to swarm menu.
  2. Connect a worker node.

Current vs. Expected behavior

Current: Both of my worker nodes status is showing as 'down' even though they are running and don't have any traffic. The status is 'ready' only for some time then if changes to 'down' and never goes to 'active'. To solve this I have to reconnect the node to the swarm.

Image Image

Expected: The nodes should be able to communicate well with each other. The status should only go 'down' only when the node is not available due to some issue on the node.

Provide environment information

Operating System:
 OS: Ubuntu 24.04
 Arch: arm64
Dokploy Version: v0.24.5
VPS Provider: Hostinger
What applications/services you are trying to deploy?
 - Python APIs images.

Which area(s) are affected? (Select all that apply)

Docker

Are you deploying the applications where Dokploy is installed or on a remote server?

Both

Additional context

No response

Will you send a PR to fix it?

Maybe, need help

RahulVerma989 avatar Aug 05 '25 18:08 RahulVerma989

@RahulVerma989 Check docker node status see what happen. And also have mechanism health check docker node if it fail then restart docker, it is docker stuff not related with dokploy

namnguyenconsen avatar Aug 13 '25 07:08 namnguyenconsen

I had the same issue. Two things you could check:

  1. Open the swarm ports Swarm needs some ports that the nodes can communicate to each other

  2. Check the Swarm status on the node with the command "docker info" (Swarm: active, Manager Addresses: <public-manager-ip>) The advertise address needs to be the public manager ip. You can set this when initializing docker swarm

malikvogt avatar Sep 11 '25 08:09 malikvogt

This seems more like a Docker error. Dokploy does not perform any magic beyond providing the same commands that Docker offers.

I recommend that you check the following:

  1. Open the ports used in Swarm (2377, 7946, 4789).
  2. You can run docker node ls Find the node that is failing and copy the ID

Then run docker node inspect ID and see if you encounter any issues

But it seems to be a connectivity issue.

For now, I don't think there is anything that needs to be corrected from dokploy, so I will close this for now.

Siumauricio avatar Nov 17 '25 07:11 Siumauricio