-
Notifications
You must be signed in to change notification settings - Fork 40
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
SQL Error - Duplicate key violation #48
Comments
What happens when you update the plugin? We observed this when using version 0.2.0 and have since updated to 0.2.5, however it seems that the plugin is not updated since we don't see new functionality like the sub/unsub commands (#42) or the fix for spamming the channel (#38). What is the correct way to update the plugin? |
We don't use the plugin marketplace, instead we put the tarball in the plugin/ directory |
I think it has something to do with the 0.2.5 build. I can reproduce the problem locally running Mattermost in Docker.
However if I build the plugin myself, i.e a 0.3.0 and install that directly after step 2 above, it seems to work correctly. |
Probably related to #54 |
Hello,
When you activate the plugin for the first time, there is no problem.
But when we restart the server or deactivate and reactivate the plugin, there is a key constraint violation error.
2021-03-23 13:47:46.157 UTC [7654] ERROR: duplicate key value violates unique constraint "idx_users_email_unique" 2021-03-23 13:47:46.157 UTC [7654] DETAIL: Key (email)=(rssfeedbot@localhost) already exists. 2021-03-23 13:47:46.157 UTC [7654] STATEMENT: insert into "users" ("id","createat","updateat","deleteat","username","password","authdata","authservice","email","emailverified","nickname","firstname","lastname","position","roles","allowmarketing","props","notifyprops","lastpasswordupdate","lastpictureupdate","failedattempts","locale","timezone","mfaactive","mfasecret") values ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22,$23,$24,$25);
The text was updated successfully, but these errors were encountered: