Plex and autofs woes- Please help!

Hi All,

My first post on the forums as I’m completely stuck!

I’ve ditched my previous Windows setup and I’m now running PMS within a Docker container on an i5 machine accessing remote NFS Shares from my NAS running unRaid.

I’ve had it all working fine but with some annoying niggles mainly being mounting the remote shares. I had configured /etc/fstab but my issue was that although my NAS is on 24x7, the Plex machine boots up faster than my router so it fails to mount the NFS shares so I have to reboot again once the router is online for it to see the shares. This was affecting the Wife Acceptability Factor so I decided that autofs seemed like a better solution.

I’ve configured autofs and it works OK, if I do an ls -ltr against the directory it automounts as expected. However Plex reports the files are unavailable when trying to play them in a client.

Here is the config I used to build the Docker container;

docker run
-d
–restart always
–name plex
–network=host
-e TZ=“Europe/London”
-e ADVERTISE_IP=“http://192.168.10.39:32400/
-e PLEX_CLAIM="***************"
-h plex-server
-v /home/docker/plex:/config
-v /home/docker/plex:/transcode
-v /home/docker/plex/NFS:/data
plexinc/pms-docker

/home/docker/plex/NFS is where autofs monitors and within this directory I have my mounts for TV, Movies etc

If I SSH onto the PMS box I can list the filesystems fine through ‘ls’ but if I try to do the same through the container I get the following error;

docker exec plex ls -l data/TV
ls: cannot open directory ‘data/TV’: Too many levels of symbolic links

I have just noticed that docker exec plex ls -l data/Movies works OK

Can anyone give me any pointers please?

Cheers

Hopefully you have “Automatically empty trash” turned off.

You will need to set restart to manual then create a cron job that checks every x minutes for the existence of a file on the mounted drive and then does a docker start command.

I would also switch back to fstab, automount will also automatically dismount.

I’ve never had any interaction with “Automatically empty trash” what is it?

All my plex config is in a local directory under /home/docker/plex/ it is only home/docker/plex/NFS which is which is configured under autofs

i.e home/docker/plex/NFS/Movies
home/docker/plex/NFS/TV

fstab just doesn’t work for me as if I’m away from home, asking the kids or wife to reboot etc isn’t an option.

OK, I’ve looked up the Trash setting, that makes sense. I’ll disable that

Its starting to look like I’ve replaced one headache with another by using autofs.

If I mount the filesystems by way of performing an ls against the nfs share and then restart the Plex docker I can then see the shares fine. So it does seem like some oddity with Docker and autofs!

So, I’ve disabled autofs and instead I’m reverting back to fstab but rather than using the default options I’m now trying;

noauto,x-systemd.automount

I’ve rebooted the server remotely and all works fine but will need to physically bounce the lot when I get home to see if it all plays nicely after waiting for the network to become available.

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