Migrating from ownCloud 10.x to NextCloud 12.x - or not, and if so, how?

Hello everyone

I have watched for a while the progress of Nextcloud and am quite impressed with the way it is going :slight_smile:

So I have attempted several times in the last 4 months to migrate from ownCloud 10 to Nextcloud 12 using the migration tool.

I never went past the screen “Could not determine migration path to Nextcloud” and have remained confused about whether migration was possible and if so how.

It seems I am not alone there from reading posts on several threads including Migration Tool for OwnCloud 10.0.2 and 3 reasons to upgrade your ownCloud instance to Nextcloud and how easy it is

Some background:

  • The migration guide at https://nextcloud.com/migration/ has shown for several months “Note that ownCloud 10.0.1 can not yet be migrated to Nextcloud 12, we are still testing this upgrade path to make sure it is 100% reliable!”

  • But the same guide currently shows also “ownCloud 10.0.2 and 10.0.3 can’t yet be upgraded to Nextcloud 12, which will be fixed with Nextcloud 12.0.1”, and since we are now at Nextcloud 12.0.4 we can assume that the page has just not been updated.

  • The page at https://docs.nextcloud.com/server/12/admin_manual/maintenance/migrating_owncloud.html which seems to apply only to the manual migration process currently states that you can migrate (a) from ownCloud 10.0.0 to Nextcloud 12.0.0 and (b) from owncloud 10.0.2 or earlier to Nextcloud 12.0.1 or later.

  • a post from Netxcloud’s jospoortvliet on 05 Dec 2017 in the thread Migration Tool for OwnCloud 10.0.2 states, talking about the migration tool, that “You should be good now, to migrate, from ownCloud 10.0.4 and lower to Nextcloud 12.0.4.”

  • several persons subsequently reported that the migration tool was not working for them from various versions of ownCloud, including 10.0.1.5, 10.0.3.3 and 10.0.4.0 - always showing the same error “Could not determine migration path to Nextcloud”.

  • I have not yet found any post from someone reporting that the migration tool had worked for them, and for which versions of ownCloud and Nextcloud, but of course you tend to post only when you have a problem.

  • Some posts have advised people for whom the migration tool had failed to instead try the manual migration process. But people seem to be reluctant to try that, probably because one can assume that the migration tool is essentially an automated script running the manual process. So if the script thinks it cannot be done, there is a fair chance that one will run in trouble when doing it manually…

So my questions are:

  • Is the current migration tool indeed meant to allow migration from ownCloud 10.0.4 and earlier up to Nextcloud 12.0.4?

  • Has the current migration tool worked successfully for many people for the whole range of versions from ownCloud 10.0.0 to ownCloud 10.0.4, or are there specific versions (eg 10.0.1.5 or 10.0.3.3) that cause problem?

  • When the migration tool stops with the error “Could not determine migration path to Nextcloud”, is there a way to try understand what goes wrong, e.g. a verbose mode to activate and/or a log to inspect?

  • Are there good, rational reasons to think that if the migration tool fails then the manual process will work?

Cheers,

Antoine

2 Likes

@jospoortvliet @nickvergessen Can you say what is supposed to work, what has been tested and if it is not working, when are these things going to be fixed? After release of NC 13?

I am now being pressed to upgrade my ownCloud instance to 10.0.4 and as always there are good security reasons for staying up to date. However, i really want to migrate to Nextcloud. I waited for Nextcloud 12.0.4 because I was told this would provide a supported migration path from ownCloud 10.0.3. It did not (‘Could not determine migration path to Nextcloud’ error). So far the Nextcloud community has not given a clear, definitive answer as to what the problem is or when it might be fixed.

Now, if I upgrade ownCloud to 10.0.4 will this make migration to Nextcloud easier or more difficult? Will the next release Nextcloud support migration from ownCloud 10.0.3 or 10.0.4, both or neither?

Please note: I have also posted my question here: ownCloud 10.0.3 to Nextcloud 12.0.4 error because it’s a related discussion and I don’t know where best to post in order to get a clear answer. Sorry for the duplication.

1 Like

I haven’t tried anything myself. There seems to be a problem with the migration tool, if you perform a manual migration, this can work (I think someone answered in a different topic that it worked for him). It actually works like a manual upgrade:

  • make a full backup (all files from data, the database, config/config.php)
  • delete all code files (only keep data/ and config/-folder)
  • Download and extract code from https://nextcloud.com/changelog/#latest12
  • Fix permissions that webserver user can access files (Debian/Ubuntu: chown -R www-data:www-data /var/www/nextcloud)
  • Run upgrade from command line (Debian/Ubuntu: sudo -u www-data php /var/www/nextcloud/occ upgrade)
  • In some cases you need to turn off maintenance mode: sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off

On other systems, the webserver user is different and not www-data (you can check who is the owner of the data and config folder, this is very likely the right user).

Many thanks for your help with this. I may eventually have to go ahead with this manual upgrade but I really would like answers to my questions first:

  1. If I upgrade ownCloud to 10.0.4 will this make migration to Nextcloud easier or more difficult?
  2. Will the next release Nextcloud support migration from ownCloud 10.0.3 or 10.0.4, both or neither?
    Thanks,
    Cliff

You risk that this is not possible. Improvements in OC 10.0.4 will also be backported to NC. Perhaps you have to wait for a later release if it is not possible.

At some point probably both. The beta versions of NC 13 are already available, so it can be tested. If you can copy your setup on a local machine, you could run some tests and report potential problems to the developers. Then the chances are high that it works for you in the final product. Keep in mind that some apps might not be available at the release of NC 13 and you have to wait a bit.

Hello everyone,

Is anyone able to address the original concerns and questions for this topic?

One prime concern is the confusion created by the contradictions found in the documentation, which are still there. It is not prone to giving current and potential Nextcloud users confidence in their ability to migrate then administer Nextcloud. May push many to postpone or cancel their plans to migrate. Could lose some traction.

If someone can answer the questions, I am happy to suggest updates and additions to the documentation.

Cheers, Antoine

3 Likes

They fixes something in the migrator. Can you check again?

1 Like

Hi,

Yes! :smiley::+1:

This time I successfully migrated (from ownCloud 10.0.1.5 to Nextcloud 12.0.4) using the migration tool, i.e. via https://mycloud-url/updater.

Everything seems to work fine and Nextcloud looking VERY GOOD!

Many thanks,

Antoine

PS: the documentation is still showing the same outdated info as reported in my original post:

  • The migration guide at https://nextcloud.com/migration/ has shown for several months “Note that ownCloud 10.0.1 can not yet be migrated to Nextcloud 12, we are still testing this upgrade path to make sure it is 100% reliable!”
  • But the same guide currently shows also “ownCloud 10.0.2 and 10.0.3 can’t yet be upgraded to Nextcloud 12, which will be fixed with Nextcloud 12.0.1”, and since we are now at Nextcloud 12.0.4 we can assume that the page has just not been updated.
  • The page at https://docs.nextcloud.com/server/12/admin_manual/maintenance/migrating_owncloud.html which seems to apply only to the manual migration process currently states that you can migrate (a) from ownCloud 10.0.0 to Nextcloud 12.0.0 and (b) from owncloud 10.0.2 or earlier to Nextcloud 12.0.1 or later.
1 Like

Thanks for pointing this out - I made a PR to fix it for the website: https://github.com/nextcloud/nextcloud.com/pull/728

Any chance you could make a PR for the documentation? You can just use the online editor in Github here:

1 Like

Hi Jos,

Happy to try help fix this. Two questions:

  1. What is a “PR” and is there a page with practical info about how we
    can help with the documentation. I looked around
    https://nextcloud.com/contribute/ but could not find pointers to such info.

  2. So that I don’t introduce erroneous info, can you confirm which
    versions exactly the migration tool is supposed to work for (for the
    page at /migration) and which version(s) to/from the manual migration
    process is supposed to work for?

Cheers,

Antoine

Thanks that you want to help!

So a ‘pr’ is a pull request. It is essentially a proposed change others can review and comment upon. Here’s the one I created for our site: https://github.com/nextcloud/nextcloud.com/pull/728
You see my comment, a summary of the change, the exact change (“files changed”) and tflidd reviewing it, OK’ing it, and then I ‘merge’ it with the site, so it can go live (it is, now!).

This all sounds probably quite complicated, and it IS complicated, but github makes it rather easy. If you click the link I gave:

https://github.com/nextcloud/documentation/edit/master/admin_manual/maintenance/migrating_owncloud.rst

You immediately are in editing mode for the file ‘migrating_owncloud.rst’. If you click cancel, you’re back to viewing it and then you can go back into the folder and see other files and view and edit them.

You need a github account for this to work!

Once you’re done editing, you choose on the bottom to create a pull request. You will be asked to give a title & description and perhaps ask people to review. You could mention me using @jospoortvliet so I get notified!
Some more info on what that is: https://help.github.com/articles/using-pull-requests

I or somebody else review, we approve, merge it and your change goes live. That’s it!

Sounds all good. I will get a github account and have a good look at the
process over the next few days to be ready to help in the future :slight_smile:

1 Like

Hi, I probably made a big fault and updated my OC today from 10.0.4 to 10.0.6. There are now too many reasons to not stay with OC and switch to NC. Therefore:

1) Is the migration tool also working for migration from OC v10.0.6 to NC v12.x.x?

2) I´m also fine with the manual process (I´m used to perform updates on the CLI). Will I end in the same error using the manual way like the migration tool?

3) Or (depending on #1): when will it support this migration path?

Just tried the updater script to migrate from Owncloud 10.0.4.4 to Nextcloud 12.0.4.3
Grabbed the script via
curl https://download.nextcloud.com/server/installer/migrator/index.php /var/www/html/owncloud/updater
Initiated via the web at https://localserver/updater/index.php
After successful steps, requested it remain in maintenance mode.
As user apache, initiated command line upgrade via: ./occ upgrade
Upgrading proceeded including checking for various app upgrades. Finally gave these errors:

oauth2: Failed to enable app oauth2
workflowengine: Failed to enable app workflowengine
twofactor_backupcodes: Failed to enable app twofactor_backupcodes

The log doesn’t indicate (to my eyes, anyway) why these apps weren’t enabled. To proceed, should I grab an archive of NextCloud 12.0.4.3 and manually put in place these 3 apps?

No one? 3 questions from my post above?

I don’t know whether you can migrate from 10.0.6 to Nextcloud 12.x.x.

If I was you I would backup config.php, data-folder and database and then try a manual migration like described in section The manual process here:

If it doesn’t work, just turn back to the backed up ownCloud 10.0.6.

Is it possible to run Nextcloud in the “…/owncloud” directory after migration?

Because a lot of clients and many many many different applications need reconfiguration (applications point to https://my.webserver.com/owncloud) and I don´t want to NEED to change all endpoints right after migration. Plan B (if folder needs to be named ‘nextcloud’) would be a rewrite rule in nginx (everything requesting on …/owncloud will be forwarded to …/nextcloud).

That is absolutely possible and no problem at all.