-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug]: Database error when running migration 1027Date20230504122946 for app dav: Duplicate entry '58' for key 'PRIMARY' #38873
Comments
This comment was marked as outdated.
This comment was marked as outdated.
I don't think it's the same as #38902. Reopening. |
The problematic INSERT happens at https://github.com/nextcloud/server/blob/v27.0.0/apps/dav/lib/CardDAV/CardDavBackend.php#L986-L994. It writes to the table (oc_)addressbookchanges. The table's primary key is The INSERT does not specify a value for |
https://jira.mariadb.org/browse/MDEV-8827 sounds similar. @mod25 could you check if your DB has that issue? What happens if you run
? |
If anyone is stuck in the upgrade please apply #39005 and try again. |
@ChristophWurst here you go
|
@ChristophWurst new Version1027Date20230504122946.php #39005 fixed my issue. Upgrade to Version 27.0 (web version not cli) has been completed. |
Hello
The same insert at line 994 of /var/www/nextcloud/apps/dav/lib/CardDAV/CardDavBackend.php as mod25. Regards, |
Closing as OP's matter was resolved. @lbegault I suggest a dedicated Issue if still experiencing. |
Bug description
Hey community,
i use nextcloud on raspberry 4 with ubuntu. Last week watchtower updated NC docker image to Version 27.0.0. After opening website i get following issue on update:
Exception: Database error when running migration 1027Date20230504122946 for app dav An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '58' for key 'PRIMARY'
Detaillierte Protokollmeldungen
Das Update ist fehlgeschlagen. Bitte melden Sie dieses Problem an die Nextcloud Community.
Maybe someone know how to get back online with my nc instance.
thank you
Steps to reproduce
run on website update assistant
Expected behavior
run Version 27.0.0
Installation method
Community Docker image
Nextcloud Server version
27
Operating system
None
PHP engine version
None
Web server
None
Database engine version
MariaDB 11.0.2
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
i guess this is the one
Additional info
No response
The text was updated successfully, but these errors were encountered: