Worker node status goes to down after some time.
To Reproduce
- Go to swarm menu.
- 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.
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 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
I had the same issue. Two things you could check:
-
Open the swarm ports Swarm needs some ports that the nodes can communicate to each other
-
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
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:
- Open the ports used in Swarm (2377, 7946, 4789).
- You can run
docker node lsFind 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.