Closed Quoorex closed 2 years ago
Your upgrade to Nextcloud 22 seems to have partially failed and missed this migration.
Did you run the upgrade through the WebUI? Could it have been a timeout? Do you have logs from when the upgrade occurred?
If you're feeling adventurous and have access to the terminal you can try to execute the migration manually:
php occ migrations:execute dav 1018Date20210312100735
I tried upgrading multiple times, each time restoring a backup afterwards. I tried both upgrading through the WebUI and using the command line. Sometimes the upgrade would go through without reporting any errors, and sometimes I would fail the "checking code integrity" step. Regardless, the upgrade always did eventually finish. I will try to run the migration manually and report back to you.
After enabling the debug mode of Nextcloud and running php occ migrations:execute dav 1018Date20210312100735
the calendar app does now work.
The updater also didn't seem to report any errors during the upgrade process:
Setting log level to debug
Updating database schema
Updated database
Disabled incompatible app: drop_account
Disabled incompatible app: impersonate
Updating <federation> ...
Updated <federation> to 1.12.0
Updating <lookup_server_connector> ...
Updated <lookup_server_connector> to 1.10.0
Updating <oauth2> ...
Updated <oauth2> to 1.10.0
Updating <password_policy> ...
Updated <password_policy> to 1.12.0
Updating <files> ...
Updated <files> to 1.17.0
Updating <activity> ...
Updated <activity> to 2.15.0
Updating <cloud_federation_api> ...
Updated <cloud_federation_api> to 1.5.0
Updating <dav> ...
Fix broken values of calendar objects
Done
0/0 [->--------------------------] 0%
Clean up old calendar subscriptions from deleted users that were not cleaned-up
Done
0/0 [----->----------------------] 0%
Updated <dav> to 1.20.0
Updating <files_external> ...
Updated <files_external> to 1.13.1
Updating <files_sharing> ...
Updated <files_sharing> to 1.14.0
Updating <files_trashbin> ...
Updated <files_trashbin> to 1.12.0
Updating <files_versions> ...
Updated <files_versions> to 1.15.0
Updating <sharebymail> ...
Updated <sharebymail> to 1.12.0
Updating <workflowengine> ...
Updated <workflowengine> to 2.4.0
Updating <admin_audit> ...
Updated <admin_audit> to 1.12.0
Updating <comments> ...
Updated <comments> to 1.12.0
Updating <firstrunwizard> ...
Updated <firstrunwizard> to 2.11.0
Updating <nextcloud_announcements> ...
Updated <nextcloud_announcements> to 1.11.0
Updating <notifications> ...
Updated <notifications> to 2.10.1
Updating <systemtags> ...
Updated <systemtags> to 1.12.0
Updating <theming> ...
Updated <theming> to 1.13.0
Updating <accessibility> ...
Migrate old user config
Done
6/6 [============================] 100%
Updated <accessibility> to 1.8.0
Updating <contactsinteraction> ...
Updated <contactsinteraction> to 1.3.0
Updating <dashboard> ...
Updated <dashboard> to 7.2.0
Updating <federatedfilesharing> ...
Updated <federatedfilesharing> to 1.12.0
Updating <files_pdfviewer> ...
Updated <files_pdfviewer> to 2.3.1
Updating <files_rightclick> ...
Updated <files_rightclick> to 1.1.0
Updating <files_videoplayer> ...
Updated <files_videoplayer> to 1.11.0
Updating <logreader> ...
Updated <logreader> to 2.7.0
Updating <photos> ...
Updated <photos> to 1.4.0
Updating <privacy> ...
Updated <privacy> to 1.6.0
Updating <provisioning_api> ...
Updated <provisioning_api> to 1.12.0
Updating <recommendations> ...
Updated <recommendations> to 1.1.0
Updating <serverinfo> ...
Updated <serverinfo> to 1.12.0
Updating <settings> ...
Updated <settings> to 1.4.0
Updating <support> ...
Updated <support> to 1.5.0
Updating <survey_client> ...
Updated <survey_client> to 1.10.0
Updating <text> ...
Updated <text> to 3.3.1
Updating <twofactor_backupcodes> ...
Updated <twofactor_backupcodes> to 1.11.0
Updating <updatenotification> ...
Updated <updatenotification> to 1.12.0
Updating <user_status> ...
Updated <user_status> to 1.2.0
Updating <viewer> ...
Updated <viewer> to 1.6.0
Updating <weather_status> ...
Updated <weather_status> to 1.2.0
Update app drop_account from App Store
Update app impersonate from App Store
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level
Steps to reproduce
Expected behavior
With Nextcloud 21.0.9 the calendar opens and works just as expected.
Actual behaviour
After the upgrade to Nextcloud 22.2.5 the calendar app doesn't load at all, and WebDAV clients aren't able to synchronize. All other Nextcloud features are unaffected.
Nextcloud log:
Calendar app version
3.2.2
CalDAV-clients used
Thunderbird Lightning, DAVx5
Browser
Brave 1.29.79
Client operating system
Arch Linux
Server operating system
Armbian (Debian Linux for ARM devices) running on a ROCKPro64
Web server
Nginx
Database engine version
PostgreSQL
PHP engine version
PHP 7.4
Nextcloud version
22.2.5
Updated from an older installed version or fresh install
Updated from an older version
List of activated apps
Nextcloud configuration
Web server error log
No response
Log file
Browser log
No response
Additional info
Nextcloud is running inside a Docker container using the linuxserver/nextcloud image.
I already tried finding a solution through the means outlined here: https://help.nextcloud.com/t/update-to-nextcloud-v22-breaks-calendar-app-column-deleted-at-does-not-exist/135942
From what I could gather so far, the "oc_calendars" table is missing the "deleted_at" column after the upgrade. The column does not exist prior to upgrading and neither does it afterwards, but the calendar app starts throwing the aforementioned errors and stops working due to it.