I recently wanted to delete an account who forgot her password. Normally this is straight forward through the admin page. But now after typing the email for confirmation it shows “error deleting user”.
I can create a new different user and delete it without problem. Only that specific user is somewhat stuck. There is nothing special about that user.
Already restarted the docker container. Still “error deleting user”.
Any other way to delete a user?
Also I am using SQLite. Do the mentioned collation/charset issues also apply to SQLite databases?
And do you think the user can be deleted manually off the db? Or do you suggest switching to a mysql db? Could be a little overkill for our small installation.
What I remember is that the user was a member of a organisation when I tried to delete him. Instead the user was only kicked out of that organisation… and got stuck. Maybe that helps.
sqlite> PRAGMA foreign_key_check;
sqlite> PRAGMA integrity_check;
row 41 missing from index sqlite_autoindex_devices_1
row 42 missing from index sqlite_autoindex_devices_1
row 43 missing from index sqlite_autoindex_devices_1
row 44 missing from index sqlite_autoindex_devices_1
row 45 missing from index sqlite_autoindex_devices_1
wrong # of entries in index sqlite_autoindex_devices_1
And additionally I tried:
sqlite3 db.sqlite3 .dump | sqlite3 db.sqlite3.fix
Error: near line 1531: UNIQUE constraint failed: devices.uuid, devices.user_uuid
Also tried exporting to sql and reimporting but gave me an error similar to the dump while reimporting.
Yes, there is an automated dump of the sqlite db every night for backup which is than backed up. But I missed the moment the db got corrupted because it is/was still possible to add/delete entries. Only user management is corrupted so far. So I could have restored a backup when the corruption first appeared but nit knowing which and how many entries I would loose… So I decided to go on with the corrupted db.
Already tried dumping and restoring the than latest version of the sqlite db. See my former posts…