Server Version#:currrent 1.28.x
Hi,
I have a sun server running Oracle linux (current) and had everything working until my /var directory started filling up. I moved the /var/lib/plexmediaserver/Library to /home/jc/Plexmediaserver-var and created a sym link in /var/lib/plexmediaserver/Library. I changed the permissions on the sym ling for plex, plex and tried to start the plex service. After a few seconds the service says it can’t start and no matter what I try, I can’t figure this out. I tried uninstalling, reinstalling . Nothing works. It there anyone out there that can give me a hand with figuring this out?
This post shows how to move your Plex data directory on systemd-based systems:
The specific example given shows how to tell the service to use a different Plex data directory than the default (the part showing “Environment” being set). It also shows how to change the user which the service runs as, though that may not be necessary in your case (see the information below regarding changing ownership of the directory).
I’d follow those directions rather than symlink’ing to /var/lib/plexmediaserver (though that should likely work as well).
Also, ensure that your new Plex data directory is owned by user and group plex. Something like sudo chown -R /home/jc/Plexmediaserver-var/ should work. Plex Media Server, by default, runs as user plex, so that user needs to be able to read/write/execute on that directory.
/var/lib/plexmediaserver is the $HOME directory for user plex just as we normal users have our $HOME in /home.
Some distributions require a user’s home directory to be a real directory and not a symbolic link . (they do test for this). If $HOME is a symbolic link it will fail to create any and all processes (e.g. Plex Media Server)