-
-
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
[Bug]: Database error when running migration 1027Date20230504122946 for app dav: Field 'id' doesn't have a default value #39007
Comments
Searching in MariaDB for columns with "id" i got this:
|
This really looks like your I guess you need to alter your table. No idea how you ended up like that, but I don't actually think it was the mentioned migration - it just brought it out. When we provision that table in a new installation we definitely set auto increment and primary key that server/apps/dav/lib/Migration/Version1004Date20170825134824.php Lines 44 to 50 in e24efd1
|
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug description
This bug report is similar to #38902 however it's a different outcome.
Updating my Nextcloud to 27 throws the following error and logs:
Database error when running migration 1027Date... for app dav An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value
I got the migration working again with following things:
I used
occ config:list
to list all entries andocc config:app:delete dav <entry>
to delete all entries from dav. After this I had to reinstall the Calendar app.But entering the command:
dav:sync-system-addressbook
suggested by @ChristophWurst still goes the error message:Steps to reproduce
docker exec -it nextcloud updater.phar
docker exec -it nextcloud occ upgrade
Expected behavior
The migration works and I can access Nextcloud again
Installation method
Community Docker image
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: