-
-
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
Can't delete repository: HTTP 500 DeleteRepository: too many SQL variables #5238
Comments
@mappu what about in XORM logs? |
(I tried this again today with Gitea 1.6.0). When going to delete the affected repository, I get an 500 error in the web interface In gitea.log:
In xorm.log:
|
That's 1129 things it tried to delete in a single SQL statement. But SQLite's According to https://www.sqlite.org/limits.html the 999 cap can be lowered at runtime, but, I don't know if it can be raised. Probably this statement should be split up, to delete in chunks of a few hundred at a time. EDIT: This bug would affect deleting any Gitea repository on SQLite if it has 1000 or more issues. |
The 1.6.1 update did fix the issue for me. I successfully deleted the affected repos. Thank you! |
[x]
):Description
Try to delete a Gitea repository with a lot of issues, some created by API.
The page returns 500
In the logs, there is this message:
The repository still exists and was not deleted.
The text was updated successfully, but these errors were encountered: