It’s been quite an undertaking but I’m almost finished: a raspberry pi 3 with VPN, webserver with Nextcloud and Plex. There’s a few things that I still wanted to edit and one of them is the following:
To my WD-Pi set-up, I have attached an external HDD, that holds all my media (photos, homevideos, our CD-rips, etc). The issue is: I want both Nextcloud and Plex to have access. I don’t seem to get this combination working.
sudo groupadd mediausers sudo usermod -a -G mediausers plex sudo usermod -a -G mediausers www-data
The drive was (already before connecting it to my Pi) formated as vfat (or so it appears on the Pi). With the following line on /etc/fstab I mounted the drive (partly based on this post) with mediausers as the group:
UUID=1B1C-14D8 /CloudMEDIA/ vfat nofail,uid=pi,gid=mediausers,umask=003 0 0
Without umask Plex happily serves my pictures but I get a ‘you don’t have permission to create or upload in this folder’-error in Nextcloud. With the umask Nextcloud is happy and allows me to do what I want, but Plex doesn’t serve any media anymore (‘Unavailable; please check the necessary drive is mounted’).
How can I make both Plex, Nextcloud and myself happy? How do I get file/mount permisssions right? Any help much appreciated!
Nextcloud version (eg, 10.0.2): 11.0.3 (stable)
Operating system and version (eg, Ubuntu 16.04): Raspbian Jessie
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 5.6): 7.0.16
Is this the first time you’ve seen this error?: yup, changing umask values & mounting makes Plex & Nextcloud (not) work