500 permission denied on stat of packages and sessions #11412

Closed
opened 2025-11-02 09:36:54 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @vettamatt on GitHub (Aug 7, 2023).

Description

We're running Gitea on Docker, using an NFS mount for /data.
We were using 1.20.2, and we're now using nightly.

For some reason, we see permission denied errors for some files, which cause 500 errors in the web GUI and in response to Docker push.
The most obvious problems are during Docker push, and with user sessions.
If we restart the container, the problem intermittently goes away for hours or overnight, then occurs again.

The owner of /data and beyond is 1000:1000.

Further information: https://gist.github.com/vettamatt/a6f40f55d2b907986ad5c1e7e96fee24

Gitea Version

nightly (Docker Hub) - https://hub.docker.com/layers/gitea/gitea/nightly/images/sha256-ccb7e43c8ae498648582a05d6cde8c14599b573c2efdf8ae6c097039541bd758

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/vettamatt/a6f40f55d2b907986ad5c1e7e96fee24

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

We're running Gitea on Docker, using an NFS mount for /data.
We were using 1.20.2, and we're now using nightly.

Database

MySQL

Originally created by @vettamatt on GitHub (Aug 7, 2023). ### Description We're running Gitea on Docker, using an NFS mount for /data. We were using 1.20.2, and we're now using nightly. For some reason, we see permission denied errors for some files, which cause 500 errors in the web GUI and in response to Docker push. The most obvious problems are during Docker push, and with user sessions. If we restart the container, the problem intermittently goes away for hours or overnight, then occurs again. The owner of /data and beyond is 1000:1000. Further information: [https://gist.github.com/vettamatt/a6f40f55d2b907986ad5c1e7e96fee24](https://gist.github.com/vettamatt/a6f40f55d2b907986ad5c1e7e96fee24) ### Gitea Version nightly (Docker Hub) - https://hub.docker.com/layers/gitea/gitea/nightly/images/sha256-ccb7e43c8ae498648582a05d6cde8c14599b573c2efdf8ae6c097039541bd758 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist https://gist.github.com/vettamatt/a6f40f55d2b907986ad5c1e7e96fee24 ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? We're running Gitea on Docker, using an NFS mount for /data. We were using 1.20.2, and we're now using nightly. ### Database MySQL
GiteaMirror added the type/bug label 2025-11-02 09:36:54 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Aug 7, 2023):

I think NFS is the bad boy:
#24684
#22308
#22059

@KN4CK3R commented on GitHub (Aug 7, 2023): I think NFS is the bad boy: #24684 #22308 #22059
Author
Owner

@emmorts commented on GitHub (Feb 8, 2024):

Have you found any solution @vettamatt? I am currently experiencing the same problem on a K8s cluster.

@emmorts commented on GitHub (Feb 8, 2024): Have you found any solution @vettamatt? I am currently experiencing the same problem on a K8s cluster.
Author
Owner

@lunny commented on GitHub (Sep 3, 2024):

The workaround is in #24684

@lunny commented on GitHub (Sep 3, 2024): The workaround is in #24684
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11412