Migrating Owncloud 10.3.2 to Nextcloud

Support intro

Our Amateur Radio club is using Owncloud and I would like to migrate to Nextcloud. Unfortunately it appears that by keeping Owncloud up to date, and not pulling the upgrade trigger soon enough, we’re at a point where there is no simple upgrade path.

We have a pretty large installation: 103 users, 9 groups, 1.6GB of data.

Is there any hope here of accomplishing an upgrade with out a lot of difficulty?

Owncloud version: 10.3.2
Nextcloud version (eg, 12.0.2): 12.0.13 or 13.0.12
Operating system and version (eg, Ubuntu 17.04): Debian 9.11
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.25
PHP version (eg, 7.1): 7.0.33

The issue you are facing:

Upgrading from Owncloud 10.3.2 to Nextcloud 12.0.13 or 13.0.12 fails with

“Exception: Updates between multiple major versions and downgrades are unsupported. Update failed”

Is this the first time you’ve seen this error? (Y/N):

N

Steps to replicate it:

  1. Unpack nextcloud to /var/www/nextcloud and fix perms / ownership
  2. Put owncloud installation in maintenance mode
  3. Backup DB and files
  4. Copy config.php from /var/www/owncloud to /var/www/nextcloud
  5. Run “sudo -u www-data php occ upgrade” in /var/www/nextcloud
  6. Fail

The output of your Nextcloud log in Admin > Logging:

NA

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'updatechecker' => false,
  'instanceid' => ' ... ',
  'passwordsalt' => ' ... ',
  'secret' => ' ... ',
  'trusted_domains' => 
  array (
    0 => 'cloud.our.domain',
  ),
  'datadirectory' => '/srv/www/ownclouddata',
  'overwrite.cli.url' => 'http://cloud.our.domain',
  'dbtype' => 'mysql',
  'version' => '10.3.2.2',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => ' ... ',
  'dbpassword' => ' ... ',
  'logtimezone' => 'CDT',
  'installed' => true,
  'loglevel' => 2,
  'theme' => '',
  'mail_from_address' => 'webmaster',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'our.domain',
  'mail_smtphost' => 'localhost',
  'mail_smtpport' => '25',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

NA

The official migration guide stops with the 10.0.x versions (Nextcloud - Migration guide). The numbering of major versions and the release cycles changed between OC and NC, so I can’t tell you exactly which is the corresponding version in Nextcloud.

I suppose you have a full backup of all data or you just do a migration on a test setup. I’d perhaps try with a newer NC version. oC 10.3.0 was released in October 2019, so I’d try at least NC17, perhaps even NC 18 which was released after that.

It seems only the manual way is possible, the migration tools is not up to date (Migration for OwnCloud 10.3.1 · Issue #9 · nextcloud/owncloud-web-migrator · GitHub).

here a few more posts about migrations from later ownCloud versions:

Thanks, this gives me some ideas to try!