Skip to content

Unable to access '/etc/gitconfig': Permission denied #32207

Closed
@vollstock

Description

@vollstock

Description

Since a couple of days, out of a sudden, we can no longer access any of our repositories.

The frontend shows a 500 error:

GetBranchCommit, exit status 128 - warning: unable to access '/etc/gitconfig': Permission denied
warning: unable to access '/etc/gitconfig': Permission denied
fatal: unknown error occurred while reading the configuration files

Our provider has moved the virtual server we are using but I can not think of a reason why this should change anything regarding permissions inside the virtual machine?! Maybe a git update?

The default snap behaviour is to run Gitea as root and we haven’t changed that.
If there is anything we can test, check or provide, please let us know.

Gitea Version

1.22.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/vollstock/341fb6739a3f3ac88923081fe665384c

Screenshots

No response

Git Version

2.34.1

Operating System

Ubuntu 22.04.5 LTS

How are you running Gitea?

snap package with systemd

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/not-a-bugThe reported issue is the intended behavior or the problem is not inside Gitea

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions