Fix Plex & Jellyfin NAS Library Not Finding Files
In this article
If your Plex or Jellyfin server suddenly can't find files on your NAS, the media library shows empty folders, or new files don't appear, the cause is almost always a broken network path, a permission change, or a stalled scan. This guide walks you through the exact steps to restore access, whether you're using SMB, NFS, or a mounted drive.
What You'll Need
- Access to the Plex or Jellyfin server's admin dashboard
- Credentials for your NAS (username/password) and the server's operating system (Windows, Linux, or macOS)
- SSH or terminal access if the server runs Linux or macOS
- Basic knowledge of your NAS's file-sharing settings (SMB/NFS)
Step-by-Step
- Check the server's network connection to the NAS. On the server, open a command line (Terminal on Linux/macOS, Command Prompt on Windows) and ping the NAS's IP address. If ping fails, the server can't reach the NAS at all — check cables, Wi-Fi, VLAN settings, or firewall rules.
- Verify the NAS is actually sharing the folder. Log into the NAS admin panel and confirm the shared folder exists and is enabled. Note the exact share name and path (e.g.,
//192.168.1.10/mediafor SMB, or/volume1/mediafor NFS). - Test the mount manually on the server. On Linux/macOS, try to list the mount point:
ls /mnt/media. If it's empty or shows an error, remount it. On Windows, check the mapped drive letter in File Explorer — if it shows a red X, the mapping is broken. - Re-mount the NAS share. Unmount and remount using the correct credentials. For SMB on Linux, use:
sudo mount -t cifs //NAS_IP/share /mnt/media -o username=youruser,uid=plex,gid=plex. On macOS, usemount_smbfs //user@NAS_IP/share /Volumes/media. On Windows, right-click the mapped drive and select "Disconnect," then remap via "Map network drive" with the correct credentials. - Ensure the mount persists after reboot. Add an entry to
/etc/fstab(Linux) or use autofs, or configure the NAS to auto-mount on macOS. For Windows, use a scheduled task or a startup script. This prevents the issue from recurring. - Check file permissions. The user that Plex or Jellyfin runs as must have read (and for some operations, write) access to the mounted folder. On Linux, that's typically the
plexorjellyfinuser. Runls -l /mnt/mediato see ownership and permissions. If needed, change ownership:sudo chown -R plex:plex /mnt/media(adjust user/group). On Windows, ensure the service account (e.g.,LocalSystemor a dedicated user) has NTFS permissions. - Update the library path in Plex or Jellyfin. In Plex, go to Settings > Manage > Libraries, click the three dots on the affected library, and select "Edit Library." Verify the folder path matches the mount point exactly (e.g.,
/mnt/media/movies). In Jellyfin, go to Dashboard > Libraries, click the library, and check the path under "Folders." - Trigger a manual scan. In Plex, click the three dots on the library and choose "Scan Library Files." In Jellyfin, go to the library and click the refresh icon. Wait a few minutes — large libraries can take time.
- If files still don't appear, check the server logs. Plex logs are in
Plex Media Server.log(find it via Settings > Troubleshooting > Download Logs). Jellyfin logs are in/var/log/jellyfinor the install directory. Look for lines containing "unable to find," "permission denied," or "path not found."
Common Mistakes
- Using a mapped drive letter on Windows: Mapped drives are per-user and often not available to services. Use the UNC path directly (e.g.,
\\NAS_IP\share) in Plex/Jellyfin. - Ignoring the difference between SMB and NFS: If your NAS is configured for NFS, but you're trying to mount via SMB, it won't work. Match the protocol.
- Forgetting to set the correct UID/GID on NFS: NFS maps root to nobody by default. Use
no_root_squashor specifyuidandgidin the mount options. - Assuming the NAS IP is static: If the NAS gets a new IP via DHCP, the mount breaks. Set a static IP or use a hostname.
- Not checking the mount after a NAS reboot: The server may not auto-remount. Always test with
df -hormountafter a NAS restart.
Tips
- Use a dedicated service account for Plex/Jellyfin on the NAS, with read-only permissions to the media folders. This reduces security risk.
- Set up a cron job or scheduled task to check if the mount is alive and remount if not. For example, a simple script that pings the NAS and checks
mountpoint. - For large libraries, enable "Partial scan" in Plex to reduce scan time, or use "Scan periodically" in Jellyfin.
- Use the NAS's own file indexing (if available) to speed up folder listing.
- Keep the server and NAS clocks in sync (NTP) — some protocols like Kerberos can fail with time drift.
Troubleshooting
If you still see empty libraries after following the steps:
- Check the exact path in the library settings. A trailing slash or a typo can cause a mismatch. Copy the path from the mount point directly.
- Verify the server can read the files. On Linux, run
sudo -u plex ls /mnt/media/movies(replace user) to see if the service user can list files. If not, fix permissions. - Check for firewall or antivirus interference. Some security software blocks SMB or NFS traffic. Temporarily disable to test.
- Look at the NAS logs. On Synology, QNAP, or TrueNAS, check the SMB/NFS service logs for connection attempts from the server's IP. If you see "access denied," the credentials or permissions are wrong.
- Try a different protocol. If SMB fails, try NFS, or vice versa. Sometimes a NAS has a bug with one protocol.
- Restart the Plex or Jellyfin service. After remounting, a restart can clear cached path errors.
- If the library still shows old files but not new ones, the scan might be stuck. In Plex, use "Scan Library Files" after clearing the "Scan intervals" setting. In Jellyfin, try "Rescan" from the library menu.
Frequently Asked Questions
Q: Why does my library work after a fresh mount but fail after a reboot?
A: The mount is not persistent. You need to configure auto-mount via fstab (Linux), autofs (macOS), or a startup script (Windows).
Q: Can I use a mapped drive letter on Windows for Plex?
A: Not recommended. Mapped drives are per-user and not visible to services. Use the UNC path (e.g., \\192.168.1.10\media) instead.
Q: What does "permission denied" in the logs mean?
A: The service user (plex/jellyfin) doesn't have read access to the folder. Check both the mount permissions and the NAS share permissions.
Q: Should I use SMB or NFS?
A: Both work. SMB is easier on Windows, NFS is often faster on Linux. Choose what your NAS supports reliably.
Q: Why do new files on the NAS not appear in Plex?
A: The library scan may be disabled or set to a long interval. Manually trigger a scan, or enable periodic scanning.
Q: My NAS uses a hostname, not an IP. Does that matter?
A: No, but ensure the server can resolve the hostname. Use a static IP or add an entry in the hosts file to avoid DNS issues.