Migrating from ownCloud to Nextcloud

Damn, havenā€™t seen this linkā€¦

Iā€™ve jump right from ownCloud 9.1.x to Nextcloud 11.0.x and skipped Nextcloud 10.0.xā€¦ Is it a problem? And more importantly, is it possible to fix the problem?

I just moved successfully from Owncloud to Nextcloud like written here: https://nextcloud.com/migration/

Owncloud 9.1.3 --> Nextcloud 10.0.3 --> Nextcloud 11.0.1

So far everything I need works. Thanks!

Oh shit, it is becoming a fail hereā€¦ I canā€™t connect using my phone, it says that the server took too much time to answer (Iā€™m on WiFi and the server is well recognized when I enter the URL)

I donā€™t know how to fix this problemā€¦ help please!

Edit: Iā€™m sure itā€™s linked with my previous post about the amount of transaction when accessing the main page. Itā€™s awfully slowā€¦ should have never jumped to Nextcloud :frowning:

creak - it should be possible to go from ownCloud 9.1 to Nextcloud 11, that shouldnā€™t be the issue. But you sure as hell do have a weird bug and I would like to ask you to file an issue for that :wink:

What do the logs say etc etc? See https://github.com/nextcloud/server/issues/new

Sorry for the bug, this shouldnā€™t happen :frowning:

Everyone, Iā€™ve written an extensive post on how to upgrade. See it here: https://nextcloud.com/blog/protect-your-privacy-time-to-upgrade-to-nextcloud-11./

I would really, REALLY like feedback. I had it reviewed by a few people but, as you see, I try to describe how to go from ownCloud 5.0 (!!!) to Nextcloud 11 and darn, that is hard :wink:

A post was split to a new topic: How to install from OC 8.2

Dear,
thank you for a fantastic cloud server :slight_smile:

I am trying to sort out an official method for upgrading + migrating Owncloud on Mageia 5 to Nextcloud on Mageia 6.
Mageia 6 have been in a soon-to-bee released rolling like state for unusually long now but soon really it is out. (i have been using it for soon a year on my production machines)

I am a user and feedbacker on Mageia, and when i installed Owncloud myself - currently 9.0.5 on Mageia 5 - i wrote the Owncloud/Nextcloud wiki page. Now i would like to actualise the upgrading procedure description, and make sure Mageia 5 and 6 have all versions needed;

As you know owncloud/nextcloud upgrades must not skip major (x.x even) versions, and need manual intervention. Therefor, on Mageia we put the new packages in backports repo so they are not automatically upgraded.
As per the most common info, the plan have been to upgrade Owncloud in steps up to 9.0.x on Mageia 5, before the complete system is upgraded to Nextcloud, at version 10. https://wiki.mageia.org/en/OwnCloud#Upgrading

But now i note that https://nextcloud.com/migration/ now do not list Owncloud 9.0 to NExtxloud 10 as a possibl epathe so we should upgrade ownloud one more step, to 9.1, before switching to Nextcloud 10. Is that an error on that page (i cannot see that info anywhere else, and not in this thread either). Is it still OK to go Owncloud 9.0.5 to Nextcloud 10 ?

Time have passed and current Nextcloud version is 11. Optimally that would be the default version on new Mageia 6 installs to. How reliable is an update from Owncloud 9.1.latest to Nextcloud 11?
Are there only problems regarding plugins, and if so, do we have a list or other info?

If we need go via Nextcloud 10, we can put it in ā€œbackortsā€ (really abusing the intention of that repo, but what to doā€¦) and recommend users to first upgrade osncloud on magiea 5, then uinstall it so it do not pull in Nextcloud at system upgrade, upgrade to Mageia 6, then manually install Nextcloud 10 from backports, then upgrade to Nextcloud 11 in core repo. A bit crazy, butā€¦

Any comments or helpful knowledge are welcome.

BTW, on the client side, can settings etc be overtaken from ownCloud client 2.x to current Nextcloud client?

Even better it was suggested by one of our packagers to get Nextcloud 10 into Mageia 5, and only have Nextcloud 11 and later in Mageia 6.

Still the question: Should we use Owncloud 9.1.latest as an intermediate step between Owncloud 9.0.5 and Nextcloud 10 ?

And now i found at http://blog.jospoortvliet.com/2016/06/migrating-to-nextcloud-9.html

For Nextcloud 11 we have a ambitious road map already but weā€™ll still enable migration from ownCloud 9.1 to Nextcloud 11 so you can migrate at your leisure!

That would be wonderful. Does it work?

Upgrading from ownCloud 9.1.x to nextcloud 11 does not work:

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

Nextcloud - Migration guide also says only 9.1 to 10 is possible.

Iā€™m also having problems migrating from OC 9.1.6 running on Ubuntu 16.04 w/ php7.

Migrate to:

  • NC10: Downgrade not supported
  • NC11: ā€œException: Updates between multiple major versions and downgrades are unsupported. Update failed.ā€

Iā€™ve tried the manual approach for both NC versions as well as the automatic updater approach for NC11.

Any news on a possible fix?

I edited the version string in the config.php file from 9.1.6 to 9.1.5 and the update to 10.0.5 went through without a problem. I then updated from 10 to 11 and finally Nextcloud 12 with the internal updater which worked without a problem.

That may work, but Iā€™m not prepared to potentially screw up my database in more or less subtle ways by doing this hacky workaround. Thus, Iā€™m requesting an officially tested migration process.

@worric Here is an more or less official statement on this problem:

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