Many lock file exists errors #12616

Closed
opened 2025-11-02 10:16:10 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @harryzcy on GitHub (Mar 8, 2024).

Description

I'm having many lock file exists error in System Notices. I know it's likely because sync requests are triggered too quickly (I have a Github app that triggers it on every Github webhook), and it doesn't cause anything. But is there way to reduce the errors? Like using a retry logic, using a queue, etc.

Failed to update mirror repository '/data/git/repositories/harryzcy/repo.git': fatal: Unable to create '/data/git/repositories/harryzcy/repo.git/./objects/info/commit-graphs/commit-graph-chain.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.

Gitea Version

1.21.7

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

Kubernetes with distributed storage

Database

PostgreSQL

Originally created by @harryzcy on GitHub (Mar 8, 2024). ### Description I'm having many lock file exists error in System Notices. I know it's likely because sync requests are triggered too quickly (I have a Github app that triggers it on every Github webhook), and it doesn't cause anything. But is there way to reduce the errors? Like using a retry logic, using a queue, etc. ``` Failed to update mirror repository '/data/git/repositories/harryzcy/repo.git': fatal: Unable to create '/data/git/repositories/harryzcy/repo.git/./objects/info/commit-graphs/commit-graph-chain.lock': File exists. Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue. ``` ### Gitea Version 1.21.7 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots <img width="1015" alt="image" src="https://github.com/go-gitea/gitea/assets/37034805/757787af-09c7-455f-a10b-33babfb9d599"> ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Kubernetes with distributed storage ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 10:16:10 -06:00
Author
Owner

@lunny commented on GitHub (Jun 13, 2024):

Duplicate of #22578

@lunny commented on GitHub (Jun 13, 2024): Duplicate of #22578
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12616