Silent fail/crash when no access to log files #2816

Closed
opened 2025-11-02 04:49:27 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @PinguTS on GitHub (Jan 25, 2019).

Gitea silently crashes on startup, when the user has no access (read/write) to the log files.

  • Gitea version (or commit ref): 1.6.0+rc1-221-g9863591dc
  • Git version: 2.18.0
  • Operating system: Debain Linux i386
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

The log files are not placed within the gitea directory structure but at /var/log/gitea/, like all other log files. The directory and the files within had only root access. Then the gitea web silently crashes. There is no information or indication about the problem to find in the console.

Originally created by @PinguTS on GitHub (Jan 25, 2019). Gitea silently crashes on startup, when the user has no access (read/write) to the log files. - Gitea version (or commit ref): 1.6.0+rc1-221-g9863591dc - Git version: 2.18.0 - Operating system: Debain Linux i386 - 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: ## Description The log files are not placed within the gitea directory structure but at `/var/log/gitea/`, like all other log files. The directory and the files within had only `root` access. Then the `gitea web` silently crashes. There is no information or indication about the problem to find in the console.
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 04:49:28 -06:00
Author
Owner

@stale[bot] commented on GitHub (Mar 26, 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 (Mar 26, 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2816