Open irfanjunaid opened 9 months ago
What's your gitea.service file?
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
[Service]
# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that
# LimitNOFILE=524288:524288
RestartSec=2s
Type=notify
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
WatchdogSec=30s
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
PrivateUsers=false
[Install]
WantedBy=multi-user.target
I ran into this issue on Debian 12 and Gitea 1.21.3 after a clean install. Installing from binary, following the docs. I found that if app.ini does not exist, then the issue occurs, i.e. the service status stays stuck on "activating". Attached are the results of systemctl status gitea
and the relevant contents of gitea.service.
However, once app.ini exists with the correct permissions, the gitea service works normally. (So I can get around the issue by running gitea manually, completing the web setup, then stopping gitea and launching it as a service at that point.)
When I delete app.ini, the problem returns, and when I put app.ini back, the problem disappears.
There seems to be a bug.
So please use Type=simple at the moment (just as the old document said)
I can see that @bowaggoner comment seems to be true. Once the Gitea is initialized, Type=notify
works(Alteast for me).
Description
Hi, I am still facing the same issue as #27422 Installed the latest version(
1.21.2
) following the docs. The service is not getting toactive (running)
state after copying the gitea.service.According to the changelog, only pre 1.20.x releases should be affected but the latest versions are also affected.
Gitea Version
1.21.2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.43.0
Operating System
Ubuntu 22.04.3 LTS
How are you running Gitea?
Installation from binary
Database
SQLite