[Solved] Plex stopped scanning NFS drive

You are using sec=sys on the QNAP.

Your mount

pmedia:/Multimedia /mnt/PMediaNFS nfs rsize=24576,wsize=24576,user,vers=4.0,hard,intr,rw 0 0

can be improved here.

  1. With sec=sys, don’t use user
  2. By default, Ubuntu & QNAP will negotiate the highest NFS level availble (4.2)
  3. ‘defaults’ first establishes the baseline options which you then customize
    – otherwise you get only what you ask for.

I recommend you use the same on Ubuntu (like I do) since you’re running linux<->linux

Feel free to adjust per your needs

192.168.0.20:/vol/media /glock/media nfs defaults,sec=sys,rw,auto,async,rsize=4194304,wsize=4194304,x-systemd.after=network-online.target,nofail,bg 0 0

My machine boots really fast so I have systemd hold back on mounting until after the network adapter is safely up.

I set ‘nofail,bg’ so it won’t interrupt boot if it can’t mount and then background the failed attempt if the NAS is off (shutdown)

One concern I have is user permissions on the QNAP.

I run with with everything as ‘admin’
This means Ubuntu, which mounts as root, gets uid 0 ↔ uid 0 access
Ubuntu then determines whether or not I can see the media.

I have this little shell script which will help you track down where access fails.
If you run as plex then you can easily confirm if any path is blocked.

Additionally, you can simply launch a shell as UID=plex and then attempt to ‘cd’ your way into the remote mounted locations. (the ones you can’t see)