Exception: 'UNIQUE constraint failed #79

Closed
opened 2025-11-15 06:43:05 +00:00 by asdfjkllkjkl · 1 comment

Any ideas how to fix this? Keep getting the following error after login:

Exception caught: SQLite Error 19: 'UNIQUE constraint failed: users.username'.

StackTrace: at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location ---
at OF_DL.Helpers.DBHelper.CreateUsersDB(Dictionary`2 users)

Any ideas how to fix this? Keep getting the following error after login: Exception caught: SQLite Error 19: 'UNIQUE constraint failed: users.username'. StackTrace: at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken) --- End of stack trace from previous location --- at OF_DL.Helpers.DBHelper.CreateUsersDB(Dictionary`2 users)
Collaborator

One of the creators you follow changed their username in a weird way, like deleting one account and renaming a second account to the name of the first one. Delete your users.db file in the main ofdl folder (or the config folder if using Docker).

One of the creators you follow changed their username in a weird way, like deleting one account and renaming a second account to the name of the first one. Delete your users.db file in the main ofdl folder (or the config folder if using Docker).
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sim0n00ps/OF-DL#79
No description provided.