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

SQL Error - Duplicate key violation #48

Open
pjenicot opened this issue Mar 23, 2021 · 5 comments
Open

SQL Error - Duplicate key violation #48

pjenicot opened this issue Mar 23, 2021 · 5 comments

Comments

@pjenicot
Copy link

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);

@johanhammar
Copy link
Contributor

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?

@pjenicot
Copy link
Author

pjenicot commented Apr 13, 2021

image

indeed, the new instructions are not available

image

I deleted the plugin and reinstalled it but the new instructions do not appear

@johanhammar
Copy link
Contributor

We don't use the plugin marketplace, instead we put the tarball in the plugin/ directory

@johanhammar
Copy link
Contributor

I think it has something to do with the 0.2.5 build. I can reproduce the problem locally running Mattermost in Docker.

  1. Install mattermost-plugin-rssfeed 0.2.0
  2. Enable plugin
  3. Install mattermost-plugin-rssfeed 0.2.5
  4. I get the same problem

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.

@johanhammar
Copy link
Contributor

Probably related to #54

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

No branches or pull requests

2 participants