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

Pull requests stuck in "Merge conflict checking is in progress. Try again in few moments" #22578

Open
tautf opened this issue Jan 23, 2023 · 31 comments · May be fixed by #32485
Open

Pull requests stuck in "Merge conflict checking is in progress. Try again in few moments" #22578

tautf opened this issue Jan 23, 2023 · 31 comments · May be fixed by #32485
Labels
issue/workaround it is or has a workaround type/bug

Comments

@tautf
Copy link

tautf commented Jan 23, 2023

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

2023/01/23 11:27:40 ...dules/git/command.go:215:Run() [D] [63ce6116] 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= read-tree 96e2301d33d85e9f0953291304fac69e34ea7e30
2023/01/23 11:27:40 ...dules/git/command.go:215:Run() [D] [63ce6116] 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= check-attr --stdin -z --cached linguist-vendored linguist-generated linguist-language gitlab-language --
2023/01/23 11:27:40 ...dules/git/command.go:215:Run() [D] [63ce6116] 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 --shortstat 18c2448519b2d4fd1fc2e2970614931bfc68ebe3...96e2301d33d85e9f0953291304fac69e34ea7e30
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

Screenshots

No response

Git Version

2.39.1

Operating System

Windows Server 2019

How are you running Gitea?

Windows Service

Database

PostgreSQL

@tautf tautf added the type/bug label Jan 23, 2023
@tautf
Copy link
Author

tautf commented Jan 23, 2023

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.

@a1012112796
Copy link
Member

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.
image

@tautf
Copy link
Author

tautf commented Jan 24, 2023

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.

@tautf
Copy link
Author

tautf commented Jan 24, 2023

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)

@tautf
Copy link
Author

tautf commented Jan 24, 2023

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:
Bildschirmfoto 2023-01-24 um 13 12 09 PM
Bildschirmfoto 2023-01-24 um 13 12 20 PM
Bildschirmfoto 2023-01-25 um 07 45 28 AM
Edit: Extra info on this, the affected user (the one whos review is not displayed) is always the same.

@tautf
Copy link
Author

tautf commented Jan 24, 2023

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

@tautf
Copy link
Author

tautf commented Jan 24, 2023

Looks like its a duplicate of #17204.

@tautf
Copy link
Author

tautf commented Jan 24, 2023

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

@zeripath
Copy link
Contributor

@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

@tautf
Copy link
Author

tautf commented Jan 25, 2023

@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:
#22578 (comment)

@tautf
Copy link
Author

tautf commented Jan 25, 2023

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?

@tautf
Copy link
Author

tautf commented Jan 25, 2023

@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.

@tautf
Copy link
Author

tautf commented Jan 25, 2023

More info from gitea admin pages:
Bildschirmfoto 2023-01-25 um 15 07 19 PM
Bildschirmfoto 2023-01-25 um 15 07 27 PM


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: 

@zeripath
Copy link
Contributor

@tautf you're not providing us with anything that can help us to get to the bottom of the problem.

STACKTRACES

I've asked for the stacktraces. Could you please give me the stacktraces? These can be obtained extremely easily:

gitea manager processes --stacktraces

GIT COMMIT

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?

LOGS

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 #22578 (comment) are not related in any way to the PR checking process so are unhelpful.

The logs in #22578 (comment) are also unhelpful. Without telling me the line that emits this: #22578 (comment) 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.

APP.INI

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.

SIZE

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.

@zeripath
Copy link
Contributor

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 added a commit to zeripath/gitea that referenced this issue Jan 26, 2023
The code for checking if a commit has caused a change in a PR is
extremely inefficient and affects the head repository instead of using a
temporary repository.

This PR therefore makes several significant improvements:

* A temporary repo like that used in merging.
* The diff code is then significant improved to use a three-way diff
  instead of comparing diffs (possibly binary) line-by-line - in
  memory...

Ref go-gitea#22578

Signed-off-by: Andrew Thornton <[email protected]>
@tautf
Copy link
Author

tautf commented Jan 27, 2023

@zeripath thanks for your response. Sorry that i was providing unhelpful information.

Requested info:

Stacktraces:

`./gitea.exe manager processes --stacktraces`
PS C:\Gitea> ./gitea.exe manager processes --stacktraces
>>
Total Number of Goroutines: 38
Total Number of Processes: 39
  + PID: 63d37958       Type: request
  | Description: GET: /api/internal/manager/processes?flat=false&no-system=false&stacktraces=true&json=false&cancel-pid=
  | Start:       2023-01-27 08:12:24.391824 +0100 CET m=+7.380801501
  | Goroutines:
  |   + Description: net/http.HandlerFunc.ServeHTTP
  |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + io.(*pipe).read
  |   |   | /usr/local/go/src/io/pipe.go:57
  |   |   + io.(*PipeReader).Read
  |   |   | /usr/local/go/src/io/pipe.go:136
  |   |   + io.ReadAll
  |   |   | /usr/local/go/src/io/io.go:661
  |   |   + github.com/google/pprof/profile.Parse
  |   |   | /go/pkg/mod/github.com/google/[email protected]/profile/profile.go:155
  |   |   + code.gitea.io/gitea/modules/process.(*Manager).ProcessStacktraces
  |   |   | /source/modules/process/manager_stacktraces.go:185
  |   |   + code.gitea.io/gitea/routers/private.Processes
  |   |   | /source/routers/private/manager_process.go:40
  |   |   + code.gitea.io/gitea/modules/web.convertHandler.func7
  |   |   | /source/modules/web/wrap_convert.go:79
  |   |   + code.gitea.io/gitea/modules/web.wrapInternal.func1
  |   |   | /source/modules/web/wrap.go:41
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5/middleware.RealIP.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/realip.go:35
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/routers/private.CheckInternalToken.func1
  |   |   | /source/routers/private/internal.go:37
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/context.PrivateContexter.func1.1
  |   |   | /source/modules/context/private.go:73
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:71
  |   |   + github.com/go-chi/chi/v5.(*Mux).Mount.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:314
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/routers/common.Middlewares.func2.1
  |   |   | /source/routers/common/middleware.go:79
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web/routing.(*requestRecordsManager).handler.func1
  |   |   | /source/modules/web/routing/logger_manager.go:123
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5/middleware.StripSlashes.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/strip.go:30
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/chi-middleware/proxy.ForwardedHeaders.func1.1
  |   |   | /go/pkg/mod/github.com/chi-middleware/[email protected]/middleware.go:37
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |
  + PID: 63d37957-3     Type: normal
  | Description: TestPatch: Repo[24]#998
  | Start:       2023-01-27 08:12:23.4538763 +0100 CET m=+6.442874101
  | Children:
  |   + PID: 63d37957-6 Type: normal
  |   | Description: C:\Program Files\Git\cmd\git.exe fetch origin --no-tags -- dev:base dev:original_base [repo_path: C:/Gitea/data/tmp/local-repo\pull.git1982534584]
  |   | Start:       2023-01-27 08:12:23.6822062 +0100 CET m=+6.671199001
  |   | Goroutines:
  |   |   + Description: os/exec.(*Cmd).Start.func1* 2
  |   |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   |   | Stack:
  |   |   |   + runtime.cgocall
  |   |   |   | /usr/local/go/src/runtime/cgocall.go:158
  |   |   |   + syscall.SyscallN
  |   |   |   | /usr/local/go/src/runtime/syscall_windows.go:557
  |   |   |   + syscall.Syscall6
  |   |   |   | /usr/local/go/src/runtime/syscall_windows.go:501
  |   |   |   + syscall.readFile
  |   |   |   | /usr/local/go/src/syscall/zsyscall_windows.go:1024
  |   |   |   + syscall.ReadFile
  |   |   |   | /usr/local/go/src/syscall/syscall_windows.go:400
  |   |   |   + syscall.Read
  |   |   |   | /usr/local/go/src/syscall/syscall_windows.go:379
  |   |   |   + internal/poll.(*FD).Read
  |   |   |   | /usr/local/go/src/internal/poll/fd_windows.go:427
  |   |   |   + os.(*File).read
  |   |   |   | /usr/local/go/src/os/file_posix.go:31
  |   |   |   + os.(*File).Read
  |   |   |   | /usr/local/go/src/os/file.go:119
  |   |   |   + io.copyBuffer
  |   |   |   | /usr/local/go/src/io/io.go:427
  |   |   |   + io.Copy
  |   |   |   | /usr/local/go/src/io/io.go:386
  |   |   |   + os/exec.(*Cmd).writerDescriptor.func1
  |   |   |   | /usr/local/go/src/os/exec/exec.go:407
  |   |   |   + os/exec.(*Cmd).Start.func1
  |   |   |   | /usr/local/go/src/os/exec/exec.go:544
  |   |   + Description: code.gitea.io/gitea/modules/queue.(*WorkerPool).addWorkers.func1
  |   |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   |   | Stack:
  |   |   |   + runtime.cgocall
  |   |   |   | /usr/local/go/src/runtime/cgocall.go:158
  |   |   |   + syscall.SyscallN
  |   |   |   | /usr/local/go/src/runtime/syscall_windows.go:557
  |   |   |   + syscall.Syscall
  |   |   |   | /usr/local/go/src/runtime/syscall_windows.go:495
  |   |   |   + syscall.WaitForSingleObject
  |   |   |   | /usr/local/go/src/syscall/zsyscall_windows.go:1145
  |   |   |   + os.(*Process).wait
  |   |   |   | /usr/local/go/src/os/exec_windows.go:18
  |   |   |   + os.(*Process).Wait
  |   |   |   | /usr/local/go/src/os/exec.go:132
  |   |   |   + os/exec.(*Cmd).Wait
  |   |   |   | /usr/local/go/src/os/exec/exec.go:599
  |   |   |   + code.gitea.io/gitea/modules/git.(*Command).Run
  |   |   |   | /source/modules/git/command.go:274
  |   |   |   + code.gitea.io/gitea/services/pull.createTemporaryRepo
  |   |   |   | /source/services/pull/temp_repo.go:113
  |   |   |   + code.gitea.io/gitea/services/pull.TestPatch
  |   |   |   | /source/services/pull/patch.go:67
  |   |   |   + code.gitea.io/gitea/services/pull.testPR
  |   |   |   | /source/services/pull/check.go:341
  |   |   |   + code.gitea.io/gitea/services/pull.handle
  |   |   |   | /source/services/pull/check.go:316
  |   |   |   + code.gitea.io/gitea/modules/queue.NewPersistableChannelUniqueQueue.func1
  |   |   |   | /source/modules/queue/unique_queue_disk_channel.go:60
  |   |   |   + code.gitea.io/gitea/modules/queue.NewChannelUniqueQueue.func1
  |   |   |   | /source/modules/queue/unique_queue_channel.go:79
  |   |   |   + code.gitea.io/gitea/modules/queue.(*WorkerPool).doWork
  |   |   |   | /source/modules/queue/workerpool.go:594
  |   |   |   + code.gitea.io/gitea/modules/queue.(*WorkerPool).addWorkers.func1
  |   |   |   | /source/modules/queue/workerpool.go:312
  |   |   + Description: os/exec.(*Cmd).watchCtx.func1
  |   |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   |   | Stack:
  |   |   |   + runtime.gopark
  |   |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   |   + runtime.selectgo
  |   |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   |   + os/exec.(*Cmd).watchCtx.func1
  |   |   |   | /usr/local/go/src/os/exec/exec.go:648
  |
  + PID: 63d37957-2     Type: normal
  | Description: Test PR[653] from patch checking queue
  | Start:       2023-01-27 08:12:23.4473872 +0100 CET m=+6.436385101
  |
  + PID: 63d37956-2     Type: request
  | Description: GET: /user/events
  | Start:       2023-01-27 08:12:22.1138333 +0100 CET m=+5.102860001
  | Goroutines:
  |   + Description: github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/routers/web/events.Events
  |   |   | /source/routers/web/events/events.go:71
  |   |   + code.gitea.io/gitea/modules/web.convertHandler.func3
  |   |   | /source/modules/web/wrap_convert.go:47
  |   |   + code.gitea.io/gitea/modules/web.wrapInternal.func1
  |   |   | /source/modules/web/wrap.go:41
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5/middleware.GetHead.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/get_head.go:37
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/context.Contexter.func1.1
  |   |   | /source/modules/context/context.go:820
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:71
  |   |   + github.com/go-chi/chi/v5.(*Mux).Mount.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:314
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/routers/web.Recovery.func1.1
  |   |   | /source/routers/web/base.go:175
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + gitea.com/go-chi/session.Sessioner.func1.1
  |   |   | /go/pkg/mod/gitea.com/go-chi/[email protected]/session.go:257
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.WrapWithPrefix.func1.1
  |   |   | /source/modules/web/wrap.go:110
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:71
  |
  + PID: 63d37956       Type: request
  | Description: GET: /user/events
  | Start:       2023-01-27 08:12:22.089382 +0100 CET m=+5.078409201
  | Goroutines:
  |   + Description: github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/routers/web/events.Events
  |   |   | /source/routers/web/events/events.go:71
  |   |   + code.gitea.io/gitea/modules/web.convertHandler.func3
  |   |   | /source/modules/web/wrap_convert.go:47
  |   |   + code.gitea.io/gitea/modules/web.wrapInternal.func1
  |   |   | /source/modules/web/wrap.go:41
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5/middleware.GetHead.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/get_head.go:37
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/context.Contexter.func1.1
  |   |   | /source/modules/context/context.go:820
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:71
  |   |   + github.com/go-chi/chi/v5.(*Mux).Mount.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:314
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/routers/web.Recovery.func1.1
  |   |   | /source/routers/web/base.go:175
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + gitea.com/go-chi/session.Sessioner.func1.1
  |   |   | /go/pkg/mod/gitea.com/go-chi/[email protected]/session.go:257
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.WrapWithPrefix.func1.1
  |   |   | /source/modules/web/wrap.go:110
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:71
  |
  + PID: 63d37955-32    Type: request
  | Description: GET: /user/events
  | Start:       2023-01-27 08:12:21.7297548 +0100 CET m=+4.718789801
  | Goroutines:
  |   + Description: github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/routers/web/events.Events
  |   |   | /source/routers/web/events/events.go:71
  |   |   + code.gitea.io/gitea/modules/web.convertHandler.func3
  |   |   | /source/modules/web/wrap_convert.go:47
  |   |   + code.gitea.io/gitea/modules/web.wrapInternal.func1
  |   |   | /source/modules/web/wrap.go:41
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5/middleware.GetHead.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/get_head.go:37
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/context.Contexter.func1.1
  |   |   | /source/modules/context/context.go:820
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:71
  |   |   + github.com/go-chi/chi/v5.(*Mux).Mount.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:314
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/routers/web.Recovery.func1.1
  |   |   | /source/routers/web/base.go:175
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + gitea.com/go-chi/session.Sessioner.func1.1
  |   |   | /go/pkg/mod/gitea.com/go-chi/[email protected]/session.go:257
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.WrapWithPrefix.func1.1
  |   |   | /source/modules/web/wrap.go:110
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:71
  |
  + PID: 63d37955-31    Type: request
  | Description: GET: /user/events
  | Start:       2023-01-27 08:12:21.698831 +0100 CET m=+4.687866701
  | Goroutines:
  |   + Description: github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/routers/web/events.Events
  |   |   | /source/routers/web/events/events.go:71
  |   |   + code.gitea.io/gitea/modules/web.convertHandler.func3
  |   |   | /source/modules/web/wrap_convert.go:47
  |   |   + code.gitea.io/gitea/modules/web.wrapInternal.func1
  |   |   | /source/modules/web/wrap.go:41
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5/middleware.GetHead.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/middleware/get_head.go:37
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.Middle.func1.1
  |   |   | /source/modules/web/wrap.go:63
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/context.Contexter.func1.1
  |   |   | /source/modules/context/context.go:820
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:71
  |   |   + github.com/go-chi/chi/v5.(*Mux).Mount.func1
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:314
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).routeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:442
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/routers/web.Recovery.func1.1
  |   |   | /source/routers/web/base.go:175
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + gitea.com/go-chi/session.Sessioner.func1.1
  |   |   | /go/pkg/mod/gitea.com/go-chi/[email protected]/session.go:257
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + code.gitea.io/gitea/modules/web.WrapWithPrefix.func1.1
  |   |   | /source/modules/web/wrap.go:110
  |   |   + net/http.HandlerFunc.ServeHTTP
  |   |   | /usr/local/go/src/net/http/server.go:2109
  |   |   + github.com/go-chi/chi/v5.(*Mux).ServeHTTP
  |   |   | /go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:71
  |
  + PID: 63d37955-30    Type: system
  | Description: Web: Gitea Server
  | Start:       2023-01-27 08:12:21.4192356 +0100 CET m=+4.408277301
  | Goroutines:
  |   + Description: net/http.(*connReader).backgroundRead* 5
  |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.netpollblock
  |   |   | /usr/local/go/src/runtime/netpoll.go:526
  |   |   + internal/poll.runtime_pollWait
  |   |   | /usr/local/go/src/runtime/netpoll.go:305
  |   |   + internal/poll.(*pollDesc).wait
  |   |   | /usr/local/go/src/internal/poll/fd_poll_runtime.go:84
  |   |   + internal/poll.execIO
  |   |   | /usr/local/go/src/internal/poll/fd_windows.go:175
  |   |   + internal/poll.(*FD).Read
  |   |   | /usr/local/go/src/internal/poll/fd_windows.go:441
  |   |   + net.(*netFD).Read
  |   |   | /usr/local/go/src/net/fd_posix.go:55
  |   |   + net.(*conn).Read
  |   |   | /usr/local/go/src/net/net.go:183
  |   |   + net/http.(*connReader).backgroundRead
  |   |   | /usr/local/go/src/net/http/server.go:678
  |   + Description: runtime.main
  |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.netpollblock
  |   |   | /usr/local/go/src/runtime/netpoll.go:526
  |   |   + internal/poll.runtime_pollWait
  |   |   | /usr/local/go/src/runtime/netpoll.go:305
  |   |   + internal/poll.(*pollDesc).wait
  |   |   | /usr/local/go/src/internal/poll/fd_poll_runtime.go:84
  |   |   + internal/poll.execIO
  |   |   | /usr/local/go/src/internal/poll/fd_windows.go:175
  |   |   + internal/poll.(*FD).acceptOne
  |   |   | /usr/local/go/src/internal/poll/fd_windows.go:942
  |   |   + internal/poll.(*FD).Accept
  |   |   | /usr/local/go/src/internal/poll/fd_windows.go:976
  |   |   + net.(*netFD).accept
  |   |   | /usr/local/go/src/net/fd_windows.go:139
  |   |   + net.(*TCPListener).accept
  |   |   | /usr/local/go/src/net/tcpsock_posix.go:142
  |   |   + net.(*TCPListener).AcceptTCP
  |   |   | /usr/local/go/src/net/tcpsock.go:275
  |   |   + code.gitea.io/gitea/modules/graceful.(*wrappedListener).Accept
  |   |   | /source/modules/graceful/server.go:214
  |   |   + net/http.(*Server).Serve
  |   |   | /usr/local/go/src/net/http/server.go:3070
  |   |   + code.gitea.io/gitea/modules/graceful.(*Server).Serve
  |   |   | /source/modules/graceful/server.go:167
  |   |   + code.gitea.io/gitea/modules/graceful.(*Server).ListenAndServe
  |   |   | /source/modules/graceful/server.go:107
  |   |   + code.gitea.io/gitea/modules/graceful.HTTPListenAndServe
  |   |   | /source/modules/graceful/server_http.go:33
  |   |   + code.gitea.io/gitea/cmd.runHTTP
  |   |   | /source/cmd/web_graceful.go:19
  |   |   + code.gitea.io/gitea/cmd.listen
  |   |   | /source/cmd/web.go:236
  |   |   + code.gitea.io/gitea/cmd.runWeb
  |   |   | /source/cmd/web.go:181
  |   |   + github.com/urfave/cli.HandleAction
  |   |   | /go/pkg/mod/github.com/urfave/[email protected]/app.go:524
  |   |   + github.com/urfave/cli.Command.Run
  |   |   | /go/pkg/mod/github.com/urfave/[email protected]/command.go:173
  |   |   + github.com/urfave/cli.(*App).Run
  |   |   | /go/pkg/mod/github.com/urfave/[email protected]/app.go:277
  |   |   + main.main
  |   |   | /source/main.go:116
  |   |   + runtime.main
  |   |   | /usr/local/go/src/runtime/proc.go:250
  |   + Description: code.gitea.io/gitea/modules/graceful.(*Server).awaitShutdown
  |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/modules/graceful.(*Server).awaitShutdown
  |   |   | /source/modules/graceful/server_hooks.go:16
  |
  + PID: 63d37955-29    Type: system
  | Description: Service: SlowQueryDetector
  | Start:       2023-01-27 08:12:21.3908037 +0100 CET m=+4.379846001
  | Goroutines:
  |   + Description: code.gitea.io/gitea/modules/graceful.(*Manager).RunWithShutdownContext
  |   | Labels:      "graceful-lifecycle":"with-shutdown"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/modules/web/routing.(*requestRecordsManager).startSlowQueryDetector.func1
  |   |   | /source/modules/web/routing/logger_manager.go:54
  |   |   + code.gitea.io/gitea/modules/graceful.(*Manager).RunWithShutdownContext
  |   |   | /source/modules/graceful/manager.go:115
  |
  + PID: 63d37955-21    Type: system
  | Description: Service: Cron
  | Start:       2023-01-27 08:12:21.1512542 +0100 CET m=+4.140301701
  | Goroutines:
  |   + Description: github.com/gogs/cron.(*Cron).run
  |   | Labels:      "graceful-lifecycle":"with-shutdown"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + github.com/gogs/cron.(*Cron).run
  |   |   | /go/pkg/mod/github.com/gogs/[email protected]/cron.go:197
  |
  + PID: 63d37955-17    Type: system
  | Description: Service: EventSource
  | Start:       2023-01-27 08:12:21.1288815 +0100 CET m=+4.117929501
  | Goroutines:
  |   + Description: code.gitea.io/gitea/modules/graceful.(*Manager).RunWithShutdownContext
  |   | Labels:      "graceful-lifecycle":"with-shutdown"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/modules/eventsource.(*Manager).Run
  |   |   | /source/modules/eventsource/manager_run.go:39
  |   |   + code.gitea.io/gitea/modules/graceful.(*Manager).RunWithShutdownContext
  |   |   | /source/modules/graceful/manager.go:115
  |
  + PID: 63d37955-16    Type: system
  | Description: Queue: task-level
  | Start:       2023-01-27 08:12:21.1288815 +0100 CET m=+4.117929501
  |
  + PID: 63d37955-13    Type: system
  | Description: Queue: pr_auto_merge-channel
  | Start:       2023-01-27 08:12:21.1282637 +0100 CET m=+4.117311701
  |
  + PID: 63d37955-14    Type: system
  | Description: Queue: pr_auto_merge-level
  | Start:       2023-01-27 08:12:21.1282637 +0100 CET m=+4.117311701
  |
  + PID: 63d37955-11    Type: system
  | Description: Queue: pr_patch_checker-channel
  | Start:       2023-01-27 08:12:21.1282637 +0100 CET m=+4.117311701
  |
  + PID: 63d37955-15    Type: system
  | Description: Queue: task-channel
  | Start:       2023-01-27 08:12:21.1282637 +0100 CET m=+4.117311701
  |
  + PID: 63d37955-12    Type: system
  | Description: Queue: pr_patch_checker-level
  | Start:       2023-01-27 08:12:21.1282637 +0100 CET m=+4.117311701
  |
  + PID: 63d37955-10    Type: system
  | Description: Queue: webhook_sender-level
  | Start:       2023-01-27 08:12:21.0955029 +0100 CET m=+4.084551601
  |
  + PID: 63d37955-9     Type: system
  | Description: Queue: webhook_sender-channel
  | Start:       2023-01-27 08:12:21.0955029 +0100 CET m=+4.084551601
  |
  + PID: 63d37955-7     Type: system
  | Description: Queue: mirror-channel
  | Start:       2023-01-27 08:12:21.0949176 +0100 CET m=+4.083966301
  |
  + PID: 63d37955-6     Type: system
  | Description: Queue: repo_stats_update-level
  | Start:       2023-01-27 08:12:21.0949176 +0100 CET m=+4.083966301
  |
  + PID: 63d37955-4     Type: system
  | Description: Queue: issue_indexer
  | Start:       2023-01-27 08:12:21.0949176 +0100 CET m=+4.083966301
  | Goroutines:
  |   + Description: code.gitea.io/gitea/modules/graceful.(*Manager).RunWithShutdownFns
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/modules/queue.(*ByteFIFOQueue).readToChan
  |   |   | /source/modules/queue/queue_bytefifo.go:254
  |   |   + code.gitea.io/gitea/modules/queue.(*ByteFIFOQueue).Run
  |   |   | /source/modules/queue/queue_bytefifo.go:164
  |   |   + code.gitea.io/gitea/modules/graceful.(*Manager).RunWithShutdownFns
  |   |   | /source/modules/graceful/manager.go:83
  |
  + PID: 63d37955-5     Type: system
  | Description: Queue: repo_stats_update-channel
  | Start:       2023-01-27 08:12:21.0949176 +0100 CET m=+4.083966301
  |
  + PID: 63d37955-8     Type: system
  | Description: Queue: mirror-level
  | Start:       2023-01-27 08:12:21.0949176 +0100 CET m=+4.083966301
  |
  + PID: 63d37955-2     Type: system
  | Description: Queue: push_update-level
  | Start:       2023-01-27 08:12:21.0943649 +0100 CET m=+4.083413601
  |
  + PID: 63d37955-3     Type: system
  | Description: Service: IssueIndexer
  | Start:       2023-01-27 08:12:21.0943649 +0100 CET m=+4.083413601
  |
  + PID: 63d37955       Type: system
  | Description: Queue: push_update-channel
  | Start:       2023-01-27 08:12:21.0943649 +0100 CET m=+4.083413601
  |
  + PID: 63d37953-7     Type: system
  | Description: Queue: notification-service-level
  | Start:       2023-01-27 08:12:19.3482625 +0100 CET m=+2.337348901
  |
  + PID: 63d37953-8     Type: system
  | Description: Queue: repo-archive-channel
  | Start:       2023-01-27 08:12:19.3482625 +0100 CET m=+2.337348901
  |
  + PID: 63d37953-6     Type: system
  | Description: Queue: notification-service-channel
  | Start:       2023-01-27 08:12:19.3482625 +0100 CET m=+2.337348901
  |
  + PID: 63d37953-9     Type: system
  | Description: Queue: repo-archive-level
  | Start:       2023-01-27 08:12:19.3482625 +0100 CET m=+2.337348901
  |
  + PID: 63d37953-5     Type: system
  | Description: Queue: mail-level
  | Start:       2023-01-27 08:12:19.3429981 +0100 CET m=+2.332084601
  |
  + PID: 63d37953-4     Type: system
  | Description: Queue: mail-channel
  | Start:       2023-01-27 08:12:19.2302579 +0100 CET m=+2.219346901
  |
  + PID: 63d37953-2     Type: system
  | Description: Logger: router
  | Start:       2023-01-27 08:12:19.1767131 +0100 CET m=+2.165803201
  | Goroutines:
  |   + Description: code.gitea.io/gitea/modules/log.(*MultiChannelledLog).Start
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/modules/log.(*MultiChannelledLog).Start
  |   |   | /source/modules/log/event.go:341
  | Children:
  |   + PID: 63d37953-3 Type: system
  |   | Description: Logger: console(console)
  |   | Start:       2023-01-27 08:12:19.1767131 +0100 CET m=+2.165803201
  |   | Goroutines:
  |   |   + Description: code.gitea.io/gitea/modules/log.(*ChannelledLog).Start
  |   |   | Stack:
  |   |   |   + runtime.gopark
  |   |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   |   + runtime.selectgo
  |   |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   |   + code.gitea.io/gitea/modules/log.(*ChannelledLog).Start
  |   |   |   | /source/modules/log/event.go:80
  |
  + PID: 63d37951-3     Type: system
  | Description: Service: NoSQL
  | Start:       2023-01-27 08:12:17.0393774 +0100 CET m=+0.028513701
  | Goroutines:
  |   + Description: github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain
  |   |   | /go/pkg/mod/github.com/syndtr/[email protected]/leveldb/util/buffer_pool.go:206
  |   + Description: github.com/syndtr/goleveldb/leveldb.(*DB).compactionError
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + github.com/syndtr/goleveldb/leveldb.(*DB).compactionError
  |   |   | /go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:90
  |   + Description: github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction
  |   |   | /go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:762
  |   + Description: github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction
  |   |   | /go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:825
  |   + Description: github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain
  |   |   | /go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_state.go:101
  |
  + PID: 63d37951       Type: system
  | Description: Logger: default
  | Start:       2023-01-27 08:12:17.0240345 +0100 CET m=+0.013171101
  | Goroutines:
  |   + Description: code.gitea.io/gitea/modules/log.(*MultiChannelledLog).Start
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/modules/log.(*MultiChannelledLog).Start
  |   |   | /source/modules/log/event.go:341
  | Children:
  |   + PID: 63d37953   Type: system
  |   | Description: Logger: file(file)
  |   | Start:       2023-01-27 08:12:19.1767131 +0100 CET m=+2.165803201
  |   | Goroutines:
  |   |   + Description: code.gitea.io/gitea/modules/log.(*ChannelledLog).Start
  |   |   | Stack:
  |   |   |   + runtime.gopark
  |   |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   |   + runtime.selectgo
  |   |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   |   + code.gitea.io/gitea/modules/log.(*ChannelledLog).Start
  |   |   |   | /source/modules/log/event.go:80
  |
  + PID:        Type: none
  | Description: (unassociated)
  | Start:       0001-01-01 00:00:00 +0000 UTC
  | Goroutines:
  |   + Description: github.com/blevesearch/bleve_index_api.AnalysisWorker* 4
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + github.com/blevesearch/bleve_index_api.AnalysisWorker
  |   |   | /go/pkg/mod/github.com/blevesearch/[email protected]/analysis.go:46
  |   + Description: code.gitea.io/gitea/modules/graceful.(*Manager).start.func1
  |   | Labels:      "graceful-lifecycle":"with-manager"
  |   | Stack:
  |   |   + runtime.cgocall
  |   |   | /usr/local/go/src/runtime/cgocall.go:158
  |   |   + syscall.SyscallN
  |   |   | /usr/local/go/src/runtime/syscall_windows.go:557
  |   |   + syscall.Syscall
  |   |   | /usr/local/go/src/runtime/syscall_windows.go:495
  |   |   + golang.org/x/sys/windows.StartServiceCtrlDispatcher
  |   |   | /go/pkg/mod/golang.org/x/[email protected]/windows/zsyscall_windows.go:1318
  |   |   + golang.org/x/sys/windows/svc.Run
  |   |   | /go/pkg/mod/golang.org/x/[email protected]/windows/svc/service.go:292
  |   |   + code.gitea.io/gitea/modules/graceful.(*Manager).start.func1
  |   |   | /source/modules/graceful/manager_windows.go:110
  |   + Description: code.gitea.io/gitea/modules/process.(*Manager).ProcessStacktraces.func2
  |   | Stack:
  |   |   + runtime.goroutineProfileWithLabels
  |   |   | /usr/local/go/src/runtime/mprof.go:858
  |   |   + runtime/pprof.runtime_goroutineProfileWithLabels
  |   |   | /usr/local/go/src/runtime/mprof.go:846
  |   |   + runtime/pprof.writeRuntimeProfile
  |   |   | /usr/local/go/src/runtime/pprof/pprof.go:723
  |   |   + runtime/pprof.writeGoroutine
  |   |   | /usr/local/go/src/runtime/pprof/pprof.go:683
  |   |   + runtime/pprof.(*Profile).WriteTo
  |   |   | /usr/local/go/src/runtime/pprof/pprof.go:330
  |   |   + code.gitea.io/gitea/modules/process.(*Manager).ProcessStacktraces.func2
  |   |   | /source/modules/process/manager_stacktraces.go:182
  |   + Description: database/sql.(*DB).connectionOpener
  |   | Labels:      "graceful-lifecycle":"with-hammer"
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + database/sql.(*DB).connectionOpener
  |   |   | /usr/local/go/src/database/sql/sql.go:1224
  |   + Description: runtime.cgocallback
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + golang.org/x/sys/windows/svc.serviceMain
  |   |   | /go/pkg/mod/golang.org/x/[email protected]/windows/svc/service.go:244
  |   |   + runtime.callbackWrap
  |   |   | /usr/local/go/src/runtime/syscall_windows.go:396
  |   |   + runtime.cgocallbackg1
  |   |   | /usr/local/go/src/runtime/cgocall.go:316
  |   |   + runtime.cgocallbackg
  |   |   | /usr/local/go/src/runtime/cgocall.go:235
  |   |   + runtime.cgocallback
  |   |   | /usr/local/go/src/runtime/asm_amd64.s:994
  |   + Description: golang.org/x/sys/windows/svc.serviceMain.func2
  |   | Stack:
  |   |   + runtime.gopark
  |   |   | /usr/local/go/src/runtime/proc.go:363
  |   |   + runtime.selectgo
  |   |   | /usr/local/go/src/runtime/select.go:328
  |   |   + code.gitea.io/gitea/modules/graceful.(*Manager).Execute
  |   |   | /source/modules/graceful/manager_windows.go:143
  |   |   + golang.org/x/sys/windows/svc.serviceMain.func2
  |   |   | /go/pkg/mod/golang.org/x/[email protected]/windows/svc/service.go:232

Logs
https://pastebin.com/kbCcFpMn

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           = [email protected]
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.

@zeripath
Copy link
Contributor

Heya!

Thanks for the much more extensive logs.

Stacktraces

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?

App.ini

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.

Logs

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:

  • [63d37eff-10] checks the conflicted PR[595] heat-coat/app#970 - this looks like it's working fine and finds the conflict.
  • [63d37ef9-13] checks a PR in heat-coat/app with head renovate/ngx-infinite-scroll-15.x - this looks like it finishes fine without conflicts.
  • [63d37ef9-17] - is viewing heat-coat/app#1079 head kd-chore-fixed-css-and-html-for-order-item-creation and I think the logging here is likely normal as we have some partial tracing. I would need stacktraces after these logs are collected to see if anything is hanging.
  • [63d37ef3-12] - checks another PR in heat-coat/app head renovate/ngx-page-scroll-core-10.x - looks like it doesn't have any conflicts.
  • [63d37eed-3] - checks PR heat-coat/app with head renovate/ngx-page-scroll-10.x - no conflicts found
  • [63d37eeb-6] - starts checking PR heat-coat/app with head fannar-refactor-1058.
    • This one is interesting the last line relating to this is:
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
  • Then there are no more logs - but the logs only run for 20s more so I don't know if this hangs for a long time or not - nor do I have a later stacktrace to see if this is hanging. I suspect that this relates to
    if pr.HeadCommitID == pr.MergeBase {
    pr.Status = issues_model.PullRequestStatusAncestor
    return nil
    }
  • [63d37ee9-10] - starts checking PR heat-coat/app with head document-service-refactor - but again stops at merge-base - but without a terminal stacktraces I can't see what happened to that process.
  • [63d37eeb] views the user dashboard
  • [63d37ee3-4] checks PR heat-coat/app with head renovate/ngx-bootstrap-10.x - this finishes fine.
  • [63d37ee1-3] is another PR that appears to stop after merge-base - heat-coat/app head taut-manual-refactor - probably ancestor.
  • [63d37edf-3] another one: heat-coat/app head templates-23011 - probably ancestor.
  • [63d37edd-9] another one: heat-coat/app head taut-fix-1119 - probably ancestor.
  • [63d37ed7-3] relates to: heat-coat/app head drone-testing-pipeline and it fines no conflicts.
  • [63d37ed5-19] another one that stops after merge-base: heat-coat/app head supplier-module-refactor - probably marked ancestor.

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.

zeripath added a commit that referenced this issue Jan 28, 2023
The code for checking if a commit has caused a change in a PR is
extremely inefficient and affects the head repository instead of using a
temporary repository.

This PR therefore makes several significant improvements:

* A temporary repo like that used in merging.
* The diff code is then significant improved to use a three-way diff
instead of comparing diffs (possibly binary) line-by-line - in memory...

Ref #22578

Signed-off-by: Andrew Thornton <[email protected]>
zeripath added a commit to zeripath/gitea that referenced this issue Jan 28, 2023
Backport go-gitea#22611

The code for checking if a commit has caused a change in a PR is
extremely inefficient and affects the head repository instead of using a
temporary repository.

This PR therefore makes several significant improvements:

* A temporary repo like that used in merging.
* The diff code is then significant improved to use a three-way diff
instead of comparing diffs (possibly binary) line-by-line - in memory...

Ref go-gitea#22578

Signed-off-by: Andrew Thornton <[email protected]>
zeripath added a commit that referenced this issue Jan 28, 2023
Backport #22611

The code for checking if a commit has caused a change in a PR is
extremely inefficient and affects the head repository instead of using a
temporary repository.

This PR therefore makes several significant improvements:

* A temporary repo like that used in merging.
* The diff code is then significant improved to use a three-way diff
instead of comparing diffs (possibly binary) line-by-line - in memory...

Ref #22578

Signed-off-by: Andrew Thornton <[email protected]>
techknowlogick added a commit that referenced this issue Feb 3, 2023
Our trace logging is far from perfect and is difficult to follow.

This PR:

* Add trace logging for process manager add and remove.
* Fixes an errant read file for git refs in getMergeCommit
* Brings in the pullrequest `String` and `ColorFormat` methods
introduced in #22568
* Adds a lot more logging in to testPR etc.

Ref #22578

---------

Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: delvh <[email protected]>
Co-authored-by: 6543 <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
zeripath added a commit to zeripath/gitea that referenced this issue Feb 7, 2023
Backport go-gitea#22633

Our trace logging is far from perfect and is difficult to follow.

This PR:

* Add trace logging for process manager add and remove.
* Fixes an errant read file for git refs in getMergeCommit
* Brings in the pullrequest `String` and `ColorFormat` methods
introduced in go-gitea#22568
* Adds a lot more logging in to testPR etc.

Ref go-gitea#22578

---------

Signed-off-by: Andrew Thornton <[email protected]>
lunny pushed a commit that referenced this issue Feb 13, 2023
Backport #22633

Our trace logging is far from perfect and is difficult to follow.

This PR:

* Add trace logging for process manager add and remove.
* Fixes an errant read file for git refs in getMergeCommit
* Brings in the pullrequest `String` and `ColorFormat` methods
introduced in #22568
* Adds a lot more logging in to testPR etc.

Ref #22578

---------
Signed-off-by: Andrew Thornton <[email protected]>
@tdesveaux
Copy link
Contributor

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: dontnod@80e504c

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: dontnod@07b38b7

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?

@Sebazzz
Copy link

Sebazzz commented Mar 20, 2023

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.

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Mar 21, 2023

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: dontnod@80e504c"

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: dontnod@07b38b7"

I have some questions about it:I guess there is a concurrency problem

  • Adding "--no-write-commit-graph" might affect performance?
  • 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)?

@tdesveaux
Copy link
Contributor

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.

@wxiaoguang
Copy link
Contributor

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?

zeripath pushed a commit that referenced this issue Mar 26, 2023
Reference:
#22578 (comment)

Credits to @tdesveaux , thank you very much for catching the problem. If
you'd like to open a PR, feel free to replace this one.

Git reports fatal errors for ambiguous arguments:

```
fatal: ambiguous argument 'refs/a...refs/b': unknown revision or path not in the working tree.
        Use '--' to separate paths from revisions, like this:
        'git <command> [<revision>...] -- [<file>...]'
```

So the `--` separator is necessary in some cases.
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Mar 26, 2023
…23606)

Reference:
go-gitea#22578 (comment)

Credits to @tdesveaux , thank you very much for catching the problem. If
you'd like to open a PR, feel free to replace this one.

Git reports fatal errors for ambiguous arguments:

```
fatal: ambiguous argument 'refs/a...refs/b': unknown revision or path not in the working tree.
        Use '--' to separate paths from revisions, like this:
        'git <command> [<revision>...] -- [<file>...]'
```

So the `--` separator is necessary in some cases.
6543 pushed a commit that referenced this issue Apr 4, 2023
…23720)

Backport #23606 by @wxiaoguang

Reference:
#22578 (comment)

Credits to @tdesveaux , thank you very much for catching the problem. If
you'd like to open a PR, feel free to replace this one.

Git reports fatal errors for ambiguous arguments:

```
fatal: ambiguous argument 'refs/a...refs/b': unknown revision or path not in the working tree.
        Use '--' to separate paths from revisions, like this:
        'git <command> [<revision>...] -- [<file>...]'
```

So the `--` separator is necessary in some cases.

Co-authored-by: wxiaoguang <[email protected]>
@brechtvl
Copy link
Contributor

brechtvl commented Jul 19, 2023

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.

@lunny
Copy link
Member

lunny commented Jul 19, 2023

We can have a cron job to cleanup the commit-graph-chain.lock files at the backend. It cannot be avoid at the moment.

@liuyangovo
Copy link

liuyangovo commented Mar 29, 2024

@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:

  1. The command log below shows a lot of execution, with each process processing quickly ,After processing, continuously generate new processes. so, Gitea has been frequently performing similar processing, which consumes a lot of CPU to process, At the same time, the computational efficiency of each CPU is very low, resulting in high loads
  2. The conflict detection trigger of Gitea is very strange. While the current branch has not been updated, a conflict check has already been performed, but after a period of time, a new conflict detection will be performed again

Problem:

  1. I want to know the triggering mechanism of Gitea conflict checking?
  2. I would like to request your help and try to reduce the time and frequency of conflict checks

image
image

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

@liuyangovo
Copy link

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

@wienans
Copy link
Contributor

wienans commented Oct 29, 2024

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?

@lunny
Copy link
Member

lunny commented Oct 30, 2024

As a workaround, just find all commit-graph-chain.lock files and delete them.

@lunny lunny added the issue/workaround it is or has a workaround label Oct 30, 2024
@bsofiato
Copy link
Contributor

bsofiato commented Nov 8, 2024

@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
Copy link
Member

lunny commented Nov 8, 2024

@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.

@bsofiato
Copy link
Contributor

bsofiato commented Nov 8, 2024

Makes sense. I'll work on that :) I think by next week I should have both PRs done.

@bsofiato bsofiato linked a pull request Nov 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/workaround it is or has a workaround type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.