ERROR: insert or update on table "userGroups" violates foreign key constraint "usergroups_groupid_foreign"; DETAIL: Key (groupId)=(3) is not present in table "groups". #5271
Replies: 2 comments 1 reply
-
I have the same problem. How the settings are made: 1 - Access the Administration environment What is happening: The user who self-registers, after informing the login data, an error message is displayed. Questions: |
Beta Was this translation helpful? Give feedback.
-
Hi there, although this thread is quite ancient I happened to stumble upon it trying to solve the same problem... My Case and SolutionIn my case I am using GOIDC / OAuth2 but I tend to "believe" that this does not matter since I also happened to have an auto assignment in place that was functioning very well in the first place... After having some Groups defined and two of them used for some time in that auto assignment I decided that one of those groups was not necessary any more and I deleted it in the groups configuration of admin interface, not remembering that this group is member of the auto assignments in authorization configuration... After that, each and every auto assignment failed and threw the above mentioned errors in postgres container... What I had to do to fix it (your mileage may vary) is:
TL/DR:WikiJS: 2.5.305 This is a Software Integrity Issue in wikijs administration, if a group gets deleted that is used for auto assignment it vanishes from display in the auto assign group assignment control but is not deleted from the auto assign configuration. @ maintainerPlease check the referential integrity when a group gets deleted, obviously there is an entry left in the auto assign configuration...
|
Beta Was this translation helpful? Give feedback.
-
Unexpectedly occurred after a Debian reboot and is persistent:
Registration does not longer assign users to the specified groups. Altering and recreating those groups, changing the self-registration default group and restarting the application do not solve the problem. Disabling and enabling the self-registration does not work either.
Beta Was this translation helpful? Give feedback.
All reactions