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