Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cmonty14 opened this issue Jun 13, 2022 · 2 comments
Closed

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

cmonty14 opened this issue Jun 13, 2022 · 2 comments
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@cmonty14
Copy link

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

@cmonty14 cmonty14 added type/bug topic/ui Change the appearance of the Gitea UI labels Jun 13, 2022
@wxiaoguang
Copy link
Contributor

Maybe related to this one

Correct your ROOT_URL related settings in your app.ini

@techknowlogick techknowlogick added type/question Issue needs no code to be fixed, only a description on how to fix it yourself. and removed type/bug topic/ui Change the appearance of the Gitea UI labels Jun 14, 2022
@cmonty14
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

No branches or pull requests

3 participants