Skip to content

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

Closed
@PinguTS

Description

@PinguTS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions