-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
gnutls_handshake() failed: The TLS connection was non-properly terminated #26063
Comments
Are you able to clone that repo on the server with just your Unix user account? That feels like it might be a git error that's floating up into Gitea |
All affected repors are mirrored from Github. And I didn't see this error for months with other Gitea versions. |
Tje repo from the initial post is: https://github.com/raviyasas/spring-boot-hibernate-demo |
Does git clone work when running on that server for that repo? |
Yes, I can clone the project from github and my gitea instance. I'm using gitea no for ~3 years. And I had less problems in this time. I have a lot of mirrors which. The cron is running every 4h and need 6-7 days for all mirrors. With the 1.20.0 version I didn't saw
but now with 1.20.1 7 times. This is not a repo problem. But looks like a gitea problem. |
This
was the stacktrace. Smetimes my IP will be blocked by Github and I have wait some time. But in this case I got every time othe error in gitea. |
After I updated to 1.20.0 I saw high CPU usage on my system comparing to 1.19.x. Cause you changed how the queues works. In 1.19.x my configuration was
Now I changet it to
Cause MAX_WPRKERS is 10 as default. And in this case my system runs on 100% cpu usage. When you change parameters, than this should be shown after the Gitea restart. For exampe on the first Gitea start in the browser or in the log. |
Could you run |
Here the ouput: I didn't make any apt update at this time. I tried to reproduce the problem. But I can't. |
I can see two questions here.
|
I think we can do this: Calculate MAX_WORKERS default value by CPU number #26177 On your system, the default MAX_WORKERS will be "2" then. ps: the |
To avoid consuming user's 100% CPU, limit the default value of MAX_WORKERS Fix #26063 (the CPU 100% problem mentioned in it)
To avoid consuming user's 100% CPU, limit the default value of MAX_WORKERS Fix go-gitea#26063 (the CPU 100% problem mentioned in it)
Description
After upgrade to 1.20.1 I see some of this
Failed to update mirror repository '/var/lib/gitea/repositories/raviyasas/spring-boot-hibernate-demo.git': fatal: unable to access 'https://github.com/raviyasas/spring-boot-hibernate-demo.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
I run 1.20.0 for some days and I didn't see this error. My mirrors will be updated every 4h.
error after update mirrors.
Gitea Version
1.20.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.41.0
Operating System
Ubuntu 20.04.6
How are you running Gitea?
Precompiled gitea-1.20.1-linux-amd64
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: