Gitea wont start , Status Code 2 on Systemd on Centos 7 #3072

Closed
opened 2025-11-02 04:59:48 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @dukesx on GitHub (Mar 19, 2019).

  • Gitea version (or commit ref): 1.7.4
  • Git version: 2.19
  • Operating system: Centos 7
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [ x ] Not relevant
  • Log gist: it doesnt log anything , it wont start at all , systemd is saying status code 2

Description

So , i have a server with cPanel with Centos 7. I tried installing via the docs but however i work , systemd just does not start Gitea at all.

Sometimes it says Code 2 or Code 203 , i have tried running "git" user and "root" , both have their own errors.

I did add relevant permissions to /etc/gitea and /var/lib/gitea as well. I also chmod +x to gitea binary. No solution. Please Help !

Update: Now the Service , switches state after each second , one second it is up and on the other second it is down ..... See the screenshots

...

Screenshots

ajeeb

Originally created by @dukesx on GitHub (Mar 19, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.7.4 - Git version: 2.19 - Operating system: Centos 7 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ x ] Not relevant - Log gist: it doesnt log anything , it wont start at all , systemd is saying status code 2 ## Description So , i have a server with cPanel with Centos 7. I tried installing via the docs but however i work , systemd just does not start Gitea at all. Sometimes it says Code 2 or Code 203 , i have tried running "git" user and "root" , both have their own errors. I did add relevant permissions to `/etc/gitea` and `/var/lib/gitea` as well. I also `chmod +x` to gitea binary. No solution. Please Help ! **Update**: Now the Service , switches state after each second , one second it is up and on the other second it is down ..... See the screenshots ... ## Screenshots ![ajeeb](https://user-images.githubusercontent.com/5988991/54627059-57ca4600-4a94-11e9-8495-470298f6c338.png)
GiteaMirror added the issue/staleissue/needs-feedback labels 2025-11-02 04:59:48 -06:00
Author
Owner

@jolheiser commented on GitHub (Mar 19, 2019):

Is there anything in your gitea.log?

@jolheiser commented on GitHub (Mar 19, 2019): Is there anything in your `gitea.log`?
Author
Owner

@stale[bot] commented on GitHub (May 30, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (May 30, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Jun 13, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Jun 13, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3072