Migrating NextcloudPi -> AIO: Permissions issue?

I’ve been running NextcloudPi with data stored on a large external USB drive. Now I’m installing Nextcloud AIO and would like it to have access to files on the USB drive. I’ve never used Docker before.

The files (from the previous NextcloudPi installation) are currently at /media/nextcloud/myCloudDrive/ncdata/data/tomgeller/files. (Where tomgeller was my NextcloudPi username.)

I’m using shell with the Linux username nextcloud, and am able to cd down to /media/nextcloud/myCloudDrive/ncdata without problems. but then when I try to cd down to data, I get Permission denied. Permissions for the data directory are 750 / www-data:root.

I’ve tried using –env NEXTCLOUD_MOUNT=“/media/” during installation, along with --env NEXTCLOUD_DATADIR="/media/nextcloud/myCloudDrive/ncdata/data". This never works. I assume it’s because of permissions issues.

I see directions at GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance. · GitHub :

…please make sure to apply the correct permissions to the directories that you want to use in Nextcloud. E.g. sudo chown -R 33:0 /mnt/your-drive-mountpoint and sudo chmod -R 750 /mnt/your-drive-mountpoint should make it work on Linux when you have used --env NEXTCLOUD_MOUNT="/mnt/".

Changing ownership on every single file and directory on an 18TB drive seems irresponsible to me. Most (but not all) appear to be owned by www-data:www-data. I don’t have a second drive of this size, so making a backup first isn’t possible.

Thank you for any help you could offer!

Hi, can you check all-in-one/migration.md at main · nextcloud/all-in-one · GitHub?

This is very helpful! But I’m afraid it won’t work for me, because the docker drive is 128GB, and data drive has something like 9TB of data on it. (I don’t have another 9+TB drive available.)

I ultimately gave up and switched back to Nextcloud Pi. My lack of understanding about how Docker works was just too great.

But I was able to make that directory available again! I changed the owner to www-data and now Nextcloud can see it.