gitea isn't using specified port and crashing #13350

Closed
opened 2025-11-02 10:39:24 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @x-o-i-o-x on GitHub (Jul 31, 2024).

Description

Setting gitea up worked just fine. But when starting gitea with systemd, it fails with exit-code 1. It seems that gitea isn't using the port specified in the app.ini. I already looked at other issues like this one but all of them wheren't helpful.
Hope I mentioned everything and thanks for your help!

Gitea Version

gitea-1.22.1-linux-amd64

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/x-o-i-o-x/f59383308b9b9e003161097d495962c7.js

Screenshots

No response

Git Version

2.39.2

Operating System

Debian GNU/Linux 12 (bookworm) x86_64

How are you running Gitea?

I installed gitea from the binary with this tutorial: https://www.apalrd.net/posts/2023/ultimate_gitea/
I execute it via systemd (Debian)

Database

SQLite

Originally created by @x-o-i-o-x on GitHub (Jul 31, 2024). ### Description Setting gitea up worked just fine. But when starting gitea with systemd, it fails with exit-code 1. It seems that gitea isn't using the port specified in the app.ini. I already looked at other issues like [this](https://github.com/go-gitea/gitea/issues/4257) one but all of them wheren't helpful. Hope I mentioned everything and thanks for your help! ### Gitea Version gitea-1.22.1-linux-amd64 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist https://gist.github.com/x-o-i-o-x/f59383308b9b9e003161097d495962c7.js ### Screenshots _No response_ ### Git Version 2.39.2 ### Operating System Debian GNU/Linux 12 (bookworm) x86_64 ### How are you running Gitea? I installed gitea from the binary with this tutorial: https://www.apalrd.net/posts/2023/ultimate_gitea/ I execute it via systemd (Debian) ### Database SQLite
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:39:24 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Aug 1, 2024):

The log says:

[F] Failed to start port redirection: listen tcp 0.0.0.0:80: bind: address already in use

So you already have other server applications running on the same port as Gitea.

And I think you should disable the "port redirection" from Gitea side, in most cases it is not needed.

@wxiaoguang commented on GitHub (Aug 1, 2024): The log says: ``` [F] Failed to start port redirection: listen tcp 0.0.0.0:80: bind: address already in use ``` So you already have other server applications running on the same port as Gitea. And I think you should disable the "port redirection" from Gitea side, in most cases it is not needed.
Author
Owner

@x-o-i-o-x commented on GitHub (Aug 1, 2024):

Worked. Thank you!

@x-o-i-o-x commented on GitHub (Aug 1, 2024): Worked. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13350