Local Gitea Server as Git Provider
Hey there, I'm trying to set up an app with a local gitea server as the source. When I put in the repository URL I'm only getting a Deployment error with very little details. I've tried using a SSH key but no luck.
Here's the git url:
http://pi5:3000/zicklepop/melkat-blog.git
I've also tried giving it the IP address but same result.
38 Replies
Have you tried to clone the repository on your own machine?
Yes! It clones fine for me with the same urls
what's the command you've used for clone?
git clone http://pi5:3000/zicklepop/melkat-blog.git

like, it's a local-only server, not public facing
so, how do you expect dokploy can clone the repository if the url is local
Because dokploy is running in my network
so you mean you have a gitea server running in the dokploy server?
Gitea is running on machine on my network, and Dokploy is running on it's own machine
git clone works from the command line on the Dokploy machine
can you try to go /etc/dokploy/applications
and search your application
and try to see if there are any file
i do not see any
and a folder?
send screenshot
The only folder is for a project connected to Github

hmm can you try to create another application and set the git url?
in theory it should create at least a folder with the name of your application
ERROR Cloning Custom Git: Error: Command failed: ssh-keyscan -p 3000 pi5 >> /etc/dokploy/ssh/known_hosts
Same error when pointing to the IP address directly
(ERROR Cloning Custom Git: Error: Command failed: ssh-keyscan -p 3000 192.168.1.213 >> /etc/dokploy/ssh/known_hosts
)mmm I'm suspecting this function is the one that parses the URL and extracts the host, port and more to add it to the list of known ssh to be able to download the repositories https://github.com/Dokploy/dokploy/blob/canary/server/utils/providers/git.ts#L91
GitHub
dokploy/server/utils/providers/git.ts at canary · Dokploy/dokploy
Open Source Alternative to Vercel, Netlify and Heroku. - Dokploy/dokploy
probably not validate that edge case
probably removing that code will probably work for you, but I'm thinking better this, you just created a gitea server and that was it and a repository?
I want to test it in more detail , but i want to reproduce to test
yeah I just set up gitea directly on a Raspberry Pi 5 and then Dokploy on another, the repo is public, but only because the servers are not
That code looks right, and I can run the ssh-keyscan command on my own and see the correct output
Well, minus the port.
Yes the command runs fine in the terminal, but as these commands run in a different process, it's a bit different as I replicated the error, created a gitea server and it seems to fail i will try to assign a domain to see
looks like running this http://5.161.87.31:4000/siumauricio/asdasdasdasd.git throws an error and using this http://tesla-gitea-c95087-5-161-87-31.traefik.me/siumauricio/asdasdasdasd.git works
Gitea: Git with a cup of tea
asdasdasdasd
I have a tailscale domain I normally use but it doesn't look like Dokploy has much luck with that
Can you share with me the configuration you used to set up the gitea server?
I think the problem probably lies in the url parsing.
The gitea server was just set up by following the docs. I didn't really do any customization iirc
https://docs.gitea.com/installation/install-from-binary
Installation from binary | Gitea Documentation
All downloads come with SQLite, MySQL and PostgreSQL support, and are built with

if it seems ok, the problem is in the url parsing I think, I'll try to check in a few hours.
ok thanks so much for digging in to this with me!

it's definitely the function you mentioned that parses the url, I commented it and it works fine.
It’s working.

he have trouble with cloning a repository
I try with cloning repo
I fixed, looks like using another port than 22 it throws an error
https://github.com/Dokploy/dokploy/pull/193
If someone experiences an error I will have to revert it
in the next version will be available
Thanks!
@melanie kat The version is already fixed with this release let me know if the issue is still present
It cloned! Thank you!
let's goooo