Upgrade to version: 22.2.9.0 stuck on Remove activity entries of private events

Nextcloud version : 22.2.3.0
Operating system and version : Ubuntu 20.04.3 LTS
Apache or nginx version: Apache
PHP version : 7.4

The issue you are facing:
I have upgraded to version 22.2.3.0
running the occ upgrade command got stuck at

Updating <dav> ...
Fix broken values of calendar objects

 Done
    0/0 [->--------------------------]   0%

After half an hour i terminated the update and started an occ maintenance:repair

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
 - Repair MySQL collation
     - All tables already have the correct collation -> nothing to do
 - Repair mime types
 - Clean tags and favorites
     - 0 tags of deleted users have been removed.
     - 0 tags for delete files have been removed.
     - 0 tag entries for deleted tags have been removed.
     - 0 tags with no entries have been removed.
 - Repair invalid shares
 - Move .step file of updater to backup location
 - Add move avatar background job
     - Repair step already executed
 - Add preview cleanup background jobs
 - Fix potential broken mount points
     - No mounts updated
 - Repair language codes
 - Install new core bundle components
 - Add log rotate job
 - Clear frontend caches
     - Image cache cleared
     - SCSS cache cleared
     - JS cache cleared
 - Clear every generated avatar on major updates
 - Add preview background cleanup job
 - Queue a one-time job to cleanup old backups of the updater
 - Cleanup invalid photocache files for carddav
 - Add background job to cleanup login flow v2 tokens
 - Remove potentially over exposing share links
     - No need to remove link shares.
 - Clear access cache of projects
 - Reset generated avatar flag
 - Keep legacy encryption enabled
 - Check encryption key format
 - Remove old dashboard app config data
 - Add job to cleanup the bruteforce entries
 - Queue a one-time job to check for user uploaded certificates
 - Repair DAV shares
 - Add background job to set the lookup server share state for users
 - Update name of the stored view
 - Fix component of birthday calendars
     - 3 birthday calendars updated.
 - Regenerating birthday calendars to use new icons and fix old birthday events without year
     - Repair step already executed
 - Fix broken values of calendar objects
    0 [->--------------------------]
 - Registering building of calendar search index as background job
     - Repair step already executed
 - Register building of social profile search index as background job
 - Registering background jobs to update cache for webcal calendars
     - Added 0 background jobs to update webcal calendars
 - Registering building of calendar reminder index as background job
     - Repair step already executed
 - Clean up orphan event and contact data
     - 0 events without a calendar have been cleaned up
     - 0 properties without an events have been cleaned up
     - 0 changes without a calendar have been cleaned up
     - 0 cached events without a calendar subscription have been cleaned up
     - 0 changes without a calendar subscription have been cleaned up
     - 0 contacts without an addressbook have been cleaned up
     - 0 properties without a contact have been cleaned up
     - 0 changes without an addressbook have been cleaned up
 - Remove activity entries of private events

This also is stuck and keeps not progressing no matter how long i wait.

I hope you have some hints what i can try next.

Thanks a lot
Best Regards
Ruediger

You can try to remove the .step file in /path/to/nextcloud/data/folder/updater-<XXXXXXXXXXXX>/

Hi,

Thanks for the hint but sadly this did not change anything at all.
Neither upgrade nor repair is working beyond the point i described above.

Is there anything else i can try?

Thanks a lot
Ruediger

Would it be a solution do delete the Calendar?
If so, how can i do that?

Can i downgrade to 21.0.7 again?
Is it just like exchanging the application files and start the occ upgrade again?

Is there no one who has an idea what i can do now?
any help is very welcome

Thanks so much
Ruediger

Hi,

for now it seems i have my nextcloud at least up an running again.
I restored the 21.0.7 files and executed occ upgrade again.
This seems to have done the trick and downgraded my DB again to the lates 21* release.

Now i was able to access all again.

Question remains, why the upgrade to 22.2.3 was not successfull.

If anyone has some ideas how to upgrade safely to the newest versions I would be very happy.

Thanks
BR
Ruediger

Hi again,

after a while i tried to upgrade again, now its Version 22.2.9 im trying to install.
Sadly i am running into the same issues again.

The upgrade process is stuck at: Repair step: Remove activity entries of private events

What can be the issue here?
It would be a shame if i have to stay at the latest 21.x.x version because of that :frowning:

I really hope someone can help me this time…

Thanks so much
Ruediger

Hey again…
I really need some help…
Im stuck at Version 21.x.x

Whenever i try to update i am stuck at
Repair step: Remove activity entries of private events

The update process wont pass that step.

Is there any way I can delete the activity entries for private events manually?
What is that anyway?

Thanks a lot!

I finally was able to find the solution by myself.

It seemed that something with my calendar or at least with the activities saved for it was wrong.
I deleted the whole calendar and then I was able to use the ./occ maintenance:repaircommand and it was finally running until the end.

After that it was possible to upgrade to all the newest major versions step by step.
Now I am again on the latest version.

Take care