-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Gitea 1.17.0 mirror update cron error #20667
Comments
What version of MySQL are you running? |
…set it The documentation allows the mirror update queue to add all potential mirrors to the queue by setting the limits negative. Unfortunately a change to the iterator code has missed this subtly and resulted in passing negative numbers to the LIMIT SQL statement. This causes bugs on some DB systems. Fix go-gitea#20667 Signed-off-by: Andrew Thornton <art27@cantab.net>
Aha I see the issue. Workaround for the moment is to remove your settings on https://docs.gitea.io/en-us/config-cheat-sheet/#cron---update-mirrors-cronupdate_mirrors I would strongly recommend that you re-review your settings related to this - the cron code has changed to make the queue limits work much better. |
yeah I figured it out too a couple of days ago, just had no time to update the issue here thank you for the update |
Description
"Update mirrors" cron does not finish due to a SQL query error as reported in system notices and in logs:
Gitea Version
1.17.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.25.1
Operating System
Ubuntu 20.04.4
How are you running Gitea?
Running a Gitea binary downloaded from https://gitea.io/ as a systemd service on Ubuntu 20.04.
MySQL version is: 8.0.30
Database
MySQL
The text was updated successfully, but these errors were encountered: