Skip to content
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

[Question] UNIQUE constraint failed: users.name #344

Open
rhetr opened this issue Jan 30, 2022 · 1 comment
Open

[Question] UNIQUE constraint failed: users.name #344

rhetr opened this issue Jan 30, 2022 · 1 comment
Assignees
Labels
Feature Request A feature request

Comments

@rhetr
Copy link

rhetr commented Jan 30, 2022

i am getting this log error:

[2022-01-30 03:19:15,411]-[INFO]-[JJMumbleBot(5.2.0).WebInterface]: ######### Configuring Web Interface #########
[2022-01-30 03:19:15,414]-[ERROR]-[JJMumbleBot(5.2.0).Database]: UNIQUE constraint failed: users.name
[2022-01-30 03:19:15,414]-[INFO]-[JJMumbleBot(5.2.0).WebInterface]: ######### Configured Web Interface #########

I don't know the cause of this error since when I check the sqlite database manually with select name from users; there are no duplicates.

@rhetr rhetr added the Feature Request A feature request label Jan 30, 2022
@DuckBoss
Copy link
Owner

If I'm remembering right this error is harmless. It should be trying to insert the super user into the database, but if you've run the bot previously that user should already exist resulting in the error. I was pretty sure I accounted for this in the code, but I might have made a mistake somewhere.

I'll look into this as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request A feature request
Projects
None yet
Development

No branches or pull requests

2 participants