Open
Description
Description
We often encounter Git hooks failing in large repository mirrors (>1 GB), this only happens randomly so we can't reproduce it, Gitea has this error logs when this happens:
2025-01-13T07:01:27.521380693Z Stdout:
Stderr: fatal: Unable to create '/data/git/repositories/redacted/redacted.git/./objects/info/commit-graphs/commit-graph-chain.lock': File exists.
2025-01-13T07:01:27.521401419Z
2025-01-13T07:01:27.521408941Z Another git process seems to be running in this repository, e.g.
2025-01-13T07:01:27.521415228Z an editor opened by 'git commit'. Please make sure all processes
2025-01-13T07:01:27.521422223Z are terminated then try again. If it still fails, a git process
2025-01-13T07:01:27.521429451Z may have crashed in this repository earlier:
2025-01-13T07:01:27.521435906Z remove the file manually to continue.
2025-01-13T07:01:27.521448634Z Err: exit status 128
There are no git processes running in the docker container. So we deleted the lockfile and then git hooks run normally.
Gitea Version
1.23.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.47.1
Operating System
Ubuntu 24.04
How are you running Gitea?
Docker
Database
PostgreSQL