Plex Server | Local Movies/TV shares do not respond

Server Version#: 1.18.5.2309-f5213a238
Player Version#: n/a

Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

 plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-02-04 03:02:18 UTC; 15h ago
  Process: 13904 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCC
 Main PID: 13913 (Plex Media Serv)
    Tasks: 113 (limit: 4915)
   CGroup: /system.slice/plexmediaserver.service
           ├─13913 /usr/lib/plexmediaserver/Plex Media Server
           ├─13958 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-f5213a238/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.18.
           ├─14011 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.18.5.2309-f5213a238 32600 /waitmut
           ├─15338 /usr/lib/plexmediaserver/Plex Relay -p 443 -N -R 0:127.0.0.1:32401 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/var/lib/plexmediaserver/Library/Application Support/Plex M
           ├─15426 /usr/lib/plexmediaserver/Plex Relay -p 443 -N -R 0:127.0.0.1:32401 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/var/lib/plexmediaserver/Library/Application Support/Plex M
           └─15428 /usr/lib/plexmediaserver/Plex Relay -p 443 -N -R 0:127.0.0.1:32401 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/var/lib/plexmediaserver/Library/Application Support/Plex M

Feb 04 03:02:18 htpc systemd[1]: Starting Plex Media Server...
Feb 04 03:02:18 htpc systemd[1]: Started Plex Media Server.

Web sources work and I am able to see my friends plex server and watch videos.

The media is located on a NAS - wdmycloud - I have verified that the mount is reachable and accessible from the ubuntu:
snippet - //192.168.10.2/Movies on /plex/movies
snippet - //192.168.10.2/TV on /plex/tv

ls -l /plex/tv
total 0
drwxr-xr-x 2 root root 0 Dec  7  2013 'Baby Einstein'
drwxr-xr-x 2 root root 0 Dec 28 07:40 'Doug(1996)'
drwxr-xr-x 2 root root 0 Nov  1  2017 'Family Guy'
<>
 ls -l /plex/movies
total 0
drwxr-xr-x 2 root root 0 Oct 31  2017 '13 Assassins (2010)'
drwxr-xr-x 2 root root 0 Oct  1  2017 '17 Again (2009)'
drwxr-xr-x 2 root root 0 Jul 31  2017 '2 Guns (2013)'
drwxr-xr-x 2 root root 0 Oct 31  2017 '50+50 (2011)'
<>
ping 192.168.10.2
PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data.
64 bytes from 192.168.10.2: icmp_seq=1 ttl=64 time=0.296 ms
64 bytes from 192.168.10.2: icmp_seq=2 ttl=64 time=0.318 ms
^C
--- 192.168.10.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1007ms
rtt min/avg/max/mdev = 0.296/0.307/0.318/0.011 ms

So network connectivity to the media does not appear to be an issue. The plex process is running but I cannot troubleshoot further to understand what causes it to not respond.

From iphone or kindle I can see web applications/movies and my friends plex shares. But from pc - trying to access the plex page - 192.168.10.2:32400/web - no response.

I can access ubuntu server no issue and can manually capture any data available.

Any assistance is greatly appreciated.

You’re mounting those network shares as root… that’s why Plex cannot read the files.

Check the applicable section for „Mounting xxx network shares for Plex use“ (where xxx is SMB/CIFS or NFS) in the tips & tricks post linked below:

To add to Tom,

Please restart PMS
Wait 60 seconds
Attempt to access via the LAN IP normally.
If the page loads at all (Plex/web starts to initialize) then you’re talking to it – meaning the problem is elsewhere.
Wait another 30 seconds
Stop PMS
Make a tar.gz of the Logs directory and attach here.

Also, what are you mounting from? QNAP, Syno?

Thanks for pointing that out, I only copied part of the output from mount:
//192.168.10.2/Movies on /plex/movies type cifs (rw,relatime,vers=default,cache=strict,username=plex,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.10.2,file_mode=0644,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)
//192.168.10.2/TV on /plex/tv type cifs (rw,relatime,vers=default,cache=strict,username=plex,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.10.2,file_mode=0644,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)

I have file with both username and password root protected for mounts. Plus as mentioned I am able to browse the shares on the remote NAS -WDMYCLOUD without issue.

I was referring to the ls output you had posted above:

ls -l /plex/tv
total 0
drwxr-xr-x 2 root root 0 Dec 7 2013 ‘Baby Einstein’
drwxr-xr-x 2 root root 0 Dec 28 07:40 ‘Doug(1996)’
drwxr-xr-x 2 root root 0 Nov 1 2017 ‘Family Guy’
<>
ls -l /plex/movies
total 0
drwxr-xr-x 2 root root 0 Oct 31 2017 ‘13 Assassins (2010)’
drwxr-xr-x 2 root root 0 Oct 1 2017 ‘17 Again (2009)’
drwxr-xr-x 2 root root 0 Jul 31 2017 ‘2 Guns (2013)’
drwxr-xr-x 2 root root 0 Oct 31 2017 ‘50+50 (2011)’

-> root root

May I see the /etc/fstab entries for these mounts?

Also, What are the permissions of /plex and /plex/* when the shares are not mounted?

Hello ChuckPA,

I restarted PMS web access and media access was restored. I am mounting from western digital my cloud NAS.[Uploading: pms-log.tar.gz…]

Attached are the logspms-log.tar.gz (3.5 MB)

more fstab

UUID=70b98d73-7df6-4587-8a73-90b41b179e4f / ext4 defaults 0 0
/swap.img       none    swap    sw      0       0

//192.168.10.2/Movies /plex/movies cifs credentials=/smb-credentials,dir_mode=0755,file_mode=0644,rw,soft 0 0

//192.168.10.2/TV /plex/tv cifs credentials=/smb-credentials,dir_mode=0755,file_mode=0644,rw,soft 0 0

Hello tom80h,

Oh ok that is because I have separate username/password for plex and when I upload media to the wdmycloud I use the root account. I gave the plex account ‘read only’ permission to the /movies and tv directories.

This setup has been working for a long. When I began to see the issue after I had to migrate to a new a server because of a faulty hardware. I installed a fresh copy of ubuntu server and copied the fstab and mount configuration from the old server.

You stated access was restored after restarting PMS. This makes me think the WD wasn’t responding / wasn’t online when PMS started. The CIFS client doesn’t like to background / wait for connections where NFS is tolerant of such things.

If you can enable NFS on the WD, would you consider mounting as NFS for the performance and flexibility on the Ubuntu side?

I would have to see if NFS is supported. But I am able to browse the mount when it occurs and can access files from other locations like my iphone. I am not yet convinced that it is NAS issue- that is why I provided some verification. I am by no means a NAS ‘expert’ - expertise is in networking. Is anything in the logs pointing towards CIFS being an issue?

IIRC, it does support it. There is a setting (switch) to enable it. I would need disconnect from here and jump into the Plex HQ network to verify

Here’s an older document reference from back in Ubuntu 14.04 days so I assume it’s still there. (WD uses linux afterall)

If it is enabled, we can mount Linux-Linux and you’ll gain on several fronts.
First, is the obvious testing and learning then migrate into production (full time) use.

You should be able to browse the WD, just as shown in the linked page.

yeah I did some searches and found this:

I have the single bay:
NFS is not supported on single-bay My Cloud (firmware 04.xx.xx-xxx
)Current Version WDMyCloud v04.05.00-342 : Core F/W!(upload://v2C7r4W9XZLymaVQEbcxbqNLtiZ.png)

I modified my response but from the GUI there is no option for NFS - where later documentation says there should be one.

If you read on, it seems it can be enabled via SSH directly (which makes perfect sense on Linux)

I found this URL:

I changed the etc/exports file:

WDMyCloud:/etc# cat /etc/exports
# Use nobody user (uid 65534) for nfs guest.  This is restricted from private
# shares by ACLs.
#
/nfs *(rw,all_squash,sync,no_subtree_check,insecure,crossmnt,anonuid=65534,anongid=1000)
/nfs/Movies *(ro,all_squash,sync,no_subtree_check,insecure,crossmnt,anonuid=65534,anongid=1000)
/nfs/TV *(ro,all_squash,sync,no_subtree_check,insecure,crossmnt,anonuid=65534,anongid=1000)

But now getting permission issue:
USER@htpc:/plex$ cd tv
-bash: cd: tv: Permission denied
USER@htpc:/plex$ ls -l
total 8
drwxr-xr-x 2 root root 0 Dec 20 23:44 movies
drwxrwx—+ 23 root USER 4096 Jan 2 06:08 tv

192.168.10.2:/nfs/TV on /plex/tv type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.10.2,mountvers=3,mountport=48764,mountproto=udp,local_lock=none,addr=192.168.10.2)

That’s easy :slight_smile:

add sec=sys to the NFS mount options.

may I suggest?

defaults,auto,rw,sec=sys,rsize=262144,wsize=262144,hard,intr,bg,nofail 0 0

Default options
auto mount
r/w
sec=sys (let’s the Ubuntu system deal with security)
Read block size = 256K
Write block size = 256K
Hard mount
Interruptable (you can break out of it) - better than a soft mount
Background the mount if the WD isn’t responding quickly enough
Don’t fail Linux startup if you can’t mount right away

I suggest doing this by hand in /mnt to play with.
When it’s all worked out, then transfer to /etc/fstab

There is a bonus with sec=sys. If the WD does not “squash” root to be the nobody user, you will have full root access to the storage areas and can set any permissions you want.

I am in unknown territory so bear with me please.

The way I mounted this was using:

/mnt$ sudo mount -o sec=sys,defaults,auto,rw,sec=sys,rsize=262144,wsize=262144,hard,intr,bg,nofail 0 0 -t  nfs 192.168.10.2:/nfs/TV /mnt/tv
mount: bad usage
Try 'mount --help' for more information.

Documentation from fedora indicates this might or should have worked*:
https://web.mit.edu/rhel-doc/5/RHEL-5-manual/Deployment_Guide-en-US/s1-nfs-client-config-options.html

man pages location shows that its not valid under mount option and only in /etc/fstab:
http://man7.org/linux/man-pages/man8/mount.8.html#FILESYSTEM-INDEPENDENT_MOUNT_OPTIONS

I dont see sec=mode place.