Skip to content

Gitea git provider fails after the authorize application stage [Self hosted] #1591

Open
@unleashit

Description

@unleashit

To Reproduce

Note that I'm using self hosted Gitea on the same server as Dokploy.

  1. Start a new Gitea provider under Git Providers
  2. In Gitea add a new application with the callback hook and save.
  3. Enter the url, client id and secret In Dokploy then click "configure Gitea app"
  4. Browser tab opens up with the Authorize screen:

Image

  1. Click "Authorize Application:"
  2. Get Internal server error
  3. See in Gitea that the authorization came through but a problem happened after calling the web hook
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions