Plex Server not accessing media files on server

Longtime user of FreeNAS/TrueNAS Core, re-building same server hardware to use TrueNAS Scale version 24.10.2.1. I have Plex service installed and running. Have configured datasets on same drive pair for media, config and logs with the same permission access across all three. Configured a SMB share and user to point to media folder to enable media file transfers. Plex is able to write to config and logs datasets just fine. But when I move files into media folder, Plex:

  1. Cannot see the folder through the WebUI when trying to add library folder path via the UI browser. When I go to the /mnt directory through the UI browser, the /mnt directory is empty, even though I have checked it in the shell and accessed it via SMB from another system and
  2. Even if I enter the path in the Plex WebUI for the folder where media files are stored, Plex is unable to scan the library properly, so Plex application does not list media files as expected.

I have searched for any details on what I am missing in setting up Plex to see these media files as far as permissions, and have not found anything that answers why this one element is not working.

Does anyone have an idea of what I am missing?

Plex service? I’m assuming it’s installed as a Docker container?

Did you mount the correct path inside the Plex container?

What is the full path to the media on TrueNAS? Show the config you have to mount it in Plex.

1 Like

Hello Jorsher. Thanks for the quick follow up. This is the Plex Media Server. I installed this via the apps section of the TrueNAS web interface. I did not specifically setup a docker for this. Was not aware I needed to if necessary.

As for mounting the correct path inside the container, I am pointing to the container path that is Media the same as I pointed to the container path for config and the container path that for logs. As I am seeing Plex writing to both the config and logs containers, I believe I am pointing to the correct path for the media container as well. I have also set the same apps ownership on all three containers, and have opened up permissions full for right now for debug.

The full path to the containers are:
/mnt/Nine_TB_Core/Plex/Media
/mnt/Nine_TB_Core/plex/Config
/mnt/Nine_TB_Core/plex/Logs

That didn’t give enough detail to see what the issue is. I asked for the full mount config for the container because it’s likely either:

  1. The mount configuration is incorrect
  2. The mount configuration is correct but you’re looking in the wrong location within the container.

The mount config will tell you where you need to ls on the host to verify the files are there, and where to ls on the container to verify they are there and the permissions are correct.

Hello Jorsher,

Where should I be looking for the mount config? Are you asking for the /proc/self/mounts file?

In the UI under Apps > Plex > Edit > Storage Configuration.

Plex is a container. It doesn’t have access to any host storage unless you explicitly give that specific App access to a specific path. /mnt in a container will be empty and that is expected. It’s not supposed to just have full access to all storage.

Instead you add a storage config via the UI where you map a host path like /mnt/POOL/data/media to an unused location inside the container like /plexmedia

1 Like


Here is the picture of the Storage Configuration. Let me know if it is readable. One piece that has me baffled is with this configuration, Plex has been able to write to and read from the Configs and Logs, but not able to read the Media. I don’t doubt I have some permissions issue, but I have tried basic handling without Access Control List and with ACL, and nothing I have tried seems to hit the spot. I know I am probably missing something obvious, but it eludes me. The other piece is the Media location is also the location I have defined in SMB. So I am not sure if I have some contention between SMB and Plex on a common resource. I know I am able to access the Media location through SMB. I’ve tried disabling SMB to see if that fixes things, but did not hit the spot.

What are your current permissions on the Media dataset?

Is user 568 (Apps) allowed to read it?

Are you searching for it at the correct location inside the container (/data)?

If you are using SMB I’d recommend setting up ACLs with your SMB user as the owner with full control and the Apps user 568 with either read or modify permissions.

These are my permissions for a shared SMB/APPS dataset:

1 Like

Thank you! Will try this later when I have a time window and let you know results.

As Momi_V said, the ‘media’ folder might be ‘/data’ on the container. So for Plex to ‘see’ your data, you should be pointing the library to ‘/data’

This leads me to believe you’re looking in the wrong place for your media.

1 Like