Internal Server Error 500: GetBranchCommit: packfile not found #34471
Labels
issue/needs-feedback
For bugs, we need more details. For features, the feature must be described in more detail
type/bug
Description
Technically it's a duplicate of existing issues like #8330 and #31443
but I can't append information about this bug because these issues limited conversation to collaborators.
So, this bug can happen on ANY repo (but for me this happens randomly on relatively big repositories like 200+MB. This time that happened with LLGL mirror, it happens for my local non-mirrored repositories too).
I think it's Windows-only bug, and looks like it only happens on repository garbage collection.
After garbage collection, at
gitea-repositories/org/repo/objects/pack
there is one .pack file that is older than others and is slightly less than other biggest .pack file in this directory.To solve this bug by hand, just remove this file...
But why this file can't be renamed to something like .tmp-* so it can be fixed with go-git/go-git#6? Git for Windows bug? Windows permissions issue?
Gitea Version
1.23.8
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.46.0.windows.1
Operating System
Windows Server 2022 (win10 21H2)
How are you running Gitea?
Official Gitea executable from releases. Running as Windows Service.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: