# Bug in the 'Migrating from ownCloud' instructions

**URL:** <https://help.nextcloud.com/t/bug-in-the-migrating-from-owncloud-instructions/251486>\
**Category:** 🏷️ General\
**Tags:** owncloud\
**Created:** [October 24, 2026, 9:34pm UTC](https://help.nextcloud.com/t/bug-in-the-migrating-from-owncloud-instructions/251486 "2026-10-24T21:34:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![serenadeineb](https://help.nextcloud.com/letter_avatar/serenadeineb/32/6_449c533f586939b6e5f246632a46421f.png) [@serenadeineb](https://help.nextcloud.com/u/serenadeineb)\
**Post date:** [October 24, 2026, 9:34pm UTC](https://help.nextcloud.com/t/bug-in-the-migrating-from-owncloud-instructions/251486/1 "2026-10-24T21:34:39Z")

</div>

### I have no support/technical question and have seen the support category. (Be aware that direct support questions will be deleted.)

on

### Which general topic do you have

When migrating an owncloud installation to nextcloud, using the instructions found at

> **[Migrating from ownCloud — Nextcloud 35 Administration Manual](https://docs.nextcloud.com/server/stable/admin_manual/maintenance/migrating_owncloud.html)**

I noticed a bug in the instructions. In step 4, perform manual upgrade, you are directed to the page

> **[Upgrade manually — Nextcloud 35 Administration Manual](https://docs.nextcloud.com/server/stable/admin_manual/maintenance/manual_upgrade.html)**

where, in step 6, you are told to rename your existing directory ( no need here, since the existing is ‘owncloud’ ) and the upgrade populates a /var/www/nextcloud directory. Later in step 8 you are told to copy the old config to the new directory. However, this will cause an update fail since in that old config the datadirectory still has the old ‘/var/www/owncloud’ name, rather than the new /var/www/nextcloud, and you end up with a ‘can’t create ‘data’ directory’ error.

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [November 16, 2026, 8:02am UTC](https://help.nextcloud.com/t/bug-in-the-migrating-from-owncloud-instructions/251486/2 "2026-11-16T08:02:49Z")

</div>

I think the logic behind with the renaming was to avoid mixed code setups. E.g. if you have your directory /var/www/owncloud with the last owncloud code, then you extract the nextcloud code into the same folder. In many cases, it will just overwrite the files (which is ok), but there are perhaps files in owncloud, that do not exist in Nextcloud. In this case you end up with code files from Nextcloud and ownCloud. And this often created strange conflicts.

For this reason it was better to rename the old version to a different name owncloud → owncloud-old, extract the nextcloud archive to → owncloud. Then you move the config file and the data folder from owncloud-old to owncloud. And you avoid to mix code.

After the fork, they implemented the code integrity test which detected such mixed-up code more reliably, especially the errors were really strange and hard to debug.

If you think the guide could be improved, feel free to submit a pull request. You can go on any page of the documentation, and on the top right, you find a link to edit the page directly in github.
