URL of any link in section "Repository" includes port 3030 #9063

Closed
opened 2025-11-02 08:27:48 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @cmonty14 on GitHub (Jun 13, 2022).

Description

Hello,
when I click a link in section "Repository" the URL includes port 3030.
This URL will result in a 404.

If I use the link in section "main screen" the URL is correct.

I have attached screenshots that document

  • link in section "Repository"
  • link in section "main screen"
  • WebUI showing 404 error

Can you advise how to fix the links in section "Repository"?

THX

Screenshots

2022-06-13_17-41-37
2022-06-13_17-38-11
2022-06-13_17-38-54

Gitea Version

Gitea version 1.16.8 built with GNU Make 4.1, go1.18.2 : bindata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

No

Operating System

Ubuntu 20.04.4 LTS

Browser Version

Chrome Version 102.0.5005.63

Originally created by @cmonty14 on GitHub (Jun 13, 2022). ### Description Hello, when I click a link in section "Repository" the URL includes port 3030. This URL will result in a 404. If I use the link in section "main screen" the URL is correct. I have attached screenshots that document - link in section "Repository" - link in section "main screen" - WebUI showing 404 error Can you advise how to fix the links in section "Repository"? THX ### Screenshots ![2022-06-13_17-41-37](https://user-images.githubusercontent.com/12523591/173392164-a7705372-94ab-435b-b67e-7cd79df6e528.png) ![2022-06-13_17-38-11](https://user-images.githubusercontent.com/12523591/173392197-d1706b6a-7bd0-4d71-b4e6-a618cfdc24b0.png) ![2022-06-13_17-38-54](https://user-images.githubusercontent.com/12523591/173392265-69c18b67-b0db-4128-b272-3f14679a875a.png) ### Gitea Version Gitea version 1.16.8 built with GNU Make 4.1, go1.18.2 : bindata, sqlite, sqlite_unlock_notify ### Can you reproduce the bug on the Gitea demo site? No ### Operating System Ubuntu 20.04.4 LTS ### Browser Version Chrome Version 102.0.5005.63
GiteaMirror added the type/question label 2025-11-02 08:27:48 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jun 14, 2022):

Maybe related to this one

Correct your ROOT_URL related settings in your app.ini

@wxiaoguang commented on GitHub (Jun 14, 2022): Maybe related to this one * https://github.com/go-gitea/gitea/issues/19345 Correct your ROOT_URL related settings in your app.ini
Author
Owner

@cmonty14 commented on GitHub (Jun 14, 2022):

Hello,
I don't think this issue is solved and therefore the ticket should not be closed.

So, I setup Gitea on Ubuntu 20.04 based on this tutorial.
There's only 1 difference, means I have installed Gitea from a repo and not from source.

Anyway, the cause of this issue must be in /etc/gitea/app.ini... here's the relevant section:

[server]
LOCAL_ROOT_URL   = http://localhost:3030/
SSH_DOMAIN       = vlcspgit.devsys.net.sap
DOMAIN           = vlcspgit.devsys.net.sap
HTTP_PORT        = 3030
ROOT_URL         = http://vlcspgit.devsys.net.sap:3030/
DISABLE_SSH      = false
SSH_PORT         = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = /var/lib/gitea/data/lfs
LFS_JWT_SECRET   = yMT1JvFbOASXxXkVSNDigTZxxxxxxxxxxxxxxxxxxx
OFFLINE_MODE     = false

As you can see Gitea server is supposed to listen on HTTP port 3030.

However, no Gitea server is listening on tcp6 port 3030:

# netstat -tulpen | grep git
tcp6       0      0 :::3030                 :::*                    LISTEN      120        111263035  752128/gitea

Can you please advise how to fix this?

THX

@cmonty14 commented on GitHub (Jun 14, 2022): Hello, I don't think this issue is solved and therefore the ticket should not be closed. So, I setup Gitea on Ubuntu 20.04 based on [this](https://linuxize.com/post/how-to-install-gitea-on-ubuntu-20-04/) tutorial. There's only 1 difference, means I have installed Gitea from a repo and not from source. Anyway, the cause of this issue must be in _/etc/gitea/app.ini_... here's the relevant section: ``` [server] LOCAL_ROOT_URL = http://localhost:3030/ SSH_DOMAIN = vlcspgit.devsys.net.sap DOMAIN = vlcspgit.devsys.net.sap HTTP_PORT = 3030 ROOT_URL = http://vlcspgit.devsys.net.sap:3030/ DISABLE_SSH = false SSH_PORT = 22 LFS_START_SERVER = true LFS_CONTENT_PATH = /var/lib/gitea/data/lfs LFS_JWT_SECRET = yMT1JvFbOASXxXkVSNDigTZxxxxxxxxxxxxxxxxxxx OFFLINE_MODE = false ``` As you can see Gitea server is supposed to listen on HTTP port 3030. However, no Gitea server is listening on tcp6 port 3030: ``` # netstat -tulpen | grep git tcp6 0 0 :::3030 :::* LISTEN 120 111263035 752128/gitea ``` Can you please advise how to fix this? THX
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9063