-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Zombie processes "git-upload-pack" makes Gitea unusable after short period of time #21133
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
Comments
As a very dirt workaround I created this:
|
Same issue with Gitea version 1.17.2 built with GNU Make 4.3, go1.18.6 running non root on top of kubernetes. Gitea is built from source in alpine image. |
Same issue with gitea/gitea:1.17.2-rootless image on top of AWS EKS. After a few minutes from starting, a bunch of zombie processes appear:
During the creation of a new zombie process, the following log entries were created:
If I stop the argocd repo server, no new zombie processes are created. ArgoCD handles the upload packet operation in a special way: |
An example of a zombie process getting stuck:
Debug log:
I couldn't find a way to get the control before the cancel context function was executed. It would also be good to be able to give the kill signal when the context is finished, but it is not possible: In the workaround I found, the context is derived from context.Background() in modules/ssh/ssh.go, and a separate goroutine watch the change of state of the parent context. Source code: 84714c3 Can you suggest a better solution to the problem? |
By following up the discussions, it seems like a solution has been implemented and is planned to be released in Go 1.20: golang/go#50436 (see commit on golang/go@55eaae4). |
Close as looks like it has been resolved. Please feel free to reopen it if it's still a problem. |
For reference, I'm gonna go on a limb and guess this was fixed by #20695 |
Description
Hi, thanks for this fantastic project. Recently I deployed Gitea rootless using Podman from this playbook https://github.com/riotkit-org/core-services .
The instance is quickly becoming unusable, as the number of zombie processes is increasing. After ~3 minutes from restarting the instance I get:
The processes are appearing when doing
git push
from local computer.I see in the log there are EOF's, it may be caused because of my networking which is having sometimes a higher latency.
Gitea Version
1.17.2-rootless
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/blackandred/3593a9b0a73dd913a39860b81f372e20
Screenshots
No response
Git Version
git version 2.36.2
Operating System
Linux 5.4.0-124-generic, Podman 3.4.2
How are you running Gitea?
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: