So, I’ve been trying to change the location of the data files from nextcloud snap installation on a 18.04 Ubuntu server, basically i’ve followed the steps on some previous posts, but they all address to changing the location to a removable device, wich isn’t my case and after the steps all I got was a internal server error. I have a big partition in wich i want to have all the data in there.
I’ve already tryed that, got Internal Server error, not sure if it was because of the permissions in the data folder i wanted, then I gave the folder ‘777’ permission,
and after doing just like the post i got this message:
Try doing sudo snap connect nextcloud:removable-media first as per https://github.com/nextcloud/nextcloud-snap#removable-media . Even if it’s not removable media, it seems to need that whenever the data directory must be outside the snap directory.
I do not understand it. Snap should optimize Nextcloud installation. Think that does not work. In standard installation (LAMP) i an change everything. Why are you using Snap? Because it is easy or a container like Docker?
Note that running snap connect nextcloud:removable-media only whitelists some common folders/mountpoints like /mnt or probably /run/media and whatever. I tried to use the path /zpool/nextcloud/data, which did not work, so i had to change the mountpoint of my ZFS storage pool to /mnt/zpool.
re:devnull guy, yes, kind of annoying, but I get how snap tries to be part of the “defense-in-depth” security best practice a little bit, since this will prevent a lot of pwnage when there is a bad bug someday.