Server Version#:Plex Media Server v1.19.4.2902-69560ce1e
Player Version#: not used
Ubuntu 18.04.4 LTS
I tried to follow directions for: Moving Plex’s metadata (Library) directory on systemd
based systems in linux tips. when trying to direct plex to my library files plex doesn’t see the /data/plex directory so I typed it in manually. I try scanning library and plex doesn’t find anything. My folders for movies, tv, music, pictures are in /data/plex. After I followed the linux tips I also had “Library” in the /data/plex directory, is that the correct place for it?
I did not yet delete the original copy of “Library” yet since I have had trouble. Before trying all this I tried some other instructions that did not work and did not keep track of changes so I am really lost. I also tried reinstalling plex after deleting the config file but was unable to get things working. I do not have anything but test files in my library so starting fresh would be easy, but I will still need to move the library again. How do I get things running right with the library at /data/plex?
I also am interested in updating ubuntu to 20.04 LTS, should I do that first or should it not matter when I do that?
I forgot to add the logs. here they arePlex Media Server Logs_2020-06-04_10-07-59.zip (212.1 KB)
Sounds like you need to adjust the permissions of /data/plex/
and its content to be visible to the local plex
user.
As for 20.04 LTS – some consider it too early / risky to move on a newly released version and prefer waiting for the “.1” release (first bug fix update).
Personally I’m on 18.04 and will wait at least until they provide that update via apt-get distr-upgrade
.
If I may add here,
This is a SNAP installation from the Ubuntu store.
There are issues with SNAP packages not present in the main Plex repository release.
Also be advised, uninstalling the SNAP will destroy the server (SNAP packaging rules). The normal DPKG package maintains the server when uninstalling/downgrading.
Thanks tom80H and ChuckPa,
Tom I think the permissions are correct, let me know if they are not :
troy@zigserver:~ cd /data/plex
troy@zigserver:/data/plex ls
Library movies music ‘other video’ pictures tv
troy@zigserver:/data/plex$ ls -la
total 32
drwxr-xr-x 8 troy troy 4096 Jun 4 09:31 .
drwxr-xr-x 8 troy troy 4096 Jun 3 16:12 …
drwxr-xr-x 3 troy troy 4096 Apr 27 13:02 Library
drwxr-xr-x 2 troy troy 4096 Jun 3 15:38 movies
drwxr-xr-x 2 troy troy 4096 Jun 3 15:15 music
drwxr-xr-x 2 troy troy 4096 Jun 3 15:16 ‘other video’
drwxr-xr-x 2 troy troy 4096 Jun 3 15:16 pictures
drwxr-xr-x 2 troy troy 4096 Jun 3 15:39 tv
troy@zigserver:/data/plex$ drwxr-xr-x^C
troy@zigserver:/data/plex$ cd /data
troy@zigserver:/data$ ls -la
total 44
drwxr-xr-x 8 troy troy 4096 Jun 3 16:12 .
drwxr-xr-x 26 root root 4096 May 31 06:45 …
drwxr-xr-x 2 troy troy 4096 Feb 21 12:22 acerswift
drwxr-xr-x 2 troy troy 4096 Feb 21 12:22 delle6410
drwxr-xr-x 2 troy troy 16384 Feb 14 13:09 lost+found
drwxr-xr-x 8 troy troy 4096 Jun 4 09:31 plex
drwxr-xr-x 2 troy troy 4096 Feb 21 12:24 zigserver
drwxr-xr-x 2 troy troy 4096 Feb 21 12:22 zigtv
Chuck, so do you suggest removing the SNAP version and install DPKG version and then move library like I did from the linux tips instructions, or what?
I am only a novice and can follow directions but have limited understanding of tar. I read about tar and can probably perform the move but what I don’t understand is what needs to be moved before installing the plex DPKG. If you are saying to move my library does that include the “Library” that I moved per instructions in linux tips and my media folders or what? Also are telling me to install the plex DPKG before removing the SNAP version via Ubuntu software GUI. Thanks so much for your help.
How “novice” are your Linux skills?
I ask because navigating the command line to dig/ drill into the SNAP installation is slightly different for everyone
If you can find the SNAP “Library” (it’s in there) on the command line
then you can use the procedure (use your snap directory as source instead of /var/lib/plexmediaserver) to provide the first part of the tar
sequence (the reading).
The rest will be to put PMS Library where you want it (the other part of tar)
1 Like
I think I can do that, I am done for today so I will probably give you an update Monday. Thanks, and bye for now.
I tried to follow your last suggestionv but was having difficulty using tar to move the library so I uninstalled plex and deleted the library. I still had override.conf in /etc/systemd/system/plexmediaserver.service.d. I then removed the snap version using ubuntu installer. next I installed plex from DPKG. The program started fine but it had replaced the Library in /var/lib/plexmediaserver. So next I checked override.conf and found a typo, corrected it and restarted systemctl and plex. I then added my library folders with test data in them and shut down the computer. When I restarted the computer, Plex came up in the new install menu so I tried to load the server but received an error “there was a problem claiming this server”. So I downloaded a debug log. It looks to me like the override.conf was not implemented. I have attached the override.conf file and the debug. Do you see what is happening, how can I resolve this?override.conf.txt (404 Bytes) plex_debug.txt (6.7 KB)
Also, after installing plex and adding my library folders I confirmed the new library was in the the right location on my data drive and moved the original Library from /var lib/plexmediaserver/ and saved it as a backup on my desktop.
Hi Chuck, I read in your profile that you are dealing with health issues, I hope you are doing well today. when you are able would you please follow up on my plex problem. Thanks, Troy
@tgzigenis_gmail_com
PMS still thinks the data is in /var/lib/plexmediaserver
Jun 08, 2020 14:15:14.980 [0x7f483b5e3700] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins", couldn't check file: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins"
Jun 08, 2020 14:15:14.980 [0x7f483b5e3700] DEBUG - Scanning for plug-ins in "/usr/lib/plexmediaserver/Resources/Plug-ins-69560ce1e"
Jun 08, 2020 14:15:14.995 [0x7f483b5e3700] DEBUG - Scanning for plug-ins in "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins"
Did you ?
- create
/etc/systemd/system/plexmediaserver.service.d/override.conf
(not “.txt”)
sudo systemctl daemon-reload
sudo systemctl restart plexmediaserver
Yes I did all you asked, I changed the extension on the overide file I attached to “.txt” so I could attach it for you to check it.
Let’s see what systemd thinks of this?
sudo systemctl edit plexmediaserver
It will bring up the editor and show what it has for the override.
Is this in a container of any kind or a SNAP package installation?
The file was empty:
troy@zigserver:~ sudo systemctl edit plexmediaserver
[sudo] password for troy:
Editing "/etc/systemd/system/plexmediaserver.service.d/override.conf" canceled: temporary file is empty.
troy@zigserver:~
Troy
This is after removing a snap version and installing DPKG version. No other container. OS ubuntu 18.04
When you performed the edit, did the service override contain all your information?
Be advised, SNAP packaging is not controlled by systemd and cannot be customized. It is a containerized environment unto itself.
Where is your data now? Still in SNAP or in DPKG ?
This is my override.conf :
#
# Customize Plex's config
#
# Identify this as a service override
[Service]
#
# Move the data directory
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/data/plex/Library/Application Support"
#
# These values are only needed if you wish to change user & group
User=troy
Group=troy
#
# This is needed to change the default umask
UMask=0002
# this must be octal - See warning below
# end of override.conf
This file has existed since before I installed the DPKG version of plex.
My data is now at “/data/plex/Library/Application Support”.
MODERATOR EDIT: Added ``` before and after ‘code’ for legibility
I hope you don’t mind that I edited your post for legibility. I will restore it if you wish.
Everything you show me here should be working.
To confirm please?
- Native PMS, downloaded from http://plex.tv/downloads
- Installed on the bare host (no docker, snap, or other containerization)