Reading/writing packages sometimes starts failing #610
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After updating chart v9.5.1 -> v10.1.1 I have started encountering an issue where sometimes trying to fetch or push packages start failing. To be fair, the issue could have been present even earlier, but it's possible that it hasn't occurred on my watch. Initially when I encountered this issue, I re-deployed the package and that did resolve the issue of fetching it, but at this point even writing started to fail. Looking at the log, it seems to point to permission issue.
I am running the latest rootless image (i.e.
gitea/gitea:1.21.5-rootless
) in a K3s cluster.The following is an excerpt from the log when pushing a package starts to fail (notably
stat
operation).Mounted volume is provisioned from NFS (via nfs-subdir-external-provisioner). It does seem that the entire
/data
directory has proper permissions though, as seen in the screenshot.At this point I'm a bit at a loss, as I don't really know how to rectify the issue, and whether this is an issue on my end, or something else.
Assuming you upgraded from chart version 10.1.0 to 10.1.1: the only change is the Gitea version. Based on your information and the logs you've provided, it looks like an issue within Gitea itself. Please file an issue in the Gitea main repo.
@justusbunsi Apologies, I forgot to append, that I upgraded from v9.5.1, though to be honest the issue could have been there from even before - I only noticed it after personally encountering it.
I don't think that this is an issue of the chart. Also no changes happened between your release which could potentially have any influence on the described issue.
I also use the chart for a Gitea instance with a lot of use for "packages" without any issue yet.
My guess would rather go into the direction of storageClass permissions/settings of your RWX.
The chart doesn't do anything there, it just expects a RWX, everything else is on the user side.
Did you check the full path recursively for proper permissions? Your screenshot only shows
/data
.Also please avoid screenshots and try to use formatted code, it's easier to reply/reference it.
Closing here, see my last comment.
Digging to the root of this issue is likely out of scope for this repo. Maybe opening an issue in the Discord Forum or asking in Discord might help to understand it better.