Hopefully I can provide enough details. If not please ask for more details.
My Plex server is built on Mint 17.1 (ie. Ubuntu 16.04LTS)
Several weeks ago I was running out of room on my primary hard drive. I added a second drive to move the Plex Library/Application Support directory. Following the instruction found at https://smyl.es/how-to-move-plex-metadata-and-index-data-to-new-driver-andor-directory-location/, I moved my Library directories, created the symbolic link and all was good. My Plex server worked fine without any issues.
A few days ago I installed the latest Plex update, plexmediaserver_1.0.3.2461-35f0c00_amd64.deb. But now Plex wouldn’t start.
After some research, I came across the above link again. Upon re-reading the instructions it’s best to edit the Application Support path and not use a symbolic link. I edited the “/etc/default/plexmediaserver” file changing the following line.
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/media/data1/plexmediaserver/Library/Application Support"
And then removed the previously created symbolic link.
Now when starting Plex via, “sudo service plexmediaserver start”, I get the following error in the “var/log/upstart/plexmediaserver.log” file. PS. Plex is still using the default “Plex” user.
mddir: cannot create directory '/media/data1': Permission denied
WARNING COULDN'T CREATE /media/data1/plexmediaserver/Library/Application Support/, MAKE SURE I HAVE PERMISSION TO DO THAT!
I mounted my drive in “/etc/fstabs” using the following:
/dev/sdb1 /media/data1 auto defaults 0 0
This is how I created the mounting directory and ownership.
$ sudo mkdir /media/data1
$ sudo chown plex:plex /media/data1
I’ve made sure the Library directories had the proper ownership, using the following command
$ sudo chown –R plex:plex /media/data1/plexmediaserver (the sub directories are not empty)
Where did I go wrong and what do I need to do to give Plex the proper permissions to the Application Support directories? Even if I rename /media/data1/plexmediaserver to /media/data1/plexmediaserver.bak and then start Plex, it still doesn’t create the required directories and the errors are similar. Is it the way I’m mounting the drive? How do I correct this?
Thanks for your assistance.