Yes, unless I am mistaken, you have to change the permissions for the nextcloud files after
they are copied to the owncloud folder. Anyways, your work was the best I found, it helped my migration immensly. Thank you so much.
I got error from migrating, says āDirectory is unavailableā¦ā.
Is it because that Iām migrating from ownCloud 9.1.x to Nextcloud 9.0.53?
Iām running nextcloud on CentOS 7.
Ok, so I did try migrate from ownCloud 8.2.7 -> Nextcloud 9.0.53
I still got the same issue which is directory is not showing.
I get many errors similar to this: fopen(/var/www/html/nextcloud/data/admin/thumbnails/27/150-150.png): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/files/storage/local.php#261
Both files 150-150.png, and local.php exist in those directory.
How do I fix this?
The updater app is not ready yet. I would go OC 9.0->NC 9.0.53 ā NC 10. OC 9.0->NC 10 could be possible, if not, it should show you an error that you cannot skip major versions.
Can we also have some function to mirror an account on an owncloud system? I have a hosted owncloud and I donāt have access to the raw data, just the user credentials. It seems like a big job to get that data into nextcloud and I even have over 20 accounts.
No you canāt just mirror or migrate an account. On the new system, you can use the federated cloud sharing to include the owncloud folder into your nextcloud account. The files stay in the owncloud account, but you can then copy the files to your local Nextcloud folder (either via webinterface or via webdav).
Thank you for the detailed upgrade instructions. Unfortunately I managed to destroy my server by running the set-nextcloud-permissions.sh script.
I set the ocpath and ocdata variables matching my system, but somehow the āfindā commands still changed the permissions of all files and directories in my system. When the script was done running I had an unusable system and I could not log back into the server. Sad. Iām now restoring the backup from 4 days ago.
The script that was shared above by mvance, which is based on the one you linked. I donāt know how it happened, as the script looks ok. Unfortunately since I lost access to the server I canāt see the content of the script. But the symptoms were those: I did not have permission to ālsā, nor to stop or start apache, and when I tried logging out and in again, my access was refused. I log in as non-root with my public key.
Anyway, I just lost an hour and maybe a few e-mails, no much harm caused.
The script from @mvance works but it is dangerous. One typo at the variables ā¦ and the system is broken.
The script at the doc.nextcloud.com is wrong regarding the missing ā/ā behind the variable
find ${ncpath}/ -type f -print0 | xargs -0 chmod 0640