Migrating from ownCloud to Nextcloud

oc_migration_issue

#123

@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.


#124

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.


#125

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.


#126

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?


#127

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.


#128

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


#129

It’s planned for NC 12.0.4:

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


Owncloud 10.0.3 to nextcloud
#130

OK, that’s great, thanks. I’ll wait for Nextcloud 12.0.4


#131

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


#132

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:


#133

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?


#134

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


#135

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


#136

Should be fixed now, btw :wink:


#137

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.


#138

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).


#139

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?