-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
System address book creation errors on concurrent user creation #41996
Comments
The transaction in |
👀 |
Whoops, good catch. Apparently had a different local branch checked out, let me see if that is actually related |
Also happens on plain master, updated the trace above |
As workaround, you could try to run dav:sync-system-addressbook before user:add to create the system addressbook upfront. |
Yep, that works |
My attempt: #42052 Maybe I'm overengineering this but it's hard to make the db operations work under all conditions |
Hmm, what about a migration to create the sab when installing Nextcloud? |
Only fixes a read after write, not the insert conflict. Over engineering it is. |
So this sounds like an edge case I just trigger with automatically configuring my dev setup, but still worth to report
Steps to reproduce:
An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'principals/system/system-system' for key 'addressbook_index'
@ChristophWurst Do I read the trace correctly that this happens only because the system address book was not created initially and is then trying to get created by each of the occ user:add calls?
The text was updated successfully, but these errors were encountered: