Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious dangling git lock files #32456

Closed
bsofiato opened this issue Nov 8, 2024 · 2 comments
Closed

Spurious dangling git lock files #32456

bsofiato opened this issue Nov 8, 2024 · 2 comments
Labels

Comments

@bsofiato
Copy link
Contributor

bsofiato commented Nov 8, 2024

Description

Sorry if this is still on your radar (I've searched the issues but found nothing related).

I've had some issues with some mirrors that fail to sync. By checking the Gitea alerts, I found that some repositories have dangling locks (see screenshot attached).

image

It seems that the issue arises when git processes terminate abruptly. I wrote a script that cleans those dangling locks, but I wonder if Gitea itself should do it (maybe some cronjob that runs from time to time). If you guys think it would be helpful, I can submit a PR.

P.S. Sorry in advance if Gitea already does that. I tried looking into the source code but found nothing relevant (I'm not an expert on Git's plumbing commands).

P.S. I don't know if this is a particular issue of my environment, still, I feel that eventually, git processes will end unexpectedly.

Gitea Version

1.22.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

I run a custom built docker image of gitea based on version 1.22.2

Database

PostgreSQL

@lunny
Copy link
Member

lunny commented Nov 8, 2024

Similiar as #22578

@bsofiato
Copy link
Contributor Author

bsofiato commented Nov 8, 2024

Similiar as #22578

@lunny Cool. I'm gonna close this one and use the other :) thanks for the reply

@bsofiato bsofiato closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants