Server Version#: 1.41.4.9463
Player Version#: Not applicable
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>
This problem appears to have started about the beginning of the year (2025). My configuration consists of several QNAP devices. The QNAP in question has been in the network for a couple of years now and has been scanned without incident. However as of the beginning of the year, its like when Plex performs its scan of the devices, the QNAP in question is completely bypassed. The drive is raid 5 and I have checked that the drive is mounted. I can access it from the Ubuntu server hosting the Plex Media app and I can also access it from another desktop in the network. It is possible to write files to the drive from the desktop computer and I can view and display files from the Plex Media host server. As far as I can determine, it is only the Plex Media app that is having problems as the its host can access the files.
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)
Modified my fstab entry for the problem share to:
pmedia:/Multimedia /mnt/PMediaNFS nfs defaults,rsize=24576,wsize=24576,sec=sys,hard,intr,rw 0 0
Although I can access the file in Dolphin or from the command line, Plex is not seeing the drive.
You mentioned a shell script for debugging but I did not see a link for it. Also not sure how to launch a “shell as UID=plex” UPDATE located the shell, I was clicking on the wrong part of the header.
I’m having problems with the “su” command (step 3 in the above tips). Whenever I try to execute it, I am getting an Authorization failure - I have tried using the password of the account logged in, the root password and the plex account password and each give the Authorization failure. To confirm it was the “su” portion of the command line, I ran the file containing the script and it worked fine. So not sure what I am doing wrong with the “su” portion.
Thanks - the sudo suggestion worked. I see that there is a permission issue which I will dive deeper into. Knowing it is a permission issue, I am marking this as solved.