-
-
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
Unable to delete all unactivated accounts #31480
Comments
Are these accounts new? If this is the case, what I believe is happening currently is that when you run this task, we would only delete accounts that are older than some amount of time. Looking at this particular task in the code, we would only delete inactive users that are older than 3 hours by default (this would be different if you explicity set ACTIVE_CODE_LIVE_MINUTES in your config). |
Not all inactive accounts could be deleted automatically, there are more checks in DeleteInactiveUsers |
I set ACTIVE_CODE_LIVE_MINUTES to 180 (was empty). Still nothing. Inactive account from Dec 13, 2023 not deleted. The only thing I can think of is that I'm getting this green confirmation but the tasks is not executed. |
I'm experiencing this problem as well with gitea 1.22.3. The newest account was made 7 days ago. Did you have any luck finding a workaround? |
I don't remember it. Since I didn't close this issue I think I've removed them manually from database using the condition from the code. |
I created #32318 to log the error reason. |
Add log for the problem go-gitea#31480
Same problem here. [edit] |
Backport #32540 by @lunny Fix #31480 Co-authored-by: Lunny Xiao <[email protected]>
Description
I'm trying to get rid of spam users (over 800 of them)
I changed them to inactive following instructions from https://blog.roberthallam.org/2022/11/mass-delete-remove-purge-users-in-gitea/
Because I'm using sqlite3 it was:
UPDATE user SET is_active = 'f' WHERE email != 'my@email';
In the UI all the users except mine are marked inactive.
Then I run
Delete all unactivated accounts
It says
Started Task: Delete all unactivated accounts
using greenish text.Nothing happens. I still have over 800 accounts.
Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/ggodlewski/c17fb25618c3fac0539ae6891da66b6f
Screenshots
Git Version
2.45.1
Operating System
docker @ ubuntu
How are you running Gitea?
docker container: gitea/gitea:latest
Database
SQLite
The text was updated successfully, but these errors were encountered: