PMS can't see mounted NFS shares

Server Version#: 4.47.3

I’m working on a fresh install of Ubuntu Server 20.04.1. Both the server (192.168.1.100) and the Synology (192.168.1.10) are on static IPs through the router. I’ve followed the guides here and this post here.

my /etc/hosts:

127.0.0.1 localhost
127.0.1.1 nuc10i5
192.168.1.10 syno

my /etc/fstab:

# /boot/efi was on /dev/nvme0n1p1 during curtin installation
/dev/disk/by-uuid/CF27-E700 /boot/efi vfat defaults 0 0
/swap.img       none    swap    sw      0       0
syno:/volume1/PMS/movies        /nas/movies        nfs sec=sys,intr,rw,vers=4,timeo=11,rsize=131072,wsize=131072,auto,async,bg 0 0
syno:/volume1/PMS/shows         /nas/shows         nfs sec=sys,intr,rw,vers=4,timeo=11,rsize=131072,wsize=131072,auto,async,bg 0 0
syno:/volume1/PMS/music         /nas/music         nfs sec=sys,intr,rw,vers=4,timeo=11,rsize=131072,wsize=131072,auto,async,bg 0 0

and my /opt/docker-compose.yml:

version: '3'
services:
  plex:
    image: ghcr.io/linuxserver/plex
    restart: unless-stopped
    container_name: plex
    network_mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - VERSION=docker
      - UMASK_SET=022 #optional
      - TZ=Asia/Taipei
      - PLEX_CLAIM=claim--suuN2Na_zYse3zAxvvK
    volumes:
      - /nas/plex:/config
      - /nas/nfs_movies:/movies
      - /nas/nfs_shows:/shows
      - /nas/nfs_music:/music
    devices:
      - /dev/dri:/dev/dri

This is the NFS permissions on the Synology:
Screenshot 2021-01-09 194451

I can browse to /nas/shows in SSH to the server and see everything, but PMS can’t read the folders.

Any help? Thanks!

I also have the same issue before (using rclone mount). I found some solution in the internet, with these parameters(--vfs-cache-mode full --allow-other --allow-non-empty), I can now see the mounted storage in plex (inside docker, same as yours).

rclone mount remote:/path/to/files /path/to/local/mount --vfs-cache-mode full --allow-other --allow-non-empty

Where do I put that? If I put it once in the command line, that’s good enough? So mine would be:

rclone mount remote:/volume1/PMS/movies /nas/movies --vfs-cache-mode full …

?

Thanks.

yes, check rclone documentation first on how to mount your remote storage. If you found out how, you can just add it to the cron so that the storage will be mounted on reboot. something like:

@reboot rclone mount remote:/path/to/files /path/to/local/mount --vfs-cache-mode full --allow-other --allow-non-empty

Thanks, I’m not familiar with rclone, so I’ll look it into.

Still hoping I can make this work with the existing /etc/fstab and whatnot. Just what I’m more familiar with.

What happens if you change these to the following instead (note the removal of “nfs_”)?

    volumes:
      - /nas/plex:/config
      - /nas/movies:/movies
      - /nas/shows:/shows
      - /nas/music:/music
1 Like

D’oh! Yeah, I was just looking at those and realized my noob mistake. I was trying to get this thread closed, but this will serve as the solution: always doublecheck your directories!

Thanks!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.