-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
E11000 duplicate key error collection #307
Comments
Does this happened after updating your roles collection from 1.x, or at least you still have the index on the |
Yes, it started to happen after the upgrade, I'm not sure what version I had before 1.x or 2.x checking git, it only says I only have 3 roles (admin, patient, provider) in roles collection
|
The roles you show me also are according to the first version of this package. Please run the update script before running any additional commands. First update to Please keep in mind that the update to version 1.x will still leave the old roles in place, which you have to remove manually until #300 is resolved. |
Let me know if there's anything else, but this should solve it. Please ask to reopen if it doesn't. |
Well, here is what I ended up doing, I dropped Things started to work, however, I faced an issue with Turned out that my local MongoDB use newer version 4.2 and by downgrading to version 4.0.10 |
Oh! Thanks for notifying! Could you create a new issue for this? |
If anyone else comes across the same problem, the sequence of upgrading is important.
|
I'm trying to create a number of new roles and I keep getting this error
alanning:[email protected]
Any ideas?
The text was updated successfully, but these errors were encountered: