BUT my issue is /var/lib/plexmediaserver doesn’t exist. So I can only get so far in the (well written) instructions by Chuck Pa.
When I run: systemctl stop plexmediaserver
I get a “does not exist” error.
and running df -h /lib/plexmediaserver also shows nothing.
So have folder names changed since those instructions were written and if so which bits do I need to change to move all the meta data to somewhere else with more room?
Will do as soon as I get home tonight. In my digging last night, however, there was some snap stuff, so I think you’re right. So am I hosed if its a snap based plex? Again I’ll verify as soon as I get home. Thank you for the quick response.
ok so snap list gives me a small list the last two items are:
plexmediaserver
and
snap-store
does this mean I have the snap version?
running the rpm command and then systemctl shows:
Unit plexmediaserver.service could not be found
but this server is indeed running plex and its been working great for almost a year now till I started running out of space.
The snap directories I found were: right at the root in the home directory and in that is plexmediaserver → 226, 228, common and current. All of which seem to be empty directories.
If I go ALL the way to root and go into /var there’s another snap directory but again it seems to be full of empty directories.
So now I’m really confused where everything is stored and if I indeed have snap configured or not. Can you suggest where to look for my plex data? And barring that is there a way to convert a theoretical snap install to a more standard/up-to-date install?
FOUND IT!!!
FYI for future peeps:
/var/snap/plexmediaserver/common/library/Application Support/Plex Media Server/Metadata
12gb right there.
So that said, can I go back to your instructions and move this directory to my spot that has plenty of space making the symlink and purge there and call it good or since its snap do I have to be more careful?
sorry to keep spamming here but I want to make absolutely sure I know what I’m doing before hosing my system. Theoretically I can move everything from :
var/snap/plexmediaserver/common/Library/Application Support/PLEX MEDIA SERVER to the new drive correct?
This should answer al lmy questions so I’ll be quiet now and again thank you for all the help!!!
For the sake of this example, I’m writing instructions based on putting Plex in a /home directory where there is usually more space. Please change this base path however appropriate for your needs.
Make the base directory
sudo mkdir /home/plexdir
Copy the entire structure out of /var/snap to this new location
sudo bash
cd /var/snap/plexmediaserver
tar cf - ./Library | (cd /home/plexdir ; tar xf - )
When that finishes, you’ll have a full copy of the server in /home/plexdata
Now we install the native package and stop it after installation
cd ~/Downloads
sudo dpkg -i plexmediaserver*.deb
sudo systemctl stop plexmediaserver
Next we tell the native package that we’re going to use the metadata stored in /home/plexdir. I’m using ‘gedit’ (graphical editor here). You can use whatever you like.
[Service]
# Relocate Application Support directory to /home/plexdir
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/plexdir/Library/Application Support"
Tell systemctl that we’ve updated the plex service
sudo systemctl daemon reload
Before starting Plex, make sure the files are all owned by ‘plex:plex’ (which didn’t exist prior to installation
sudo chown -R plex:plex /home/plexdir
Make certain the SNAP package is stopped
Start plex
sudo systemctl start plexmediaserver
Test drive it. If all is OK then enable for autostart
sudo systemctl enable plexmediaserver
Now you can remove the snap with --purge and reclaim that space.
Except for the fact that cd /var/snap/COMMON/plexmediaserver was the directory everything else went great! THANK YOU for your detailed instructions and holding my hand during all this. THANK YOU THANK YOU!!!