Package Details: plex-media-server 1.18.0.1913-1

Git Clone URL: https://aur.archlinux.org/plex-media-server.git (read-only)
Package Base: plex-media-server
Description: The back-end media server component of Plex.
Upstream URL: https://plex.tv/
Keywords: DLNA
Licenses: custom
Conflicts: plex-media-server-plexpass
Submitter: alucryd
Maintainer: fryfrog (tixetsal)
Last Packager: fryfrog
Votes: 314
Popularity: 2.167421
First Submitted: 2014-10-14 22:11
Last Updated: 2019-10-09 19:26

Pinned Comments

fryfrog commented on 2019-03-22 16:55

Flagging Out of Date:

This package is the non-plexpass package, it gets updated less frequently. Be sure to flag the right package. You can find the plexpass version at https://aur.archlinux.org/packages/plex-media-server-plexpass/

Current Issues:

The plex user's home directory needs to be changed, but likely can't if Plex Media Server was running when you upgrade. The package will tell you what to do, but of course that is easy to miss. The soluiton is to run sudo systemctl stop plexmediaserver ; sudo usermod -d /usr/lib/plexmediaserver plex ; sudo systemctl start plexmediaserver.

Latest Comments

1 2 3 4 5 6 ... Next › Last »

techwiz commented on 2019-10-08 00:26

@ectospasm, do you have a custom umask set in your .bashrc or the shell defaults? Perhaps it's overriding fakeroot and causing files to get created with the wrong permissions.

fryfrog commented on 2019-10-07 22:34

Try leaving it owned to root:root but with read and execute for the other group. This is what mine looks like, for comparison...

drwxr-xr-x   3 root root   51 Oct  7 15:33  lib
drwxr-xr-x  10 root root   49 Oct  7 15:33  Resources
-rwxr-xr-x   1 root root 1.5M Oct  2 15:00  CrashUploader
-rwxr-xr-x   1 root root 358K Oct  2 15:00 'Plex Commercial Skipper'

Also, super weird that it ends up 750. Maybe check for a systemd tmpfiles that is overriding your current one? And in your ./pkg dir, see what the files look like? Mine are owned fryfrog:fryfrog but still have the same 755 permissions as above.

ectospasm commented on 2019-10-07 21:49

@fryfrog:

My plex user is not a member of the root group, and every time I look after an upgrade the permissions on /usr/lib/plexmediaserver/Plex Media Server are 750 (rwxr-x---), which means the plexmediaserver.service can't start (can't read or execute Plex Media Server). Here is my /etc/conf.d/plexmediaserver, in its entirety:

LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib                                                                                                                                                  
PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver                                                                                                                                               
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plex                                                                                                                                       
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6                                                                                                                                                          
PLEX_MEDIA_SERVER_TMPDIR=/tmp                                                                                                                                                                 
TMPDIR=/tmp

So I guess if it is improper to have everything under /usr/lib/plexmediaserver owned by plex:plex, then the install commands in the PKGBUILD should apply at least 755 permissions/modes, not 750 like it appears now.

EDIT: It looks like the main install command does have 755, I wonder if a previous incarnation of plex-media-server had 750, and for whatever reason makepkg -sri isn't overwriting the modes with 755.

fryfrog commented on 2019-10-06 14:36

@ectospasm, my /usr/lib/plexmediaserver is root:root as deep as I looked and everything works fine. Can you dig into why yours isn't working w/o being owned to plex:plex? The /var/lib/plex folder should be plex:plex since that is where it stores all the data.

Have you maybe modified your /etc/conf.d/plexmediaserver? Maybe PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plex that line is pointed at /usr instead of /var? Or maybe your tmp dir is in there?

ectospasm commented on 2019-10-06 14:00

Is there any reason why the main install command doesn't set the ownership/group of /usr/lib/plexmediaserver to "plex:plex"? I find that I have to issue the following command every time I want to launch Plex Media Server after an upgrade:

sudo chown plex:plex -R /usr/lib/plexmediaserver

Otherwise, Plex Media Server fails to launch. I've cloned the AUR Git repository, but it's unclear to me how to issue a pull request for my updated PKGBUILD.

j1simon commented on 2019-08-31 12:35

Please, someone remove the outdated label. Some absent-minded person has marked it incorrectly.

fryfrog commented on 2019-08-22 21:10

You should probably make a habit of doing systemctl daemon-reload and systemctl restart <service> for updates. It is a PKGBUILD/AUR "standard" to not restart daemons so that service isn't disrupted and the restart can be done as needed.

I wish there was a hook of some sort that could be used to make it a user options. :/

harre commented on 2019-08-22 21:08

I need to run this after each update otherwise I cannot play anything, browsing the library works though.

sudo systemctl restart plexmediaserver.service

Can you perhaps add that as a post step so we get the service reloaded?

fryfrog commented on 2019-03-22 16:55

Flagging Out of Date:

This package is the non-plexpass package, it gets updated less frequently. Be sure to flag the right package. You can find the plexpass version at https://aur.archlinux.org/packages/plex-media-server-plexpass/

Current Issues:

The plex user's home directory needs to be changed, but likely can't if Plex Media Server was running when you upgrade. The package will tell you what to do, but of course that is easy to miss. The soluiton is to run sudo systemctl stop plexmediaserver ; sudo usermod -d /usr/lib/plexmediaserver plex ; sudo systemctl start plexmediaserver.

fryfrog commented on 2019-03-22 16:52

@tmoore: Thanks for pointing that out, I'll make a pinned post. The install should tell you to do that if it can't, but obviously that can get lost in the spew.