Open
Description
Description
When someone is trying to open a pull request on a repo, we're getting a 500 error :
Internal Server Error
Une erreur s’est produite:
GetCompareInfo, AddRemote: exit status 128 - error: could not lock config file config: File exists
fatal: could not set 'remote.1725953120549272064.url' to '/var/lib/gitea/data/gitea-repositories/tala/python-docs-fr.git'
- error: could not lock config file config: File exists
fatal: could not set 'remote.1725953120549272064.url' to '/var/lib/gitea/data/gitea-repositories/tala/python-docs-fr.git'
Version de Gitea: 1.22.2
Si vous pensez qu'il s'agit d'un bug Gitea, veuillez consulter notre board [GitHub](https://github.com/go-gitea/gitea/issues) ou ouvrir un nouveau ticket si nécessaire.
On the target repo I see the lock file:
root@gitea1:~# ls -lah /var/lib/gitea/data/gitea-repositories/afpy/python-docs-fr.git
total 112K
drwxr-xr-x 8 git git 4.0K Sep 10 05:33 .
drwxr-xr-x 20 git git 4.0K Jul 23 2023 ..
-rw-r--r-- 1 git git 134 Jul 26 09:04 FETCH_HEAD
-rw-r--r-- 1 git git 21 Nov 17 2022 HEAD
drwxr-xr-x 2 git git 4.0K Nov 17 2022 branches
-rw-r--r-- 1 git git 32K Jul 26 09:04 config
-rw-r--r-- 1 git git 18K Jul 26 09:04 config.lock
Looks like the lock file is a month old.
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
2.30.2
Operating System
Debian 11.11
How are you running Gitea?
Self hosted, installed via ansible: https://git.afpy.org/AFPy/infra/src/branch/main/roles/gitea/tasks/setup.yml
Database
PostgreSQL