What IS the multi-server feature and why isn't it working for me?
Looking at the documentation it's unclear what the multi-server feature does. It only explains how to enable it. So in order to find out I've added and successfully set up a server. I've deployed a static application to the server. The deploy logs show success but the deployment itself is shown as an error and it doesn't work. I've deployed various apps from a template that work fine when I deploy them normally. When I deploy them by choosing the newly added server the deployment fails with the error:
I see the docker containers listed for the remote server with the "Created" state and status and when I click "View Logs" I see there are no logs.
In short, I can't get this feature to work and so I don't get what the difference is with adding a node to the cluster and targeting that node using placement constraints.
- Is it just used as a build server?
- Is it a stand-alone server without any swarm cluster features?
- Is it a separate Traefik entrypoint and swarm manager node that manages its own set of worker nodes? (I'm hoping it's this)
And how can I get it to work?
20 Replies
Did you setup the server?
yes
Can you enter to your server and do docker service ls
Can you go to setup server and click again ?
ok
And pass me the logs?
Here you go. I see the same error there but the UI doesn't show it as failed.
I guess I need to run
docker swarm leave
and then run it again?try it, but i think it will not work, let me check the order of the scripts
I think that did it:
did you have something installed before you linked the server?
apparently so. it's a server that was already being used.
let me see if things work for me now...
Yeah, that could be the reasson
the "Setup server" page should show an error message when the script fails so that users know that it didn't work.
yes! deployment succesful
and I see logs
yeah in fact is showing an error but the script is not stopping there, i will check the scripts
Nice
let me know if you have any troubles
cool, so is it indeed a separate cluster from the main Dokploy server instance?
yes
It's a nice addition to Dokploy! But IMHO the feature needs some clarification so people understand what it is, especially compared to adding a node.
If I understand correctly I can register additional nodes with this cluster but Dokploy UI needs to be updated in order to show those nodes.
basically multi server allows you that dokploy ui does not need to be running for your applications to work on the remote server.
instead cluster feature needs the manager node which is dokploy ui to be on for it to work, if you try to turn off your dokploy instance and visit the page you deployed with multi server, it should still work.
Thanks for helping out! 👍🏼