Package Details: plex-media-server-plexpass 1.40.3.8530-1

Git Clone URL: https://aur.archlinux.org/plex-media-server-plexpass.git (read-only, click to copy)
Package Base: plex-media-server-plexpass
Description: The back-end media server component of Plex.
Upstream URL: https://plex.tv/
Keywords: DLNA
Licenses: custom
Conflicts: plex-media-server
Provides: plex-media-server
Submitter: miffe
Maintainer: fryfrog (tixetsal)
Last Packager: fryfrog
Votes: 141
Popularity: 0.096459
First Submitted: 2014-10-16 20:13 (UTC)
Last Updated: 2024-06-04 22:50 (UTC)

Latest Comments

« First ‹ Previous 1 .. 9 10 11 12 13 14 15 16 17 18 19 .. 36 Next › Last »

lord_rel commented on 2018-03-31 15:22 (UTC)

could you remove "Z /var/lib/plex - plex plex" from plex.tmpfiles it can take quite a while to change premissions on a large collection and makes it seem like boot has hung for my system as it can take a while to change ownership for 619862 files and directories

kode54 commented on 2018-03-26 06:55 (UTC)

And I have already said that restarting the server is essential to its continued operation, but I guess it could be pared down to a warning that restarting will instantly solve attempts to start streaming failing because the server is crashing its child process attempts.

fryfrog commented on 2018-03-17 16:09 (UTC)

I think I'll also add it to the .install file as output if the usermod fails.

hkoch commented on 2018-03-17 16:00 (UTC)

@fryfrog I agree; I'm not sure how to solve it either. I think it's a defect in usermod; the restriction is apparently intended to be "don't change a user's home directory while they're logged in" (usermod.c, line 2074) but the plex user is a system account? Not that that helps us here.

Hopefully your pinned comment here will be enough?

fryfrog commented on 2018-03-17 15:52 (UTC)

@hkoch, I'm not sure of a great way to solve this. I'm thinking output a suggestion to stop, change and then start again in the output if usermod fails. I don't want to stop plex in the update. :/

fryfrog commented on 2018-03-17 15:50 (UTC) (edited on 2018-03-17 16:10 (UTC) by fryfrog)

If the usermod command fails because plex user is already in use, stop plex, change the user and then start it again:

sudo systemctl stop plexmediaserver
sudo usermod -d /usr/lib/plexmediaserver plex
sudo systemctl start plexmediaserver

hkoch commented on 2018-03-17 14:08 (UTC)

The command in plex-media-server.install:

    usermod -d /usr/lib/plexmediaserver plex

Fails with

    usermod: user plex is currently used by process 987

(which AFAIC is a bug in usermod, but still...)

fryfrog commented on 2018-02-09 16:19 (UTC)

As @mmozeiko says, doing a daemon-reload and/or restart as part of the upgrade isn't something that should be added.

I've talked to AUR maintainers in IRC and the general consensus on text spew is that it shouldn't be done unless absolutely critical. It is easy to lose in a large upgrade with lots of spew.

If that is something you personally want, you could checkout this package's git repo, do it in your own .install file and make it a commit. Then, just rebase when there is an update and run makepkg -sri.

mmozeiko commented on 2018-02-09 08:46 (UTC) (edited on 2018-02-09 08:50 (UTC) by mmozeiko)

Please do not add daemon reload/restart to install script. If I'm doing large upgrade for a lot of packages I don't want to run bunch of daemon-reload commands. I want to do it only once.

Also maybe whoever installs package doesn't want to restart server immediately - because some users are streaming something. Maybe you don't want to start server right now, you want to only install it? Maybe I want to add extra settings to systemd service file (cpu/io/memory limit, etc..)

systemd daemon-reload/restart does not belong in pkgbuild install files.

If you are using ArchLinux you simply should learn how systemd services work. And restart/configure them properly after package installation.

lswest commented on 2018-02-09 08:10 (UTC)

Wouldn't editing the .install file with a post_upgrade() hook to run systemctl daemon-reload and systemctl restart plexmediaserver work with this package? Or at the very least, one could use the hook to print a reminder about doing so.