Open
Description
To Reproduce
Note that I'm using self hosted Gitea on the same server as Dokploy.
- Start a new Gitea provider under Git Providers
- In Gitea add a new application with the callback hook and save.
- Enter the url, client id and secret In Dokploy then click "configure Gitea app"
- Browser tab opens up with the Authorize screen:
- Click "Authorize Application:"
- Get Internal server error
- See in Gitea that the authorization came through but a problem happened after calling the web hook
- Try to connect again or test connection from Dokploy, same thing
Current vs. Expected behavior
Can't complete the process to connect with Gitea. Provider saves, but cannot be accessed when creating services.
Provide environment information
Ubuntu 24.04 amd64
Dokploy version 0.21.0
VPS yes
Applications: setting up a Gitea git provider
Which area(s) are affected? (Select all that apply)
Docker
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
Getting this error in Dokploy logs:
TypeError: fetch failed
at async c (.next/server/pages/api/providers/gitea/callback.js:1:1436)
at async n (.next/server/pages/api/providers/gitea/callback.js:1:2190) {
[cause]: Error: connect ECONNREFUSED 127.0.0.1:9999
at <unknown> (Error: connect ECONNREFUSED 127.0.0.1:9999) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 9999
}
Currently, I don't have port 9999 exposed to the internet on this server so I'm using an SSH local port forward
As a hostname for Gitea I tried both localhost and 127.0.0.1 and neither work. I also tried unselecting (after selecting didn't work) "confidential client" in Gitea.
Will you send a PR to fix it?
No