Open tautf opened 1 year ago
Also some PR's are still stuck in Resolve conflicts
as there were some which have been resolved.
Looks like it doesn't retrigger the check. Is there a way to trigger the scan manually?
Current situation is pretty ugly because we cannot properly update/merge our branches via Gitea.
2023/01/23 11:27:40 ...it/repo_attribute.go:408:func2() [E] [63ce6116] Unable to open checker for 96e2301d33d85e9f0953291304fac69e34ea7e30. Error: failed to run attr-check. Error: exit status 1
have you seen the Stderr
messgae? it maybe at the next line after this line.
Unfortunately not. This is the block that is always printed:
2023/01/24 01:24:56 ...dules/git/command.go:215:Run() [D] [63cf2558] D:\Gitea\Repositories\heat-coat\document-worker.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= diff --src-prefix=\a/ --dst-prefix=\b/ -M cfabccf5843acedcda4f862ab67df658c573608a abf21914e92b16890fb254bc9fc1c5d80d5b1e9b
2023/01/24 01:24:56 ...dules/git/command.go:215:Run() [D] [63cf2558] D:\Gitea\Repositories\heat-coat\document-worker.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= read-tree abf21914e92b16890fb254bc9fc1c5d80d5b1e9b
2023/01/24 01:24:56 ...dules/git/command.go:215:Run() [D] [63cf2558] D:\Gitea\Repositories\heat-coat\document-worker.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= diff --shortstat cfabccf5843acedcda4f862ab67df658c573608a...abf21914e92b16890fb254bc9fc1c5d80d5b1e9b
2023/01/24 01:24:56 ...dules/git/command.go:215:Run() [D] [63cf2558] D:\Gitea\Repositories\heat-coat\document-worker.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= check-attr --stdin -z --cached linguist-vendored linguist-generated linguist-language gitlab-language --
2023/01/24 01:24:57 ...it/repo_attribute.go:408:func2() [E] [63cf2558] Unable to open checker for abf21914e92b16890fb254bc9fc1c5d80d5b1e9b. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/24 01:24:57 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf2559] Detected encoding: utf-8 (fast)
2023/01/24 01:24:59 ...dules/git/command.go:215:Run() [D] [63cf255b] D:\Gitea\Repositories\heat-coat\scheduler.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= rev-parse --verify master
2023/01/24 01:24:59 ...dules/git/command.go:215:Run() [D] [63cf255b] D:\Gitea\Repositories\heat-coat\scheduler.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= log --name-status -c --pretty=format: --parents --no-renames -z -1 e2cd56eef48a5bcb0159bd459018b7143586f1b7
2023/01/24 01:24:59 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf255b] ParsePatch(0, 0, 0, ..., )
I also found out that the problem does not happen initially on new pull requests. Only as soon as they get updated. Asking for assistance, as mentioned it's hard to work with Gitea like this.
If i click on a affected pull request, the following block is the only thing that is printed:
2023/01/24 07:58:48 ...dules/git/command.go:215:Run() [D] [63cf81a2] D:\Gitea\Repositories\heat-coat\app.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= rev-list --max-count 50 --skip 0 18c2448519b2d4fd1fc2e2970614931bfc68ebe3..289f2228748baaf0fee9fdba6c0056af5933b0f9
2023/01/24 07:58:48 ...dules/git/command.go:215:Run() [D] [63cf81a2] D:\Gitea\Repositories\heat-coat\app.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= rev-parse refs/pull/1030/head
2023/01/24 07:58:48 ...dules/git/command.go:215:Run() [D] [63cf81a2] D:\Gitea\Repositories\heat-coat\app.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= merge-base -- refs/heads/dev refs/pull/1030/head
2023/01/24 07:58:48 ...dules/git/command.go:215:Run() [D] [63cf81a2] D:\Gitea\Repositories\heat-coat\app.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= rev-parse refs/heads/dev
2023/01/24 07:58:48 ...dules/git/command.go:215:Run() [D] [63cf81a2] D:\Gitea\Repositories\heat-coat\app.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= log 4c9147fab8fd01a42eb10767a090f5ad12580d7d...refs/pull/1030/head --pretty=format:%H
2023/01/24 07:58:49 ...dules/git/command.go:215:Run() [D] [63cf81a2] D:\Gitea\Repositories\heat-coat\app.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= diff -z --name-only refs/heads/dev...refs/pull/1030/head
2023/01/24 07:58:50 ...dules/git/command.go:215:Run() [D] [63cf81a2] D:\Gitea\Repositories\heat-coat\app.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= config --get commit.gpgsign
2023/01/24 07:58:50 ...dules/git/command.go:215:Run() [D] [63cf81a2] D:\Gitea\Repositories\heat-coat\app.git: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= show-ref --verify -- refs/heads/refactor-self-pickup-and-fin
2023/01/24 07:58:50 ...s/context/context.go:220:HTML() [D] [63cf81a2] Template: repo/issue/view
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
2023/01/24 07:58:50 ...s/gitdiff/gitdiff.go:467:ParsePatch() [D] [63cf81a2] ParsePatch(1000, 5000, 100, ..., )
2023/01/24 07:58:50 ...s/charset/charset.go:154:DetectEncoding() [D] [63cf81a2] Detected encoding: utf-8 (fast)
I noticed also, the amount of given approvals differs in the /pulls view to the approvals inside the /pulls/:id view. And this PR is in status ''Merge conflict checking is in progress. Try again in few moments."
See: Edit: Extra info on this, the affected user (the one whos review is not displayed) is always the same.
Found the following in the logs, may cause this issue?
fatal: Unable to create 'D:/Gitea/Repositories/heat-coat/app.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.
error: Could not fetch checkIfPRContentChanged-1674547880075865400
Looks like its a duplicate of https://github.com/go-gitea/gitea/issues/17204.
Closing the PR and reopening it, seems to fix the issue after i reverted git Version to 2.29.1, the version we have been on before we updated to 1.18.2
@tauf I suspect that there is something wrong with that repository on the filesystem. Have you ran git gc, git fsck and git repack on that repo?
It would also be helpful to check if there is a process stuck in conflict checking. On the admin pages there is a process stacktrace available off a link on the management pages. You can also get it from gitea manager processes --stacktraces
@zeripath Can you assist me with the git commands you mentioned? I'm not that familiar with git.
I found stacktraces but there is no link to download them, can you tell me where exactly?
Also this is still an issue: https://github.com/go-gitea/gitea/issues/22578#issuecomment-1401496068
After some time it worked with new pull requests, now we have the same situation again. The pull requests are stuck in the same state. May i ask somebody to assist me with this?
@zeripath like this?
PS D:\Gitea\Repositories\heat-coat\app.git> git gc
Enumerating objects: 221190, done.
Counting objects: 100% (221190/221190), done.
Delta compression using up to 16 threads
Compressing objects: 100% (38267/38267), done.
Writing objects: 100% (221190/221190), done.
Reusing bitmaps: 184, done.
Selecting bitmap commits: 12549, done.
Building bitmaps: 100% (229/229), done.
Total 221190 (delta 180710), reused 221104 (delta 180648), pack-reused 0
PS D:\Gitea\Repositories\heat-coat\app.git> git fsck
Checking object directories: 100% (256/256), done.
Checking objects: 100% (221190/221190), done.
dangling commit f6a999c06b4d4a1626f4055d2deb6d139731358b
dangling commit 1a8744e029442d6c4aa949570b3e7c4959ff3edc
dangling commit 47575d08d6c3821f0959c29d4fe63073b923b513
Verifying commits in commit graph: 100% (12608/12608), done.
PS D:\Gitea\Repositories\heat-coat\app.git> git repack
Enumerating objects: 2, done.
Nothing new to pack.
More info from gitea admin pages:
Muted logs to warn, that what i see all day:
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.
error: Could not fetch checkIfPRContentChanged-1674638624619217500
2023/01/25 10:24:10 ...it/repo_attribute.go:408:func2() [E] [63d0f538-15] Unable to open checker for f1a954f06c8c81059ffc3c5e1a1a7a09f2b8f5e2. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 10:29:36 ...it/repo_attribute.go:408:func2() [E] [63d0f67f] Unable to open checker for dfe14e14894ba3173a93159943675d1663d7e5de. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 10:56:19 ...ers/web/repo/http.go:548:GetInfoRefs() [E] [63d0fcc3-2] exit status 1 -
2023/01/25 11:46:34 ...it/repo_attribute.go:408:func2() [E] [63d1088a] Unable to open checker for 96e2301d33d85e9f0953291304fac69e34ea7e30. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 11:52:36 ...rs/web/repo/issue.go:1765:ViewIssue() [E] [63d109f4] BlockedByDependencies: context canceled
2023/01/25 13:03:06 ...it/repo_attribute.go:408:func2() [E] [63d11a78-2] Unable to open checker for e843312d8dd4e6af83c169447ba15b2527bd8ab0. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 13:32:02 ...it/repo_attribute.go:408:func2() [E] [63d12141] Unable to open checker for 152cfc94ebad25fba62981fdc2f473d2a0a447ee. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 13:32:38 ...it/repo_attribute.go:408:func2() [E] [63d12165] Unable to open checker for 152cfc94ebad25fba62981fdc2f473d2a0a447ee. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 13:33:17 ...it/repo_attribute.go:408:func2() [E] [63d1218c] Unable to open checker for 67bd705f4720a9f8abe16dafef38d3819e5c5b85. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 13:54:00 ...it/repo_attribute.go:408:func2() [E] [63d12667] Unable to open checker for dfe14e14894ba3173a93159943675d1663d7e5de. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 13:54:06 ...it/repo_attribute.go:408:func2() [E] [63d1266d-4] Unable to open checker for dfe14e14894ba3173a93159943675d1663d7e5de. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 13:54:10 ...it/repo_attribute.go:408:func2() [E] [63d12671] Unable to open checker for 152cfc94ebad25fba62981fdc2f473d2a0a447ee. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 14:13:28 ...rs/web/repo/issue.go:1464:ViewIssue() [E] [63d12af8] roleDescriptor: context canceled
2023/01/25 14:28:36 ...it/repo_attribute.go:408:func2() [E] [63d12e83] Unable to open checker for b6010c35e86bdd7bb27f9d0cdbd98a3b82e85934. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 14:34:43 ...it/repo_attribute.go:408:func2() [E] [63d12ff2] Unable to open checker for b6010c35e86bdd7bb27f9d0cdbd98a3b82e85934. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 14:34:49 ...it/repo_attribute.go:408:func2() [E] [63d12ff8] Unable to open checker for b6010c35e86bdd7bb27f9d0cdbd98a3b82e85934. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/01/25 14:47:51 ...it/repo_attribute.go:408:func2() [E] [63d13306] Unable to open checker for b6010c35e86bdd7bb27f9d0cdbd98a3b82e85934. Error: failed to run attr-check. Error: exit status 1
Stderr:
@tautf you're not providing us with anything that can help us to get to the bottom of the problem.
I've asked for the stacktraces. Could you please give me the stacktraces? These can be obtained extremely easily:
gitea manager processes --stacktraces
You say you see:
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.
error: Could not fetch checkIfPRContentChanged-1674638624619217500
Have you been able to see if there is a git process already running in the repository? Are there hanging processes in your process manager? Somewhat annoyingly you've cut off the first line of that message so I cannot determine which line this relates to. Which piece of code emits that?
Setting your logs to WARN is not going to help us to debug your problem. It would be also be helpful to adjust your logging:
[log]
MODE=console, traceconsole
ROUTER=console
LEVEL=debug
[log.traceconsole]
MODE=console
LEVEL=trace
EXPRESSION=services/pull
Your logs above in https://github.com/go-gitea/gitea/issues/22578#issuecomment-1401470526 are not related in any way to the PR checking process so are unhelpful.
The logs in https://github.com/go-gitea/gitea/issues/22578#issuecomment-1403679983 are also unhelpful. Without telling me the line that emits this: https://github.com/go-gitea/gitea/issues/22578#issuecomment-1401529165 it is also unhelpful.
I need the logs from when the PR starts to be checked. So right from the push that sets off the checker, for a good while afterwards until you're sure that the PR has been checked and failed to be checked.
It would also be helpful to see your app.ini. I need to know whether you have some weird queue set up that is breaking the PR checker.
I need to know around how many PRs you have on your system - it may be that you've just got so many that PR checker takes too long.
as an aside I've just looked at the code for checkIfPRContentChanged
and it really needs to be improved. I can see why you might be getting the another git process
messages - and this might be the reason why you're getting conflict checking problems - but I still need the above logs.
@zeripath thanks for your response. Sorry that i was providing unhelpful information.
Requested info:
Stacktraces:
app.ini
APP_NAME = Git
RUN_USER = administrator
RUN_MODE = prod
[oauth2]
JWT_SECRET = hidden
[security]
INTERNAL_TOKEN = hidden
INSTALL_LOCK = true
SECRET_KEY = hiidden
[database]
DB_TYPE = postgres
HOST = 127.0.0.1:5432
NAME = gitea
USER = gitea
PASSWD = hidden
SCHEMA =
SSL_MODE = disable
CHARSET = utf8
PATH = C:\Gitea\data\gitea.db
[repository]
ROOT = D:/Gitea/Repositories
[server]
SSH_DOMAIN = 192.168.3.63
DOMAIN = 192.168.3.63
HTTP_PORT = 3000
ROOT_URL = http://192.168.3.63:3000/
DISABLE_SSH = false
SSH_PORT = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = C:/Gitea/data/lfs
LFS_JWT_SECRET = hidden
OFFLINE_MODE = false
[mailer]
ENABLED = true
FROM = e@email.com
MAILER_TYPE = smtp
HOST = xxx.xxx.xx.xxx
IS_TLS_ENABLED = false
SKIP_VERIFY = true
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = false
[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false
[session]
PROVIDER = file
[log]
MODE = file
LEVEL = warn ; please set the level to debug when we are debugging a problem
ROUTER = console
COLORIZE = false ; this can be true if you can strip out the ansi coloring
ENABLE_SSH_LOG = true ; shows logs related to git over SSH.
ROOT_PATH = C:/Gitea/log
[migrations]
ALLOW_LOCALNETWORKS = true
[attachement]
MAX_SIZE = 200
[webhook]
ALLOWED_HOST_LIST = xxx.xxx.xxx.xxx
[queue.pr_patch_checker]
WORKERS=1
Size
Currently there is 13 PR's open. When the issue occured it were about 20. Never have more. Issues around 80-100 on average.
Heya!
Thanks for the much more extensive logs.
Looking at the stacktraces - your request to the stacktrace started at 2023-01-27 08:12:24 and at 2023-01-27 08:12:23 PR[653] = PR number #998 in Repo[24] started being checked. So that doesn't provide evidence of hanging PR checks. You'd need to run stacktraces again in a bit to see if the same PR was hanging somewhere.
When did you run stacktraces - it appears early as compared to your logs? Stacktraces is instantaneous - it tells me what is happening at the point of running it - it's helpful to get the stacktrace when you think the problem is occurring - although it is also helpful to get a baseline.
Could you tell me the ID and/or Index number of the/a PR that is blocked? Is #998 in Repo[24]/PR[653] the blocked PR?
I see:
[queue.pr_patch_checker]
WORKERS=1
This was related to a previous bug which should have been fixed. I don't think this could be causing problems but it's not really necessary anymore.
I need to know which PR is blocked. There is a lot of PR checking going on there. (I do think our logging here is a little poor as despite my attempts to improve things we still don't have enough context within the trace logging to clearly identify immediately which PR each trace is going to and there doesn't appear to be clear tracing as to when PRs finish being checked.)
For example, working backwards from your logs:
2023/01/27 08:36:13 ...dules/git/command.go:215:Run() [D] [63d37eeb-6] C:/Gitea/data/tmp/local-repo\pull.git3805977959: C:\Program Files\Git\cmd\git.exe -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= merge-base -- base tracking
merge-base
- but without a terminal stacktraces I can't see what happened to that process.Now the PRs that stop after merge-base I think that's because the pr.HeadCommitID is equal to the MergeBase and they're probably ancestors.
However, looking at your logs I see you've tried to view heat-coat/app#1079 head kd-chore-fixed-css-and-html-for-order-item-creation but I don't see any checking for that PR. I can't tell from your logs if that's just due to timing
What I do see is that there are 24 PRs in the patch checking queue but your logs stop at 12 PRs - so maybe you're just checking too early? But I see that in the monitor screenshot you sent above there were none waiting.
OK thanks for logs but I need more.
It probably is worth running:
gitea manager processes --stacktraces
gitea manager flush-queues
gitea manager processes --stacktraces
and then send us the logs and the stacktraces. If flush-queues
hangs then send us the logs too.
We also need to improve our logging considerably too. I will look at that.
Hi!
We encountered the same issue on our Gitea instance.
We had a 500 error when opening a /compare/
url.
When I looked at the log, I saw this error:
2023/02/17 11:44:44 .../web/repo/compare.go:552:ParseCompareInfo() [E] [63ef5a9c-223] GetCompareInfo: exit status 128: Stderr: fatal: ambiguous argument 'refs/heads/target_branch...refs/heads/branch/with/pathname': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
So I added some dashes to commands: https://github.com/dontnod/fork-gitea/commit/80e504c2e7bf79594ef1d631d04e760a6d8ce78e
Then I was still left with an error that I managed to track to this code: https://github.com/go-gitea/gitea/blob/main/modules/git/repo_compare.go#L42
logging the err
gave me the same information as in this issue regarding the commit-graph-chain.lock
So I simply added a --no-write-commit-graph
as you can see here: https://github.com/dontnod/fork-gitea/commit/07b38b748805a2f04a92dbf9969f8b90a7160936
I can rebase these commits (or only the --no-write-commit-graph
one) against main and open a PR if this approach is acceptable.
However, the fact the function somewhat ignores the fetch error and goes along maybe should be addressed as well?
Also running into this issue (Windows Server), with no further information:
2023/03/20 18:50:49 ...it/repo_attribute.go:306:func2() [E] [64189cf7] Unable to open checker for 4df90eafd581c4d661f0eda0cd483936de755149. Error: failed to run attr-check. Error: exit status 1
Stderr:
Not having this issue on the go-git version, apparently.
I can rebase these commits (or only the
--no-write-commit-graph
one) against main and open a PR if this approach is acceptable.
My personal opinion (does not represent the opinion of the Gitea or maintainers):
"add some dashes to commands: https://github.com/dontnod/fork-gitea/commit/80e504c2e7bf79594ef1d631d04e760a6d8ce78e"
I think it's good enough (sorry that I missed your message about "open a PR if this approach is acceptable"), so I closed my duplicate one.
"add a --no-write-commit-graph as you can see here: https://github.com/dontnod/fork-gitea/commit/07b38b748805a2f04a92dbf9969f8b90a7160936"
I have some questions about it:I guess there is a concurrency problem
Adding "--no-write-commit-graph" might affect performance?
IIRC, this is in the 'true' repository (didn't push my investigation into if a tmp repository would be better suited) but it's a tmp remote that is added then removed just after. So I guess it could impact performances for git commands that would run while this remote is present but should only impact a subset of commands that use the commit graph?
Without "--no-write-commit-graph", would git still report other "lock" error if there is concurrent operations on the same repo (even if the chance is low)?
The lock file seem to be unique for commit-graph operations objects/info/commit-graphs/commit-graph-chain.lock
so I would say other locks still apply.
IIRC, this will make git update a commit-graph in memory as normal but will just prevent writing it to disk for caching.
while this remote is present but should only impact a subset of commands that use the commit graph?
Agree, that's also an unclear part in my mind. According to "the commit-graph file format is faster to parse than decompressing commit files and parsing them to find their parents and root trees.", so I guess the following "merge-base" and "log" commands may benefit from it, but I do not know how much benefit it brings, maybe it differs between big and small repositories. So I have no idea TBH ....
Personally I would agree with that adding "--no-write-commit-graph" is fine for most cases.
the git lock
From another side, I think maybe Gitea has a design flaw (bug) in its conflict checking code. If there are concurrent git operations, then the "conflict checking" should retry instead of getting stuck if the competition for the lock fails.
If the lock competition could be handled correctly, then no need to worry about the commit-graph lock?
We ran into the same commit-graph-chain.lock
error on projects.blender.org. In comparing branches before creating a pull request, rather than pull request conflict checking. A number of forked repositories ended up with commit-graph-chain.lock
.
The --no-write-commit-graph
workaround solved that for us, but the root cause is still unclear. I wonder if the lock file is created because there are operations being done on the original repository, or if the temporary repositories for operations like conflict checking are perhaps not as isolated as expected.
Perhaps a Git crash or kill after a timeout could cause this too.
We can have a cron job to cleanup the commit-graph-chain.lock
files at the backend. It cannot be avoid at the moment.
@zeripath Background: We have a 2.3GB repository that cannot be split due to historical reasons. Currently, we are submitting a merge and conflict checking will take 10-20 minutes
Observation:
Problem:
git(dir:/gitea/data/tmp/local-repo/pull.git1698519015): /usr/bin/git -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= ls-files -u -z
ps -ef|grep "/usr/bin/git -c protocol"|wc -l
94
Here are the stack logs
+ PID: 660666bd-393 Type: normal
| Description: Test PR[8233] from patch checking queue
| Start: 2024-03-29 14:59:09.461096088 +0800 CST m=+1186042.213415869
|
+ PID: 660666a9-435 Type: normal
| Description: TestPatch: <PullRequest [9149]Project#6224[develop...yie/li/0319_bugs_part2]>
| Start: 2024-03-29 14:58:49.508154709 +0800 CST m=+1186022.260474488
| Goroutines:
| + Description: code.gitea.io/gitea/services/pull.unmergedFiles
| | Labels: "graceful-lifecycle":"with-hammer"
| | Stack:
| | + runtime.gopark
| | | /work/tools/go/src/runtime/proc.go:398
| | + runtime.chansend
| | | /work/tools/go/src/runtime/chan.go:259
| | + runtime.chansend1
| | | /work/tools/go/src/runtime/chan.go:145
| | + code.gitea.io/gitea/services/pull.unmergedFiles
| | | /work/go/src/gitea/services/pull/patch_unmerged.go:176
| + Description: code.gitea.io/gitea/modules/git.CatFileBatchCheck.func2
| | Labels: "graceful-lifecycle":"with-hammer"
| | Stack:
| | + runtime.gopark
| | | /work/tools/go/src/runtime/proc.go:398
| | + runtime.chanrecv
| | | /work/tools/go/src/runtime/chan.go:583
| | + runtime.chanrecv1
| | | /work/tools/go/src/runtime/chan.go:442
| | + code.gitea.io/gitea/modules/git.CatFileBatchCheck.func2
| | | /work/go/src/gitea/modules/git/batch_reader.go:61
| + Description: code.gitea.io/gitea/modules/git.CatFileBatch.func2
| | Labels: "graceful-lifecycle":"with-hammer"
| | Stack:
| | + runtime.gopark
| | | /work/tools/go/src/runtime/proc.go:398
| | + runtime.chanrecv
| | | /work/tools/go/src/runtime/chan.go:583
| | + runtime.chanrecv1
| | | /work/tools/go/src/runtime/chan.go:442
| | + code.gitea.io/gitea/modules/git.CatFileBatch.func2
| | | /work/go/src/gitea/modules/git/batch_reader.go:113
| Children:
| + PID: 66066755-650 Type: normal
| | Description: git(dir:/gitea/data/tmp/local-repo/pull.git1698519015): /usr/bin/git -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= update-index --remove -z --index-info
| | Start: 2024-03-29 15:01:41.845530427 +0800 CST m=+1186194.597850206
| | Goroutines:
| | + Description: os/exec.(*Cmd).Start.func2* 2
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.netpollblock
| | | | /work/tools/go/src/runtime/netpoll.go:564
| | | + internal/poll.runtime_pollWait
| | | | /work/tools/go/src/runtime/netpoll.go:343
| | | + internal/poll.(*pollDesc).wait
| | | | /work/tools/go/src/internal/poll/fd_poll_runtime.go:84
| | | + internal/poll.(*pollDesc).waitRead
| | | | /work/tools/go/src/internal/poll/fd_poll_runtime.go:89
| | | + internal/poll.(*FD).Read
| | | | /work/tools/go/src/internal/poll/fd_unix.go:164
| | | + os.(*File).read
| | | | /work/tools/go/src/os/file_posix.go:29
| | | + os.(*File).Read
| | | | /work/tools/go/src/os/file.go:118
| | | + bytes.(*Buffer).ReadFrom
| | | | /work/tools/go/src/bytes/buffer.go:211
| | | + io.copyBuffer
| | | | /work/tools/go/src/io/io.go:416
| | | + io.Copy
| | | | /work/tools/go/src/io/io.go:389
| | | + os/exec.(*Cmd).writerDescriptor.func1
| | | | /work/tools/go/src/os/exec/exec.go:560
| | | + os/exec.(*Cmd).Start.func2
| | | | /work/tools/go/src/os/exec/exec.go:717
| | + Description: os/exec.(*Cmd).watchCtx
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.selectgo
| | | | /work/tools/go/src/runtime/select.go:327
| | | + os/exec.(*Cmd).watchCtx
| | | | /work/tools/go/src/os/exec/exec.go:757
| | + Description: code.gitea.io/gitea/modules/queue.(*WorkerPoolQueue[go.shape.string]).doStartNewWorker.func1
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + syscall.Syscall6
| | | | /work/tools/go/src/syscall/syscall_linux.go:91
| | | + os.(*Process).blockUntilWaitable
| | | | /work/tools/go/src/os/wait_waitid.go:32
| | | + os.(*Process).wait
| | | | /work/tools/go/src/os/exec_unix.go:22
| | | + os.(*Process).Wait
| | | | /work/tools/go/src/os/exec.go:134
| | | + os/exec.(*Cmd).Wait
| | | | /work/tools/go/src/os/exec/exec.go:890
| | | + code.gitea.io/gitea/modules/git.(*Command).Run
| | | | /work/go/src/gitea/modules/git/command.go:342
| | | + code.gitea.io/gitea/modules/git.(*Repository).RemoveFilesFromIndex
| | | | /work/go/src/gitea/modules/git/repo_index.go:103
| | | + code.gitea.io/gitea/services/pull.attemptMerge
| | | | /work/go/src/gitea/services/pull/patch.go:143
| | | + code.gitea.io/gitea/services/pull.AttemptThreeWayMerge
| | | | /work/go/src/gitea/services/pull/patch.go:271
| | | + code.gitea.io/gitea/services/pull.checkConflicts
| | | | /work/go/src/gitea/services/pull/patch.go:293
| | | + code.gitea.io/gitea/services/pull.testPatch
| | | | /work/go/src/gitea/services/pull/patch.go:104
| | | + code.gitea.io/gitea/services/pull.TestPatch
| | | | /work/go/src/gitea/services/pull/patch.go:74
| | | + code.gitea.io/gitea/services/pull.testPR
| | | | /work/go/src/gitea/services/pull/check.go:360
| | | + code.gitea.io/gitea/services/pull.handler
| | | | /work/go/src/gitea/services/pull/check.go:328
| | | + code.gitea.io/gitea/modules/queue.NewWorkerPoolQueueWithContext[go.shape.string].func1
| | | | /work/go/src/gitea/modules/queue/workerqueue.go:246
| | | + code.gitea.io/gitea/modules/queue.(*WorkerPoolQueue[go.shape.string]).doWorkerHandle
| | | | /work/go/src/gitea/modules/queue/workergroup.go:98
| | | + code.gitea.io/gitea/modules/queue.(*WorkerPoolQueue[go.shape.string]).doStartNewWorker.func1
| | | | /work/go/src/gitea/modules/queue/workergroup.go:162
| + PID: 660666a9-852 Type: normal
| | Description: /usr/bin/git cat-file --batch [repo_path: /gitea/data/tmp/local-repo/pull.git1698519015] (services/pull/patch.go:78)
| | Start: 2024-03-29 14:58:49.999811343 +0800 CST m=+1186022.752131124
| | Goroutines:
| | + Description: os/exec.(*Cmd).Start.func2* 2
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.netpollblock
| | | | /work/tools/go/src/runtime/netpoll.go:564
| | | + internal/poll.runtime_pollWait
| | | | /work/tools/go/src/runtime/netpoll.go:343
| | | + internal/poll.(*pollDesc).wait
| | | | /work/tools/go/src/internal/poll/fd_poll_runtime.go:84
| | | + internal/poll.(*pollDesc).waitRead
| | | | /work/tools/go/src/internal/poll/fd_poll_runtime.go:89
| | | + internal/poll.(*FD).Read
| | | | /work/tools/go/src/internal/poll/fd_unix.go:164
| | | + os.(*File).read
| | | | /work/tools/go/src/os/file_posix.go:29
| | | + os.(*File).Read
| | | | /work/tools/go/src/os/file.go:118
| | | + io.copyBuffer
| | | | /work/tools/go/src/io/io.go:430
| | | + io.Copy
| | | | /work/tools/go/src/io/io.go:389
| | | + os/exec.(*Cmd).writerDescriptor.func1
| | | | /work/tools/go/src/os/exec/exec.go:560
| | | + os/exec.(*Cmd).Start.func2
| | | | /work/tools/go/src/os/exec/exec.go:717
| | + Description: os/exec.(*Cmd).Start.func2
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.selectgo
| | | | /work/tools/go/src/runtime/select.go:327
| | | + io.(*pipe).read
| | | | /work/tools/go/src/io/pipe.go:57
| | | + io.(*PipeReader).Read
| | | | /work/tools/go/src/io/pipe.go:136
| | | + io.copyBuffer
| | | | /work/tools/go/src/io/io.go:430
| | | + io.Copy
| | | | /work/tools/go/src/io/io.go:389
| | | + os.genericReadFrom
| | | | /work/tools/go/src/os/file.go:161
| | | + os.(*File).ReadFrom
| | | | /work/tools/go/src/os/file.go:155
| | | + io.copyBuffer
| | | | /work/tools/go/src/io/io.go:416
| | | + io.Copy
| | | | /work/tools/go/src/io/io.go:389
| | | + os/exec.(*Cmd).childStdin.func1
| | | | /work/tools/go/src/os/exec/exec.go:511
| | | + os/exec.(*Cmd).Start.func2
| | | | /work/tools/go/src/os/exec/exec.go:717
| | + Description: os/exec.(*Cmd).watchCtx
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.selectgo
| | | | /work/tools/go/src/runtime/select.go:327
| | | + os/exec.(*Cmd).watchCtx
| | | | /work/tools/go/src/os/exec/exec.go:757
| | + Description: code.gitea.io/gitea/modules/git.CatFileBatch.func3
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + syscall.Syscall6
| | | | /work/tools/go/src/syscall/syscall_linux.go:91
| | | + os.(*Process).blockUntilWaitable
| | | | /work/tools/go/src/os/wait_waitid.go:32
| | | + os.(*Process).wait
| | | | /work/tools/go/src/os/exec_unix.go:22
| | | + os.(*Process).Wait
| | | | /work/tools/go/src/os/exec.go:134
| | | + os/exec.(*Cmd).Wait
| | | | /work/tools/go/src/os/exec/exec.go:890
| | | + code.gitea.io/gitea/modules/git.(*Command).Run
| | | | /work/go/src/gitea/modules/git/command.go:342
| | | + code.gitea.io/gitea/modules/git.CatFileBatch.func3
| | | | /work/go/src/gitea/modules/git/batch_reader.go:124
| + PID: 660666aa-170 Type: normal
| | Description: git(dir:/gitea/data/tmp/local-repo/pull.git1698519015): /usr/bin/git -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= ls-files -u -z
| | Start: 2024-03-29 14:58:50.199850657 +0800 CST m=+1186022.952170452
| | Goroutines:
| | + Description: code.gitea.io/gitea/services/pull.readUnmergedLsFileLines
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.chansend
| | | | /work/tools/go/src/runtime/chan.go:259
| | | + runtime.chansend1
| | | | /work/tools/go/src/runtime/chan.go:145
| | | + code.gitea.io/gitea/services/pull.readUnmergedLsFileLines.func3
| | | | /work/go/src/gitea/services/pull/patch_unmerged.go:114
| | | + code.gitea.io/gitea/modules/git.(*Command).Run
| | | | /work/go/src/gitea/modules/git/command.go:334
| | | + code.gitea.io/gitea/services/pull.readUnmergedLsFileLines
| | | | /work/go/src/gitea/services/pull/patch_unmerged.go:76
| | + Description: os/exec.(*Cmd).watchCtx
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.selectgo
| | | | /work/tools/go/src/runtime/select.go:327
| | | + os/exec.(*Cmd).watchCtx
| | | | /work/tools/go/src/os/exec/exec.go:757
| + PID: 660666aa Type: normal
| | Description: /usr/bin/git cat-file --batch-check [repo_path: /gitea/data/tmp/local-repo/pull.git1698519015] (services/pull/patch.go:78)
| | Start: 2024-03-29 14:58:50.000385803 +0800 CST m=+1186022.752705608
| | Goroutines:
| | + Description: os/exec.(*Cmd).Start.func2* 2
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.netpollblock
| | | | /work/tools/go/src/runtime/netpoll.go:564
| | | + internal/poll.runtime_pollWait
| | | | /work/tools/go/src/runtime/netpoll.go:343
| | | + internal/poll.(*pollDesc).wait
| | | | /work/tools/go/src/internal/poll/fd_poll_runtime.go:84
| | | + internal/poll.(*pollDesc).waitRead
| | | | /work/tools/go/src/internal/poll/fd_poll_runtime.go:89
| | | + internal/poll.(*FD).Read
| | | | /work/tools/go/src/internal/poll/fd_unix.go:164
| | | + os.(*File).read
| | | | /work/tools/go/src/os/file_posix.go:29
| | | + os.(*File).Read
| | | | /work/tools/go/src/os/file.go:118
| | | + io.copyBuffer
| | | | /work/tools/go/src/io/io.go:430
| | | + io.Copy
| | | | /work/tools/go/src/io/io.go:389
| | | + os/exec.(*Cmd).writerDescriptor.func1
| | | | /work/tools/go/src/os/exec/exec.go:560
| | | + os/exec.(*Cmd).Start.func2
| | | | /work/tools/go/src/os/exec/exec.go:717
| | + Description: os/exec.(*Cmd).Start.func2
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.selectgo
| | | | /work/tools/go/src/runtime/select.go:327
| | | + io.(*pipe).read
| | | | /work/tools/go/src/io/pipe.go:57
| | | + io.(*PipeReader).Read
| | | | /work/tools/go/src/io/pipe.go:136
| | | + io.copyBuffer
| | | | /work/tools/go/src/io/io.go:430
| | | + io.Copy
| | | | /work/tools/go/src/io/io.go:389
| | | + os.genericReadFrom
| | | | /work/tools/go/src/os/file.go:161
| | | + os.(*File).ReadFrom
| | | | /work/tools/go/src/os/file.go:155
| | | + io.copyBuffer
| | | | /work/tools/go/src/io/io.go:416
| | | + io.Copy
| | | | /work/tools/go/src/io/io.go:389
| | | + os/exec.(*Cmd).childStdin.func1
| | | | /work/tools/go/src/os/exec/exec.go:511
| | | + os/exec.(*Cmd).Start.func2
| | | | /work/tools/go/src/os/exec/exec.go:717
| | + Description: os/exec.(*Cmd).watchCtx
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + runtime.gopark
| | | | /work/tools/go/src/runtime/proc.go:398
| | | + runtime.selectgo
| | | | /work/tools/go/src/runtime/select.go:327
| | | + os/exec.(*Cmd).watchCtx
| | | | /work/tools/go/src/os/exec/exec.go:757
| | + Description: code.gitea.io/gitea/modules/git.CatFileBatchCheck.func3
| | | Labels: "graceful-lifecycle":"with-hammer"
| | | Stack:
| | | + syscall.Syscall6
| | | | /work/tools/go/src/syscall/syscall_linux.go:91
| | | + os.(*Process).blockUntilWaitable
| | | | /work/tools/go/src/os/wait_waitid.go:32
| | | + os.(*Process).wait
| | | | /work/tools/go/src/os/exec_unix.go:22
| | | + os.(*Process).Wait
| | | | /work/tools/go/src/os/exec.go:134
| | | + os/exec.(*Cmd).Wait
| | | | /work/tools/go/src/os/exec/exec.go:890
| | | + code.gitea.io/gitea/modules/git.(*Command).Run
| | | | /work/go/src/gitea/modules/git/command.go:342
| | | + code.gitea.io/gitea/modules/git.CatFileBatchCheck.func3
| | | | /work/go/src/gitea/modules/git/batch_reader.go:72
|
+ PID: 660666a9-421 Type: normal
| Description: Test PR[9149] from patch checking queue
| Start: 2024-03-29 14:58:49.491517206 +0800 CST m=+1186022.243837001
Each merge merged into the main branch, all open status pull request will perform a merge conflict checking,If you have a very old pull request, Please mark it as WIP, reduce the number of conflict queues and accelerate the speed of conflict checking
We can have a cron job to cleanup the
commit-graph-chain.lock
files at the backend. It cannot be avoid at the moment.
@lunny is there anything regarding this already implemented in the latest versions? Or a other suggested Workaround?
As a workaround, just find all commit-graph-chain.lock
files and delete them.
@lunny Would you like me to try to implement this cron job solution ? If it is ok with you guys I would love to
@lunny Would you like me to try to implement this cron job solution ? If it is ok with you guys I would love to
Maybe we can have two improvements. One is trying to delete the lock file once we got Killed
from git command sub process immediately. Another is having a cron task to clean all lock files. ref https://gitlab.com/gitlab-org/gitaly/-/merge_requests/2099/diffs . And yes, I think it's necessary to integration the ability to clean up them.
Makes sense. I'll work on that :) I think by next week I should have both PRs done.
Description
After the update to 1.18.2 all our pull requests are stuck with above error message. I did restart the server multiple times already, we cannot get out of this view.
This was not happening with 1.17.4 and 1.18.0. I upgraded from 1.18.0 to 1.18.2 and skipped 1.18.1, could that cause the issue?
Problem got worse with 1.18.0 that it became slower but it at least resolved after 10-15 minutes. Now we are stuck for multiple hours.
I am using the gogit variant but it looks like the windows side git is used or am i wrong?
Not sure if the logs are related to it but thats the only errors i could find. I have disabled my anti-virus but the issue still persists.
Gitea Version
1.18.2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
Screenshots
No response
Git Version
2.39.1
Operating System
Windows Server 2019
How are you running Gitea?
Windows Service
Database
PostgreSQL