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.
Initializing deployment
Build nixpacks: ✅
Source Type: git: ✅
Error: Failed to read app source directory

Caused by:
No such file or directory (os error 2)
ERROR: Error: child exited with code 1: ❌
Initializing deployment
Build nixpacks: ✅
Source Type: git: ✅
Error: Failed to read app source directory

Caused by:
No such file or directory (os error 2)
ERROR: Error: child exited with code 1: ❌
38 Replies
Siumauricio
Siumauricio11mo ago
Have you tried to clone the repository on your own machine?
melanie kat
melanie katOP11mo ago
Yes! It clones fine for me with the same urls
Siumauricio
Siumauricio11mo ago
what's the command you've used for clone?
melanie kat
melanie katOP11mo ago
git clone http://pi5:3000/zicklepop/melkat-blog.git
Siumauricio
Siumauricio11mo ago
No description
melanie kat
melanie katOP11mo ago
like, it's a local-only server, not public facing
Siumauricio
Siumauricio11mo ago
so, how do you expect dokploy can clone the repository if the url is local
melanie kat
melanie katOP11mo ago
Because dokploy is running in my network
Siumauricio
Siumauricio11mo ago
so you mean you have a gitea server running in the dokploy server?
melanie kat
melanie katOP11mo ago
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
Siumauricio
Siumauricio11mo ago
can you try to go /etc/dokploy/applications and search your application and try to see if there are any file
melanie kat
melanie katOP11mo ago
i do not see any
Siumauricio
Siumauricio11mo ago
and a folder? send screenshot
melanie kat
melanie katOP11mo ago
The only folder is for a project connected to Github
No description
Siumauricio
Siumauricio11mo ago
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
melanie kat
melanie katOP11mo ago
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)
Siumauricio
Siumauricio11mo ago
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
Siumauricio
Siumauricio11mo ago
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
melanie kat
melanie katOP11mo ago
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.
Siumauricio
Siumauricio11mo ago
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
melanie kat
melanie katOP11mo ago
I have a tailscale domain I normally use but it doesn't look like Dokploy has much luck with that
Initializing deployment
ERROR Cloning Custom Git: Error: Command failed: ssh-keyscan -p 22 gitea.melkat.cloud >> /etc/dokploy/ssh/known_hosts
getaddrinfo gitea.melkat.cloud: Name or service not known
getaddrinfo gitea.melkat.cloud: Name or service not known
getaddrinfo gitea.melkat.cloud: Name or service not known
getaddrinfo gitea.melkat.cloud: Name or service not known
getaddrinfo gitea.melkat.cloud: Name or service not known
: ❌
Initializing deployment
ERROR Cloning Custom Git: Error: Command failed: ssh-keyscan -p 22 gitea.melkat.cloud >> /etc/dokploy/ssh/known_hosts
getaddrinfo gitea.melkat.cloud: Name or service not known
getaddrinfo gitea.melkat.cloud: Name or service not known
getaddrinfo gitea.melkat.cloud: Name or service not known
getaddrinfo gitea.melkat.cloud: Name or service not known
getaddrinfo gitea.melkat.cloud: Name or service not known
: ❌
Siumauricio
Siumauricio11mo ago
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.
melanie kat
melanie katOP11mo ago
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
melanie kat
melanie katOP11mo ago
No description
Siumauricio
Siumauricio11mo ago
if it seems ok, the problem is in the url parsing I think, I'll try to check in a few hours.
melanie kat
melanie katOP11mo ago
ok thanks so much for digging in to this with me!
Siumauricio
Siumauricio11mo ago
it's definitely the function you mentioned that parses the url, I commented it and it works fine.
𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲
It’s working.
No description
Siumauricio
Siumauricio11mo ago
he have trouble with cloning a repository
𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲
I try with cloning repo
Siumauricio
Siumauricio11mo ago
If someone experiences an error I will have to revert it in the next version will be available
melanie kat
melanie katOP11mo ago
Thanks!
Siumauricio
Siumauricio11mo ago
@melanie kat The version is already fixed with this release let me know if the issue is still present
melanie kat
melanie katOP11mo ago
It cloned! Thank you!
Siumauricio
Siumauricio11mo ago
let's goooo

Did you find this page helpful?