I’ve seen some similar posts, but I could use some more specific help, I think.
I’ve recently installed Plex Server on my Ubuntu machine. I’d like to have subtitles for my videos, so I installed sub-zero.
When I look at the sub-zero logs after asking it to source a set of subtitles, I get an error like this: IOError: [Errno 13] Permission denied: u'/media/windowsshare/TV/
(It’s set to store subtitles with the media files themselves.)
My impression of the problem is that Plex runs as its own user (‘plex’) and my media is stored on a mounted network share that my current Ubuntu user has read / write permissions on, but Plex may not (which explains why other services on the computer, like Sonarr, don’t have problems writing to it, because they’re run as my user).
I’m mounting the share like so in my fstab: //source /media/windowsshare/TV cifs uid=user,credentials=/home/user/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
I tried changing the user running Plex (per these instructions), but it basically broke Plex - I couldn’t get it to work properly.
I also tried running general chown commands for plex:plex on the share folder (sudo chown plex:plex '/media/windowsshare/TV'), but that didn’t do the trick either.
Does anyone have any tips for me? Is it as simple, potentially, as a formatting change to my fstab to also grant write access for user plex?
This is good advice, Chuck – I’ll explore your Tips tonight.
It is Linux, but I am not using NFS because the NAS is using Amahi and it hasn’t been terribly straightforward to enable and get working correctly (despite the documentation seeming pretty simple). Also, I’m using Kodi and I’ve read that it doesn’t play nice with NFS either for some reason.
As a workaround for the subtitle write problem, I’m using PlexKodiConnect on the Kodi devices so that I can still download subtitles the usual on-demand way.
But I will definitely look at mounting my shares to a different location tonight if that will help correct the Plex write dramas.
ANY half-respectable NAS allows you to enable both SMB and NFS simultaneously.
You will find, using SMB in Linux, and writing to it with multiple users is nearly impossible unless you force UID/GID, stand on your left toes only, during the 2nd moon of the month, as the cow walks through your yard haha
It’s just a custom-built Ubuntu box running Amahi.
SMB hasn’t been a problem to date for the most part (besides read / write speeds from my Apple machines). I’ll give it another push (enabling NFS with Amahi) later tonight before I resort to trying to mount the SMB somewhere else.
Thank you. Amahi is itself problematic.
If you did it for the UI then I understand.
As for functionality, through the GUI, that’s a different issue.
As with any Linux, you can always just enable the NFS service and then add manually add the info to /etc/exports
To be honest, I did it for the drive pooling several years ago (not knowing about all the preferred alternatives) and only interact with it via SSH, so the UI is almost pointless for me. My barrier to migrating to something like UNRAID is not having the 12+ TB of free space to back up the Amahi shares before turning down the service. But that’ll be a whole other thing to deal with at some point.