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

Context deadline exceeded during repo-sync-releases operation #26394

Closed
sad75 opened this issue Aug 8, 2023 · 3 comments · Fixed by #26396
Closed

Context deadline exceeded during repo-sync-releases operation #26394

sad75 opened this issue Aug 8, 2023 · 3 comments · Fixed by #26396
Labels

Comments

@sad75
Copy link

sad75 commented Aug 8, 2023

Description

I cannot sync my repositories, Some of them have several thousands of tags:

Error during SyncReleasesWithTags :

$ gitea -c /etc/gitea/app.ini admin repo-sync-releases
2023/08/08 10:23:59 cmd/admin.go:382:runRepoSyncReleases() [W]  SyncReleasesWithTags: unable to PushUpdateAddTag:  
... unable to GetTag:

I tried to increase timeout. But the issue persists.

[git.timeout]
DEFAULT = 36000
MIGRATE = 60000
MIRROR = 30000
CLONE = 30000
PULL = 30000
GC = 6000

Gitea Version

1.20.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

git version 2.39.2

Operating System

linux debian 11.7

How are you running Gitea?

gitea is a standard downloaded build.

Database

MySQL

@sad75 sad75 added the type/bug label Aug 8, 2023
@wxiaoguang
Copy link
Contributor

It seems an old problem ... Call git.InitSimple for runRepoSyncReleases #26396

@sad75
Copy link
Author

sad75 commented Aug 9, 2023

Thank you. I will test the fix

@sad75 sad75 closed this as completed Aug 9, 2023
@sad75 sad75 reopened this Aug 9, 2023
@sad75
Copy link
Author

sad75 commented Aug 9, 2023

Run perfectly

@sad75 sad75 closed this as completed Aug 9, 2023
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Aug 10, 2023
Fix go-gitea#26394

Otherwise, the git module is not initialized and it doesn't respect the
"timeout" config in app.ini
wxiaoguang added a commit that referenced this issue Aug 10, 2023
Fix #26394

Otherwise, the git module is not initialized and it doesn't respect the
"timeout" config in app.ini
silverwind pushed a commit that referenced this issue Aug 10, 2023
Backport #26396 by @wxiaoguang

Fix #26394

Otherwise, the git module is not initialized and it doesn't respect the
"timeout" config in app.ini

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants