Page MenuHomeGitPull.it

Upgrade reyboz ownCloud to nextCloud
Closed, ResolvedPublic

Description

Our friends from InformAzioni.wiki would love to adopt our nextCloud instance, migrating from proprietary services. But actually the Calendar plugin is somehow borked.

First of all we need to upgrade our ownCloud instance from ownCloud to nextCloud. The one served by the Reyboz server.

I've already tried a month ago but the upgrade from 10.3.0 (stable) to the suggested nextCloud 12.0.12 failed, so we need to retry with smaller steps.

Instance:

Event Timeline

valerio.bozzolan triaged this task as Wishlist priority.Jul 3 2020, 11:59
valerio.bozzolan created this task.
valerio.bozzolan reopened this task as Open.Jul 29 2020, 15:53
valerio.bozzolan raised the priority of this task from Wishlist to Normal.
valerio.bozzolan closed this task as Resolved.Sep 29 2020, 21:22

Apparently, upgrading from 10.3.0 to nextCloud is not officially supported.

So we followed these official guides:

https://help.nextcloud.com/t/migration-from-owncloud-10-3-0-to-nextcloud/62618

https://docs.nextcloud.com/server/19/admin_manual/maintenance/manual_upgrade.html

alter table oc_persistent_locks
	drop foreign key FK_F0C3D55BC901C6FF,
	drop owner_account_id;
alter table oc_persistent_locks drop foreign key FK_F0C3D55B93CB796C, drop file_id;

Then:

  1. installed Calendar and Contacts from website again.
  2. reinstalled Contacts application
  3. tried to update to Nextcloud 13.0.12 but at the end of the process:

This version of Nextcloud is not compatible with > PHP 7.2.

  1. commented out hardcoded version limitation from `lib/versioncheck.php
  2. updated to NextCloud 14.0.14 successfully
  3. reinstalled Contacts and Calendar applications
  4. updated to NextCloud 15.0.12
  5. followed instructions from the settings page:
sudo -u www-data php occ db:add-missing-indices
sudo -u www-data php occ db:convert-filecache-bigint
  1. updated to NextCloud 16.0.11 successfully
  2. reinstall Contacts and Calendar applications
  3. followed instructions from the settings page:
sudo -u www-data php occ db:add-missing-indices
sudo -u www-data php occ db:convert-filecache-bigint
  1. updated to NextCloud 17.0.9 successfully
  2. a wild red toast with [Object Object] as message appeared!

surprisedpika

  1. updated to NextCloud 18.0.9 successfully

Oh shit the update frontend page now feels less shitty, giant blue box, awesome.

Still red toast with [Object Object] as message.

  1. followed instructions from the website:
sudo -u www-data php occ db:add-missing-indices
  1. reinstall Calendar application and also Contact application (even if this latest one was working)
  2. updated Contacts application (boh)

Still with the red toast `[Object Object]'. Boh.

  1. re-enable Calendar application
  1. Now nextCloud ask for your password to enable an application. Awesome.
  1. updated to NextCloud 19.0.3 successfully
  2. followed instructions on the website:
sudo -u www-data php occ db:add-missing-indices
sudo -u www-data php occ db:add-missing-columns

Everything works, but the website suggests php-bcmath and php-gmp.

AWESOME IT WORKS