Running Dokploy on a Hetzner ARM server.
Hey guys, when trying to run the installation script on my hetzner server (see screenshot) i always get the following error (see screenshot 2). From researching the topic i understand there are some problems with swarm and arm maybe? Any help to make dokploy run would be appreciated ❤️


118 Replies
i'm doing this in RPI 4 and same thing happens
i guess they didn't mentioned anywhere that it only works on x86
what i did now to fix it was clone the git repo myself onto my server, and building it myself for arm
but thats not really a good solution, as the update buttons inside the application then wont work
yeah just use x86
so for everyone wondering, i cloned the repository onto my server, copy the example env files (.env and .env.production), then run the following commands then i build it for arm64 saving the image only localy then i updated the prod.sh file inside the docker folder to run dokploy to the following
Done 🙂 dokploy now runs on your arm server.
Watch out tho you cant use the following button, as it will crash the whole application:

nice, if you can submit a PR @Raphael would be awesome!
will do, probably after the weekend tho if thats fine, got finals 😵
i'll do for you
sure if u know what to change
no i just saw, can't do
you do
would be easiest to update build step to create a arm image aswell and then push it to docker registry. Then in the install we just check the os and use the right image for the os
here is the current script for build
https://github.com/Dokploy/dokploy/blob/canary/docker/build.sh
GitHub
dokploy/docker/build.sh at canary · Dokploy/dokploy
Open Source Alternative to Vercel, Netlify and Heroku. - Dokploy/dokploy
yeah
@Siumauricio will this work?
so for me it worked
did u create the image localy?
yes
but then the node wont work
what do you mean?
so its says the node isnt suitable
then you are not using the right image
im using an arm64 oracle vm
yes but then you are not using the arm image when starting the service
its aarm64
did you do all of this?
docker buildx build --platform linux/aarch64 -t dokploy/dokploy:latest-aarch64 --load .
this is my build command for the aarch64
well
then u need to modify the service start aswell
to use aarch64
instead of arm64
yes ill change the prod.sh
like this
got it
u changed the image name, so u need to adjust it in the run function aswell
but i dont even get why u need to change it arm64 is aarch64
😄
where is the run function?
just copy what i did above
u can use arm64
it will work
just do the steps one by one
i did
no u changed the docker build command to aarch64 instead of arm64
yeah now after i tried yours
well if u want to do it with aarch64 u need to update prod.sh to use this
its says perepaing then raedy and then preparing again

i did
well then just wait i guess?
im waiting i say if its working
its in like a loop

pr opened: https://github.com/Dokploy/dokploy/pull/37
GitHub
feat: Update build.sh to provide arm64, aarch64 and x86 images by m...
Updating build, so it gets build for arm64 aarch64 and the normal x86, using buildx automatically pushing the new images to the registry see docs here
Nothing else needs to change as docker automat...
well yeah u using dokploy:dokploy and not the aarch image
Thanks! I will try to review as soon as i can
yes and test if the images get successfully pushed to the registry, i am unsure if it works out of the box 😄
i dont understand it is aarch64 in my prod.sh
well maybe ur old service is still running
stop it, delete it and start it new
nothings running

service
not container
then start i again
there is no dockploy running
dokploy
not dockploy
i now i copied your coomands
lmao
check the name then
none

do
docker ps
what command are you using to restart it
the whole process
sh prod.sh
can u send the content of prod.sh?
well it should work 😄 idk man :/
this loops
maybe clean your system and start from scratch?
yeah thats not possible as ive got many other important services running
remove all images that are used from dokploy and all containers and all services then
basically everything that got added from dokploy
and start again
are you on hetzner? or what vps are you using
oracle
try it again with arm? instead of aarch?
idk
seams to have the same issue
last thing i can think of is removing the mount before u run it again
otherwise i dont know
its empty
then i dont know maybe @Siumauricio has an idea
I'm running the changes from the PR locally, just wait!
I pushed a build for ARM in canary tag you can try with this command, i tested and it was working fine, in a few will be available!
curl -sSL https://dokploy.com/canary.sh | sh
so it works but for me the installation doesnt work as the installer is looping
after i installed and reinstalled the conatiner it starts looping
how to recreate: install dokploy uninmtsall it as shown in the docs and reinstall
and when running

so treaFIK AND OTHER NEEDED SERVICES ARENT CREATED

@Nefnief what vps provider are you using?
I tested on a hetzner vps and it was working
Oracle cloud free Ampere
Im trying to create a ampere but there is not availability right now 😦

true so im not able to start from scratch
I tried this instance and it was working, since ampere is not available now i cannot test


for me it gives me this erro when using this type of vm

can you please try this?
docker service scale dokploy=0
docker service scale dokploy=1
in the terminal?
and then do docker service logs dokploy and pass me the logs
is looping again
the logs are empty

do docker service ls

try docker ps
nothing from dokploy
hmm really weird tbh, do you have anything else running on the server?
yeah, verry mouch
have you tried to run on a fresh vps?
yeah the small amd but with 22.04 linux
now im trying with 20.04
This?

no this

Previosly i tried that, and it was working
try this again please?
docker service scale dokploy=0
docker service scale dokploy=1
I tried on that specific machine and it was working
hmmm also another thing did you run the command on root mode?
yes
do docker service ls

ok please jus try this again
docker service scale dokploy=0
docker service scale dokploy=1

ok now do docker service logs dokploy
works
Yeah there is a condition race there, i need to figure out how to fix this but i have an idea, this issue happens only in low specs vps
this could be the issue, we are deploying the database as the last resource
https://github.com/Dokploy/dokploy/blob/canary/server/server.ts#L53
maybe moving to the start this issue can be removed
GitHub
dokploy/server/server.ts at canary · Dokploy/dokploy
Open Source Alternative to Vercel, Netlify and Heroku. - Dokploy/dokploy
so another issue is that after the reinstall it gets bricked and wont be able to redeploy
so i tested it and it doesnt work on a machine where it was previously installed and the reinstalled
What do you mean on this ?

after i tried to install dokdeploy on ma big armk server and it didnt work i made my own image but then it started looping eaven thoug i followed the uninstall section
now with the canary it still has the same issue, that it fails to install
ok but that is happenin on ampere server right?
yes
Ok, I need to try, but first i need to be able to create that server and currently is not available on oracle cloud due to disponibility
it also works on the amd one
no it doesnt it reinstalls just fine