Repository navigation
Can't switch to SQL DB - Violation of UNIQUE KEY constraint 'UK_CLI_SCOPE'. #16777
Closed
BrianDWatkins
started this conversation in
Archive
Replies: 1 comment 2 replies
|
I was able to resolve the issue by deleting all tables in the database and re-running the config with --transaction-xa-enabled=false This fixed my current issue. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I got my Keycloak instance all up and running, and am in the process of preparing it for production.
When I enabled the MSSQL database connection, it created all of the tables, but when it tries to run, it seems to be trying to re-add values that already exist in the tables.
The main error I'm seeing is Violation of UNIQUE KEY constraint 'UK_CLI_SCOPE'.
I have tried building with xa transactions false, and have also cleared out the table in question and it is re-built and the error persists.
Has anyone a solution for this?
All reactions