Migrating from ownCloud to Nextcloud

I also get the error "NC11: ā€œException: Updates between multiple major versions and downgrades are unsupported. Update failed.ā€ I am migrating from OwnCloud 9.1 to NextCloud 11.0.3.

This thread also discusses that error:

Also see this bug:

Is there any new information from the NextCloud development team on this?

@alfred Thanks, I guess itā€™s practically deemed safe to upgrade by changing the version info in config.php then (and, from what I gather, possibly in the version.php file too). I will test this within the next few days.

1 Like

Make a dump of the database before upgrading and make a backup of everything important (config and data folder most of the time) in case something goes wrong. Staying on the safe side is always a good practice.

So I successfully migrated to Nextcloud 11.0.3 using the version modification trick in config.php. My process was:

  • From Owncloud 9.1.6 -> Nextcloud 10.0.5
    • download/verify/unpack Nextcloud 10.0.5
    • copy config.php from /owncloud/config and change version to 9.1.5.1
    • run occ upgrade
  • From Nextcloud 10.0.5 -> 11.0.3
    • download/verify/unpack Nextcloud 11.0.3
    • copy config once more
    • run occ upgrade

The only hiccup I got was nextcloud not redirecting properly, particularly when typing https://example.com/nextcloud without the slash at the end. On my other server also running nextcloud, the apache access.log revealed two 302 redirects when accessing the nextcloud instance in the same way: one from /nextcloud to /nextcloud/, and one more from /nextcloud/ to /nextcloud/login.

Turns out I had forgotten to modify the ā€œoverwrite.cli.urlā€ and ā€œhtaccess.RewriteBaseā€ settings in config.php to reflect the move from /owncloud to /nextcloud. Afterwards I ran ā€œocc maintenance:update:htaccessā€ and it all seems to work as expected.

So now Nexctcloud 10.0.6 is out and as mentioned here, upgrade from Owncloud 9.1.6 should work with that. But there ist no hint in the changelog. Does anybody know if it works out of the box now?

Cheers!

Upgraded and migrated to Nextcloud from ownCloud. Doing this was easier and simpler than just upgrading ownCloud.

Used your howto upgrade/migrate from the command line. Simply brilliant!

Please to have finally migrated.

Thank you for the accurate, straightforward instructions.

2 Likes

Hi Lukas Reschke, Iā€™m thinking of migrating from ownCloud 10.0.3 to nextCloud 12.0.3
Is this a supported migration path and if so should I just follow the usual upgrading steps as shown in your post?
Thanks,
Cliff

Itā€™s planned for NC 12.0.4:

Or wait for an upgrade from OC 10 to NC 13:

1 Like

OK, thatā€™s great, thanks. Iā€™ll wait for Nextcloud 12.0.4

hello,

i tried the manual way to go from oc 10.0.3 to nextcloud to no avail.
can we expect to see 12.0.4 anytime soon?

Or is there another way to upgrade?

Thanks

12.0.4 is in RC2, we thought there was an issue but we canā€™t reproduce so while we will make a RC3 (better safe than sorry), we are 99% sure going to publish it on Monday.
This version will allow upgrading from oC 10.0.4 and earlier to Nextcloud.

:tada:

1 Like

Still seems like the migration script in https://nextcloud.com/migration/ is broken for owncloud 10.0.3.
Any suggestions how to migrate to nextcloud 12.0.4?

1 Like

Iā€™m trying to migrate from ownCloud 10.0.3.3 to Nextcloud 12.0.4 but get the error:
Current version is 10.0.3.
Could not determine migration path to Nextcloud.

I have been waiting for Nextcloud 12.0.4 as I understood this would support migration from ownCloud 10.0.3.
Am I wrong or am I doing something wrong?
Thanks,
Cliff

Hi Donn - did you find a solution to this migration as I have the same problem?

Should be fixed now, btw :wink:

Strategy question: Migration from Owncloud to Nextcloud

Dear Nextcloud community,
I am new to Nextcloud and currently running an Owncloud server.
I would like to migrate to Nextcloud - however, I do not fully understand what is the best strategy here.
I am looking at this issue for quite a while now, and if I got this right there is/was never a way to migrate from the current (stable) version of Owncloud (e.g. 10.0.6) to Nextcloud, right?

Even for the new Nextcloud 13 it does not work to migrate from Owncloud 10.0.6.
The Migration Tool works, but after that I get the error that the upgrade is not supported.

To the Nextcloud Team: What is the current strategy here: Do I have to stop updating Owncloud and then wait until Nextcloud supports the migration to the outdated Owncloud version or are there any plans to support an migration from a current release?

Many thanks in advance for you input.

Thatā€™s the only strategy for similar internal versions of NC and OC (NC 12 and OC 10). For NC 13, this should be easier and a bit less dependend on the actual version. However, the migration app requires a specific migration path to be added.
For NC 13, the best is to ask a migration path in the repo of the migration tool:

Keep in mind that NC 13 has been released this week and a couple of things probably need to be fixed before handling the migration stuff. Iā€™d schedule a migration to NC 13.0.1 mid-March (https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule).

If you want to test migration and check for problems before, Iā€™d use a small test setup with similar config to your real setup. Manual migration should work (like a manual major upgrade: delete everything but the config and data folder, place code from NC 13, fix permissions and run occ upgrade from terminal).

Google got me here, thanks for the nice guide!

We currently have a working OC-10.x with users and data Iā€™m looking to replace with Nexcloud instead.

Problem is this OC-server initially started out as a test-server and a show-case - just a plain vanilla setup using sqlite, and was received with clamor by the users. It follows I never got the chance to tweak it properly with mysql or mariadb instead of test-casing it with sqliteā€¦

Iā€™m now between the proverbial rock and the hard place and torn between options.

Basically, is there a easy-ish way to have NC using mysql and also retain the current users and data?
Is there a way to do this at all?

A post was split to a new topic: Migrate from ownCloud (different server)

Is there any possibility to migrate from OwnCloud 10.7.4 I tried to automatically upgrade through web interface tool, everything went good exect that after all I got message:
This version of Nextcloud is not compatible with > PHP 7.2.
You are currently running 7.3.6.

Than I tried manually (from CLI) migrate to Nextcloud 12 with the same result, and to Nextcloud 21 and that I got message: Migration between maior versionā€¦

I also tried to upgrade to 20.0.4 but got the same message:
Updates between multiple major versions and downgrades are unsupported.