Package Details: plex-media-server

Git Clone URL: (read-only, click to copy)
Package Base: plex-media-server
Description: The back-end media server component of Plex.
Upstream URL:
Keywords: DLNA
Licenses: custom
Conflicts: plex-media-server-plexpass
Submitter: alucryd
Maintainer: fryfrog (tixetsal)
Last Packager: fryfrog
Votes: 334
Popularity: 1.99
First Submitted: 2014-10-14 22:11 (UTC)
Last Updated: 2022-05-24 16:33 (UTC)

Latest Comments

killertofus commented on 2022-05-25 20:05 (UTC)

should be auto updating with the other linux packages

fryfrog commented on 2022-03-25 17:50 (UTC)

@nai7ah: It sounds like you need regular old Plex support, I'd hunt down a forum or Disord as appropriate. If you figure out that it is somehow related to the package, feel free to bring that up here and we can get it sorted.

What you showed looks like the crash uploader not working to upload the crash, so probably totally unrelated to what ever issue you're having.

nai7ah commented on 2022-03-25 17:41 (UTC) (edited on 2022-03-25 17:42 (UTC) by nai7ah)

After using the wizard from http://localhost:32400/web , Plex hangs. I checked journalctl and see this error message.

systemd[1]: Started Plex Media Server.
plexmediaserver[8392]: Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign
plexmediaserver[8392]: Crash Uploader options (all are required):
plexmediaserver[8392]:   --directory arg       Directory to scan for crash reports
plexmediaserver[8392]:   --serverUuid arg      UUID of the server that crashed
plexmediaserver[8392]:   --userId arg          User that owns this product
plexmediaserver[8392]:   --platform arg        Platform string
plexmediaserver[8392]:   --platformVersion arg Platform version string
plexmediaserver[8392]:   --vendor arg          Vendor string
plexmediaserver[8392]:   --device arg          Device string
plexmediaserver[8392]:   --model arg           Device model string
plexmediaserver[8392]:   --sentryUrl arg       Sentry URL to upload to
plexmediaserver[8392]:   --sentryKey arg       Sentry Key for the project
plexmediaserver[8392]:   --version arg         Version of the product
plexmediaserver[8392]:   --allowRetries arg    Whether we will allow retries

Commit: ef9fdba0107b

gavinbeatty commented on 2022-02-26 05:47 (UTC)

Spoke too soon. After a few hours, Plex decides to become unresponsive. I will prune the sandbox and test long-term before potentially posting again.

gavinbeatty commented on 2022-02-26 03:34 (UTC) (edited on 2022-02-26 04:52 (UTC) by gavinbeatty)

[EDIT: Added DeviceAllow=bock-loop that I mistakenly missed when commenting]

Given plex is proprietary software, is there any interest in using systemd sandboxing features? I've had success with the following as a plexmediaserver.service.d/override.conf:

SecureBits=keep-caps-locked no-setuid-fixup no-setuid-fixup-locked noroot noroot-locked
## /var/log/plex is normally a symlink to "/var/lib/plex/Plex Media Server/Logs"
## But I prefer to delete the symlink and let systemd create /var/log/plex as a normal directory.
## Without StateDirectory=plex, ProtectSystem=strict causes "PMS: failure detected. Read/write access is required for path: /var/lib/plex/Plex Media Server"
## I believe this causes the following errors:
##  Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Musicbrainz.bundle.
##  Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/HTbackdrops.bundle.
##  Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/LocalMedia.bundle.
## Playback still works, so this appears to prove the sandbox is worthwhile.
## Causes plex startup to completely fail
## I believe causes "Critical: libusb_init failed" which is fine by me.
## Fails without netlink (netlink(7) - communication between kernel and user space)

Given I don't use all of plex's functionality, and I noted some errors that I could tolerate above, maybe strip the following entries from the above:


ProtectHome=true would be great to keep, but I suspect it caused those framework errors in the log, so it might be prudent to dig into that first.

tinycheese commented on 2021-12-15 02:27 (UTC) (edited on 2021-12-15 14:06 (UTC) by tinycheese)

@fryfrog When you say your folder is pointed somewhere else, is that solely from the WebUI settings page, or are you pointing it via /etc/conf.d/plexmediaserver?

And I did start with Plex, but nobody wanted to help me there because "we don't package for Arch ... please contact the package maintainer." Granted, that was the forums; I can try Discord too.

Is 775 plex:plex not enough for the directory? (it is)

Edit: permissions solved. This came down to a basic linux permissions problem.

/mnt/ssd/ had ownership root:sddaccess, which I had apparently set up for group access to the additional drive. Once I added the plex user to sddaccess everything started working like butter.

Thanks for the help @fryfrog!

fryfrog commented on 2021-12-14 21:55 (UTC)

FWIW, I have my transcode folder pointed somewhere else and it works fine. I can go in that folder and see files/folders appearing and disappearing. Make sure you have ownership and permissions correct. Turn logging up and look at logs. You'll probably have better luck w/ support from a Plex place like their sub-reddit or Discord.

mjtko commented on 2021-12-14 20:51 (UTC)

@tinycheese: it might not be the "correct" way to fix this, but I use a bind mount to redirect the transcoding cache directory elsewhere, e.g. in my /etc/fstab:

/volumes/plex/Transcode /var/lib/plex/Plex\040Media\040Server/Cache/Transcode bind bind 0 0

Try from the CLI using:

mount -o bind /volumes/plex/Transcode "/var/lib/plex/Plex Media Server/Cache/Transcode"

/volumes/plex/Transcode is owned by user & group plex.

This might not be the most idiomatic way of achieving this, but it works for me. Interested in knowing if there's a better way! :)

tinycheese commented on 2021-12-14 18:12 (UTC) (edited on 2021-12-14 18:14 (UTC) by tinycheese)

@fryfrog can you help with Transcoder temporary directory?

I am trying to use /mnt/ssd/plex (permissions 775 plex:plex) as my temporary directory, as it resides on a drive with much more space (and I've been running out as my server increases in use).

Simply changing the server's Transcoder temporary directory option to /mnt/ssd/plex does not seem to work, as transcoding files still show up in /tmp/Transcode after applying this setting.

I tried changing PLEX_MEDIA_SERVER_TMPDIR and TMPDIR in /etc/conf.d/plexmediaserver, but this change prevents PMS from even starting (core dumped, signal=ABRT).

I also tried adding a ReadWritePaths line to the system file (in combination with the conf.d changes) as suggested in the wiki, but that did not appear to help either.

If this was covered previously, I'm sorry for the trouble (I read through 2.5 years of comments here). I can write an addendum to the wiki if we get it working :)

TIA for your help...

Tkgafs commented on 2021-07-14 09:59 (UTC) (edited on 2021-07-18 09:05 (UTC) by Tkgafs)

Please note if you are using Plex with Alexa

Plex seem to have broken build for playing music with Alexa

if you ask alexa to play an album or playlist it starts playing but stops after one track has been played

several threads on Plex forums confirm this

downgrading to version appears to fix the issue for the moment


turns out the fault was in the alexa skill which has now been fixed by Plex, and not in the media-server code.

techwiz commented on 2021-04-11 15:45 (UTC)

@olimazi, I prefer to add the Plex user to a group like “media” and manage file permissions using the group settings. Just “chgrp -R media /mnt/media” and “chmod -R g+rw /mnt/media”

Also, I would recommend not mounting your drives in your home directory as only your user can enter, and that might be preventing Plex from crawling the mount location.

Good luck.

olimazi commented on 2021-04-11 11:28 (UTC)

Can't get the PMS AUR package to see my auto mounted internal NTFS drive sub directories, I have them mounted via FSTAB: UUID=THE-UUID-YOU-COPIED /home/canelesso/ssd250 ntfs-3g auto,nofail,uid=1000,gid=1000,utf8,umask=022,defaults 0 0 which works fine, so must be a Plex permissions issue. Tried editing the service config in: /etc/systemd/system/ and changed the user from 'Plex' to my own, but didn't work. Thanks for your help guys. [the Snap package of Plex was able to see my directories, but I'd rather get the AUR working]

yochananmarqos commented on 2021-03-08 02:14 (UTC) (edited on 2021-03-08 02:14 (UTC) by yochananmarqos)

When the server crashes, it says it has written a log to /var/lib/plex/Plex Media Server/Crash Reports/<version>/, but all the folders are empty. Any ideas?

darose commented on 2021-02-08 19:35 (UTC)

Yes. I would recommend adhering to their firewall suggestions as well, though.

openurice commented on 2021-02-08 18:11 (UTC)

@darose 'The fix is available in Plex Media Server v1.21.3.4014 or newer.' So it seems that we are OK.

darose commented on 2021-02-08 16:21 (UTC)

fryfrog commented on 2020-12-14 22:08 (UTC)

Whew, I thought I'd rolled it too far forward and everyone would be stuck.

DaOfficialRolex commented on 2020-12-14 21:30 (UTC) (edited on 2020-12-14 21:32 (UTC) by DaOfficialRolex)

@fryfrog I'm sorry about that I am getting a weird glitch with getting a server update.

Edit: Rebuilding the package seemed to fix it for me. Sorry about flagging the package out of date.

fryfrog commented on 2020-12-14 21:22 (UTC)

@DaOfficialRolex, why do you think it should be Their site says

duffydack commented on 2020-11-04 23:33 (UTC) (edited on 2020-11-05 10:51 (UTC) by duffydack)

@fryfrog:. I build in a clean chroot always and never had any issues. No issues reported in any llogs while using it. ¯\_(ツ)_/¯

fryfrog commented on 2020-11-04 23:19 (UTC)

@anatolik: My namcap output complains about a lot of stuff, I suspect it is confused by the fact that their releases include everything? :|

fryfrog commented on 2020-11-04 20:41 (UTC)

@anatolik: Can you confirm if it works (or doesn't) w/o having sqlite3 installed? I should be able to test later too. And I also need to look into namcap, I have no idea what it is. :)

anatolik commented on 2020-11-04 20:08 (UTC)

namcap warns:

plex-media-server E: Dependency sqlite detected and not included (libraries ['usr/lib/'] needed in files ['usr/lib/plexmediaserver/lib/'])

fryfrog commented on 2020-09-27 14:53 (UTC)

@darko82: I added i686 to both this package and the plexpass package, but I didn't bump the version or pkgrel. Give that a try and let me know if it works.

darko82 commented on 2020-09-27 08:41 (UTC)

Is it possible to add i386 to architectures? Deb is already in repository

theduckchannel commented on 2020-08-27 21:39 (UTC)


I update my system and everything ok now.

yay -Syu and update to 1.20 i am sorry

theduckchannel commented on 2020-08-27 21:38 (UTC)

@fryfrog , the latest version is

The Link:

fryfrog commented on 2020-08-27 21:34 (UTC)

@fredlins: Can you link to the newer version? This package and both say is the most recent version.

theduckchannel commented on 2020-08-27 21:31 (UTC)


New version is available. Please , update. Thank you.

slav commented on 2020-08-26 21:53 (UTC)

Thank you guys for quick help. I just create media folder under root and seems to be OK. You have right to don't give my user home folder plex permission.

techwiz commented on 2020-08-26 20:59 (UTC)

@slav create a new group and add the Plex user as well as all of your local users to that group then do ‘chgrp -r’ on your home dirs so the whole thing shares the same group and ‘chmod -r g+r /home’ to ensure the group has read access to the folders. Mind you, this is not a great idea as all users now have read access to everyone else’s home dirs. A better solution would be to do the above to your media folders and then symlink those media folders from a “Shared” directory where plex can scan, without breaking permissions for the whole home for everyone. This way plex can see /Shared/user1 which redirects to /home/user1/media/ for example. That way only /home/user1/media is exposed to the group, preserving your secrets (like .ssh).

fryfrog commented on 2020-08-26 20:52 (UTC)

@slav: I would suggest not putting your media in your /home folder. But if you do, you'd need to make sure the user plex runs as can access it. This package uses the plex:plex user:group, but you can over ride it. Or give plex access to your home folder... which isn't a great idea.

Why not put your library in something like /data/library?

slav commented on 2020-08-26 20:47 (UTC)

Guys, Could you tell me please how to change default location or permission to be able scan local home subfolders? After installation I'm able to see only home folder however unable to scan any media so I did it test just drop few folders with media content under tmp and Plex is able to scan it so I think that is somewhere permission issue to home folder and all subfolders. Appreciate your help.

jerryk commented on 2020-07-23 03:16 (UTC) (edited on 2020-07-23 03:33 (UTC) by jerryk)

Thanks for your advice! That did not work but I will investigate more before posting in the Arch forums.

EDIT: I just switched aur helpers and it installed fine

techwiz commented on 2020-07-23 03:10 (UTC)

@jerryk, that file seems like it might be related to the “devtools” package. Try reinstalling that, and if that doesn’t work, I recommend posting in the Arch forums instead as this thread is only for the plex server package. Good luck.

jerryk commented on 2020-07-23 03:04 (UTC) (edited on 2020-07-23 03:06 (UTC) by jerryk)

I keep getting the error "chroot: config file /usr/share/devtools/pacman-aur.conf could not be read" as well. I have the base-devel package installed. I am using aurutils as an aur helper. I've tried clearing my cache, restarting, re-installing etc but haven't had any luck. Any one have an idea how to fix this?


techwiz commented on 2020-05-27 18:26 (UTC)

@ricardoas30, now you want to rerun the command that gave you the original error about fakeroot not found. You can do “makepkg -si” to build and install the plex package now that you’ve installed the necessary tools to do the build. It should no longer give you an error about fakeroot.

fryfrog commented on 2020-05-27 16:47 (UTC)

@ricardoas30: Sooo... what does that tell you?

commented on 2020-05-27 16:39 (UTC)


[ricardoas30@arch-linux ~]$ pacman -Q plex-media-server erro: o pacote "plex-media-server" não foi encontrado error: package "plex-media-server" was not found

[ricardoas30@arch-linux ~]$ pacman -Ql plex-media-server | grep “.service” erro: o pacote "plex-media-server" não foi encontrado the package "plex-media-server" was not found

techwiz commented on 2020-05-27 15:10 (UTC) (edited on 2020-05-27 15:10 (UTC) by techwiz)

What is your output for the following commands: pacman -Q plex-media-server; pacman -Ql plex-media-server | grep “.service”

commented on 2020-05-27 14:38 (UTC)

@techwiz, See the command to try to start the plex media server [ricardoas30@arch-linux ~]$ sudo systemctl start plexmediaserver Failed to start plexmediaserver.service: Unit plexmediaserver.service not found.

commented on 2020-05-27 14:35 (UTC)

@techwiz, After the failure I installed it again and this time without errors. Now that it is apparently installed I want to start plex and use it. Thankful.

techwiz commented on 2020-05-27 14:32 (UTC)

You’ll want to try installing the Plex package again. Your first attempt failed because of missing dependencies, which you’ve just installed.

commented on 2020-05-27 14:30 (UTC)

@techwiz, Another thing, did it work better now? the package installed without any errors but the plexmediaserver services are not available to start. I did not understand.

commented on 2020-05-27 14:28 (UTC)

@techwiz Yes, I understood. I read on google that I should give the command $ pacman -S base-devel I did and it worked. I'm just afraid of having a problem with the pacman in the future. Thankful.

techwiz commented on 2020-05-27 14:14 (UTC)

@ricardoas30, I think you are missing AUR build dependencies. Please follow the following wiki:

commented on 2020-05-27 13:56 (UTC)

Hello, I am trying to install the package but it returns an error message.

==> ERROR: Cannot find the fakeroot binary.

Could someone help me with the installation of this package? What am I doing wrong ?


techwiz commented on 2020-05-01 17:22 (UTC)

@fryfrog, I'm not sure of the exact order, but plex-media-server.service.d is always scanned whenever systemd loads plex-media-server.service. I want to say it would override anything in the regular .service file because it should only be loaded after the service is loaded, but I'm not sure how it would handle re-defined values.

fryfrog commented on 2020-05-01 17:13 (UTC)

@techwiz, I think a few of the items in the file are required for Plex to work. I wonder if the override would trump the EnvironmentFile=/etc/conf.d/plexmediaserver?

techwiz commented on 2020-05-01 15:05 (UTC)

@fryfrog, If the file isn't required for operation, might I suggest that @tbh instead create their own /etc/systemd/system/plex-media-server.service.d/CUSTOM_CONFIG_FILE_NAME.conf with their changes? That file should be loaded automatically by systemd and will not be overwritten by the package. The file name can be anything as long as it ends in .conf in that particular directory.

fryfrog commented on 2020-05-01 14:59 (UTC)

@tbh: A bunch of versions ago they did something that made everyone's conf.d/plexmediaserver break things instead. But that was long ago, I've restored it. Thanks for bringing it up.

tbh commented on 2020-05-01 07:38 (UTC)

Any reason why backup=('etc/conf.d/plexmediaserver') is commented out? I have a custom PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR and keep having to reconfigure this file.

dvk commented on 2020-02-26 12:58 (UTC)

I confirm that the latest version plex-media-server- builds with glibc-2.31-1 just fine, thank you.

fryfrog commented on 2020-02-22 16:39 (UTC)

I'm using the latest version of glibc just fine, fwiw.

dvk commented on 2020-02-21 14:35 (UTC)

Compilation of the latest PKGBUILD fails with: /usr/bin/cmake: error while loading shared libraries: cannot open shared object file: No such file or directory

Downgrading glibc to version 2.30-3 helps.

ragouel commented on 2020-02-17 03:07 (UTC)

Service won't start start. "Read/write access is required for path: /var/lib/plex/Plex Media Server".

fryfrog commented on 2019-11-28 15:36 (UTC)

Hey @j1simon, I added a .hook file to the package that you can just copy/symlink to the right place and get restarts from pacman. That should make all the restart on upgrade people and the don't restart on upgrade people happy! Give it a try for me and let me know if it works.

user98170 commented on 2019-11-21 05:44 (UTC)

YES! git clone FTW! I learned something new tonight and breathed a HUUUGE sigh of relief to find my server reappear exactly like I left it! THANK YOU!

fryfrog commented on 2019-11-21 05:31 (UTC)

Sounds like you need some Manjaro or pamac-manager help. I know it sounds like Arch snobbery, but you're having issues w/ some super basic stuff. Try digging through some wikis and/or support forums. Good luck.

techwiz commented on 2019-11-21 05:31 (UTC) (edited on 2019-11-21 05:37 (UTC) by techwiz)

@user98170, Do you have curl installed? I think by default http is handled by curl. Alternatively, your http download handler should be defined by the DLAGENT variable in your /etc/makepkg.conf file. Good luck.

fryfrog commented on 2019-11-21 05:17 (UTC)

What happens if you do it the manual way, download this via git clone and then go into the folder and makepkg?

fryfrog commented on 2019-11-21 05:14 (UTC)

If you curl or wget that file into the right place, does it work then?

user98170 commented on 2019-11-21 05:01 (UTC) (edited on 2019-11-21 05:13 (UTC) by user98170)

New to Manjaro (coming from Ubuntu). Trying to figure out how to reinstall Pacman. Line 72 reads if ! command -- "${cmdline[@]}" >&2; then

Reinstalled Pacman. Able to successfully build other AUR packages. Still same error when trying to build Plex.

I'm Using pamac-manager

Haven't touched /etc/makepkg.conf

fryfrog commented on 2019-11-21 04:54 (UTC)

You may have also messed up /etc/makepkg.conf, where the download agents are defined.

fryfrog commented on 2019-11-21 04:52 (UTC) (edited on 2019-11-21 04:52 (UTC) by fryfrog)

Your problem looks like it is with makepkg, which would only be for building from PKGBUILD, like in AUR packages. So can you successfully build other AUR packages? I agree w/ @techwiz, /usr/share/makepkg/source/ is owned by pacman, so I'd just re-install it. You could also have a look at that file on line 72. It reads if ! command -- "${cmdline[@]}" >&2; then in mine, what does yours read?

techwiz commented on 2019-11-21 04:51 (UTC)

Makepkg is provided by Pacman, try a different AUR package and I suspect you will have the same problem. It looks like one of your supporting scripts is broken or missing. HTTPS isn't really all that fancy a protocol and should 100% be a known and supported protocol.

user98170 commented on 2019-11-21 04:48 (UTC)

Pacman works just fine for everything else. Able to install, remove and upgrade everything except Plex. That's why I figured it was specific to this package.

techwiz commented on 2019-11-21 04:44 (UTC)

@user98170, Uhh... Well I would say that you probably want to reinstall pacman and/or base-devel. That error seems to be related to your system not this package. Maybe try the forums for more help.

user98170 commented on 2019-11-21 04:33 (UTC)

Been experiencing an issue for a few days now. Don't know what to do. Keep getting:

==> ERROR: Unknown download protocol: https -> Downloading plexmediaserver- /usr/share/makepkg/source/ line 72: Aborting...: command not found ==> ERROR: Failure while downloading Aborting...

techwiz commented on 2019-11-20 18:23 (UTC)

@j1simon, yes you can modify the PKGBUILD to meet your needs and maintain your patched repo yourself. As fryfrog mentioned, the change is trivial and the maintenance would be equally trivial for you. Asking the community, which agreed on “The Arch Way,” to bend over for your request is of course going to be met with resistance. Sorry for the inconvenience, but this is how we’ve all agreed things should be.

j1simon commented on 2019-11-20 17:32 (UTC)

I don't agree again. There are a way to solve this but someone decides doesn't use it because ¿the Arch way?

fryfrog commented on 2019-11-20 17:29 (UTC)

@j1simon: It doesn't matter if you agree or not, the Arch way is to not start or restart daemons and so that is how all the packages I manage operate. I personally would love if Arch came up w/ a way for packages to notify that they need restarting, so that at the end of a big upgrade, a user could be presented w/ all the services that might need restarting... but that doesn't exist.

You are of course welcome to take this AUR package and modify it how you'd like it to work. Keeping it up to date is as easy as changing a couple version fields and updating the checksums.

j1simon commented on 2019-11-20 17:24 (UTC) (edited on 2019-11-20 17:24 (UTC) by j1simon)

I don't agree. Every time Plex is upgraded, I have to restart Plex service manually because the service is in a state of error after upgrade. That should never happen if the update was correct.
For that is the .install file and this package uses it. In the post_upgrade() section it would be necessary to check if the service is started and if that is the case to restart it.

techwiz commented on 2019-11-20 14:41 (UTC)

@j1simon refer to this reddit post from 2013 that does a good job of explaining why Arch packages don’t start or stop services:

The gist is that it’s up to the user to configure and run their software, and as such many packages don’t ship with a default config that makes sense to run out of the box. Since we don’t know if the user wants to start the service right away or if the default config is good enough, pacman does not manage services, it just installs them.

j1simon commented on 2019-11-20 10:10 (UTC)

Why is not the service restarted when upgraded?

techwiz commented on 2019-10-31 02:37 (UTC)

@ectospasm: “ tl;dr, my ~/.cache/pikaur directory was a symlink to an NFS share, and for whatever reason this location was causing the bsdtar unpacking of the rpm to have permissions of 750, not 755.”

This makes sense as an NFS mount is not a local file system. Your NFS server is (correctly) defining your permissions as the file system is local to the server not your machine. Glad you figured out your issue.

ectospasm commented on 2019-10-31 02:29 (UTC)

@fryfrog: I solved my issue. See for my troubleshooting effort.

tl;dr, my ~/.cache/pikaur directory was a symlink to an NFS share, and for whatever reason this location was causing the bsdtar unpacking of the rpm to have permissions of 750, not 755.

ectospasm commented on 2019-10-14 23:56 (UTC) (edited on 2019-10-14 23:57 (UTC) by ectospasm)


Here is a snippet of output from tar -tvf plex-media-server-

drwxr-xr-x root/root         0 2019-10-14 18:34 usr/lib/plexmediaserver/
-rwxr-x--- root/root   1483304 2019-10-14 18:34 usr/lib/plexmediaserver/CrashUploader
-rwxr-x--- root/root    415728 2019-10-14 18:34 usr/lib/plexmediaserver/Plex Commercial Skipper
-rwxr-x--- root/root   4223416 2019-10-14 18:34 usr/lib/plexmediaserver/Plex DLNA Server
-rwxr-x--- root/root    239736 2019-10-14 18:34 usr/lib/plexmediaserver/Plex Media Fingerprinter
-rwxr-x--- root/root   6576008 2019-10-14 18:34 usr/lib/plexmediaserver/Plex Media Scanner
-rwxr-x--- root/root  21909120 2019-10-14 18:34 usr/lib/plexmediaserver/Plex Media Server
-rwxr-x--- root/root    731336 2019-10-14 18:34 usr/lib/plexmediaserver/Plex Relay
-rwxr-x--- root/root     12544 2019-10-14 18:34 usr/lib/plexmediaserver/Plex Script Host
-rwxr-x--- root/root    267336 2019-10-14 18:34 usr/lib/plexmediaserver/Plex Transcoder
-rwxr-x--- root/root   5540648 2019-10-14 18:34 usr/lib/plexmediaserver/Plex Tuner Service

So it's definitely getting stored in the pkg tarball that way. Where am I missing the permissions setting? I am using pikaur as my AUR helper, do you think that could be causing this?

ectospasm commented on 2019-10-14 23:45 (UTC) (edited on 2019-10-14 23:46 (UTC) by ectospasm)

@techwiz My umask for both my normal and root user are both 022, so I don't think there's anything out of the ordinary there.

I do notice some messages similar to the following (this is from my memory, I rebooted for a new kernel):

filesystem:  755  package:  750

Which suggests the package is overwriting the files with 750 permissions, even after I've set them with sudo chmod o+rx -R /usr/lib/plexmediaserver. Curiously, I did check the install command in the PKGBUILD, and it has permissions of 755. I don't know where the 750 permissions are coming from. It doesn't appear to be my umask (022 leads to permissions of 755, from what I remember about umask).

techwiz commented on 2019-10-08 00:26 (UTC)

@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 (UTC) (edited on 2019-10-07 22:49 (UTC) by fryfrog)

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 (UTC) (edited on 2019-10-07 22:02 (UTC) by ectospasm)


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:


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 (UTC)

@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 (UTC)

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 (UTC)

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

fryfrog commented on 2019-08-22 21:10 (UTC)

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 (UTC)

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 (UTC) (edited on 2019-03-22 16:55 (UTC) by fryfrog)

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

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 (UTC)

@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.

tmoore commented on 2019-03-22 16:44 (UTC)

FYI all.. You may need to edit your /etc/passwd and change the plex users home directory to /usr/lib/plexmediaserver (if you are upgrading from the older version using /opt)

duffydack commented on 2019-03-21 20:27 (UTC)

I can't remember if or why I placed it in there, there's no need for me to edit it. It's a very old install tbh - well, sorted now.

fryfrog commented on 2019-03-21 20:23 (UTC)

That isn't how it works. The files in /etc/systemd/system/ are the users, they only get there if the user puts them there. And they override any in /usr/lib/systemd/system. If you want to use a package's .service file, you shouldn't have one in that /etc folder. The better systemd way to override would be w/ an service.conf.d/override.conf file which you can create w/ systemctl edit <service>.

But I'm glad you got it fixed and I'm sure it'll help someone else to see how you fixed it. :)

duffydack commented on 2019-03-21 20:19 (UTC) (edited on 2019-03-21 20:21 (UTC) by duffydack)

@fryfrog: Aye, but it shouldn't have existed as I disabled the service, and enabled again, which in my mind should have replaced it with newer version, if it needed to be there in the first place - since enabling it places it in /etc/systemd/system/


fryfrog commented on 2019-03-21 20:16 (UTC)

Ah, /etc/systemd/system/ is for user systemd service files, packages don't put things in there and don't touch them there either.

duffydack commented on 2019-03-21 20:14 (UTC)

@fryfrog: The file /etc/systemd/system/plexmediaserver.service was the old one with directives for /opt/plexmediaserver. For some reason it got left behind, and prevented me from starting it. SystemD voodoo no doubt. Just mentioning it in case anyone else has a problem. Soon as I removed it, it used the pkg provided proper version....

fryfrog commented on 2019-03-21 19:58 (UTC)

@daffydack, which folder didn't exist? Was it in /opt or /usr/lib?

duffydack commented on 2019-03-21 19:41 (UTC)

I couldn't start it after update because 'plexmediaserver.service: Changing to the requested working directory failed: No such file or directory'. I had to remove the old service file from /etc/systemd/system, though I thought that would have been done when I 'disable --now'`d before updating. Just mentioning for anyone else coming here.

fryfrog commented on 2019-03-21 14:30 (UTC)

@blind0wl, I had forgotten to update the service file. Thanks for finding the issue. Should work now, also new version. :)

blind0wl commented on 2019-03-21 14:22 (UTC)

After upgrading today, plex no longer starts for me with the following issue: ● plexmediaserver.service - Plex Media Server Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2019-03-22 01:10:55 AEDT; 11min ago Process: 5777 ExecStart=/opt/plexmediaserver/Plex Media Server (code=exited, status=200/CHDIR) Main PID: 5777 (code=exited, status=200/CHDIR)

Mar 22 01:10:55 arch systemd[1]: plexmediaserver.service: Service RestartSec=5s expired, scheduling restart. Mar 22 01:10:55 arch systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3. Mar 22 01:10:55 arch systemd[1]: Stopped Plex Media Server. Mar 22 01:10:55 arch systemd[1]: plexmediaserver.service: Start request repeated too quickly. Mar 22 01:10:55 arch systemd[1]: plexmediaserver.service: Failed with result 'exit-code'. Mar 22 01:10:55 arch systemd[1]: Failed to start Plex Media Server.

fryfrog commented on 2019-03-21 05:03 (UTC)

@vesath, thanks for catching that. Fixed! Glad I didn't bump pkgrel! :)

fryfrog commented on 2019-03-21 05:01 (UTC)


vesath commented on 2019-03-21 05:00 (UTC)

fryfrog: I'd like to point out that currently the package conflicts with itself. Also, the pkgdesc still mentions plexpass. Cheers.

fryfrog commented on 2019-03-21 03:55 (UTC) (edited on 2019-03-21 04:01 (UTC) by fryfrog)

I just pushed the plexpass version of the package into this one, which is a pretty big change to how it works (mainly moves out of /opt). I have not bumped the pkgrel, so if you want to try it before and provide feedback... please do so. :)

It also added armv7 and aarch64 support! (and removed i686)

tmoore commented on 2019-03-21 02:44 (UTC)

The maintainer of the plexpass version, fryfrog, is taking over maintaining this non-plexpass version as well. Hopefully that will get things in sync better and speed up any repairs reported under either application (plus he has much cleaner builds).

I've enjoyed my few years maintaining this, and will still pipe in on the comments! Thanks!

tmoore commented on 2019-03-19 13:14 (UTC) (edited on 2019-03-20 14:18 (UTC) by tmoore)

Apparently having /usr/lib in the LD_LIBRARY_PATH in plexmediaserver.conf.d caused coredumps. No idea how. Reverted it to original to fix the other issues reported.

Youngsie97 commented on 2019-03-19 10:40 (UTC) (edited on 2019-03-19 10:41 (UTC) by Youngsie97)

+1 for @TioDuke suggestion fixing coredumps after latest update. Cheers

duffydack commented on 2019-03-19 09:56 (UTC)

Confirmed, what @TioDuke suggested fixed the issue. Cheers

TioDuke commented on 2019-03-19 01:41 (UTC) (edited on 2019-03-19 01:46 (UTC) by TioDuke)

@duffydack is right. After the -3 update, plex-media-server coredumps. The update to plexmediaserver.conf.d seems to be at fault.

Changing the first line to the following solves the issue : LD_LIBRARY_PATH=/opt/plexmediaserver/lib

duffydack commented on 2019-03-19 01:22 (UTC) (edited on 2019-03-19 01:24 (UTC) by duffydack)

Upgraded to earlier today, went fine. Upgraded -3 just now and now plex just coredumps. < log

tmoore commented on 2019-03-19 00:45 (UTC)

Yea.. They definitely compiled the binary requiring libva and libva-drm. But they didn't include that in the RPM header. => not found => not found => not found => not found

tmoore commented on 2019-03-18 23:25 (UTC)

Ok.. modified pkgbuild to require libva and libdrm.. See if that helps.

tmoore commented on 2019-03-18 23:17 (UTC)

Ah libva.. That's strange.. Yea I already had it installed due to something else so I didn't notice the issue. Let me repair the pkg (and check for any other new dependencies)

jeker commented on 2019-03-18 21:40 (UTC) (edited on 2019-03-18 21:42 (UTC) by jeker)

I've got the following error after I updated to version (from

systemd[1]: Started Plex Media Server.

systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=127/n/a

systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.

Directly executing the binary revealed the problem.

/opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory

The solution was to install libva, it seems to be a new dependency. Although I couldn't find anything about that in the change logs.

Sevenn commented on 2019-03-18 21:40 (UTC)

On the new version you need to add "/lib" at the end of the path "LD_LIBRARY_PATH" on the plexmediaserver.conf.d. See this issue :

srnty commented on 2019-03-17 09:36 (UTC)

I'm getting a "A problem has been detected with a core component of Plex Media Server." error at the Server Setup screen. It says to check the log file for details, but I have no idea where it is. Any help would be greatly appreciated.

fryfrog commented on 2019-02-15 05:11 (UTC)

@opsecwin: They've been messing around with their paths, the conf.d file may need LD updates. The plexpass version did.

fryfrog commented on 2019-02-15 05:10 (UTC)

@tmoore: i686 is dead, you can punt it. I just got armv7h and aarch64 working on the plexpass version. It might be worth bringing backward into this, though their paths changed in 1.14 -> 1.15.

opsecwin commented on 2019-02-04 02:55 (UTC)

Service doesn't seem to work.

plexmediaserver.service loaded failed failed Plex Media Server

[root@crush]# sudo -u plex "/opt/plexmediaserver/Plex Media Server" /opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory

plexmediaserver.service: Main process exited, code=dumped, status=6/ABRT

[root@crush opt]# systemctl status plexmediaserver ● plexmediaserver.service - Plex Media Server Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled) Active: failed (Result: core-dump) since Sun 2019-02-03 21:48:03 EST; 1min 0s ago Process: 7447 ExecStart=/opt/plexmediaserver/Plex Media Server (code=dumped, signal=ABRT) Main PID: 7447 (code=dumped, signal=ABRT)

[plex@crush ~]$ ./Plex\ Media\ Server Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign Crash Uploader options (all are required): --directory arg Directory to scan for crash reports --serverUuid arg UUID of the server that crashed --userId arg User that owns this product --platform arg Platform string --url arg URL to upload to --help show help message --version arg Version of the product

I can run it manually. Hmmm.

maddmike commented on 2018-04-11 00:30 (UTC)

Got this today:

Version An update is available. Please install manually.

LoopBack commented on 2018-03-30 03:18 (UTC)

I got this error today :

":: plex-media-server package(s) failed to install. :: ensure package version does not mismatch between .SRCINFO and PKGBUILD :: ensure package name has a VCS suffix if this is a devel package"

Please advise. Thank you!

tmoore commented on 2018-03-17 00:00 (UTC)

@fryfrog Thanks.. I'll check out your PKGBUILD and implement :)

fryfrog commented on 2018-03-16 21:24 (UTC)

@tmoore, I recently did some clean up of the plex-media-server-plexpass package like moving from /opt to /usr/lib and using systemd's tmpfiles. You might be interested in doing the same? Or I'd be happy to do it and submit patch.

eientei95 commented on 2018-03-07 09:39 (UTC) (edited on 2018-03-07 09:40 (UTC) by eientei95)

New version out





hecsa commented on 2018-01-28 16:18 (UTC)

@techwiz you were right about setting the LD_LIBRARY_PATH variable:

[hecsa@dshecsa01 plexmediaserver]$ export LD_LIBRARY_PATH=/opt/plexmediaserver:$LD_LIBRARY_PATH [hecsa@dshecsa01 plexmediaserver]$ nohup ./Plex\ Media\ Server & [1] 16636

This worked like a charm. What needs to be modified on the package is the systemctl script, as far as I can see, it does not take into account the LD_LIBRARY_PATH variable.

Thanks a lot, now I can see my movies again! :-) Best regards,


techwiz commented on 2018-01-28 14:26 (UTC)

@hecsa, another user had a similar issue... They resolved theirs by reinstalling plex. Also, if you're calling the plex binary manually, you need to use LD_LIBRARY_PATH=/path/to/plex/binaries/folder so that plex can find the included library binaries. They should be in the same folder as the plex bin.

hecsa commented on 2018-01-28 07:38 (UTC)

Same issue as before:

./Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory

Any ideas about how to solve it?

Thanks, and best regards,


darose commented on 2018-01-18 03:12 (UTC)

Hmmm ... the plot thickens. It looks like what's actually happening is timeouts. Plex server starts downloading temp files to that directory (e.g. but then times out part way through and deletes the file. Again, not sure why. I wound up having to download all the codecs manually with curl.

darose commented on 2018-01-18 02:31 (UTC)

I think that you're right that it can write to that directory, but I can't figure out why. There's plenty of disk space (24gb). The Codecs/b077134-1269-linux-ubuntu-x86_64 dir is writeable by user plex. When I delete the Codecs dir, plex recreates it OK. But for some reason codecs can't get downloaded there.

Every time it tries to download a codec it says "Error issuing curl_easy_perform(handle): 28", "HTTP simulating 408 after curl timeout", "Codecs: Download failed: Failed to download '': 408"

Note that I recently upgraded from version to I'm guessing that has something to do with my issue ...

techwiz commented on 2018-01-18 02:21 (UTC)

@darose Cool, sounds like an easy fix. My codecs are in /var/lib/Plex Media Server/Codecs/

Maybe Plex is having trouble writing to that directory, check permissions and disk space. Also check any proxy/web settings to make sure Plex can reach the internet.

Alternatively, you can download the files and install them yourself, but it'll probably die again if and when it needs to update them.

darose commented on 2018-01-18 02:12 (UTC)

It looks like the server is trying to download those codecs itself and failing.

Jan 17, 2018 21:08:56.492 [0x7f50b9bf8700] DEBUG - HTTP requesting GET ... Jan 17, 2018 21:09:31.779 [0x7f50b9bf8700] ERROR - Codecs: Download failed: Failed to download '': 408 Jan 17, 2018 21:09:31.780 [0x7f50b9bf8700] ERROR - Error configuring transcoder: Decoder install failed: mpeg4

I'm not sure why.

techwiz commented on 2018-01-18 00:22 (UTC)

@darose Go to Settings, click Show Advanced. Go into Debug and try enabling/disable Direct Play and/or Direct Stream.

It's possible your machine is missing video codecs for h.264 or AAC... I'm not sure what package offers those. This wiki might help:

I'm also unsure if it's your client or your server that is missing the codecs, probably the client tho.

darose commented on 2018-01-17 23:27 (UTC)

The web player keeps giving me errors (in firefox 57.0.4):

Playback Error Conversion failed. A required codec could not be found or failed to install.

Anyone maybe have a suggestion why?

dlq84 commented on 2017-12-14 15:11 (UTC)

Please do not add configuration files for things such as firewalld. This is not Ubuntu where every package makes magic configuration changes/additions to other parts of the system.

techwiz commented on 2017-12-06 11:07 (UTC)

You guys can add such config examples to the arch wiki page for Plex if there is one or you can make an informational forum post. Adding such a file here is a slippery slope, what if I use shorewalld instead or maybe iptables? Do we add a config hook for those here too? Just my 2 cents

compgamer89 commented on 2017-12-06 07:15 (UTC)

@raqua @tmoore

Countervote - please add the firewalld service description. Interoperability hooks files are designed as such so that:

1) If you use the service, you get automatic interoperability 2) If you don't use the service, the hook file is benign/ignored

@tmoore For those of us who do use firewalld, the file is far from useless, and I don't see a compelling/meaningful impact on non-firewalld users besides a few kilobytes of extra storage.

@raqua, where do you think such a service description would belong?

raqua commented on 2017-11-25 08:24 (UTC) (edited on 2017-11-25 08:24 (UTC) by raqua)

Please do not add the firewalld config. Us, who do not use it do not want to have system poluted by useless files! It does not belong to this package. Thanks.

tmoore commented on 2017-11-10 02:34 (UTC)

@danieldk Maybe.. although I'm concerned about the impact to people who don't have firewalld installed.

commented on 2017-10-29 12:37 (UTC)

Thanks for this excellent package! Would you consider adding a firewalld configuration file, so that it easy to open up the right ports for those of us using firewalld? I have uploaded a patch here:

GreenRaccoon23 commented on 2017-10-12 05:06 (UTC)

@doctor Adding to the comment from @carbncl, try regenerating your system locales and/or reinstalling glibc. That worked for me. sudo pacman -S glibc

carbncl commented on 2017-10-11 04:52 (UTC) (edited on 2017-10-11 04:52 (UTC) by carbncl)

@doctor, had recently the same issue, your locale isn't set properly on your server. Look into comments for more details. I bet we are hosted by the same company with a bugged installer... ;p

doctor commented on 2017-09-24 19:29 (UTC)

I have problem with server starting. sudo systemctl status plexmediaserver.service ● plexmediaserver.service - Plex Media Server Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled) Active: failed (Result: core-dump) since Sun 2017-09-24 22:21:23 +03; 6min ago Process: 22193 ExecStart=/opt/plexmediaserver/Plex Media Server (code=dumped, signal=ABRT) Main PID: 22193 (code=dumped, signal=ABRT) CPU: 218ms сен 24 22:21:18 pc1.home systemd[1]: plexmediaserver.service: Failed with result 'core-dump'. сен 24 22:21:23 pc1.home systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart. сен 24 22:21:23 pc1.home systemd[1]: Stopped Plex Media Server. сен 24 22:21:23 pc1.home systemd[1]: plexmediaserver.service: Start request repeated too quickly. сен 24 22:21:23 pc1.home systemd[1]: Failed to start Plex Media Server. сен 24 22:21:23 pc1.home systemd[1]: plexmediaserver.service: Unit entered failed state. сен 24 22:21:23 pc1.home systemd[1]: plexmediaserver.service: Failed with result 'core-dump'. ен 24 22:21:12 pc1.home systemd[1]: Started Plex Media Server. сен 24 22:21:12 pc1.home systemd[1]: Started Process Core Dump (PID 22185/UID 0). сен 24 22:21:13 pc1.home systemd[1]: plexmediaserver.service: Main process exited, code=dumped, status=6/ABRT сен 24 22:21:13 pc1.home systemd[1]: plexmediaserver.service: Unit entered failed state. сен 24 22:21:13 pc1.home systemd[1]: plexmediaserver.service: Failed with result 'core-dump'. сен 24 22:21:13 pc1.home systemd-coredump[22186]: Process 22184 (Plex Media Serv) of user 993 dumped core. Stack trace of thread 22184: #0 0x00007f241baaf8a0 raise ( #1 0x00007f241bab0f09 abort ( #2 0x00007f24251cf605 _ZN9__gnu_cxx27__verbose_terminate_handlerEv ( #3 0x00007f24251ced46 _ZN10__cxxabiv111__terminateEPFvvE ( #4 0x00007f24251ced73 _ZSt9terminatev ( #5 0x00007f24251cf23e __cxa_throw ( #6 0x00007f24251ce0c7 _ZSt21__throw_runtime_errorPKc ( #7 0x00007f2424f50994 _ZNSt6locale5facet18_S_create_c_localeERP15__locale_structPKcS2_ ( #8 0x00007f24247118a9 _ZNSt6locale5_ImplC2EPKcm ( #9 0x00007f2424712a52 _ZNSt6localeC1EPKc ( #10 0x00007f24241a0823 _ZN5boost10filesystem4path5imbueERKSt6locale ( #11 0x0000000000d11fe9 n/a (Plex Media Server) #12 0x00000000004826ec n/a (Plex Media Server) #13 0x0000000000da3aad n/a (Plex Media Server) #14 0x00007f241ba9befb __libc_start_main ( #15 0x0000000000485196 n/a (Plex Media Server)

techwiz commented on 2017-09-09 08:56 (UTC)

@skeptikos, libbost is packaged with Plex, not the system version. It should be in the same dir as the main plex bin but for some reason it cannot find it easily. Check your plexmediaserver.conf.d to make sure it is exporting the correct lib location.

skeptikos commented on 2017-09-09 08:52 (UTC)

Getting following error: /opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or d irectory Libboost is at 1.64 at this point.

tmoore commented on 2017-08-31 13:43 (UTC)

@precrisk Sounds like a transient networking issue. Can you manually run this and have it work? wget ""

precrisk commented on 2017-08-31 13:33 (UTC) (edited on 2017-09-01 01:34 (UTC) by precrisk)

Trying to install gives me following error - ==> Retrieving sources... -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found plex.sysusers -> Found terms.txt -> Downloading plexmediaserver- % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left. 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left. 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0curl: (7) Failed to connect to port 443: Network is unreachable ==> ERROR: Failure while downloading Aborting... PS. DONT WORRY, IT COULD BE A TEMPORARY ISSUE, TODAY I TRIED SECOND TIME AND IT SOLVED

j1simon commented on 2017-08-16 11:37 (UTC)

@techwiz thank you too much. I have moved the media folder to '/media', I have changed the owner to 'myuser:plex' and I have changed the permission to: 'chmod -R g+w /media'. It works now.

techwiz commented on 2017-08-16 11:24 (UTC)

@j1simon I have my media in a media folder in my root dir and I've created a group called media that I added both plex and myself to. That way you can give the group RW permission and both you and plex can access the files. The owner can remain you if you wish.

j1simon commented on 2017-08-16 11:15 (UTC)

With every update I have to edit systemd service file to change user/group by my user. The folder with movies/series is in my home. This folder has to be accessible to my user. Is there any way to avoid having to edit the file each time?

techwiz commented on 2017-08-15 14:59 (UTC) (edited on 2017-08-15 15:01 (UTC) by techwiz)

Just an FYI, I'm pretty sure there's a prepare section because it used to extract the tarball from the ARM pkg then run prelink on the bins for ARMv6 and ARMv5. That being said... those archs aren't supported by Plex anymore and we removed prelink when it became derelict.

vesath commented on 2017-08-15 14:45 (UTC)

I'm sure ARM users will be able to build this package just fine without the prepare() function. It's not a magical architecture: that "package.tgz" file is not going to come out of nowhere... The current prepare() function really makes no sense. Cheers.

tmoore commented on 2017-08-15 13:35 (UTC)

Yes, I can do that We do have some arm users, and it doesn't hurt having that in there.

vesath commented on 2017-08-15 03:25 (UTC)

Could we please just remove the commented bits altogether? If we ever need them again they'll be in the AUR git log. Besides, what is the ARM switch in prepare() for? There's no package.tgz file anywhere that I can see so this seems like very bad packaging practice to me, even if it was found to work for a given user (which I even doubt). I suggest we remove it and see if anything break. Probably nothing will. Cheers.

tmoore commented on 2017-08-07 19:37 (UTC)

Updated pkg

tmoore commented on 2017-08-07 00:53 (UTC)

Thx Drop. I'll take a look at removing prelink dep

drop commented on 2017-08-06 23:07 (UTC)

This package requires prelink which is no longer maintained and unavailable in the repository. See latest comments at

volle commented on 2017-08-02 15:56 (UTC)

Does anybody know if the problems with prelink do any harm (to the system or plex) when updating plex-media-server?

dojero commented on 2017-08-02 03:44 (UTC)

Suddenly after latest pacman update yesterday, plexmediaserver wouldn't run (localhost wouldn't connect). Up to now, I had been editing the service file (in /usr/lib/systemd/system/plexmediaserver.service) to add my username to the user line (in addition to plex). Now, systemd wouldn't start the service. So I've now edited the service file again, this time removing plex as a user and leaving only myself as a user. I also added my user to the plex group. Finally, and importantly, I changed ownership of the /var/lib/plex directory to my user (chown -R username directory). Then run systemctl daemon-reload and reenable systemd service file for plex media server. It now works fine. I don't know what caused the problem (I assume something to do with new kernel or systemd version?), but it also happened to my sabnzbd systemd service file. So it's not an isolated problem.

tmoore commented on 2017-07-29 23:59 (UTC)

@TimoVerbrugghe: Yea, make sure you have "boost-libs" package installed

commented on 2017-07-29 09:43 (UTC)

Hi tmoore, Getting a weird issue when starting plex media server after updating to linux kernel v4.12.3 Getting " error while loading shared libraries:" when trying to start /opt/plexmediaserver/Plex\ Media\ Server. is present in the /opt/plexmediaserver folder and that folder is also defined as its LD_LIBRARY_PATH... EDIT: Nevermind, quick reinstall did the trick, but leaving it here for anyone else encountering the problem.

tmoore commented on 2017-07-23 16:18 (UTC)

@geekinthesticks you need to download a later version.. No idea what build of this you have, but it's way past 0.9.16

geekinthesticks commented on 2017-07-23 14:00 (UTC)

I am getting 403 error when trying to download the rpm: curl: (22) The requested URL returned error: 403 ==> ERROR: Failure while downloading Aborting...

tmoore commented on 2017-07-17 13:30 (UTC) (edited on 2017-07-17 13:30 (UTC) by tmoore)

*For users flagging out of date* Please note that PlexPass users get access to later versions than non-plexpass users. Thus this package will be behind when newer versions come out. You will want to flag Please do not flag this as out of date unless you go here (and are not a plexpass user/logged in) and see a newer version

techwiz commented on 2017-07-03 10:25 (UTC)

@gbin, take that over to the prelink package, they might be of more help to you than us. Did you transfer the disk from an Intel system to an AMD system? That's a pretty weird error to get... you might just need to rebuild prelink for Ryzen or file a bug with the original developers.

gbin commented on 2017-07-03 03:41 (UTC)

I have an illegal instruction at prepare() stage: ``` ==> Extracting sources... -> Extracting plexmediaserver- with bsdtar ==> Starting prepare()... /tmp/yaourt-tmp-gbin/aur-plex-media-server/./PKGBUILD: line 41: 18904 Illegal instruction (core dumped) execstack -c usr/lib/plexmediaserver/* ``` I tried manually on my existing and it does the same: sal ➜ ~ execstack -c /opt/plexmediaserver/ [1] 19136 illegal hardware instruction (core dumped) execstack -c /opt/plexmediaserver/ I have an AMD Ryzen cpu.

tmoore commented on 2017-06-07 13:49 (UTC)

Nope.. Try and delete the existing file you may have. It looks like it's trying to resume. It may be in a folder in /tmp

jddantes commented on 2017-06-07 13:23 (UTC)

Anyone getting this same error? ``` -> Downloading plexmediaserver- ** Resuming transfer from byte position 7420553 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 100M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume. ==> ERROR: Failure while downloading ```

p-we commented on 2017-04-24 23:25 (UTC)

Does anyone still have plexmediaserver- Or the equivalant built ARCH pkg.tar.xz package? Reason... Plex have taken down all older versions from their downloads. The download links from previous versions are dead and diverted to current. I've been scouring the internet for archives to no avail. I need version 1.0.2 or earlier to be compatible with this excellent mythTV Plex plugin which has been broken since this version. Thanks..

heichblatt commented on 2017-04-05 09:37 (UTC)

Hi all, this diff would to the trick: --- $ git diff diff --git a/PKGBUILD b/PKGBUILD index b7230f9..5bd895a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,8 +7,8 @@ # Contributor: Praekon <> pkgname=plex-media-server -pkgver= -_pkgsum=edef59192 +pkgver= +_pkgsum=4b377d295 pkgrel=1 pkgdesc='Plex Media Server' arch=('armv7h' 'i686' 'x86_64') @@ -32,9 +32,9 @@ sha256sums=('7ab1ee8da9012d257b7f473fb79d76b201ca592cbe3722f977a43b58bfad180e' '9a214a37cc8dd5fd912d5bcca16445f023f892aafd4ca54226aeb2b4910d23a2' 'ebf153d5789f9d24cb98ae607d227286e1da6ce54e149c8be4f47e08ee729573' '7bb97271eb2dc5d1dcb95f9763f505970d234df17f1b8d79b467b9020257915a') -sha256sums_armv7h=('ebd663213d697d5ae97e400a2cf3f4284700e322385bc3698ae35c3313800d85') -sha256sums_i686=('a70139b0dc7595bc8b78e0820cdec321239bcd0d9022f26a88e7cf48c1a1dc26') -sha256sums_x86_64=('b92e99b37887e596a35e6c63f97f030df82f94c31f6d8316071440a6d4c738e7') +sha256sums_armv7h=('93b545fb628caa90efdcb38e18fa47e852a5b58ae74fc971c5cbeb96bba4fd6c') +sha256sums_i686=('e04fad2b9d5069d6d01bac1f3e297296e49d4cc78a2e5ea16098909ee519af50') +sha256sums_x86_64=('e460ab963d3d40765491e72a0bc11d538931a0046929c8023cff27efd2e39e94') prepare() { ---

lswest commented on 2017-04-05 07:34 (UTC)

It is now actually out of date though: April 2, 2017

tmoore commented on 2017-03-10 21:05 (UTC) (edited on 2017-03-10 21:05 (UTC) by tmoore)

Package is not out of date for those that flagged it. March 1, 2017

jtp755 commented on 2017-02-28 19:13 (UTC)

@a36233 -- I just upgraded using the package from with no issues. Used systemctl to stop it, reload daemon, and then started it. If the config is lost check to make sure you are launching as the same user.

a36233 commented on 2017-02-15 18:23 (UTC)

plex-media-server stopped working, cannot start it with systemdctl, can only start it manually, and configurations are lost.

deimidis commented on 2017-01-21 14:22 (UTC) (edited on 2017-01-21 14:25 (UTC) by deimidis)

Since some days I beginning to have problems with this package. Plex Server didn't update libraries. I couldn't restart server from systemctl, only rebooting the server, and when I did this, it's start again, but didn't recognize the old plex, says I need to reclaim it again. Today was even worst, needing to re create all my libraries (EDITED: probably this is because I start the daemon as root)

tmoore commented on 2017-01-03 18:47 (UTC)

PS - remove your src and pkg directories first if you are makepkg by hand i.e. your error "==> WARNING: Using existing $srcdir/ tree"

tmoore commented on 2017-01-03 18:46 (UTC)

So I'm guessing are you building on an ARM environment? Because this is getting triggered arm*) mkdir -p usr/lib/plexmediaserver && tar -zxf package.tgz -C usr/lib/plexmediaserver/;; Maybe the mkdir command on your system isn't working? Try to manually run as root "mkdir -p /usr/lib/plexmediaserver"

jody commented on 2017-01-03 16:42 (UTC) (edited on 2017-01-03 17:37 (UTC) by jody)

was running plex previous version without problems. I removed the package, was going to install this one now, but was getting error below: plex-media-server]$ makepkg -e ==> Making package: plex-media-server (Tue Jan 3 18:38:08 CET 2017) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Entering fakeroot environment... ==> Starting package()... cp: cannot stat 'usr/lib/plexmediaserver': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... I made it work using "makepkg -Acs" instead of "makepkg -e" now it is working again, thanks!

tmoore commented on 2016-12-16 16:47 (UTC)

I'm not sure how everyone's startup scripts are getting munged, but that's why there is this line in the file: EnvironmentFile=/etc/conf.d/plexmediaserver Make sure your /usr/lib/systemd/system/plexmediaserver is the one from the package.

Pyrepenol commented on 2016-12-16 16:43 (UTC)

@TimoVerbrugghe I ran into the same issue. The libaries were set properly already, but for some reason I was only able to start plex using the following command: /bin/sh -c 'LD_LIBRARY_PATH=/opt/plexmediaserver /opt/plexmediaserver/Plex\ Media\ Server' Eventually I figured out how to make it work with systemd, by replacing the ExecStart line with: ExecStartPre=export LD_LIBRARY_PATH=/opt/plexmediaserver ExecStart=/opt/plexmediaserver/Plex\x20Media\x20Server Hope this helps!

phrakaur commented on 2016-12-15 05:12 (UTC)

@tmoore: If a firewall was blocking it, it would probably not work with one form of execution and fail with another. It only works when run manually, not from systemd

reubendevries commented on 2016-12-10 04:05 (UTC)

looks like it was the base-devel - thanks guys your champs I appreciated your patience and kindness to a noob like myself!

tmoore commented on 2016-12-10 03:22 (UTC)

You may also want to clear out your cache by running "sudo pacman -Scc" and rm -rf /tmp/yaourt* Again, try and do "yaourt -S prelink" first. If you never get that to work, plex won't work either. Any issues with the plexpass version will need to go over on their board.

techwiz commented on 2016-12-10 03:00 (UTC)

@reubendevries, do you have "base-devel" installed? If not, that would be your problem.

reubendevries commented on 2016-12-10 02:45 (UTC)

Is there a way to re-download or clear my cache. I tried downloading the prelink again by itself and it didn't work, also when I tried and download the plex-media-server-plexpass version I get a slightly different error here is the steps I take 1. yaourt plex-media-server 2. Choose which build I choose 2 3. Edit PkgBuild - I choose N 4. Edit plex-media-server.install ? - I choose N 5. Continue building plex-media-server ? - I choose Y 6. I get the error output ==> ERROR: Cannot find the strip binary required for object file stripping. ==> ERROR: An unknown error has occurred. Exiting... ==> ERROR: Makepkg was unable to build plex-media-server-plexpass. and install goes into loop where I can only cancel to proceed. Maybe I need to try re-install the entire OS, not 100% sure, maybe it's my OS...

techwiz commented on 2016-12-09 16:13 (UTC)

@reubendevries, your issue is with the installation of prelink which is a dependency of plex. I recommend you find prelink here on AUR and manually install. I saw no issues when I tried re-installing using yaourt earlier, so I think you might have a corrupt prelink download.

reubendevries commented on 2016-12-09 16:07 (UTC)

@Techwiz i've re-downloaded both the plex-media-server-plexpass and just the plex-media-server and both are failing. I have a feeling it has something to do with the package released last night. Any chance you or someone else can confirm my findings. Unless I am doing something wrong. These are the steps i'm taking 1. yaourt plex-media-server 2. Choose which build I choose (1 or 2) 3. Edit PkgBuild - I choose N 4. Edit plex-media-server.install ? - I choose N 5. Continue building plex-media-server ? - I choose Y 6. It then asks me about editing pkgbuild for prelink 20130503-7 - I choose N 7. It then asks me about editing install for prelink 20130503-7 - I choose N 8. Continue building prelink ? - I choose Y 9 I get the error output ==> ERROR: Cannot find the strip binary required for object file stripping. ==> ERROR: An unknown error has occurred. Exiting... ==> ERROR: Makepkg was unable to build prelink. and install goes into loop where I can only cancel to proceed. Does anyone else get these results?

techwiz commented on 2016-12-09 12:05 (UTC)

@reubendevries, I would hazard to guess you have a corrupted download. Nuke it and try again.

reubendevries commented on 2016-12-09 05:23 (UTC)

Getting these errors when doing an install anyone know how to fix? ==> ERROR: Cannot find the strip binary required for object file stripping. ==> ERROR: An unknown error has occurred. Exiting... ==> ERROR: Makepkg was unable to build plex-media-server-plexpass.

tmoore commented on 2016-12-08 00:14 (UTC)

There was a reported outage with the Plex auth servers yesterday (around noonish). I was having the same issues.

techwiz commented on 2016-12-07 23:47 (UTC)

@fabioca, just FYI, but I can still access Plex without auth when I connect to the server by LAN address or hostname, i.e. You could try that instead of localhost:32400/web/

techwiz commented on 2016-12-07 15:11 (UTC)

@fabioca, I just tried myself and I'm seeing similar issues. I think this is an issue with Plex not our package. I recommend you check out the Plex forum for answers and/or report the issue. Perhaps they broke something with the latest patches.

fabioca commented on 2016-12-07 15:02 (UTC)

@techwiz: that is already setup correctly in my Preference.xml file, which has not changed. It does not work even from the same machine: when I type browse 127.0.01:32400/web, it brings me to the login screen and I have no access to the settings. Using netstat, I can see the server is listening on port 32400. Using tcpdump, I can see the traffic in both directions between the server and the browser, until the login screen appears.

tmoore commented on 2016-12-06 01:00 (UTC)

@phrakur You might want to see if you have a firewall or something running. Or you can run "sudo netstat -tunpl" and see if you have a port that PlexMediaServer is listening on. And yes, sourcing the config before running the executable is by design and should be done automatically by the systemd script.

techwiz commented on 2016-12-06 00:49 (UTC)

@fabioca, Settings -> Server -> Network, then show advanced settings at the top and add your LAN subnet to the field for networks that are allowed without auth.

fabioca commented on 2016-12-05 23:54 (UTC)

I just upgraded from 0.9 to 1.2. Before, when connecting from the LAN, sign-in was not required. Now it seems to be. Is that indeed the case or is there any seetting that needs to be configured to allow use of the app without sign-in? Has anybody been able to load the application at port 32400 without signing in from the LAN or localhost?

phrakaur commented on 2016-12-03 20:40 (UTC)

When I run this from systemd, it starts fine, but nothing can connect to it, not even locally. But this works: cd /opt/plexmediaserver source /etc/conf.d/plexmediaserver ./Plex\ Media\ Server (note that without sourcing the conf file, or setting LD_LIBRARY_PATH=/opt/plexmediaserver, it cannot find libiconv, despite it being in the same dir)

b1tninja commented on 2016-11-08 20:05 (UTC)

I created a couple directories, and gave plex write permission to them, /opt/plexmediaserver/{Codecs,Library/Logs} hope this helps others

commented on 2016-11-06 23:07 (UTC)

Ran export LD_LIBRARY_PATH=/opt/plexmediaserver, afterwards ran "/opt/plexmediaserver/Plex Media Server", but having the same error. Also installed with makepkg, not pacaur, just to make sure that's not the problem, but same error. Ugh... Why is it working in the VM, but not on the metal? It's exactly the same install!

techwiz commented on 2016-11-06 22:58 (UTC)

If you're using absolute path you need to specify the LD_LIBRARY_PATH from /etc/conf.d/plexmediaserver before you call the exec. The lib it is looking for is in the same directory as the binary.

commented on 2016-11-06 22:56 (UTC)

Install log from pacaur down below, but I don't think we can get anything from that. ------------- Install log from pacaur: fileserver@ArchServer ~> pacaur -Syu plex-media-server [sudo] password for fileserver: :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Starting full system upgrade... there is nothing to do :: Package(s) plex-media-server not found in repositories, trying AUR... :: Starting AUR upgrade... :: resolving dependencies... :: looking for inter-conflicts... AUR Packages (2) plex-media-server- prelink-20130503-7 Repo Packages (1) elfutils-0.167-1 Repo Download Size: 0.00 MiB Repo Installed Size: 1.49 MiB :: Proceed with installation? [Y/n] y :: Retrieving package(s)... Cloning into 'plex-media-server'... remote: Counting objects: 9, done. remote: Compressing objects: 100% (9/9), done. remote: Total 9 (delta 0), reused 4 (delta 0) Unpacking objects: 100% (9/9), done. :: View plex-media-server PKGBUILD? [Y/n] n :: View plex-media-server.install script? [Y/n] n :: prelink build files are up-to-date -- skipping :: Checking plex-media-server integrity... ==> Making package: plex-media-server (Sun Nov 6 23:52:40 CET 2016) ==> Retrieving sources... -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found plex.sysusers -> Found terms.txt -> Downloading plexmediaserver- % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 96.6M 100 96.6M 0 0 11.0M 0 0:00:08 0:00:08 --:--:-- 11.2M ==> Validating source files with sha256sums... plexmediaserver.conf.d ... Passed plexmediaserver.service ... Passed plex.sysusers ... Passed terms.txt ... Passed ==> Validating source_x86_64 files with sha256sums... plexmediaserver- ... Passed :: Installing prelink cached package... loading packages... resolving dependencies... looking for conflicting packages... Packages (2) elfutils-0.167-1 prelink-20130503-7 Total Installed Size: 2.85 MiB :: Proceed with installation? [Y/n] (2/2) checking keys in keyring [##############################] 100% (1/2) checking package integrity [##############################] 100% (1/2) loading package files [##############################] 100% (2/2) checking for file conflicts [##############################] 100% (2/2) checking available disk space [##############################] 100% :: Processing package changes... (1/2) installing elfutils [##############################] 100% (2/2) installing prelink [##############################] 100% :: Building plex-media-server package(s)... ==> Making package: plex-media-server (Sun Nov 6 23:52:51 CET 2016) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found plex.sysusers -> Found terms.txt -> Found plexmediaserver- ==> Validating source files with sha256sums... plexmediaserver.conf.d ... Passed plexmediaserver.service ... Passed plex.sysusers ... Passed terms.txt ... Passed ==> Validating source_x86_64 files with sha256sums... plexmediaserver- ... Passed ==> Extracting sources... -> Extracting plexmediaserver- with bsdtar bsdtar: Failed to set default locale ==> Starting prepare()... ==> Entering fakeroot environment... ==> Starting package()... ==> Tidying install... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issue... ==> Creating package "plex-media-server"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Adding install file... -> Generating .MTREE file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: plex-media-server (Sun Nov 6 23:53:20 CET 2016) ==> Cleaning up... :: Installing plex-media-server package(s)...

commented on 2016-11-06 22:54 (UTC)

@techwiz: uninstalled deluge, libtorrent-rasterbar & boost-libs, reintalled plex-media-server... but the same error "/opt/plexmediaserver/Plex Media Server" /opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory

commented on 2016-11-06 22:46 (UTC)

Nope, boost-libs is already installed on that VM, because I also installed deluge on that VM. So on the VM, I first installed deluge, which installs libtorrent-rasterbar as a dependency, which in turns installs boost-libs as dependency. Afterwards I installed plexmediaserver on that VM. Both can run at the same time... I'm now going to remove deluge from the real server (removing boost-libs) and try to reinstall plexmediaserver.

techwiz commented on 2016-11-06 22:44 (UTC)

So then on that VM, if you install boost-lib, can you replicate the crash?

commented on 2016-11-06 22:38 (UTC)

---------- Output of journalctl -xe -- Defined-By: systemd -- Support: -- Documentation: man:core(5) -- -- Process 5907 (Plex Media Serv) crashed and dumped core. -- -- This usually indicates a programming error in the crashing program and -- should be reported to its vendor as a bug. Nov 06 23:33:30 ArchServer systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart. Nov 06 23:33:30 ArchServer systemd[1]: Stopped Plex Media Server. -- Subject: Unit plexmediaserver.service has finished shutting down -- Defined-By: systemd -- Support: -- -- Unit plexmediaserver.service has finished shutting down. Nov 06 23:33:30 ArchServer systemd[1]: plexmediaserver.service: Start request repeated too quickly. Nov 06 23:33:30 ArchServer systemd[1]: Failed to start Plex Media Server. -- Subject: Unit plexmediaserver.service has failed -- Defined-By: systemd -- Support: -- -- Unit plexmediaserver.service has failed. -- -- The result is failed. Nov 06 23:33:30 ArchServer systemd[1]: plexmediaserver.service: Unit entered failed state. Nov 06 23:33:30 ArchServer systemd[1]: plexmediaserver.service: Failed with result 'start-limit-hit'. Nov 06 23:33:35 ArchServer sudo[5917]: fileserver : TTY=pts/0 ; PWD=/home/fileserver ; USER=root ; COMMAND=/opt/plexmediaserver/Plex Media Server Nov 06 23:33:35 ArchServer sudo[5917]: pam_unix(sudo:session): session opened for user root by fileserver(uid=0) Nov 06 23:33:35 ArchServer sudo[5917]: pam_unix(sudo:session): session closed for user root --------------- There are no logs at /var/lib/Plex Media Server/Logs (directory /var/lib/Plex Media Server is empty) Removing boost-list breaks a dependency with libtorrent-rasterbar (which is expected I guess, I also run a deluge instance on this Arch Server). The extremely rare thing is that I'm reinstalling my server with Arch and I first did a complete install with all programs in a Virtualbox instance to make sure everything would work... And in that Virtualbox instance, everything does work... So why wouldn't it work on bare metal?

commented on 2016-11-06 22:35 (UTC)

@techwiz: reinstalled both prelink & plex-media-server (cannot reinstall systemd at the moment), but same problem occurs.

techwiz commented on 2016-11-06 22:35 (UTC)

That looks correct to me... does systemd log anything special? Also check the logs in /var/lib/plex/Plex Media Server/Logs. Also, only a hunch, but what happens if you uninstall boost-libs?

commented on 2016-11-06 22:23 (UTC)

@techwiz I first tried starting plex using systemd, but since that failed, I tried "/opt/plexmediaserver/Plex Media Server" command manually, but that then failed in the error with libboost libs. ------- contents of /etc/conf.d/plexmediaserver LD_LIBRARY_PATH=/opt/plexmediaserver PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plex PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 PLEX_MEDIA_SERVER_TMPDIR=/tmp TMPDIR=/tmp ----- Tried reinstalling the package after purging pacaur & makepkg caches but no dice

techwiz commented on 2016-11-06 22:17 (UTC)

@TimoVerbrugghe, plex bundles all the libs that it needs, it doesn't use system libs. How are you starting plex? Does it work if you cd into the plex bin directory and launch plex directly? If so, what does your /etc/conf.d/plexmediaserver look like.

commented on 2016-11-06 22:11 (UTC)

I'm getting an error when I try to start plexmediaserver. "error while loading shared libraries: cannot open shared object file: No such file or directory" boost-libs package is installed, but apparently it only gives symlinks to & When running the install in an Arch VM I set up, it runs perfectly...

techwiz commented on 2016-11-03 20:15 (UTC)

@tmoore, you're not wrong.

tmoore commented on 2016-11-03 20:12 (UTC)

@techwiz "The OCD is strong with this one" - Yoda

techwiz commented on 2016-11-03 20:10 (UTC)

@tmoore - hey man, I needed to update my own server so I was sharing the love haha

tmoore commented on 2016-11-03 20:07 (UTC)

Sheesh give me a sec. I just got the out-of-date email and am rebuilding the source files now :)

techwiz commented on 2016-11-03 20:07 (UTC)

Patch for ===================================== diff --git a/PKGBUILD b/PKGBUILD index 1197404..7ce4403 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,8 +7,8 @@ # Contributor: Praekon <> pkgname=plex-media-server -pkgver= -_pkgsum=24ffd60 +pkgver= +_pkgsum=3f767e7 pkgrel=1 pkgdesc='Plex Media Server' arch=('armv7h' 'i686' 'x86_64') @@ -32,9 +32,9 @@ sha256sums=('7ab1ee8da9012d257b7f473fb79d76b201ca592cbe3722f977a43b58bfad180e' '9a214a37cc8dd5fd912d5bcca16445f023f892aafd4ca54226aeb2b4910d23a2' 'ebf153d5789f9d24cb98ae607d227286e1da6ce54e149c8be4f47e08ee729573' '7bb97271eb2dc5d1dcb95f9763f505970d234df17f1b8d79b467b9020257915a') -sha256sums_armv7h=('67467bf2469a10e3155ad6cc98e15ccc5ad8f06ea559baf4359fc057c947ac18') -sha256sums_i686=('c0b60b9b7a56a883acd4105619a919a5df485ffd89013c03d4e66737f67271df') -sha256sums_x86_64=('a994d2b568e12b8632f63024997f4aaef37f40de97089b3413d2c845c9853a4a') +sha256sums_armv7h=('ceaa120da4db6bebaff197d585d28d4e4c73190b2ca8429b8686e0fce063b97c') +sha256sums_i686=('04fd8fe31c4eceff0126e1f2b7da7d48260548fc1cb7133af1cca2fd69ca0dc8') +sha256sums_x86_64=('fd9d9d86268b9aaf9bfa101ec043fe5213d8dfcb22c0a61ec055d9f63787c276') prepare() { =====================================

techwiz commented on 2016-10-26 20:03 (UTC)

@smithinger44 I think that's something you should bring up on the Plex forum. We're not plex devs, you might get better answers on their forums instead.

smithinger44 commented on 2016-10-26 19:18 (UTC)

From what I've read in 2014 in version 0.9.10.x issues with foreign characters in subtitles were fixed. It's my second time setting up plex media server and the second time I've noticed that polish characters are not present in subtitles. Is there any known fix?

tmoore commented on 2016-10-15 19:52 (UTC)

@bastelfreak: That's also why there's the statement "EnvironmentFile=/etc/conf.d/plexmediaserver" in the systemd startup that sets environment variables, most importantly LD_LIBRARY_PATH. Once that is set your "ldd" commands will find the appropriate libraries.

techwiz commented on 2016-10-15 12:29 (UTC)

@bastelfreak: negative, plex bundles its libs, it does not use system libs. In fact, since plex server is meant for Ubuntu, using system libs in Arch will break it because they're typically much more up to date than the Debian versions which might have deprecated APIs.

bastelfreak commented on 2016-10-15 12:24 (UTC)

Hi, plex is linked against a lot of missing libs: root@tmu /opt/plexmediaserver # ldd 'Plex DLNA Server' | grep 'not found' => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found root@tmu /opt/plexmediaserver # ldd 'Plex Media Server' | grep 'not found' => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found root@tmu /opt/plexmediaserver # maybe you want to add them as (opt)depends?

tmoore commented on 2016-08-19 14:30 (UTC)

Unflagging out-of-date. That is for plexpass version. Latest free version is July 27, 2016

stormridertx commented on 2016-08-07 20:29 (UTC) (edited on 2016-08-08 15:39 (UTC) by stormridertx)

Media playback kept breaking for me on upgrade to anything past 0.9.17. My locale was never set up right and fixing it solved the issue on reboot. # locale-gen uncomment the following locales in /etc/locale.gen: en_US.UTF-8 UTF-8 en_US ISO-8859-1 # locale-gen reboot After doing that media playback started functioning again.

tmoore commented on 2016-08-01 18:56 (UTC)

@pepo900 How exactly are you starting it? sudo systemctl restart plexmediaserver? I can't reproduce these errors. I've completely uninstalled plexmediaserver, wiped out /opt/plexmediaserver and reinstalled the package and everything starts up correctly.

pepo900 commented on 2016-08-01 17:34 (UTC)

After the last update Plex stopped working for me too. It just fails to start with an error like: error while loading shared libraries: cannot open shared object file: No such file or directory

Ploax commented on 2016-07-30 03:18 (UTC)

Nope, I tried many possible variations and nothing. I'm going to build a docker container and run plex from there in the meantime.

techwiz commented on 2016-07-30 03:00 (UTC)

@Ploax, looks like a syntax error... Something about quotes in the service file. Maybe you copied and pasted the exec start line with the quotes? Try removing them.

Ploax commented on 2016-07-30 02:53 (UTC)

Sorry to take long, was busy. This was the result $ systemctl status plexmediaserver Failed to dump process list, ignoring: Unit plexmediaserver.service is not loaded properly: Invalid argument. ● plexmediaserver.service - Plex Media Server Loaded: error (Reason: Invalid argument) Active: failed (Result: start-limit-hit) since Fri 2016-07-29 19:51:12 CDT; 2h 0min ago Main PID: 970 (code=dumped, signal=ABRT) Jul 29 19:51:12 archdesktop systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart. Jul 29 19:51:12 archdesktop systemd[1]: Stopped Plex Media Server. Jul 29 19:51:12 archdesktop systemd[1]: plexmediaserver.service: Start request repeated too quickly. Jul 29 19:51:12 archdesktop systemd[1]: Failed to start Plex Media Server. Jul 29 19:51:12 archdesktop systemd[1]: plexmediaserver.service: Unit entered failed state. Jul 29 19:51:12 archdesktop systemd[1]: plexmediaserver.service: Failed with result 'start-limit-hit'. Jul 29 21:48:36 archdesktop systemd[1]: [/usr/lib/systemd/system/plexmediaserver.service:9] Executable path is not absolute, ignoring: ${LD_LIBR Jul 29 21:48:36 archdesktop systemd[1]: plexmediaserver.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. Jul 29 21:51:34 archdesktop systemd[1]: [/usr/lib/systemd/system/plexmediaserver.service:9] Unbalanced quoting, ignoring: "${LD_LIBRARY_PATH}/op Jul 29 21:51:34 archdesktop systemd[1]: plexmediaserver.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. lines 1-16/16 (END) Also when running that other command I get a can't find media error with TVShows, anyone else getting that? Besides from that it runs, but I have to manually start it or script it.

techwiz commented on 2016-07-28 18:58 (UTC)

@Ploax, hmm... Try this... In /usr/lib/systemd/system/plexmediaserver.service change ExecStart to "ExecStart=${LD_LIBRARY_PATH} /opt/plexmediaserver/Plex\x20Media\x20Server"

Ploax commented on 2016-07-28 18:51 (UTC)

Yeah my bad , didnt mean that. I did nuke my install and it still wont start without this command: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/plexmediaserver/ /opt/plexmediaserver/Plex\ Media\ Server

techwiz commented on 2016-07-28 18:33 (UTC)

Whoa wait a minute, /etc/sysconfig? Are you on RHEL/CentOS or is that just admin muscle memory? Also, where are those env vars coming from? Sounds to me like your config files are all over the place, you might want to reconsider nuking your plex install and reinstalling fresh.

Ploax commented on 2016-07-28 18:19 (UTC) (edited on 2016-07-28 18:21 (UTC) by Ploax)

I did all of those more than once and I kept/keep getting those errors. I just redid it to make sure that would fix it and it didnt't. I had to run the same commandL LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/plexmediaserver/ ./Plex\ Media\ Server

tmoore commented on 2016-07-28 18:05 (UTC) (edited on 2016-07-28 18:05 (UTC) by tmoore)

Your /etc/conf.d/plexmediaserver is wrong, should look like this LD_LIBRARY_PATH=/opt/plexmediaserver PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plex PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 PLEX_MEDIA_SERVER_TMPDIR=/tmp TMPDIR=/tmp When in doubt, pacman -Rns plex-media-server, rm -rf /opt/plexmediaserver, rm /etc/conf.d/plexmediaserver, rm /usr/lib/systemd/system/plexmediaserver.service, and then reinstall plexmediaserver

techwiz commented on 2016-07-28 18:02 (UTC)

@Ploax, try modifying your /etc/conf.d/plexmediaserver to have the same LD_LIBRARY_PATH value as the command line that worked and report back if systemd is able to launch plex. If it is then @tmoore can incorporate that into the package to hopefully mitigate future issues.

Ploax commented on 2016-07-28 17:39 (UTC) (edited on 2016-07-28 18:06 (UTC) by Ploax)

I get the same error running it from the directory: $ ./Plex\ Media\ Server ./Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory This worked : LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/plexmediaserver/ ./Plex\ Media\ Server My /etc/sysconfig/PlexMediaServer had a different PLEX_MEDIA_SERVER_HOME, it was PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver I'm going to change it to PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver That might fix it because export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}"

techwiz commented on 2016-07-28 17:32 (UTC)

@Ploax, your plex binary crashed. Specifically, it terminated with a SIGABRT, which is usually the case of the program seeing an unrecoverable error and raising an exception. Based on your 2nd edit, I would think plex is in the wrong directory... Could you try cd'ing into the plex binary directory (/opt/plexmediaserver) and running the binary from within that dir. If that does not work try `LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/plexmediaserver/ ./Plex\ Media\ Server` without the back ticks from the same dir. If the latter works, then we know that your /etc/conf.d/plexmediaserver is incorrect or systemd is just derping up a storm. We might need to create a wrapper script for plex, these library issues are happening very frequently. Unfortunately I have not been able to reproduce the problems on my server.

Ploax commented on 2016-07-28 16:36 (UTC) (edited on 2016-07-28 17:10 (UTC) by Ploax)

@techwiz Sorry for the text, I also have those folders ,but Plex just wont start, this is the Journal that I get. sudo journalctl -xf -u plexmediaserver -- Logs begin at Sat 2016-06-11 01:40:41 CDT. -- Jul 28 11:25:59 archdesktop systemd[1]: Started Plex Media Server. -- Subject: Unit plexmediaserver.service has finished start-up -- Defined-By: systemd -- Support: -- -- Unit plexmediaserver.service has finished starting up. -- -- The start-up result is done. Jul 28 11:25:59 archdesktop systemd[1]: plexmediaserver.service: Main process exited, code=dumped, status=6/ABRT Jul 28 11:25:59 archdesktop systemd[1]: plexmediaserver.service: Unit entered failed state. Jul 28 11:25:59 archdesktop systemd[1]: plexmediaserver.service: Failed with result 'core-dump'. Jul 28 11:26:04 archdesktop systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart. Jul 28 11:26:04 archdesktop systemd[1]: Stopped Plex Media Server. -- Subject: Unit plexmediaserver.service has finished shutting down -- Defined-By: systemd -- Support: -- -- Unit plexmediaserver.service has finished shutting down. Jul 28 11:26:04 archdesktop systemd[1]: plexmediaserver.service: Start request repeated too quickly. Jul 28 11:26:04 archdesktop systemd[1]: Failed to start Plex Media Server. -- Subject: Unit plexmediaserver.service has failed -- Defined-By: systemd -- Support: -- -- Unit plexmediaserver.service has failed. -- -- The result is failed. Jul 28 11:26:04 archdesktop systemd[1]: plexmediaserver.service: Unit entered failed state. Jul 28 11:26:04 archdesktop systemd[1]: plexmediaserver.service: Failed with result 'start-limit-hit'. I'm at a loss I don't know what else to do. I want to run the server manually so that I can find the error, but even that I can't find. Edit - I found the service and this is what part of configuration looks like: [Unit] Description=Plex Media Server [Service] WorkingDirectory=/opt/plexmediaserver EnvironmentFile=/etc/conf.d/plexmediaserver ExecStart=/opt/plexmediaserver/Plex\x20Media\x20Server Type=simple User=Plex Group=Plex Restart=on-failure RestartSec=5 StartLimitInterval=60s StartLimitBurst=3 StandardOutput=null [Install] Edit2 - Which then gives this error when I run it: /opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory But the file is there, anyone know how to fix this? Any kind of healp is really appreciated.

techwiz commented on 2016-07-28 14:36 (UTC)

@Ploax, I don't have those dirs either and plex is happy as can be on my system. I have plex app support in /var/lib/plex/ and plex home in /opt/plexmediaserver/ Logs are (for me anyway) in /var/lib/plex/Plex Media Server/Logs/ journald might also have some more info as to why your plex service died.

Ploax commented on 2016-07-28 13:59 (UTC) (edited on 2016-07-28 14:04 (UTC) by Ploax)

Has anyone been having problems recently? This morning Plex stoped working and it seems (I don't know for sure) that the directories needed for install were not being made so I don't know if it was installed correctly. Which and where are the config files that I need to check? Because I think the env variables are not even being set. I was messing around and found and found this two lines: PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/ Application Support" PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" Yet none of those two folders exist, was there a problem on my instal?

akael commented on 2016-07-27 03:21 (UTC)

Ok, As a follow-up to my issue below I did the following: 1. Updated everything again with pacman -Syu (included an update for x265 package) 2. Setup the Locale on the system, somehow I hadn't before, but it never had a problem. 3. Restarted again. Now everything is back to working again. I don't know for sure, but I think the other day I updated and x265 may have caused the issue. Either way I wanted to leave as much detail here in case someone else has the same issue.

akael commented on 2016-07-27 02:58 (UTC)

I just updated to the latest version and now I am unable to play videos that are mkv files on either my chromecast or on my PC in Chrome. The same files played just fine before I updated plex media server, so I know it's not the videos. The error I'm getting just says: "There was a problem playing this file." I have turned debug logging on, but not sure where to find the log files.

Ploax commented on 2016-07-10 23:32 (UTC)

@gcala This fixed it for me. thanks!

techwiz commented on 2016-07-10 19:00 (UTC)

@gcala, tmoore added the WorkingDirectory attribute to the systemd service. Can you do a clean build with the latest version from git and see if your problem persists?

gcala commented on 2016-07-10 16:53 (UTC)

seems that I solved with the following two commands: # install -d /var/lib/plex/Library/Application\ Support/Plex\ Media\ Server/Codecs # chown -R plex:plex /var/lib/plex can anyone confirm?

tmoore commented on 2016-07-05 23:02 (UTC)

Certainly can try it

techwiz commented on 2016-07-05 18:57 (UTC)

@tmoore, since a lot of people seem to be having lib loading issues, maybe we should add "WorkingDirectory=/opt/plexmediaserver" so that the plex bin is in the same directory as the libs it's looking for.

tmoore commented on 2016-07-05 17:51 (UTC)

@Ploax, so what happens when you run "systemctl restart plexmediaserver" ?

Ploax commented on 2016-07-05 17:30 (UTC)

@tmoore it stopped working and then I updated and it still wasn't working. I deleted and reinstalled and it still wasn't working. I was getting a lib not found error ,but i'm not sure if running it directly was the correct way of doing it.

tmoore commented on 2016-07-05 14:28 (UTC)

@Ploax,@Saren: I was noticing the same thing.. However, it seems to work now. Have you updated your Arch Linux installation lately? Maybe some pkg update upstream fixed that issue.

Ploax commented on 2016-07-05 03:02 (UTC)

@insha this is a AUR package , it wont download with pacman. Try this

Ploax commented on 2016-07-05 03:01 (UTC)

@Saren , I think im getting the same error. I can't start plex any more

insha commented on 2016-07-05 02:09 (UTC) (edited on 2016-07-05 02:10 (UTC) by insha)

When I try to install plex-media-server I am seeing the following: $ sudo pacman -S plex-media-server error: target not found: plex-media-server Any idea what I am doing wrong? (newbie to archlinux)

techwiz commented on 2016-06-25 11:54 (UTC)

@Saren, what error are you seeing?

Saren commented on 2016-06-25 08:17 (UTC)

Hi, I found that plex ignored the environment variables set in systemd unit's `EnvironmentFile=/etc/conf.d/plexmediaserver`, I am now unable to start plex server. How do I fix this?

techwiz commented on 2016-06-24 19:18 (UTC)

@zer0t3ch, Hey on the bright side, you caught the drive before you lost all your data. Yank it before it gets worse and recover all your por... I mean junk.

zer0t3ch commented on 2016-06-24 19:15 (UTC)

@techwiz Thanks for the help. I'm going to spend the next 12 hours cussing and hating myself. Drive is failing/failed.

tmoore commented on 2016-06-24 19:05 (UTC)

@ALL Nice blog post on the 1.0 release

tmoore commented on 2016-06-24 19:02 (UTC)

@techwiz @zer0tech Yea to me that looks like a hard drive about to go out. Type "dmesg" and see if you have any read errors.

techwiz commented on 2016-06-24 19:00 (UTC)

@zer0t3ch, you might want to run a check on that fs and possibly probe that HDD/SSD's SMART data. Otherwise I guess I would recommend rebooting before re-cloning the package's git and building again.

zer0t3ch commented on 2016-06-24 18:58 (UTC)

@techwiz I am at an absolute loss right now:

tmoore commented on 2016-06-24 18:57 (UTC)

I just did a "pacman -Rns plex-media-server", made sure /opt/plexmediaserver was completely gone, then ran "pacaur -S plex-media-server". It downloaded, installed, and "systemctl start plexmediaserver" came up perfectly.

tmoore commented on 2016-06-24 18:49 (UTC) (edited on 2016-06-24 18:50 (UTC) by tmoore)

@zer0t3ch Probably having an issue with this line *) execstack -c usr/lib/plexmediaserver/*;; Which is strange, because my install doesn't trigger that section with an error. Do you have $CARCH defined somewhere? Not sure what your download did, but I would blow it away and retry. This was just downloaded: sha256sum plexmediaserver- 99821d4795a50e5ce9ceb7947d21c7418b328d014a00b6390e4a2913ed189192

techwiz commented on 2016-06-24 18:43 (UTC) (edited on 2016-06-24 18:43 (UTC) by techwiz)

@zer0t3ch, nuke that rpm, it's corrupted.

zer0t3ch commented on 2016-06-24 18:41 (UTC) (edited on 2016-06-24 18:45 (UTC) by zer0t3ch)

**@techwiz % makepkg --skipchecksums ==> Making package: plex-media-server (Fri Jun 24 13:41:06 CDT 2016) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found plex.sysusers -> Found terms.txt -> Found plexmediaserver- ==> WARNING: Skipping verification of source file checksums. ==> Extracting sources... ==> Starting prepare()... execstack: cannot open "usr/lib/plexmediaserver/*": No such file or directory ==> ERROR: A failure occurred in prepare(). Aborting...

zer0t3ch commented on 2016-06-24 18:40 (UTC)

Of course I didn't have to wait at all, maintainer pushed a release in the minutes between me trying to figure out the patch and finishing posting it. Anyway, I'm having issues with checksum validity: ==> Validating source_x86_64 files with sha256sums... plexmediaserver- ... FAILED and the checksum: % sha256sum ~/.local/pacman/src/plexmediaserver- 331dc86435b3195e834720dfd1b2250d742315a36897894a1882e5c2f4e91e03

techwiz commented on 2016-06-24 18:38 (UTC)

@tmoore, no such issue here running latest and that saxutils.pyc exists in my /usr/lib/. @zer0t3ch, Thanks for the rediff, the ARM checksum is bad because it doesn't seem to exist anymore. The ARMv7 checksum as well as the other 2 checksums should be good. Definitely working for x86_64 though.

tmoore commented on 2016-06-24 18:37 (UTC)

@zer0t3ch what problems are you seeing with the PKGBUILD?

tmoore commented on 2016-06-24 18:33 (UTC) (edited on 2016-06-24 18:36 (UTC) by tmoore)

New pkg has python issues for some reason. In meantime update with --force to overwrite python libs in /opt/plexmediaserver could just be me though..

zer0t3ch commented on 2016-06-24 18:30 (UTC) (edited on 2016-06-24 18:37 (UTC) by zer0t3ch)

For anyone who wants to use techwiz's patch, the whitespace got a bit messed up when he posted it, so I fixed it up and hosted it: (direct link, so feel free to wget it) That said, it seems one or more of the checksums is incorrect, so it might need to be patched further. **EDIT - and further, it seems like more of the PKGBUILD is broken. That or my cobbled-together system finally ran into something that just won't work for it. I'll wait for the maintainer to push a real release, but this patch will stay up for those who want it.

techwiz commented on 2016-06-24 12:37 (UTC)

Also it looks like plex dropped ARMv5 support, they only have the v7 package now. We should probably remove the old ARM target.

techwiz commented on 2016-06-24 12:33 (UTC) (edited on 2016-06-24 12:42 (UTC) by techwiz)

patch for 1.0 ============================== diff --git a/PKGBUILD b/PKGBUILD index ed092a0..5c43074 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,8 +7,8 @@ # Contributor: Praekon <> pkgname=plex-media-server -pkgver= -_pkgsum=5089475 +pkgver= +_pkgsum=a17e99e pkgrel=7 pkgdesc='Plex Media Server' arch=('arm' 'armv7h' 'i686' 'x86_64') @@ -34,9 +34,9 @@ sha256sums=('7ab1ee8da9012d257b7f473fb79d76b201ca592cbe3722f977a43b58bfad180e' 'ebf153d5789f9d24cb98ae607d227286e1da6ce54e149c8be4f47e08ee729573' '7bb97271eb2dc5d1dcb95f9763f505970d234df17f1b8d79b467b9020257915a') sha256sums_arm=('e960cb98191a39cbf4557c4dea0a75e638ad95415eb666c035132b6c67e45940') -sha256sums_armv7h=('dfe4fea0cf8aadd4d36d967e2013b64b5bbc461d10e46230898097f84d952d61') -sha256sums_i686=('0f29c1d2a2fddda09ad69d69f1867e36d475600a730812536eb89864f5ac2b4e') -sha256sums_x86_64=('7843247084e55fce4bcce0b7a1e0ac4bcf9896adb63cd7535c7264cb56bfbdfd') +sha256sums_armv7h=('1a7b7610eb7f1857cece6290d3786022cef337cee062ee5b984ec94761bb0c6e') +sha256sums_i686=('2d2a71a50b6a95fc91c64c01ea2ec2bba2aedd80068481c441106551ed7eeae9') +sha256sums_x86_64=('99821d4795a50e5ce9ceb7947d21c7418b328d014a00b6390e4a2913ed189192') prepare() { ===============================

ilyamodder commented on 2016-06-24 12:22 (UTC)

Please update, there's an 1.0 already.

DrDeath commented on 2016-06-16 17:13 (UTC)

@tmoore the ./ worked without adding the exports. Besides removing thhe previous vesion installed I removed (rm -rf) every other plex directory found. Even the service. Installed and the rest i described previously. Now building the databases again and hoping it will work from now on.

tmoore commented on 2016-06-16 15:54 (UTC)

Yup.. that's the latest as far as I know

duffydack commented on 2016-06-16 15:37 (UTC)

@tmoore, doesn't make sense. I haven't updated and my server reports it is up to date. The date associated with is April?

tmoore commented on 2016-06-16 15:28 (UTC)

I waited 10 mins and did a systemctl restart plexmediaserver, and it started right up. @duffydack, what do you mean, I still see this as the latest version to download (which is what we have on here) Version

duffydack commented on 2016-06-16 15:24 (UTC) (edited on 2016-06-16 15:25 (UTC) by duffydack)

Seems they pulled the update. My server reports it's up to date and newest version on is Version Apr 22, 2016 (non plex pass)

tmoore commented on 2016-06-16 15:02 (UTC)

@duffydack yea, enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet netmask broadcast ether 00:1a:4d:59:4d:ca txqueuelen 1000 (Ethernet) RX packets 963055 bytes 328830435 (313.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 459619 bytes 358548810 (341.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

duffydack commented on 2016-06-16 14:55 (UTC)

@tmoore are you sure ipv6 is disabled? to quote arch wiki "Note that you must list all of the targeted interfaces explicitly, as disabling all.disable_ipv6 does not apply to interfaces that are already "up" when sysctl settings are applied." Just checking.. btw I'm holding off updating till this whole issue is resolved.

techwiz commented on 2016-06-16 14:54 (UTC)

@tmoore, yea at this point there's some kind of bug on their side... Really odd that I haven't run across this yet and plex says I'm running the latest.

tmoore commented on 2016-06-16 14:53 (UTC)

And of course now I do a random restart and it works. Seems like waiting a while and then trying to restart plex makes it work, whereas trying to do a restart while it's running makes it fail. I wonder if it's trying to use a network socket that's in use, and thus why waiting for the socket to close helps. (although I would expect to see an error message about that)

tmoore commented on 2016-06-16 14:49 (UTC)

@techwiz yea that was the first thing I did. Still not much information Although I'm wondering if whatever certificate it's trying to pull from digicert is too large for the basic_string variable, which would be a code issue

techwiz commented on 2016-06-16 14:29 (UTC)

@tmoore, can you add logDebug="1" in the Preferences.xml (I'm not sure of the format) and start plex with debug logging enabled? Unfortunately the strace didn't give me any more information than the plex log.

tmoore commented on 2016-06-16 14:22 (UTC)

@techwiz I don't have ipv6 enabled on my machine more 40-ipv6.conf # Disable IPv6 net.ipv6.conf.all.disable_ipv6=1

tmoore commented on 2016-06-16 14:20 (UTC)

Posted strace to plex forums and pastebin. Maybe someone with better C programming knowledge will know what it means

techwiz commented on 2016-06-16 13:47 (UTC)

@tmoore @DrDeath could you guys try disabling your IPv6 stacks on your boxes? I saw similar issues while setting up my Hurricane Electric IPv6 tunnel.

tmoore commented on 2016-06-16 13:41 (UTC)

@DrDeath yea it's very strange. I did the same and blew away the /var/lib/plex dir and it still had issues. I can do the with my plex user (after added the export vars). But yea, Plex is being very quiet about the issue and that it's fixed in the plexpass version :(

DrDeath commented on 2016-06-16 11:11 (UTC) (edited on 2016-06-16 13:11 (UTC) by DrDeath)

@tmoore /opt/plexmediaserver/Plex Media Server file is chmod +x already. I'm gonna say a goodbye to my db and try a fresh ...aaand it failed again! I'm getting certain it's not a plex problem since it's there with every version and clean installations. UPDATE: after installing it only started with ./ in /opt/plexmediaserver so i decided to install the latest version and wait for a fix. Tried ./ on the new version and it worked. And by some miracle after reboot it works as expected. Hope it lasts.

tmoore commented on 2016-06-16 00:46 (UTC)

@DrDeath Make sure your /opt/plexmediaserver/Plex Media Server file is chmod +x @techwiz check out this post I made at plex. It has the complete log from a clean install

techwiz commented on 2016-06-15 22:01 (UTC)

I can take a stab at debugging if anyone wants to push their logs to pastebin or something. @tmoore, maybe perms on /etc/conf.d/plexmediaserver are bad? Mine is root:root 0644

DrDeath commented on 2016-06-15 21:58 (UTC)

wtf even downgrading produces the same error. Both and refuse to start. and the hack tmoore proposed ended with permission error on the last line of

tmoore commented on 2016-06-15 21:15 (UTC) (edited on 2016-06-15 21:19 (UTC) by tmoore)

Just a workaround update. If I put the info from /etc/conf.d/plexmediaserver into /opt/plexmediaserver/, adding "export" in front of the lines and commenting out the existing duplicates, then you can run "sudo -u plex /opt/plexmediaserver/ A hack, I know. For those that want to debug more, I got a little more from the logs: Jun 15, 2016 17:17:34 [0x7f6389bd0800] DEBUG - CERT: Installed intermediate certificate. Jun 15, 2016 17:17:34 [0x7f6389bd0800] DEBUG - Listening on port 32400 with queue of 128 connections. Jun 15, 2016 17:17:34 [0x7f6389bd0800] DEBUG - Listening on port 32401 with queue of 128 connections. Jun 15, 2016 17:17:34 [0x7f637b7fd700] DEBUG - HTTP requesting GET Jun 15, 2016 17:17:34 [0x7f6389bd0800] ERROR - Error: Unable to set up server: basic_string::_S_create Which apparently means it tried to create a string bigger than std::string::max_size().

tmoore commented on 2016-06-15 18:30 (UTC) (edited on 2016-06-15 18:30 (UTC) by tmoore)

I'm thinking we are just going to have to wait for an updated version. In the meantime, you may want to downgrade to a previous revision. Download snapshot, and edit the PKGBUILD file as so pkgver= _pkgsum=ee6e505 rinse/repeat if that version doesn't work

dahankzter commented on 2016-06-15 18:26 (UTC)

Sad for you but hopefully you can fix it. I am starting by hand for now then.

tmoore commented on 2016-06-15 18:03 (UTC)

sorry for all the updates. I change something and restart the service and it comes up fine. Then for some inexplicable reason it won't restart anymore.

tmoore commented on 2016-06-15 17:45 (UTC)

Spoke too soon. It worked after the reinstall (i.e. systemctl start), but subsequent systemctl restart commands will not start it back up after stopping. Investigating.

tmoore commented on 2016-06-15 17:43 (UTC)

@TingPing I agree.. fixed in rev 4 @all.. Rev 4 is up.. I included some of the great logic from the plexpass version and uninstalled/reinstalled my package, and the service now starts up properly. However, I did uninstall some stray lib32-XXX pkgs I had installed, as some of the forums indicated this could be causing the S_create issue. So if the rev4 doesn't fix it, see if you have any lib32s around

TingPing commented on 2016-06-15 17:28 (UTC) (edited on 2016-06-15 17:44 (UTC) by TingPing)

Btw this change is nonsensical: -replaces=('plexmediaserver') -conflicts=('plexmediaserver' 'plexmediaserver-plexpass') +replaces=('plex-media-server') +conflicts=('plex-media-server' 'plex-media-server-plexpass') This package *is* plex-media-server. The reason that 'plexmediaserver' existed is because of old packages which can probably be safely removed now.

tmoore commented on 2016-06-15 17:12 (UTC)

Found the bug.. It has to do with Plex itself Looks like they are fixing it in next release. I'm still investigating a workaround.

tmoore commented on 2016-06-15 16:02 (UTC)

@dahankzter You'll be happy to know that with this latest commit I am getting the same error as you on my machine, so I should be able to debug and fix it better :)

tmoore commented on 2016-06-15 15:53 (UTC)

Thanks fryfrog, I've updated the pkgbuild.

fryfrog commented on 2016-06-15 15:38 (UTC)

Hey guys, your conflicts should be plex-media-server-plexpass. conflicts=('plexmediaserver' 'plexmediaserver-plexpass') conflicts=('plexmediaserver' 'plexmediaserver-plexpass' 'plex-media-server-plexpass') <- maybe, if plexmediaserver-plexpass ever existed.

tmoore commented on 2016-06-14 19:52 (UTC)

Probably.. Don't remember if that's always been in there or not.

techwiz commented on 2016-06-14 19:18 (UTC)

@tmoore, I wonder if for debugging purposes removing the StandardOutput=null from the service file would allow journald to capture plex error messages that would have appeared in the console...

tmoore commented on 2016-06-14 18:32 (UTC) (edited on 2016-06-14 18:34 (UTC) by tmoore)

I have that error as well, but my Plex is running fine. See what's in Plex Media Server.log Also, make sure that everything under and including /var/lib/plex is owned by "plex:plex" Run "sudo chown -R plex:plex /var/lib/plex" if unsure. Check to see if your /usr/lib/systemd/system/plexmediaserver.service looks something like this [Unit] Description=Plex Media Server [Service] EnvironmentFile=/etc/conf.d/plexmediaserver ExecStart=/opt/plexmediaserver/Plex\x20Media\x20Server Type=simple User=plex Group=plex Restart=on-failure RestartSec=5 StartLimitInterval=60s StartLimitBurst=3 StandardOutput=null [Install]

dahankzter commented on 2016-06-14 18:16 (UTC)

There are no logs at /var/lib/plex/Logs/ The logs under /var/lib/plex/Plex\ Media\ Server/Logs/ do indeed reveal something totally undecipherable: Error: Unable to set up server: basic_string::_S_create Internet isn't full of it but noone seems to know at a glance. Tailing that log while restarting is dead silent. Resetting permissions didn't help either.

techwiz commented on 2016-06-14 17:54 (UTC)

FYI: Plex logs stuff internally in /var/lib/plex/Logs/ I would think it would be easy enough to track down your issue in those logs.

asadana commented on 2016-06-14 17:15 (UTC) (edited on 2016-06-14 17:31 (UTC) by asadana)

Facing pretty much the same error since yesterday as @dahankzter, similar logs. Already checked /etc/conf.d/plexmediaserver as well. I can start the server manually through /opt/plexmediaserver/ but it starts a new server with no config, and doesn't persist on reboot. I found similar error from 2014-2015 on plex forums, reinstalling plex and fixing permissions seem to work for them. So I simply reset my permissions at /var/lib/plex and /opt/plexmediaserver to plex:plex and it worked like a charm, got my old server back. Hope this helps, and please fix this for the package. I've reinstalled thrice to no avail, and my permissions already seem correct.

dahankzter commented on 2016-06-14 15:52 (UTC)

sudo journalctl -xf -u plexmediaserver gives: -- The start-up result is done. Jun 14 17:54:46 antiva systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=255/n/a Jun 14 17:54:46 antiva systemd[1]: plexmediaserver.service: Unit entered failed state. Jun 14 17:54:46 antiva systemd[1]: plexmediaserver.service: Failed with result 'exit-code'. Jun 14 17:54:52 antiva systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart. Jun 14 17:54:52 antiva systemd[1]: Stopped Plex Media Server. -- Subject: Unit plexmediaserver.service has finished shutting down -- Defined-By: systemd -- Support: -- -- Unit plexmediaserver.service has finished shutting down. Jun 14 17:54:52 antiva systemd[1]: plexmediaserver.service: Start request repeated too quickly. Jun 14 17:54:52 antiva systemd[1]: Failed to start Plex Media Server. -- Subject: Unit plexmediaserver.service has failed -- Defined-By: systemd -- Support: -- -- Unit plexmediaserver.service has failed. -- -- The result is failed. Jun 14 17:54:52 antiva systemd[1]: plexmediaserver.service: Unit entered failed state. Jun 14 17:54:52 antiva systemd[1]: plexmediaserver.service: Failed with result 'start-limit-hit'.

dahankzter commented on 2016-06-14 15:50 (UTC)

It looks like this: LD_LIBRARY_PATH=/opt/plexmediaserver PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plex PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 PLEX_MEDIA_SERVER_TMPDIR=/tmp TMPDIR=/tmp Pretty much the same

tmoore commented on 2016-06-12 19:03 (UTC)

@dahankzter Make sure your plexmediaserver config file looks as so /etc/conf.d] └──╼ more plexmediaserver LD_LIBRARY_PATH=/opt/plexmediaserver PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plex PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 PLEX_MEDIA_SERVER_TMPDIR=/tmp TMPDIR=/tmp

techwiz commented on 2016-06-12 18:37 (UTC)

@dahankzter, libboost should be provided by plex, not the system version. I don't even have boost installed but plex works. Someone reported similar issues here before, perhaps we should incorporate the LD_LIBRARY_PATH into the service file? It looks like if boost is installed, the plex bin gets confused.

dahankzter commented on 2016-06-12 16:59 (UTC)

LD_LIBRARY_PATH=/opt/plexmediaserver /opt/plexmediaserver/Plex\ Media\ Server Makes it work as user plex. Bit of a hack really...

dahankzter commented on 2016-06-12 16:52 (UTC)

/opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory So I have only 1.60, how can anyone run this at all now?

dahankzter commented on 2016-06-12 16:50 (UTC)

/opt/plexmediaserver/ line 11: ./Plex Media Server: No such file or directory

dahankzter commented on 2016-06-12 16:49 (UTC)

/opt/plexmediaserver/ only contains logs from 2015 or so, so no help at all.

tmoore commented on 2016-06-12 16:40 (UTC)

@dahankzter.. Run it by hand to see what the issue is.. as root run the /opt/plexmediaserver/ You should be able to troubleshoot from there.

dahankzter commented on 2016-06-12 16:31 (UTC)

And today its back. No start and nothing in the logs. Reinstall did not help this time. Perhaps time to give Kodi a run.

optichip commented on 2016-06-10 19:26 (UTC)

@tmoore Sorry, jumped the gun on that one!

tmoore commented on 2016-06-10 19:22 (UTC)

@optichip Latest version still shows as per their website

dahankzter commented on 2016-06-10 17:12 (UTC)

Ok, so complete removal and install worked. Reinstall without removal first did not.

dahankzter commented on 2016-06-10 17:10 (UTC)

coredumpctl has the last entry a month ago so no obvious info there either.

dahankzter commented on 2016-06-10 16:55 (UTC)

I have this constantly: -- Reboot -- Jun 09 20:14:19 antiva systemd[1]: Started Plex Media Server. Jun 09 20:14:19 antiva systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=255/n/a Jun 09 20:14:19 antiva systemd[1]: plexmediaserver.service: Unit entered failed state. Jun 09 20:14:19 antiva systemd[1]: plexmediaserver.service: Failed with result 'exit-code'. Jun 09 20:14:25 antiva systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart. Jun 09 20:14:25 antiva systemd[1]: Stopped Plex Media Server. Jun 09 20:14:25 antiva systemd[1]: Started Plex Media Server. Jun 09 20:14:25 antiva systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=255/n/a Jun 09 20:14:25 antiva systemd[1]: plexmediaserver.service: Unit entered failed state. Jun 09 20:14:25 antiva systemd[1]: plexmediaserver.service: Failed with result 'exit-code'. Jun 09 20:14:30 antiva systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart. Jun 09 20:14:30 antiva systemd[1]: Stopped Plex Media Server. Jun 09 20:14:30 antiva systemd[1]: Started Plex Media Server. Before I had: -- Reboot -- Jun 03 17:49:57 antiva systemd[1]: Started Plex Media Server. Jun 04 18:19:26 antiva systemd[1]: Stopping Plex Media Server... Jun 04 18:19:26 antiva systemd[1]: Stopped Plex Media Server. -- Reboot -- continously. No details about what the actual error is. I was able to start the program itself from /opt/plex... but that didnt really help. All config was not there of course I guess. Are there really no logs?

techwiz commented on 2016-06-10 16:42 (UTC)

@dahankzter, No problems here, try `journalctl -u plexmediaserver` as root to see all of plex's service logs. Also I think plex logs internal errors somewhere in the plex install dir or something like that.

jackwilsdon commented on 2016-06-10 16:32 (UTC)

@dahankzter: Are there any errors in `systemctl status -l plexmediaserver`?

dahankzter commented on 2016-06-10 16:25 (UTC)

All of a sudden today it refuses to start and journalctl just reports fail. Yesterday it worked and no obvious differences today. Anyone knows where to even look these days in systemd times?

techwiz commented on 2016-05-07 00:42 (UTC)

@CDF-H, prelink isn't broken on my system... Maybe you should investigate why prelink is broken.

CDF-H commented on 2016-05-07 00:22 (UTC)

@techwiz no x86_64 it's strange that it worked before however with prelink being broken at least for me what if anything do you suggest?

techwiz commented on 2016-05-07 00:05 (UTC)

@CDF-H, actually that very well might be your problem. Prelink and the PKGBUILD work fine as written on my x86_64 system. Are you on ARM?

CDF-H commented on 2016-05-06 23:49 (UTC)

@ I've tried running it from the directory and got the same result. I reinstalled and it's still throwing the error. The only thing I've changed in the PKGBUiLD is the prelink dependency because it's broken in aur along with that I've commented out *) execstack -c usr/lib/plexmediaserver/*;; I wouldn't think this would cause this issue though, it worked before.

techwiz commented on 2016-05-06 22:35 (UTC)

@CDF-H, How are you launching Plex? Are you using an absolute path to the bin as you showed in your last comment or are you launching the service? Does it work when you cd to the bin folder and run the Plex bin? It's weird that Plex can't find its own lib objects... We don't compile Plex, we just repackage it. Maybe try reinstalling Plex?

CDF-H commented on 2016-05-06 22:31 (UTC)

@techwiz yes, I looked through the directory plex does bundle boost objects and I have there but I get the not found error even when I uninstalled boost.

techwiz commented on 2016-05-06 22:24 (UTC)

@CDF-H, I am and I don't even have boost installed. Try uninstalling boost, maybe Plex bundles one but tries the system version first.

CDF-H commented on 2016-05-06 21:55 (UTC)

@techwiz yes. Are you running it? After updating my system my plex wasn't working so I checked and it wasn't even running so I tried to lunch from the console and it said something about expecting [root@LinuxBox /]# '/opt/plexmediaserver/Plex Media Server' /opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory

techwiz commented on 2016-05-05 22:05 (UTC)

@CDF-H This package doesn't have a boost dependency on x86_64, nor should it have one on ARM. Are you looking at the right package?

CDF-H commented on 2016-05-05 21:52 (UTC)

How to get this to work? Arch is on boost 1.60 but this wants 1.59.

Abzie commented on 2016-03-22 11:50 (UTC)

Update: pkgver= _pkgsum=cece46d

commented on 2016-03-19 23:27 (UTC)

new version released plexmediaserver-

blucell commented on 2016-02-26 08:29 (UTC)

Sometimes, when plex service is enabled in systemd, plex is not visible on the network as upnp unless I restart it. Adding `` to the service does the trick.

techwiz commented on 2016-02-24 15:47 (UTC)

@Svenstaro there is no prelink for ARM, we cannot use makedepends=('prelink')

Svenstaro commented on 2016-02-24 15:45 (UTC)

You should only use makedepends=('prelink') since both architectures use the same makedeps.

tmoore commented on 2016-02-22 04:08 (UTC)

Great! Hopefully we can stick a fork in the PKGBUILD for a while and just ride the upgrade train :)

Mutantx commented on 2016-02-22 04:06 (UTC)

@tmoore @techwiz @justin8 - Great job @tmoore after your recent update I was able to run makepkg on arm7

justin8 commented on 2016-02-21 23:10 (UTC)

Yeah... The -f needs a file paremter right after it, so xfz is never correct. the rest of the order doesn't matter. *most* modern versions of tar (including gnu tar and bsd tar in arch) auto-detect compression types on files, but not on streams. i.e. `curl | tar xf -` won't work, you need `tar xzf -` to specify to use gzip. but on files it will detect them fine. Some versions of tar like the stripped down ones on a lot of embedded and arm systems may not support auto-detection. Particularly the tar included in busybox does not.

tmoore commented on 2016-02-21 21:30 (UTC) (edited on 2016-02-21 21:31 (UTC) by tmoore)

Doh.. yea.. wrong syntax.. zxf instead of xfz

techwiz commented on 2016-02-21 17:17 (UTC)

@Mutantx @tmoore the irony here is that we added the z flag to be safe... Looks like the f flag takes whatever is immediately after it as a parameter, zxf should work. However I think tar is smart enough to know what kind of archive it's working with so it might be better to remove the z entirely. Your choice tmoore.

Mutantx commented on 2016-02-21 13:45 (UTC)

@techwiz Yes folder permissions and space look fine. I use bsdtar rather than gzip Still getting this with most current version: ==> Extracting sources... -> Extracting PlexMediaServer- with bsdtar ==> Starting prepare()... tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now ==> ERROR: A failure occurred in prepare(). Aborting... Prior to recent change 3 days ago(case statement/if I believe) ----> ==> Validating source files with sha256sums... plexmediaserver.conf.d ... Passed plexmediaserver.service ... Passed terms.txt ... Passed ==> Validating source files with sha256sums... PlexMediaServer- ... Passed ==> Extracting sources... -> Extracting PlexMediaServer- with bsdtar ==> Starting prepare()... ==> ERROR: A failure occurred in prepare(). Aborting...

tmoore commented on 2016-02-21 05:05 (UTC)

I changed the if statement to a case statement, as it handles globs well by default. Give it a shot.

tmoore commented on 2016-02-21 04:54 (UTC)

Hmm.. yea I think this is incorrect: $CARCH != arm* Can't do a not-equal with a glob possibly.. needs to say probably !~ or the bash equiv.. I'll look it up. (or yea, like you said, ! $CARCH)

techwiz commented on 2016-02-21 04:10 (UTC)

prelink is a dependency on x86 and x86-64 so it should not die on other archs.. I guess it was just coincidence that it hasn't died for an ARM user yet.

msalerno commented on 2016-02-21 04:04 (UTC)

In that case, wouldn't it be broken for all architectures? FYI - Everything built just fine.

techwiz commented on 2016-02-21 03:52 (UTC)

Oh... perhaps instead of !=, you should use ! $CARCH ~= because != might not do regex expansion.

msalerno commented on 2016-02-21 03:50 (UTC)

I'm not sure why it worked, but I removed: #Fix for SELinux and Grsecurity [[ $CARCH != arm* ]] && execstack -c usr/lib/plexmediaserver/* and I got past prepare. FYI, I'm on armv7l - Cubox-I4Pro

tmoore commented on 2016-02-21 03:48 (UTC) (edited on 2016-02-21 03:50 (UTC) by tmoore)

Hmm.. I wonder if there is enough space where you are untarring? Maybe modify the PKGBUILD and throw in an "echo $cwd" Also, after the prepare it follows the package() function, so maybe start trying those manually?

msalerno commented on 2016-02-21 03:47 (UTC) (edited on 2016-02-21 03:47 (UTC) by msalerno)

I tried that and still got an error. It seems to be throwing an error after that TAR operation. It's ugly, but it provides info: prepare() { [[ $CARCH =~ arm* ]] && echo STEP 1 [[ $CARCH =~ arm* ]] && mkdir -p usr/lib/plexmediaserver && echo $? [[ $CARCH =~ arm* ]] && echo Post mkdir [[ $CARCH =~ arm* ]] && tar -xf package.tgz -C usr/lib/plexmediaserver/ && echo $? [[ $CARCH =~ arm* ]] && echo POST TAR RESULT: ==> Starting prepare()... STEP 1 0 Post mkdir 0 POST TAR ==> ERROR: A failure occurred in prepare(). Aborting...

tmoore commented on 2016-02-21 03:44 (UTC)

No actually that could be an error. Will tar unzip without the -z flag? tar -xf package.tgz I might need to throw a z on there, just to be safe.

msalerno commented on 2016-02-21 03:40 (UTC) (edited on 2016-02-21 03:41 (UTC) by msalerno)

@techwiz Sorry, I deleted my comment because I realized I was completely wrong. The PKGBUILD properly extracts the spk and creates the package.tgz but for some reason I still get an error. I'm going to try to add some debugging info to see what is actually failing.

techwiz commented on 2016-02-21 03:17 (UTC)

@msalerno if you download the arm spk file and extract it, you get a package.tgz file. Do you have tar and gzip installed? Maybe the issue is that the PKGBUILD is not extracting the spk file properly... Maybe prepare should have a snippet that extracts the spk file as well.

techwiz commented on 2016-02-18 22:31 (UTC)

@Mutantx I suppose you've checked that you have read/write access to the location where the package is attempting to be created and you have enough space to untar the package... do you have tar and gzip installed?

Mutantx commented on 2016-02-18 22:24 (UTC)

Getting: ==> ERROR: A failure occurred in prepare(). Aborting... when making package. Any clue? Update: Tested it out on two armv7 setups. One rp2(900MHz quad-core ARM Cortex-A7 CPU) and wandboard(NXP i.MX6 Quad Cortex-A9 Quad core)

techwiz commented on 2016-02-18 22:16 (UTC)

@Mutantx, gonna need more info like your kernel and CPU arch.

techwiz commented on 2016-02-18 01:16 (UTC)

plexmediaserver- is now available for non-plexpass members.

tmoore commented on 2016-02-12 15:51 (UTC)

Please don't flag out of date. is for plexpass members only. See instead

zer0t3ch commented on 2016-02-11 03:13 (UTC)

@techwiz Thanks for the fast response, but I figured it out. Turns out, when you log into a server remotely (over WAN) without first setting it up from localhost, it shows you your other servers, but refuses to make that fact obvious. TL;DR: I'm retarded, I was looking at server 1 through server 2.

techwiz commented on 2016-02-11 01:52 (UTC)

@tmoore client should be like v2.5.4 @zer0t3ch did you reload the plex app after restarting the plex service? That is, navigate to the plex app again, not refresh the page.

tmoore commented on 2016-02-11 01:50 (UTC) (edited on 2016-02-11 01:52 (UTC) by tmoore)

You sure you aren't seeing the *client* version in your browser? i.e. the player? what does "pacman -Q | grep plex" say? Also, shift-refresh your browser, you could have a cache issue.

zer0t3ch commented on 2016-02-11 01:46 (UTC)

So I'm having a bit of an odd problem. After stopping the service, wiping all traces of plex from my computer, and then installing from this package, the Plex web interface is showing as running Version Just to be sure, I made 100% certain that no instance was running and manually ran the binary installed from this package, and it still shows up as the wrong version, despite the correct version's RPM being downloaded by makepkg. Any ideas? I'm at a complete loss.

justin8 commented on 2016-02-03 01:18 (UTC) (edited on 2016-02-03 01:18 (UTC) by justin8)

Yep! Keep up the good work

tmoore commented on 2016-02-03 00:46 (UTC)

Just so I'm clear, is everyone happy with the current state of the PKGBUILD? :)

justin8 commented on 2016-02-03 00:12 (UTC)

Yeah, there is no point depending on current packages being installed changing the package creation, that is just a recipe for disaster. @jquagga you don't need to delete them at all, it works on grsec/selinux and vanilla kernels just fine with it there. It just increases compatibility.

alucryd commented on 2016-02-02 18:45 (UTC)

That would only work if you build on the same machine, or one that has SELinux/Grsec. People with modest servers/NASes probably build their packages on much more powerful computers.

jquagga commented on 2016-02-02 18:38 (UTC)

Rather than the different makedepends per arch, I think it would be simpler to test for the presence of selinux or grsecurity and then add the makedepends and the execstack command. That would leave most of us not running selinux/grsec (including all the the ARM folks) without having to delete those lines.

alucryd commented on 2016-02-02 17:39 (UTC)

prelink is in AUR, makepkg won't find it.

tmoore commented on 2016-02-02 14:57 (UTC)

If you have prelink installed, it works, but apparently the makedepends isn't being followed with the makepkg -scr

tmoore commented on 2016-02-02 14:40 (UTC) (edited on 2016-02-02 14:49 (UTC) by tmoore)

@alucryd, thanks for the help! That is a much better solution. I'll update the PKGBUILD Edit: Very strange.. I actually reverted to previous version and pacman 5 is reporting this now: ==> Installing missing dependencies... error: target not found: prelink

alucryd commented on 2016-02-02 07:24 (UTC)

There's no need for an if on the makedepends, we have arch specific arrays. Just add prelink to each makedepends_arch, namely i686 and x86_64. Also be careful with your indentation, but you can do it in one line anyway: "[[ condition ]] && command".

tmoore commented on 2016-02-02 01:44 (UTC)

Doh.. Thanks justin8.. I had a == instead of a != for the prelink requirement check and arm. Strange that it built for me before. Pushed new version

justin8 commented on 2016-02-01 23:50 (UTC)

I'm currently getting: 09:09:20 ==> Starting prepare()... 09:09:20 /build/PKGBUILD: line 51: execstack: command not found prelink package is a requirement for that, not just on arm.

tmoore commented on 2016-02-01 19:55 (UTC) (edited on 2016-02-01 19:55 (UTC) by tmoore)

@tahayassen: I updated the PKGBUILD with IF statements per your comment. Please test on ARM compile and let me know

tahayassen commented on 2016-01-31 17:23 (UTC)

For anyone on ARM, to get this package working, comment out or remove the following two lines: makedepends=('prelink') execstack -c usr/lib/plexmediaserver/*

tmoore commented on 2015-12-30 19:30 (UTC)

@alcryd: Ah thanks. Learning new things everyday ;) @fryfrog: added! :)

alucryd commented on 2015-12-30 18:10 (UTC)

@tmoore: Yes emby uses ffmpeg, like everybody else because it would be idiotic to reinvent something so powerful :P But unlike plex, emby doesn't try to hide it and lets you use any custom ffmpeg binary you want. BTW this is no windows emulation, it is written in C# and runs with Mono, the open source alternative to Micro$oft's .NET.

fryfrog commented on 2015-12-30 17:38 (UTC)

Hey @tmoore and @alucryd, Sorry for the delayed response! I'm glad tmoore took it, because I didn't particularly want to own it. But I'd be happy to help keep it up to date. Feel free to add me as a Co-Maintainers and if I happen to be the one that bumps the version, less work for you. If you're interested in Co-Maintainers on plex-media-server-plexpass, let me know.

tmoore commented on 2015-12-30 16:57 (UTC)

PS - Per your ffmpeg comment, it looks like emby uses it as well? And it uses Windows emulation to run?? /usr/bin/mono /usr/lib/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe

alucryd commented on 2015-12-29 23:08 (UTC)

Hmm, I don't understand, it shows me as maintainer again. Anyway, disowned, it's all yours tmoore. @duffydack: Welcome aboard the emby train, enjoy your trip :)

tmoore commented on 2015-12-29 22:15 (UTC)

@alucryd, sure I can keep this package on life support. You've already done all the hard work :)

duffydack commented on 2015-12-29 19:58 (UTC)

@Alucryd: thanks for the tips. The more I play with it, the more I'm liking it... I may be converted

alucryd commented on 2015-12-29 18:19 (UTC)

@tmoore: let me know if you want the package, I'd rather have you or the plexpass version's maintainer take this over, vlad just jumped on it without a single word.

alucryd commented on 2015-12-29 16:45 (UTC)

@duffydack: Adding the year in the folder name helps a lot, especially for movies. The crew pictures appear fine here, their scraping is probably separate from the indexing and wasn't finished yet. Also note that there's an option to save artwork and metadata within your media folders (doesn't include cast and crew though), depending on your setup it can be more efficient than inside the database, and also saves you a lot of bandwidth should you lose your database. makes it easy to replace any artwork manually too instead of going through a webui. In any case, this discussion should be taken to the forums if it goes on any longer, the comment section should concern the package only :P

alucryd commented on 2015-12-29 15:45 (UTC)

@duffydack: Not sure why you had any problems, you can't mix movies and series but I guess you already know that since plex operates the same way. My emby-server package in [community] should work as is, the only thing is to make sure the emby user has read (and optionally write for local assets rather than in the database, speed ftw \o/) rights on your library. Apart from the odd anime series here and there, emby had no problem indexing my library, I even found its matching better than plex thanks to the anidb scraper, not to mention you can separate animes from live tv shows and assign different scrapers for them, something that plex cannot do with its single tv shows setting. And this was with a lot, and I mean _a_ _lot_ of anime series, almost as many movies and a few live series. Sure this requires some work, but if you already have a working plex setup, you should have a good library architecture, then all you need is a night of indexing :P

duffydack commented on 2015-12-29 15:06 (UTC)

@alucryd: I quickly tried emby, hmm. After startup problems, threw a few tv eps and a movie (bttf) in a folder, set it up, it couldn't find anything, then found the tv but the movie found as something totally different. Yeah I'm not sure about it, I have a lot of stuff setup I don't want any hassle. Hope you don't, but hope someone takes it up if you do disown it :(

alucryd commented on 2015-12-29 08:45 (UTC)

@duffydack: My pleasure. @all: Been using emby for a while now, and I'm infinitely more satisfied, I can use the latest kodi instead of a prehistoric player and I can replace the crappy ffmpeg Plex ships with (oddly named Plex Transcoder, do they really believe it will fool anyone?) with a real one. I think it's time I disowned this, may someone break it to their heart's content. Amen.

duffydack commented on 2015-12-27 15:50 (UTC)

Another flawless upgrade :) Had to use prelink from aur but it built ok (even with a few FAIL messages). All working fine. Thanks

alucryd commented on 2015-12-12 11:48 (UTC)

I'm not responsible for the plexpass version, and I assure you it won't run with a hardened kernel. Plus that lib really doesn't need execstack, there's no harm in disabling it, on the contrary. The prelink package isn't broken, it builds perfectly fine here, and you're the only one who's been complaining about it. SELinux is detected by the configure script and should be disabled if you don't have it. FTR, SELinux is not supported by Arch Linux, but Grsec/PaX is, so it seems to me you're the one who should go out of their way, not the other way around.

thelinuxguy commented on 2015-12-12 10:07 (UTC)

I'm basing this on the fact that it plex-media-server-plexpass isn't using it (It being more or less an identical package is another issue), the fact that the prelink package is currently broken, as it fails to build (see comments in the package). And the fact that I tried it and haven't encountered any issues yet. In case you need it for a hardened kernel, just mention that in the pkgbuild as a comment. People using a hardened kernel should be able to read the pkgbuild and decide themselves. "normal" arch users who use the stock kernel are fine without that. In fact it makes things more complicated for them.

alucryd commented on 2015-12-12 08:28 (UTC)

Really now, and on what ground are you basing this? Did you even try a hardened kernel?

thelinuxguy commented on 2015-12-12 01:19 (UTC)

please drop the dependency on prelink and remove "execstack -c usr/lib/plexmediaserver/*" from prepare. The package builds and runs without it

lisinge commented on 2015-11-15 18:10 (UTC)

Would be great if we could get the latest update as it contains fixes for the new apple tv

dahankzter commented on 2015-11-14 07:00 (UTC)

Hmm... Have had to use x2go for a while which seemed to bungle up encodings. Building at the keyboard with a proper screen worked. It was complaining about invalid encoding during pb generation so perhaps it makes sense.

Raywes88 commented on 2015-11-12 19:16 (UTC)

@dahankzter Did you see prelink was moved to the AUR recently? I did not have any problems.

dahankzter commented on 2015-11-12 19:15 (UTC)

I can't update because prelink is broken. Does it really need it?

techwiz commented on 2015-11-07 23:10 (UTC)

New package: plexmediaserver-

duffydack commented on 2015-11-07 23:08 (UTC)

@alucryd: I saw the other comments and removed mine :) Looks like all that's different is apple tv stuff, so I'll not bother this time around.

alucryd commented on 2015-11-01 08:55 (UTC)

@duffydack: I got it when the package was flagged, there's really no need to insist. @HLFH: Same thing, also the comment section is no place to paste full PKGBUILDs, next time it's not just the comment I'm deleting.

mariosangiorgio commented on 2015-10-31 12:16 (UTC)

@techwiz, I see. Thanks for your reply

techwiz commented on 2015-10-31 12:13 (UTC)

@mariosangiorgio This is probably not the right place to seek help, but I suspect the error comes from the fact that your Pi is armv6h not armv5. I believe plex only provides bins for armv5 and armv7hf and even those are less than optimal solutions (not exactly built for linux)...

mariosangiorgio commented on 2015-10-31 11:17 (UTC)

Is this package compatible with Raspberry Pi? If I try to install it I get this error message: ==> ERROR: plex-media-server is not available for the 'armv6h' architecture. Note that many packages may need a line added to their PKGBUILD such as arch=('armv6h'). I tried to add it and the package gets created successfully (using the same file as source_arm). Unfortunately when I then try to start the service I got the following error: error while loading shared libraries: /opt/plexmediaserver/ internal error Does anyone know if this can be fixed and how I could do it?

techwiz commented on 2015-10-30 22:54 (UTC)

Looks like the latest package is "plexmediaserver-"

jackwilsdon commented on 2015-09-23 10:46 (UTC)

@alucryd oops! I confused PlexPass updates with normal updates and I completely forgot I flagged this out of date the first time, sorry!

alucryd commented on 2015-09-23 07:30 (UTC)

@jackwilsdon: This is the second time you're flagging out of date without any valid reason nor explanation, there's no new release whatsoever. One more time and I'm suspending your account.

woodyl commented on 2015-09-21 22:04 (UTC)

I'm still unable to play any video content to my Xbox 360. I always get the message that the Xbox can't communicate with the Plex. I've adjusted all of the permissions, etc., but I can't get it to work.

anthillsocial commented on 2015-09-18 13:59 (UTC)

obvious if you know where to look! Thanks for the heads up and dry wit - very enjoyable.

alucryd commented on 2015-09-18 13:56 (UTC)

Sigh... Let me guess, Plex Pass? There is a plex-media-server-plexpass package in AUR, it couldn't be more obvious.

anthillsocial commented on 2015-09-18 13:49 (UTC)

Actually scrap that. On my plex install: "Version An update is available. Please install manually" And when I click the link the following is downloaded (i'd copied an old file name before): plexmediaserver- Here's the link Maybe you're living in the past?

anthillsocial commented on 2015-09-18 13:26 (UTC)

doh... i'd go for the time paradox - its very tricky, makes one brain play tricks on you;)

alucryd commented on 2015-09-18 13:04 (UTC)

Alright, now riddle me this: that link you posted downloads exactly the version I'm packaging, but somehow you manage to download a version that is a few months old, and at the same time you're saying that is out. There are but a few possible ways to understand this, either there are multiple you living in separate timelines from the one I'm in, or you're a living time paradox. Take your pick.

anthillsocial commented on 2015-09-18 12:45 (UTC)

Strange, I get this message in my plex install "A Plex Media Server update is available! Download now" which links to here: This downloads the following file: plexmediaserver-

alucryd commented on 2015-09-18 12:11 (UTC)

Yeah, well I 'd like to know where, because plex' download section would certainly beg to differ......

anthillsocial commented on 2015-09-17 20:46 (UTC)

version is now available...

alucryd commented on 2015-09-17 14:57 (UTC)

Alright, emby-server is in [community], and I've adopted and updated emby-server-{devel,git} in AUR. You guys can now cheat on Plex ;)

woodyl commented on 2015-09-06 15:47 (UTC)

@impressiver Can you tell me how you have your media location set up? Where are the media files and what permissions do they have? I've tried various things and I can't get any content to play. I'm running plex with ARM on a Pogoplug. I don't know if that's a factor.

EggheadDash commented on 2015-09-03 16:36 (UTC)

After a recent restore from backup of my entire system PMS now segfaults on startup.Just so I don't have to type it all again here's my post about it on the PMS Linux forums:

impressiver commented on 2015-09-03 05:00 (UTC)

@woodyl I just upgraded to and the Plex app on my Xbox 360 is connecting just fine. The only thing of note was a hiccup initially launching the Xbox Plex app after upgrading. I saw my media library, but an immediate overlay popped up complaining about issues communicating with the server. Hitting retry immediately re-displayed the same popup. But the error went away by backing out with "B", and the media library was already loaded underneath. I tried playing a few things to test and they all worked without issue.

woodyl commented on 2015-09-02 14:26 (UTC)

@alucryd I saw reports that the Xbox app wasn't working with the Plex Server, but the posts I read suggested that the problem was fixed in later versions of Plex Server. I haven't found anybody else reporting the problem with so I don't have anything to work with. I guess I could try backing up to an earlier version of Plex Server to see if that would fix it. Is there anybody else using the Xbox app with this version who can tell me if it's working or not?

justin8 commented on 2015-09-02 12:12 (UTC)

Didn't mean to sound argumentative before; just honestly curious on that decision was all. I can't wait for it to be in the repos. I'll just wait a bit and try it again then. Thanks for all the work on the media-center front.

alucryd commented on 2015-09-02 11:33 (UTC)

Fair enough, it still doesn't feel right, but if man says it. Moving back to /usr/lib.

justin8 commented on 2015-09-02 11:08 (UTC)

from the man page for file-hierarchy: /usr/lib/package: Private, static vendor resources of the package, including private binaries and libraries, or any other kind of read-only vendor data. I filed the request since it's been out of date for 40+ days. I don't particularly care if he is posting comments, he's ignoring his packages. The user/home is a good point though.

alucryd commented on 2015-09-02 10:53 (UTC)

You don't just stuff anything in /usr/lib, especially graphical and text resources, /usr/lib is for, well, libraries, and possibly executables that don't fit in /usr/bin. As for /var/lib/emby, traditionally a user's home has the same name as the user, so either call the user emby-server, wwhich is stupid, or call the home emby. BTW, why did you file a request to orphan emby-server? The maintainer is clearly active, he wrote a comment a couple days ago... Also it's pointless since I will end up pushing emby-server to [community] once I'm confident it can go there.

justin8 commented on 2015-09-02 10:44 (UTC)

Shouldn't it be in /usr/lib/$package-name anyway? That's what man file-hierarchy specifies. /usr/share is for files shared between multiple packages? And what's the point of moving the home to something other than the package name?

alucryd commented on 2015-09-02 10:30 (UTC)

The one in AUR works but is not correct (also out of date). Mine installs emby-server in /opt, it shouldn't go in /usr/lib because it's not just elf files and afaict it can't be split to use /usr/share. Also the emby user home is in /var/lib/emby instead of /var/lib/emby-server, and permissions are set in the PKGBUILD instead of the install file so that pacman can track them.

justin8 commented on 2015-09-02 09:56 (UTC)

I tried emby myself about 2-3 months ago and it wasn't quite there yet, but I'm checking on it every quarter hoping I can replace plex as soon as possible. What does your pkgbuild do differently to the AUR one? I'm about due to try it out again.

alucryd commented on 2015-09-02 09:38 (UTC)

There are a lot of such reports on the internet, so you'll probably have to wait for a fix, and honestly I'm not exactly surprised. Hope you didn't pay for the app, I did for the android app and now I kinda regret it. I've become quite fed up with plex myself, even though the server works okay, it is proprietary (with a license preventing redistribution, which is stupid if you want to sell your client apps when you don't provide packages for everything), also you can't even replace the supplied ffmpeg binary (named Plex New Transcoder as if people wouldn't notice it's ffmpeg) which is clearly inferior to the one in [extra], all the more when I will add dcadec support to it. That and we got SSL support only weeks ago. The worst part though is the client side, PHT is ancient and still based on xbmc frodo, which relies on ffmpeg 0.10... It can't keep up with current libraries like libcec, and their stupid semi-open source model (push all commits at once when they tag a new release, might as well not use github at all) results in pull requests sitting there for ages, if they even bother looking at them. It's really not an option, best thing atm is kodi + plexbmc, no matter the platform. I'm not sure whether console and android clients are rebranded xbmc as well, but some are plainly not working like what you experience with the xbox 360. For those reasons I decided to move away from evil corp and switch to emby (previously mediabrowser). I'm still in the process of doing so, but it's already looking quite good and is on par with most plex features. emby is completely open source (single most compelling argument for me) and uses mono which makes it really portable (even though I'm not a fan of mono). So far, here's what I like better about emby: - You can have multiple libraries of the same kind, eg you can separate series and anime instead of having a big melting pot - Speaking of anime, there is a plugin to add anidb to the metadata fetchers, awesome - You can store all metadata and posters, artwork and whatnot alongside your content instead of a centralized database. Meaning you can replace those by hand if you so desire, and don't have to redownload everything should lose the database. - The web interface is not designed for toddlers, you can actually work with it, also it can be used from any device that doesn't have a native app but supports html5 - It has and trakt scrobblers - It has Live TV (PVR) support, although I don't use that feature - It has SSL out of the box with a self-signed cert, and unlike plex, you can use your own cert - There is a reports tab, you can exports all kinds of data about your library - Only some specific plugins are behind a paywall - There's one developer (the lead dev?) who's very active on github and is all over the forums, meaning you can actually talk to them, no corporate wall - As for the clients, there's an official kodi add-on, big plus, a native windows client, and clients for apple, amazon and android TVs, ChromeCast, Roku and even a Samsung SmarTV app. Also an Xbox 360 app. Free native apps for the big 3 mobile platforms of course, I haven't used it yet because it doesn't support self signed certs (apparently an android limitation, it's being worked on) I do have some gripes with the web interface, at first it wouldn't load on my firefox, I probably activated an option it didn't like, I had to reset my firefox to get it to show up. I had some display issues in the left column of the metadata manager but no deal breaker (plus I use the devel version which is quickly evolving). The one thing that really needs to be fixed is the fact that the library overview doesn't reflect manual changes to the metadata (series details pages are updated properly though), you need to reload the page for them to be picked up. tl;dr I seriously encourage you to try emby out, you probably won't regret it. I have 2 pkgbuilds on my github, you'll want to use those instead of the ones in AUR.

woodyl commented on 2015-09-01 21:45 (UTC)

With Xbox 360, I can see the content, but when I try to play anything, I get: " "There was an error communicating with your Plex Media Server. Make sure it's turned on and accessible and try again." DLNA works fine on the Xbox (DLNA uses the same server as the Plex Server). I can play content on a Chrome browser on Windows with no problem.

alucryd commented on 2015-08-30 20:13 (UTC)

Did you try with anything else? Computer, phone?

woodyl commented on 2015-08-30 19:36 (UTC)

Not working for me with Xbox 360 app. Does anybody else have this problem?

alucryd commented on 2015-08-30 09:49 (UTC)

vohof commented on 2015-08-30 09:47 (UTC)

How to execute?

alucryd commented on 2015-08-27 10:52 (UTC)

Updated, thx :)

commented on 2015-08-27 02:30 (UTC)

Flagged out-of-date (2015-08-27) [Wed Aug 26 21:28:29 CDT 2015] ==== md5: 70385a3a61f43efdead53075601b5880 sha1: a2bd969a20c51371033a064cc7bcd7b32481bfb6 sha256: 295174b3617d699f11ecc22bc603a579e2291fe6ba55a536711acafd64455390 ====

alucryd commented on 2015-08-09 09:54 (UTC)

duffydack: My pleasure :) The PKGBUILD itself is pretty much final, and as far as the server goes, nothing much is going on, you can upgrade without fear from now on :)

duffydack commented on 2015-08-08 19:43 (UTC)

Updated from 0.9.11 (I held off for fear of problems like last time).. Went without a hitch. Thanks for your hard work. Arch ftw.

alucryd commented on 2015-08-07 10:14 (UTC)

Thx, package updated :)

bgta commented on 2015-08-07 08:03 (UTC)

Flagged out of date because version is available :)

jebarb commented on 2015-07-07 03:03 (UTC)

Flagged out of date because I can't read. Please ignore.

tmoore commented on 2015-06-28 21:02 (UTC)

Thanks Paaskehare! I use Kodi with the Plex plugin, and I was always wondering why it cut out sometimes mid-show. I guess this little tidbit applies to many different multimedia software apps.

Paaskehare commented on 2015-06-28 18:26 (UTC)

To help others that might use this package with the raspberry 2. I had issues with the stream halting every 20 minutes in a 720p stream, this was due to the caching being saved on /tmp which is of course only 512mb. I fixed it by changing the TMP directives in /etc/plexmediaserver.conf.d to another location on the SD Card (make sure it's owned by plex:plex). It might also be better to use a seperate USB pen for the caching since it requires a lot of Disk I/O to do the caching while streaming and you don't want it wearing down your SD Card unnescessarily.

tux commented on 2015-06-06 17:47 (UTC)

Just to note, it appears that casting to a Chromecast or similar device won't work if you use SSL. :/

alucryd commented on 2015-06-05 08:01 (UTC)

Good news everyone, with the new version Plex finally allows SSL connections to the server.

mjlawrence commented on 2015-06-01 13:48 (UTC)

@justin8 Thanks for the reply; I just installed using makepkg instead, worked fine.

justin8 commented on 2015-05-31 11:54 (UTC)

Ask on the yaourt package page; the maintainer of another package only has to provide one that builds with makepkg; beyond that is up to the aur-helper to get working themselves.

mjlawrence commented on 2015-05-31 10:48 (UTC)

Hi, This package is currently not building, as I get a message "plex-media-server not found in AUR" when trying to install from yaourt. Has the package been removed or am I doing something wrong? Thanks.

binhex commented on 2015-05-29 18:22 (UTC)

lol, thanks tmoore, i saw there is a separate plex-pass package and btw its fine to be a freeloader, best things in life are free :-) alucryd - please un-flag if you can.

tmoore commented on 2015-05-29 18:17 (UTC)

Yea, this isn't the plex-pass version.. This is for us freeloaders :)

binhex commented on 2015-05-29 17:51 (UTC)

i have noticed that is out, this is plex-pass version though, so not sure it's applicable to this package, if it isn't then please feel free to un-flag this.

tmoore commented on 2015-05-12 16:48 (UTC)

:) lol good.

phaseburn commented on 2015-05-11 20:23 (UTC)

Yea, we're cool tmoore :-)

alucryd commented on 2015-05-11 19:54 (UTC)

tmoore: Already chilled out. I got a wrong first impression that triggered my all-time reflexes, but now that we can understand each others out, everything is fine :)

alucryd commented on 2015-05-11 19:52 (UTC)

I do know that many use hacks to various ends, but as that cannot happen in the official repos, I tend to not do it in the AUR as well. Now that I know where the disaster comes from, yes I can only agree that it is a headache, and I'm glad you didn't throw that away for the sake of just throwing it. TBH I'm in the same situation as you. I chose to run plex as another user as well, which also includes my torrent user.

tmoore commented on 2015-05-11 19:50 (UTC)

Guys, just chill out some. alucryd does this on his own time and doesn't get paid for it. I used to do it too.. It's a pita and you can't please everyone all of the time. Most of us are advanced users (otherwise why are you on Arch?) and thus a lot of the time you can just fix little things like this yourself, without being rude on the AUR. I remember dealing with the leading "/" as well.. and alucryd did give the right answer, which is to use makepkg instead of aura. I personally use yaourt, but whenever I have an issue I always try makepkg first before filing a bug.

phaseburn commented on 2015-05-11 19:46 (UTC)

Yes, I'm copying the contents of /usr/lib/plexmediaserver, to the base package. Why? Because the current working directory, when the command 'cp -dr --no-preserve='ownership' usr/lib/plexmediaserver "${pkgdir}"/opt/' is issued, doesn't have one in it. I peeked into /usr/lib/plexmediaserver, and it was empty, so I had guessed that you were attempting to migrate some previous configuration settings from the prior installed version, maybe it was a catchall for something that had moved. So no, it was not nonsense. Maybe I was incorrect in my "guess", maybe I had an idea that wasn't fully fleshed out, but at least I had a valid theory and thought pattern, which you had never considered, and I found something that made the issue go away on my particular system. So no, I don't have to give you anything. Would it make sense inserting old configs into the base package before it's installed? No, really, it doesn't. Have I seen a lot of package maintainers who had questionable practices and hacks to make things work over the years? Yea, I have. I'm glad you aren't one of them. But you have to admit that there's at least a fair share of package maintainers who have done (and still do) wacky things that we can't easily explain, too. I'm also don't see why I should explain the headache about permissions when it's a decision that I understand and agree with, even though it's causing me grief. Necessary evil. I don't care *what* UID everything shares, I just want a common user for the processes that interact together. This way I don't end up with a ton of permissions errors when automating crap. I know you can grasp that concept. The goal of saying that it was a disaster was to communicate that I hope another change is not coming, and let you know that every time it's changed, it's a hassle for the end users. I don't disagree it was necessary this time, as I've stated many times, but it's still a disaster every time it happens.

alucryd commented on 2015-05-11 19:30 (UTC)

Okay, I thought relative and absolute paths were like the most basic thing, but I'll gladly explain to you what your little fix does. You're essentially copying the content of '/usr/lib/plexmediaserver' that's already installed on your system into a new package, and will replace that directory with the exact same upon installation. If that is not nonsense, I don't know what is. Reading that one could only assume one thing, you had no idea what you were doing, you have to give me that. Yeah, the error went away, I could also remove the code that prints this particular error, it would go away too, that doesn't make it any more sensible a fix. As for baseless criticism, you'll have to excuse me but unless you explain why and maybe propose an alternative, throwing words like disaster out of the blue _is_ baseless, and will only be taken negatively by your audience. At least explain why something is shit when you say it is. Also, UID:GID 125:125 are already taken by deluge:deluge, which is an official package. You should already be using something else because the deluge package should complain about it.

phaseburn commented on 2015-05-11 19:11 (UTC)

Speaking nonsense? Bull. I received that error. That error went away when I added / before the path. If that was wrong or right, the error went away. Maybe it wasn't a proper solution, maybe it did nothing, maybe my build system is so broken that it worked when it shouldn't have. But at least I made the attempt to try. At least I tried to be proactive and help you out. So don't fault me for that. Next, baseless criticisms? Dude, you have zero clue what headache your little UID/GID change caused me. Before you took over this package, I had a "media" user and group on UID/GID 125, that was shared by Plex, deluge, sickbeard, and a few other processes. All of them worked quite well together. Then, suddenly that changed. The UID/GID changed to 421, so I moved the UIDs and GIDs over from the other users. Now, plex-media-server bitches left and right about adding users, being unable to delete users, and all sorts of other issues that frankly, weren't there until you made that change. I read the notes, I get why it was done. I'm not stating it was necessarily a bad decision, either, but the point is, IT WAS A HEADACHE, and because of how my system was set up, it has become somewhat of a disaster. So take your elitism and crappy attitude and shovel it elsewhere. If you aren't going to accept people trying in earnest to report a bug with the package, with a potential solution (regardless of how off-base it may be), perhaps you should step down.

alucryd commented on 2015-05-11 18:38 (UTC)

I could have, and he could have refrained from speaking nonsense and baseless criticism as well. Nonsensical statements and destructive criticism are not answered with kindness in my book. When I don't know what I'm talking about, I make my research first, and ask later. I don't propose utterly wrong solutions and add a free criticism to the lot.

Butcho commented on 2015-05-11 18:29 (UTC)

You could have just told him to try building it with makepkg rather than being a dick about it.

alucryd commented on 2015-05-11 07:23 (UTC)

Haha, if you honestly believe adding a '/' line 46 is the way to go, you have absolutely no right to say things like disaster and UID/GID because you most likely have no idea what you're talking about :P Now if you really want to install the package, build it like a man with makepkg instead of using an outdated AUR helper which, by the looks of it, doesn't support the newest features, in this case arch specifics arrays.

phaseburn commented on 2015-05-11 07:13 (UTC)

Getting build failures when installing this package. $ aura -A plex-media-server aura >>= Determining dependencies... aura >>= AUR Packages: plex-media-server aura >>= Continue? [Y/n] aura >>= Building `plex-media-server`... aura >>= Well, building `plex-media-server` failed. aura >>= Dumping makepkg output in 3.. 2.. 1.. ==> Making package: plex-media-server (Sun May 10 23:43:49 PDT 2015) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found terms.txt ==> Validating source files with sha256sums... plexmediaserver.conf.d ... Passed plexmediaserver.service ... Passed terms.txt ... Passed ==> Extracting sources... ==> Starting prepare()... ==> Entering fakeroot environment... ==> Starting package()... cp: cannot stat ‘usr/lib/plexmediaserver’: No such file or directory ==> ERROR: A failure occurred in package(). Aborting... aura >>= Would you like to continue anyway? [Y/n] n aura >>= Building failed. Now, if I edit the PKGBUILD before hand, adding a "/" to line 46, just before the "usr/lib/plexmediaserver" path, it installs fine. Still sorting out the disaster that UID/GID permissions have become.

alucryd commented on 2015-05-05 17:24 (UTC)

jobski: Thx, bumped. lty1993: I don't believe this is a coincidence so next time please make sure the new release is actually out before you flag, because it wasn't yet, and you saying nothing just puts your name on the 'people who flag for no reason' list, which is quite extensive.

jobski commented on 2015-05-05 13:13 (UTC)

There's a new version out

alucryd commented on 2015-05-05 05:06 (UTC)

lty1993: Next time you flag out of date, you might want to give a reason. Unflagging.

alucryd commented on 2015-05-04 13:34 (UTC)

chimeracoder: I don't remember, was the service part of the backup array before I took over? If it was, then it would explain why you had an outdated service file, but still you're supposed to run pacdiff after an upgrade if pacman tells you some files have been backed up. If it wasn't, then a higher power may be toying with you, but in any case there's nothing wrong with the current package.

chimeracoder commented on 2015-05-04 13:04 (UTC)

For what it's worth, my service file was incorrect after updating - it still pointed to the old location. Replacing the ExecStart line with ExecStart="/opt/plexmediaserver/Plex Media Server" fixed the issue.

eddington commented on 2015-05-04 11:42 (UTC)

I had an issue on an older desktop with core being dumped (illegal instruction) on start up. gdb traced it to the instruction SIGILL in The OpenCV forum suggested it uses an instruction for a particular instruction set ( To replace the linked library with a version compatible with my computer I installed opencv with pacman, and copied /usr/lib/ to /opt/plexmediaserver. This fixed the problem. Hope this helps someone else.

alucryd commented on 2015-05-02 08:00 (UTC)

The service file is working just fine, and has been working for a while now. The path is right so error 127 shouldn't occur at all. I don't know about error 134, but the only additional operation that might be required with the last update applies to users of SELinux or grsecurity only. One of the provided libs ( has execstack even though it doesn't appear to need it. That execstack has to be removed for PMS to start.

zer0t3ch commented on 2015-05-02 02:26 (UTC)

There seems to be something wrong with the service file. When I originally installed, it wasn't working, so I modified and fixed it. Now I updated and I can't get it to work any more for some reason. According to systemd, the two errors I always get are either 127 (command not found) or 134 (exit code 6)

justin8 commented on 2015-04-28 10:58 (UTC)

I assumed that may have been the case. But again, the reasoning behind using static IDs for VDR was again not really required other than to stop warnings about file ownership on upgrades. Which is kind of the opposite of your point.

alucryd commented on 2015-04-28 10:43 (UTC)

FTR, I don't vouch for VDR, I haven't even looked at it. It was only the result of a quick googling on the subject, I was referring to post #5 with some reasons why it needs to be done like this.

justin8 commented on 2015-04-28 07:41 (UTC)

@alucryd: Reading those links really doesn't say anything in regards to doing it on the AUR. the dev wiki discussion page says that ' it would be good to have a clearer process for the addition of system users, and maybe a specific sub-namespace (_e.g._ from 500 to 749) for AUR' and then some random people putting discussion notes to please add their AUR package. At the moment it prints an inoccuous warning, which is somewhat better than randomly chowning things to a UID that may or may not be in use (I'll agree that 421 is unlikely). Without a database or table or some way of recording which UIDs are in use (and a page full of comments on a discussion page on the dev wiki really is not going to cut it there) then using fixed uid/gids on AUR packages is worse than just creating system users with -r. There is no reason that plex requires a specific uid other than avoiding that warning. Not to mention you added plex's "reserved" uid to that list a few days after @djo0012's initial comment anyway. As for [3] I would be more than a little worried if you actually used that vdr app and it's PKGBUILDs as an example of how to do things. Spending less than 10 mins browsing his github there is a big list of things that break the packaging standards and in some cases are just bad practice. On top of that, there does not appear to be any reason he 'needed' to use a specific UID; everything in the repo depends on VDR being installed first, which means it can be addressed by name. The only thing it prevents is the 'file was owned by vdr instead of root' warnings on package install. But picking random UIDs is not going to be maintainable either and will end up with a bigger mess to clean up afterwards. Anyway, this discussion should probably be moved to either the forums or the mailing list. I've made a post on the AUR sub-forum to try and see what others think of it and what we should all be doing going forward with packaging on the AUR:

Evils commented on 2015-04-27 19:13 (UTC)

Just spend over an hour installing pms with some shitty tutorial... Thanks for the package here!

alucryd commented on 2015-04-27 09:18 (UTC)

Official and unofficial UID/GID database [1][2] Thread that explains once more why it can't be done another way [3] Can't get my hands on the last discussion nor associated bug report though. I added more warnings to address your complaints. I thought pacman warned about differing permissions and owners, but it seems to be permissions only. I'll have a look at it, see if I include the latter. In the meantime, added a temporary chown when updating the user. [1] [2] [3]

djo0012 commented on 2015-04-26 17:21 (UTC)

I still think uid is wrong in a package, but the way proposed to merge it at least warn the user in case of potential problem. At the moment I tested the upgrade with the last package and I received this warning because the plex server was still running (like when I do most update) "userdel: user plex is currently used by process 12291" I don't think you can do much more than this warning to the user to do the upgrade again with the server stopped. But a bigger problem is that the /var/lib/plex isn't chowned and it still used the old uid/gid Another problem found with that way of working is that I added the user 'plex' to the group 'users' for it to access my libraries. So at least a warning telling the user that the original user was delete and recreated and as such any mapping existing need to be recreated. Do you have any link to the general discussion about this? I find it really strange that pacman keep track of ownership by id instead of by name.

justin8 commented on 2015-04-26 13:10 (UTC)

Thanks for the fast responses, That covers most of my concerns with the package anyway.

alucryd commented on 2015-04-26 11:40 (UTC)

Ultimately AUR packages are still handled by pacman, as such I believe they should be treated the same way as packages in our repos. As for chowning to a random UID, I would like to remind you that /var/lib/plex is empty by default, that 421:421 is different from all system critical UID:GID, that they likely don't exist, and even if they did, I don't see how some evil user could turn this to his advantage. Anyway, I refined the install file so that no user/group manipulation should be needed in most cases. It now checks if UID 421 or GID 421 are already taken by anything else and prints a warning when they are, in that unlikely case people should usermod -u or groupmod -g the conflicting user/group. Then if the plex user differs from the new default (for people who are upgrading from an old version), it will delete it along with the plex group and recreate them afterwards (note that it will fail to delete the plex group if several users belong to it, but I don't see why people would do that).

justin8 commented on 2015-04-26 09:39 (UTC)

I thought the consensus of that mailing list discussion was to not change anything in the AUR until a reasonable method of reserving a UID had been decided. When that discussion was active I asked Gaeton what it meant in relation to AUR packages and was advised not to change anything as there was no way to reserve UID/GID currently for the AUR. Is there some change to that stance? If so I should update many of my packages. FYI, I think djo0012 was having more of an issue with just assuming the user was there with no checks or attempts to create it or warnings to the user; just chowning files to a random UID; which *is* a security hole no matter how you look at it.

alucryd commented on 2015-04-26 07:50 (UTC)

No, it applies everywhere, and there's a very good reason for that. For pacman to track file and folder permissions, those have to be set inside the PKGBUILD, not the install file. Now, how can you use plex:plex to do that if it hasn't been created yet? You can't, non-existent users and groups cannot be used, but uid:gid can, period. While maybe not ideal, there is absolutely nothing wrong here, and I'm quite sure every IT field agrees with that... BTW it's almost impossible that some user already has uid 421, unless it was on purpose. Just create a system user without specifying uid:gid and check what you get. I'm willing to bet you'll need a few hundred of'em to reach 421, so there goes your so-called security hole. XBMC uses 420:420, so I picked 421:421. No official package conflicts with that, and if an AUR package conflicts, just notify its maintainer, I'm sure he will gladly change it.

justin8 commented on 2015-04-26 06:22 (UTC)

Yeah.. I'm pretty sure the hard-coded ID thing recently discussed was for official packages where they have allocated IDs already. I was under the impression that AUR packages had no way of doing that. Either way, the way to do that would be to create your user with the ID xxx but then change ownership by name. that would allow for people to move it if it is conflicting, but also keep it hard coded if that was desired. The current implementation is just a big security hole.

djo0012 commented on 2015-04-26 01:55 (UTC)

Using hard code ID is wrong in every IT field, it is even more in a package build that should run across heterogeneous system and should never conflict with another package. Using constant name might be harder than using ID but this is the way to go.

alucryd commented on 2015-04-25 11:28 (UTC)

There is nothing wrong with the package. Before it created plex:plex with random UID:GID, that can't do. I chose 421:421 when I took over, it's up to you to make sure you're using those. I'll complete the install message to include this bit.

ansar commented on 2015-04-25 11:22 (UTC)

Hi, I have a problem with the package. It's modify the owner of a directory: chown 421:421 -R "${pkgdir}"/var/lib/plex But the plex user/group is not the 421 in my case, and it won't start from systemd. After setting the right owner for the folder the service starts nicely. Can you look into it? Thanks!

alucryd commented on 2015-04-22 09:07 (UTC)

jd1pek: Do you have an up to date system? Looks to me you're using an old makepkg, no wonder you can't download the source. all: Just added arm and armv7h architectures in the arch array, enjoy. Do tell if there's something wrong, I don't have any device supporting those arches and can't test unforutunately.

jd1pek commented on 2015-04-15 02:43 (UTC)

I am having trouble building this. $ makepkg ==> Making package: plex-media-server (Tue Apr 14 19:39:25 PDT 2015) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found terms.txt ==> Validating source files with sha256sums... plexmediaserver.conf.d ... Passed plexmediaserver.service ... Passed terms.txt ... Passed ==> Extracting sources... ==> Entering fakeroot environment... ==> Starting package()... cp: cannot stat 'usr/lib/plexmediaserver': No such file or directory ==> ERROR: A failure occurred in package(). Aborting...

JohnnySSH commented on 2015-04-13 13:24 (UTC)

Looks like the port still was still in use?? Rebooted now service showing as up however, can't see server?? Will dig around a bit..

alucryd commented on 2015-04-13 13:08 (UTC)

The steps described in the Troubleshooting section of the wiki are the same as starting the service, if the former works, the latter should as well. Alternatively, even if it doesn't make sense, people reported that trying to start the service without enabling it first fails (note that it works without enabling here on all my machines).

JohnnySSH commented on 2015-04-13 12:58 (UTC)

Well... I totally cleaned out Plex including the user and group. Attempting to start with the .service file still fails?

JohnnySSH commented on 2015-04-13 12:44 (UTC)

Just gona have a look at a complete wipe/reinstall of Plex now and see if that works?

JohnnySSH commented on 2015-04-13 12:40 (UTC)

@alucryd thanks for response. The most obvious thing i could see was to move contents of /opt/plexmediaserver/Library/Application Support to /var/lib/Plex outside of that still getting this?? * plexmediaserver.service - Plex Media Server Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled) Active: activating (auto-restart) (Result: exit-code) since Mon 2015-04-13 13:35:04 BST; 1s ago Process: 6267 ExecStart=/opt/plexmediaserver/Plex\ Media\ Server (code=exited, status=203/EXEC) Main PID: 6267 (code=exited, status=203/EXEC) Apr 13 13:35:04 <server> systemd[1]: Unit plexmediaserver.service entered failed state. Apr 13 13:35:04 <server> systemd[1]: plexmediaserver.service failed.

alucryd commented on 2015-04-13 10:51 (UTC)

Please parse older comments, I'm guessing I have already answered this multiple times already.

JohnnySSH commented on 2015-04-12 01:49 (UTC)

Hi, I've just swapped out the "plexmediaserver" package with this one and I'm getting a strange issue on startup. Systemd keeps putting the service into an error state, when I try to run the service file manually I simply get "permission denied"?? Going through the Plex page on the Arch Wiki down at the "trouble shooting" part it shows to do this: [code] sudo -u plex /usr/bin/bash source /etc/conf.d/plexmediaserver export LD_LIBRARY_PATH=/opt/plexmediaserver /opt/plexmediaserver/Plex\ Media\ Server [/code] which works fine, Plex is up and running. I have checked the .service file and it seems ok... calls source from /etc/conf.d/plexmediaserver - that file is fine too.. but then runs into issues? What's the best way to debug this as the logs don't show anything or running systemctl with debug mode enabled also doesn't show a thing? Thanks.

alucryd commented on 2015-04-08 14:22 (UTC)

Those files are in the tarball, just click "Download tarball".

VenomGameworld commented on 2015-04-08 14:21 (UTC)

alucryd: This may be a dumb question, but I don't use the AUR that much. In the PKGBUILD you refer to 3 files without a specific path or URL. Where am I to obtain these files?

alucryd commented on 2015-03-30 12:22 (UTC)

pauldcox: No harm done. It's very unusual that one of my package isn't flagged a few seconds after a new version has been released, especially the most popular packages, so I came to rely almost only on out-of-date flags.

pauldcox commented on 2015-03-30 10:13 (UTC)

alucryd: I don't either, only reason I saw it was because of the earlier typo and I was confused so I looked. I didn't mean anything by it. Thanks for the pkgbuild.

alucryd commented on 2015-03-30 09:01 (UTC)

Falstaff: Thx for the heads up, package updated. pauldcox: I'm sorry I don't check the plex download page every other minute, if you know there's a new release the flag out of date button is your friend.

Falstaff commented on 2015-03-30 05:07 (UTC)

Oops, you're right. My bad.

pauldcox commented on 2015-03-30 03:45 (UTC)

I think you mean ( was out before that and not upgraded to for whatever reason also)

Falstaff commented on 2015-03-30 03:40 (UTC)

Version just came out.

alucryd commented on 2015-02-24 12:38 (UTC)

Great, glad you got it sorted!

Robr3rd commented on 2015-02-24 04:58 (UTC)

alucryd, I am very excited to say that your suggestion worked! The only difference between what I've tried in the past and what I did this time per your suggestion, was removing the "plex" user and group. Potentially of note is that despite stopping (and disabling, just to be sure) the "plexmediaserver" service I was still unable to delete the "plex" user because it was currently running a process on my machine. Targeting the process ID to kill it did not actually end the process, but running `sudo pkill -u plex` successfully ended the problem process. After that, a simple `userdel plex` and `groupdel plex` followed by reinstallation and everything is up and running again! Also of note is that much like commenters of yore, I am unable to start the service (`systemctl start plexmediaserver`) until *after* I enable the service. While I agree with your statement that it absolutely should not matter, I can only report the opposite. For whatever reason (whether it makes sense or not) it is not possible for me to successfully start the service until after its enabling. As a side note, I only ran the server manually so that I could get a more useful error message. Otherwise I couldn't get a particularly useful error message.

alucryd commented on 2015-02-18 10:55 (UTC)

Robr3rd, did you properly migrate your database (see the instructions in the install file)? I guess remnants of the previous installation could cause issues. Please try the following: uninstall plex-media-server, make sure /opt/plexmediaserver and /var/lib/plex are gone, if not wipe them out. This will erase your database so create a backup if you don't want to lose it, then reinstall plex-media-server and make sure /var/lib/plex belongs to plex:plex. If you already have a "plex" user and group on your system, you might want to delete them before reinstalling. Finally you can restore your backed up library in /var/lib/plex, and chown -R plex:plex the lot of it while you're at it. And for the 100th time, please _don't_ run the server manually, especially _not_ as root, use the provided service.

Robr3rd commented on 2015-02-18 03:03 (UTC)

I am having some problems with this package. After uninstalling plexmediaserver and installing this new one I am receiving the same error as mjob did. The difference being that I already have LD_LIBRARY_PATH set to /opt/plexmediaserver, and have verified that the appropriate version (1.56) is present in that folder. The service will not start and the error message mentioning comes from runnigng the script manually (`sudo /opt/plexmediaserver/Plex\ Media\ Server`) The raw error message: `/opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory`

adambot commented on 2015-02-15 18:43 (UTC)

turns out it was a locale issue -- glibc fubar'ed my locale.gen on a re-install/upgrade

adambot commented on 2015-02-15 04:09 (UTC)

Plex started core dumping on me today. using coredumpctl and gdb i was able to dig out this: Core was generated by `/opt/plexmediaserver/Plex Media Server'. Program terminated with signal SIGABRT, Aborted. #0 0x00007f2b4b0704b7 in raise () from /usr/lib/ I tried re-installing to make sure nothing was corrupt, but that didn't seem to help

alucryd commented on 2015-02-04 10:57 (UTC)

duffydack: From the sound of it, you didn't read the install message upon ugrade, shame on you, please refer to it. Also, /opt/plexmediaserver should not belong to plex, the PKGBUILD sets it to root:root and it should stay like that. all: Due to a recent change in our policy, and for security reasons, the install file will no longer delete the plex UID and GID, you will have to do it manually upon uninstallation.

duffydack commented on 2015-01-28 19:49 (UTC)

Finally got it to start. I had to chown -R plex the /opt/plexmediaserver folder as the update set to UID 998 (doesn't exist).. But after starting it my Library is empty. Nothing setup. I have a full backup I might try restore and hope it's all setup as was before, I really don't wanna set it all up again.

duffydack commented on 2015-01-28 18:45 (UTC)

I too am having problems starting the upgrade. I have /opt/plexmediaserver folder, I have /etc/conf.d/plexmediaserver with LD_LIBRARY_PATH=/opt/plexmediaserver PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plex PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 PLEX_MEDIA_SERVER_TMPDIR=/tmp TMPDIR=/tmp and I have usr/lib/systemd/system/plexmediaserver.service with [Unit] Description=Plex Media Server [Service] EnvironmentFile=/etc/conf.d/plexmediaserver ExecStart=/opt/plexmediaserver/Plex\x20Media\x20Server Type=simple User=plex Group=plex Restart=on-failure RestartSec=5 StartLimitInterval=60s StartLimitBurst=3 StandardOutput=null [Install] Checked the comments, I see stuff about LD_LIBRARY_PATH but that's there. Any ideas?

alucryd commented on 2015-01-26 08:24 (UTC)

mjob: You might want to read this :P

commented on 2015-01-22 20:05 (UTC)

I added LD_LIBRARY_PATH=/opt/plexmediaserver to plexmediaserver.conf.d and it works again.

commented on 2015-01-22 19:40 (UTC)

Locally installed is version 1.57.0

commented on 2015-01-22 19:37 (UTC)

I tried to find out why plex isn't starting anymore and nothing was in the logs. After starting it by hand following was printed: /opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory Ideas how to fix that?

justin8 commented on 2015-01-21 21:32 (UTC)

Hahaha.. So... I did exactly that and many other things over about 2 hours last night. and the first thing I do this morning is rm -rf ~plex/* and now the service works fine. Magic! Thanks

alucryd commented on 2015-01-21 15:15 (UTC)

justin8: Hmm, it's working fine on both an existing and a fresh install here. Can you clear /var/lib/plex/Plex Media Server/Logs, start the service and see if anything pops up in there?

justin8 commented on 2015-01-21 14:35 (UTC)

I just tried the changes you made to the launcher on a new machine, and the service fails to start. If I export all the stuff in the conf.d it runs from the terminal fine, but the service shows no real output. Just that it entered a failed state.

justin8 commented on 2015-01-13 10:39 (UTC)

Ahh, that's a bit of a pain. Thanks for the quick response though.

alucryd commented on 2015-01-13 10:03 (UTC)

justin8: The launcher script shouldn't be run directly, so I removed it altogether by moving LD_LIBRARY_PATH and TMPDIR in the conf.d file. The reason why I put them in a launcher script in the first place is because LD_LIBRARY_PATH must always be the PMS home, and TMPDIR the PMS tmpdir. It seems I can't use shell variables in the conf.d file so I must specify the full path, which could potentially be modified by whimsical users and no longer match the home/tmpdir. tl;dr Now the only way to launch PMS is with the systemd unit. stelleg: Unfortunately source_arm is unsupported, so I won't add it until it is (plus I have no way to test). BTW ALARM already has a PKGBUILD for PMS, using the Synology ARMv5 SPK.

stelleg commented on 2015-01-13 03:59 (UTC)

I've added support for arm architecture. Tested and working on goflex home. Wouldn't really recommend running on a goflex, 128MB not really cutting it.

justin8 commented on 2015-01-13 03:22 (UTC)

/etc/conf.d is for text-based config files. ususally environment files in systemd now. Definitely no binaries in there. A clean install uses the included 'plexmediaserver.conf.d' in /etc/conf.d/plexmediaserver. and it has: PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver which is called in the @alucryd perhaps the file should source the conf.d file itself, or use some sort of default values so that running it directly will work. I get the feeling this is what might be getting people confused since it will not have a correct path. Maybe just replace export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}" with export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME:-/opt/plexmediaserver}"

sirkingchase commented on 2015-01-13 02:16 (UTC)

@alucryd 'No, LD_LIBRARY_PATH is already set in the launcher script and I'm pretty sure PLEX_MEDIA_SERVER_LD_LIBRARY_PATH doesn't even exist' Thanks for the lead! The AUR script installs the binaries in /etc/conf.d/plexmediaserver the launcher script sets the LD_LIBRARY_PATH to the plex home directory, if you do a clean install, this script set the plex home directory to /var/lib/plex thus incorrect LD_LIBRARY_PATH Anyways, 'PLEX_MEDIA_SERVER_LD_LIBRARY_PATH' does still work but you could probably set the path in the launcher script

justin8 commented on 2015-01-07 23:12 (UTC)

@alucryd thanks, that is exactly what I was trying to say. By the way, thanks for maintaining this, it's been really solid the entire time I've used it.

alucryd commented on 2015-01-07 16:51 (UTC)

cjohnson: If there's anything true about code, especially simple code, it's that it does exactly what it's supposed to do. "systemctl enable" only creates a symlink in the dirs where the unit is wanted, period, it does nothing to the actual unit. Also if "systemctl start" didn't find the unit, there is no reason "systemctl enable" would, something definitely happened in between.

cjohnson commented on 2015-01-07 16:17 (UTC)

There were no other steps performed, nothing else changed. Maybe the set of circumstances for you is different than for me. I'm a software dev too and I'd say it's important to have every user's reports, not just the ones that work how I expect they should. Should somebody else come along with the same set of circumstances that cause the same set of issues as me, they might find a solution to their specific problem. I'm not saying we need to submit a bug report, if it seems to work okay for you, but I am saying that: * Start failed to run, again and again and again * I ran the enable command * Suddenly start works I agree it doesn't make any sense why that would matter. But it obviously did. So it's worth noting, that's all. Anyway, my issue is resolved, no sense arguing over it.

justin8 commented on 2015-01-07 06:10 (UTC)

It is of net negative worth if there is incorrect information about how a problem was 'fixed'. Out of curiosity I thought I would double check what it does. If you read through these two: You'll see that after checking if it's masked or a template and pushing dbus notifications, that all it does is create the symlink. I can't explain how your issue was fixed, but I can say with certainty that it was not by enabling the unit.

cjohnson commented on 2015-01-07 05:33 (UTC)

Still... I ran "start", it gave the error. Then I ran enable. Then I ran start again, error went away. Something else is definitely happening or the lack of that symlink is causing it not to work, in my situation. Maybe nothing much to go on now but worth noting in case the issue re-surfaces I guess.

justin8 commented on 2015-01-07 05:24 (UTC)

All enable does is create a symlink in /etc/systemd/system/ to the service file in /usr/lib. It doesn't do anything else. Here is an example of it being installed and started on my work laptop; it has never had plex server installed on it before:

cjohnson commented on 2015-01-07 04:23 (UTC)

@justin8: I wasn't able to start the service until I had "enabled" it as per tmoore's suggestion. Before enable, it gave the error in my previous comment. So it seems as if it actually _is_ needed to start the service. Remember, I deleted *all* plex related files before installing the latest version just to be sure I wasn't running into a conflict. Are you totally sure? What else might have been the issue if so?

tmoore commented on 2015-01-07 03:56 (UTC)

Hmm.. I always thought you had to run it at least once to get the symlink created from /usr/bin to /usr/lib/systemd... Learned something new.. but hey, it fixed it somehow :)

justin8 commented on 2015-01-07 03:54 (UTC)

Your assumption was correct. enable only enables it for load on startup. You do not need that to start the service.

cjohnson commented on 2015-01-07 03:46 (UTC)

Haha, not stupid at all. I was under the impression the "enable" command was for automatically starting the service on start. I didn't realize you needed to enable it to be able to start it. Works perfectly now. I don't recall having to do this on the older version of the package... am I crazy? Did it used to do this for you?

tmoore commented on 2015-01-07 03:43 (UTC)

Stupid question but you did remember to run "sudo systemctl enable plexmediaserver" before trying to start it correct?

cjohnson commented on 2015-01-07 01:45 (UTC)

If I run LD_LIBRARY_PATH=/opt/plexmediaserver:$LD_LIBRARY_PATH /opt/plexmediaserver/Plex\ Media\ Server it starts. Can't find libboost without the LD_LIBRARY_PATH

cjohnson commented on 2015-01-07 01:21 (UTC)

Completely removed the package and installed the latest version. I even deleted /opt/plexmediaserver and any plex-related file in /etc to be sure it wasn't the issue. I'm still getting this error: media@desktop ~/aur/plex-media-server » sudo systemctl start plexmediaserver.service Failed to start plexmediaserver.service: Unit plexmediaserver.service failed to load: No such file or directory. media@desktop ~/aur/plex-media-server » sudo systemctl status plexmediaserver.service ● plexmediaserver.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) What am I missing? It looks like my /var/lib/plex is empty

alucryd commented on 2015-01-05 11:47 (UTC)

No, LD_LIBRARY_PATH is already set in the launcher script and I'm pretty sure PLEX_MEDIA_SERVER_LD_LIBRARY_PATH doesn't even exist.

sirkingchase commented on 2015-01-03 18:19 (UTC)

FYI, this may be obvious to but you have to set your environment variable to use the binary library files provided by the applications. I.E. Add PLEX_MEDIA_SERVER_LD_LIBRARY_PATH=/opt/plexmediaserver ( location of Plex Dependency Binaries ) to the environment file specified in the systemd service ( /etc/conf.d/plexmediaserver ) I just spent the last 12 hours banging this out!

alucryd commented on 2014-12-29 22:05 (UTC)

Right, it says people could help test pacman 4.2, not package-query, and especially not yaourt. Again, yaourt and package-query are totally unsupported, complaints about them belong on their respective AUR pages, period. Please don't drag this any more than it should be.

davidbrooke commented on 2014-12-29 21:53 (UTC)

@alucryd Comment by alucryd 2014-12-23 07:35 np :) Pacman 4.2 will stay in [testing] for a few days before ending in [core], maybe even a week or 2 until all obvious bugs have been taken care of. So far I only had an issue with updpkgsums which chmod 600 the resulting PKGBUILD, but nothing serious. I changed this and nvidia-dkms so people can help test the new pacman release before it goes stable. The last line in the above post says you wanted help.

alucryd commented on 2014-12-29 21:27 (UTC)

Your comment doesn't make any sense, I didn't ask for anything, you did, and at the wrong place at that.

davidbrooke commented on 2014-12-29 21:21 (UTC)

@alucryd Sorry that you don't see all help as help! Next time don't ask for it. Thanks

alucryd commented on 2014-12-29 19:43 (UTC)

davidbrooke: No, justin8 is right, package-query complaints have nothing to do in here. The only reason it gave you troubles is because you are using an unsupported helper instead of using AUR the only supported way, which is makepkg and does not need package-query.

davidbrooke commented on 2014-12-29 16:48 (UTC)

Package-query was updated so that pacman 4.2 and yaourt all work. Installed plex-media-server and it seems to be working correctly. Thanks for the work! @justin8 My post here for package-query and pacman 4.2 are very relevent to the testing and stable versions of plex-media-server. Please read all the posts before making mis-informed remarks.

justin8 commented on 2014-12-29 07:23 (UTC)

Perhaps try asking that on the package-query page? It was moved to the AUR earlier this week I believe, but it says there it supports pacman 4.2 anyway, so just rebuild it from there. Either way; it's totally unrelated to plex.

davidbrooke commented on 2014-12-29 06:02 (UTC)

Pacman 4.2 is out but there is still an issue: :: Synchronizing package databases... core is up to date extra is up to date community is up to date multilib is up to date archlinuxfr is up to date :: Starting full system upgrade... resolving dependencies... looking for inter-conflicts... error: failed to prepare transaction (could not satisfy dependencies) :: package-query: requires pacman<4.2 If I uninstall package-query then pacman 4.2 will install but I can't reinstall package-query and yaourt to install plex-media-server. Is there an updated version of package-query or is there another way to install pacman 4.2?

CheriPai commented on 2014-12-28 21:31 (UTC)

I'm getting the same error as mutchuloko. It seems that libboost was updated to 1.57, but Plex is still running on 1.56

alucryd commented on 2014-12-28 20:33 (UTC)

Sigh... I wonder when being able to browse and read through previous comments stopped being a requirement for AUR. Reverted to the old ugly bash magic until pacman 4.2 hits [core].

binhex commented on 2014-12-28 19:20 (UTC)

yep, same deal for me, missing directory usr/lib/plexmediaserver on unpack [91m==> Extracting sources...  ==> Starting package()...  cp: cannot stat ‘usr/lib/plexmediaserver’ : No such file or directory  ==> ERROR: A failure occurred in package().   Aborting...  The build failed.

Zuken commented on 2014-12-28 14:19 (UTC)

I also have a problem with the install: ==> Building and installing package ==> Making package: plex-media-server (Sun Dec 28 09:09:49 EST 2014) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found -> Found terms.txt ==> Validating source files with sha256sums... plexmediaserver.conf.d ... Passed plexmediaserver.service ... Passed ... Passed terms.txt ... Passed ==> Extracting sources... ==> Entering fakeroot environment... ==> Starting package()... cp: cannot stat ‘usr/lib/plexmediaserver’: No such file or directory ==> ERROR: A failure occurred in package(). Aborting... ==> ERROR: Makepkg was unable to build plex-media-server. ==> Restart building plex-media-server ? [y/N] ==> ------------------------------------------

ehrenfest commented on 2014-12-27 12:39 (UTC)

I have a problem building the package: ****@adamantan:~/build/ > tar xvf plex-media-server.tar.gz plex-media-server/ plex-media-server/plexmediaserver.service plex-media-server/terms.txt plex-media-server/.SRCINFO plex-media-server/plexmediaserver.conf.d plex-media-server/plex-media-server.install plex-media-server/ plex-media-server/PKGBUILD ****@adamantan:~/build/ > cd plex-media-server ****@adamantan:~/build/plex-media-server/ > makepkg ==> Making package: plex-media-server (Sa 27. Dez 13:39:00 CET 2014) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found -> Found terms.txt ==> Validating source files with sha256sums... plexmediaserver.conf.d ... Passed plexmediaserver.service ... Passed ... Passed terms.txt ... Passed ==> Extracting sources... ==> Entering fakeroot environment... ==> Starting package()... cp: cannot stat ‘usr/lib/plexmediaserver’: No such file or directory ==> ERROR: A failure occurred in package(). Aborting... ****@adamantan:~/build/plex-media-server/ > Can anybody help?

alucryd commented on 2014-12-27 11:09 (UTC)

The locale is no longer needed. Also just added a troubleshooting section on the wiki page:

mutchuloko commented on 2014-12-27 02:12 (UTC)

I never needed generate en_US then I did generate and did not work. I restarted my computer and keep not working ● plexmediaserver.service - Plex Media Server Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since Sex 2014-12-26 22:01:23 BRST; 3min 36s ago Process: 529 ExecStart=/usr/bin/ (code=exited, status=127) Main PID: 529 (code=exited, status=127) Dez 26 22:01:18 mutchuloko systemd[1]: Unit plexmediaserver.service entered failed state. Dez 26 22:01:18 mutchuloko systemd[1]: plexmediaserver.service failed. Dez 26 22:01:23 mutchuloko systemd[1]: start request repeated too quickly for plexmediaserver.service Dez 26 22:01:23 mutchuloko systemd[1]: Failed to start Plex Media Server. Dez 26 22:01:23 mutchuloko systemd[1]: Unit plexmediaserver.service entered failed state. Dez 26 22:01:23 mutchuloko systemd[1]: plexmediaserver.service failed.

steelmann commented on 2014-12-27 01:52 (UTC)

Thank you Slash and Psynigmashi. I think I didn't explain well what my problem is. I've already installed Plex media server couple of week ego (using yaourt!) and it is working well right now too. But after last Manjaro update pack installed PMS became outdated and Octopi says it needs to update. When I tried to update PMS I got the error message. I understand what should I do but first I have to study how to edit PKGBUILD.

Psynigmashi commented on 2014-12-27 00:26 (UTC)

Did you make sure you generated the en_US locale? Follow what it says on the Locale article in the Arch Linux wiki. If you already did that and it still doesn't work, try restarting your computer. This was driving me nuts before because I did everything it said, but I couldn't get it to work. I restarted my computer and tried it and it finally worked, so a restart might be all you need.

mutchuloko commented on 2014-12-26 23:56 (UTC)

I can install plex but I cant start the plex-media-server with systemctl. I tried all the recomendation and didnt work.

Psynigmashi commented on 2014-12-26 22:25 (UTC)

Thank you Slash. I edited the PKGBUILD like alucryd described and reinstalled it and it seems to be working fine so thankfully I didn't have to uninstall it first. @steelman I tried installing it multiple times with yaourt and aura. I checked the wiki, but there doesn't seem to be a way (at least as far as I can see) to edit the PKGBUILD first before installing. You'll have to build it manually like Slash described. If you're still confused I would check the Arch User Repository article on the Arch Linux wiki page. That's how I learned to install packages that wouldn't work with yaourt.

Slash commented on 2014-12-26 16:55 (UTC)

You will need to download the tarball, modify the PKGBUILD (per alucryd's instructions) and run "makepkg". I'm not sure how to do that with yaourt, but you need to modify the PKGBUILD prior to building since it is currently relying on pacman 4.2 features that are only in the [testing] repo.

steelmann commented on 2014-12-26 11:15 (UTC)

Sorry of bother you Slash but can you explain how to "building it again and reinstalling"? If I use a "yaourt -S plex-media-server" command in terminal and when it ask me: *Continue building plex-media-server? [Y/n]" I answer [Y]. Then the building and installing starts but at the end of the process I get this error message: . . . cp: cannot stat ‘usr/lib/plexmediaserver’: No such file or directory ==> ERROR: A failure occurred in package(). Aborting... ==> ERROR: Makepkg was unable to build plex-media-server. ==> Restart building plex-media-server ? [y/N] Here I choose [Y] again and the process starts from the beginning. I really don't know what should I do.

Slash commented on 2014-12-26 07:39 (UTC)

Building it again and reinstalling should work, you shouldn't need to uninstall first.

Psynigmashi commented on 2014-12-25 23:01 (UTC)

I apologize. I didn't see alucryd's comment below. @Slash Since I already did what I described in my post would I have to uninstall this and build it again or can I build it again without uninstalling? I'm still fairly new to Arch Linux, so I'm not that familiar with this.

Slash commented on 2014-12-25 21:49 (UTC)

Do not use @Psynigmashi's suggestion - it's just copying the version that's already installed into the new package. See @alucryd's comment below (modifying the "sha256sums..." and "source..." lines) on how to fix the issue you are having.

steelmann commented on 2014-12-25 21:26 (UTC)

I couldn't update, I got same error here.

commented on 2014-12-25 19:50 (UTC)

Thank you! As Psynigmashi said! I got same error here.

commented on 2014-12-25 19:50 (UTC)

Thanks Psynigmashi! I have same problem here..

Psynigmashi commented on 2014-12-25 19:20 (UTC)

I just tried upgrading this package using aura and I kept getting an error so I tried building it manually and I kept getting the same error. I'm new to Arch Linux, so I might not be doing this right, but the error message it was giving me was this. cp: cannot stat ‘usr/lib/plexmediaserver’: No such file or directory I finally realized the reason it wasn't working was because there wasn't a "/" before usr, so it couldn't create the directory. I edited the PKGBUILD and added the "/" and tried building again and it worked fine this time. I just thought I should mention that in case anyone else had this problem.

alucryd commented on 2014-12-23 07:35 (UTC)

np :) Pacman 4.2 will stay in [testing] for a few days before ending in [core], maybe even a week or 2 until all obvious bugs have been taken care of. So far I only had an issue with updpkgsums which chmod 600 the resulting PKGBUILD, but nothing serious. I changed this and nvidia-dkms so people can help test the new pacman release before it goes stable.

caneylan commented on 2014-12-23 02:23 (UTC)

@alucryd ah, yep. that'll do it. thanks!

davidbrooke commented on 2014-12-23 00:53 (UTC)

Sorry I'm not a programmer / didn't understand that the curent and only version was testing. Will a stable version be available when pacman 4.2 becomes stable?

alucryd commented on 2014-12-22 22:33 (UTC)

I said in my comment right below that I used a new feature from pacman 4.2 in [testing]. If you don't want to try out the latest pacman, you can just rename "source_x86_64=" and "sha256sums_x86_64=" into "source+=" and "sha256sums+=", same deal if you use i686.

davidbrooke commented on 2014-12-22 21:07 (UTC)

Getting the same error as caneylan: ==> Extracting sources... ==> Entering fakeroot environment... ==> Starting package()... cp: cannot stat ‘usr/lib/plexmediaserver’: No such file or directory ==> ERROR: A failure occurred in package(). Aborting... ==> ERROR: Makepkg was unable to build plex-media-server. ==> Restart building plex-media-server ? [y/N] ==> ------------------------------------------

caneylan commented on 2014-12-22 20:41 (UTC)

Getting an error during `makepkg`: $ makepkg ==> Making package: plex-media-server (Mon Dec 22 15:38:50 EST 2014) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found -> Found terms.txt ==> Validating source files with sha256sums... plexmediaserver.conf.d ... Passed plexmediaserver.service ... Passed ... Passed terms.txt ... Passed ==> Extracting sources... ==> Removing existing pkg/ directory... ==> Entering fakeroot environment... ==> Starting package()... cp: cannot stat âusr/lib/plexmediaserverâ: No such file or directory ==> ERROR: A failure occurred in package(). Aborting...

alucryd commented on 2014-12-22 09:06 (UTC)

Pacman 4.2 (still in [testing]) comes with arch specific source arrays, no more bash magic \o/ Enjoy a prettier PKGBUILD.

alucryd commented on 2014-12-08 09:59 (UTC)

No problem, glad you got it sorted. I don't have any experience with the chromecast though, I have no idea what could cause issues :( all: I just removed the locale lines, but since I didn't get the feedback I was offered, well, you'll all be my guinea pigs :P

jeremyrainman commented on 2014-12-05 17:39 (UTC)

Sorry about that, don't know how I missed that. I've got the latest version now working, thank you. Unfortunately the mkv chromecast streaming problem remains.

alucryd commented on 2014-12-05 16:11 (UTC)

Then pacman should have printed some migration instructions when you upgraded. I recently moved the application directory in /var/lib/plex. You have to merge the new config options with pacdiff and move your library inside the new home as described in the .install file.

jeremyrainman commented on 2014-12-05 16:06 (UTC)

No, it's not a fresh install. I've had it working for over a year now on this box. I hadn't updated in a while, the last version I had on there was I updated because I had this nagging problem with streaming some *.mkv's. Only some mkv's would hang after about 1-5 frames of video and about ~30seconds of audio, while other mkv's worked fine. Just wanted to make sure I was using the most up to date version of plex before diagnosing further.

alucryd commented on 2014-12-05 16:02 (UTC)

Is it a fresh install? Did you generate the en_US locale? jumperalex, techmunk: BTW, any feedback on removing the locale lines? I'm really considering removing them anyway, I really don't see the point.

jeremyrainman commented on 2014-12-05 15:58 (UTC)

Now I'm confused, my /var/lib/plex directory is entirely empty.

alucryd commented on 2014-12-05 15:48 (UTC)

Anytime :) vaski: Yeah, writing a troubleshooting section is a good idea. I'll try to find some time this week-end to do it. jeremyrainman: Hmm nothing happening on the command line should be a good sign (there's nothing here when it works). If it does start, logs are written in "/var/lib/plex/Plex Media Server/Logs" or "your_app_dir/Plex Media Server/Logs" if you changed it. Did it work at some point? If nothing helps, can you afford (time-wise) wiping /var/lib/plex and reconfiguring/reindexing from scratch?

jeremyrainman commented on 2014-12-05 15:23 (UTC)

First off, Thank you alucryd for maintaining this. That must be stated first, because without your effort, we wouldn't enjoy this. Second, I'm having a seemingly similar problem that vaski was having, but am having no luck solving it even after trying your advice. My console log is here: I tried your recommendations to vaski, however when I execute this line: # /opt/plexmediaserver/Plex\ Media\ Server My console simply hangs on the return on that, no information shows up in the console. Is there a log file I should be watching for information? I know it's not the exact same problem that vaski was having, since my / and /var have plenty of free space.

vaski commented on 2014-12-05 11:54 (UTC)

@alucryd: Thanks for the answer, maybe I need to rethink my partitioning schema and move /var from /. Should the instructions that you gave me not be on the wiki as part of troubleshooting? Thous are good and detailed instructions :) Thanks again for the help and thanks for the package.

alucryd commented on 2014-12-04 22:17 (UTC)

vaski: Yup, depends on how big your library is, the application directory can be several gigs large.

flaccid commented on 2014-12-04 22:09 (UTC)


vaski commented on 2014-12-04 19:56 (UTC)

@alucryd Thanks, with this I saw that there were no space left on /var. I deleted some pacman cache and now plexserver is running. But is it normal that /var/lib/plex/Plex Media Server/Media/ takes 3.5G of space?

alucryd commented on 2014-12-04 09:15 (UTC)

vaski: Try launching it manually, you should get more useful output. Unfortunately, su -c and environment variables don't play well (particularly LD_LIBRARY_PATH for security reasons), so you need to log in as plex and run it from there. For that you need to change its shell: # sudo chsh -s /usr/bin/bash plex # sudo su plex From there load the required environment variables and start pms: # source /etc/conf.d/plexmediaserver # export LD_LIBRARY_PATH=/opt/plexmediaserver # /opt/plexmediaserver/Plex\ Media\ Server Hopefully it will tell you what's wrong. Once you're done, don't forget to revert plex' shell: # sudo chsh -s /usr/bin/nologin plex Also, please an external pastebin service for error logs instead of pasting them here.

vaski commented on 2014-12-03 23:11 (UTC)

The server wont start and i don't know what is wrong. It was working yesterday. Can someone point me in the right direction? systemctl status does not help that mutch. systemctl status plexmediaserver ● plexmediaserver.service - Plex Media Server Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled) Active: failed (Result: start-limit) since Wed 2014-12-03 22:35:13 GMT; 19min ago Process: 8601 ExecStart=/usr/bin/ (code=exited, status=255) Main PID: 8601 (code=exited, status=255) Dec 03 22:35:13 madmen systemd[1]: plexmediaserver.service holdoff time over, scheduling restart. Dec 03 22:35:13 madmen systemd[1]: Stopping Plex Media Server... Dec 03 22:35:13 madmen systemd[1]: Starting Plex Media Server... Dec 03 22:35:13 madmen systemd[1]: start request repeated too quickly for plexmediaserver.service Dec 03 22:35:13 madmen systemd[1]: Failed to start Plex Media Server. Dec 03 22:35:13 madmen systemd[1]: Unit plexmediaserver.service entered failed state. Dec 03 22:35:13 madmen systemd[1]: plexmediaserver.service failed.

jl4c commented on 2014-12-03 14:12 (UTC)

Thanks alucryd

alucryd commented on 2014-12-03 13:11 (UTC)

jl4c: There are a multitude of choices as to how to deal with permissions, really. Either make your home 755 (really poor choice), store your files elsewhere as recommended in the wiki, make a symlink where the plex user can read, or run plex as your user and point the application directory somewhere in your home, or run it with a custom unit via systemctl --user again with application directory in your home.

jl4c commented on 2014-12-03 12:43 (UTC)

Yes tmoore, Plex cant read folders inside my home partition. I know this is a permissions issue but am a little lost here.

alucryd commented on 2014-12-03 08:00 (UTC)

James_Epp: No problem, that section is of concern anyway, because of it I can't have pms in [community] :(

James_Epp commented on 2014-12-03 05:22 (UTC)

Apologies, alucryd.

tmoore commented on 2014-12-03 04:11 (UTC)

Uh, you mean like "mkdir ~/foldername"?

jl4c commented on 2014-12-03 03:47 (UTC)

Hi guys, sorry for the noob question: How can i add folder in my home partition? Thanks

alucryd commented on 2014-12-02 08:14 (UTC)

Well, there wouldn't be a pinned thread about it in their forum if it weren't allowed, now would it? The terms prevent people from redistributing the binaries, this is purely a script which fetches the binaries directly from them, this is no redistribution.

James_Epp commented on 2014-12-02 00:54 (UTC)

I hate to be a Debbie Downer, but doesn't this release go against Section C of the terms? Does the maintainer/submitter have legal authority to release this software?

alucryd commented on 2014-11-27 19:59 (UTC)

jumperalex: Does plex work without issue using another locale? I'd like to get rid of this as well as I don't see why upstream forces it, apart from error messages in english, maybe. I didn't get feedback from techmunk so I left it as is just in case.

jumperalex commented on 2014-11-27 19:55 (UTC)

So I'm not sure really what the implications are of doing it but like techmunk I had to comment out #export LANG='en_US.UTF-8' #export LC_ALL='en_US.UTF-8' to get plex to even load. I was coming from an old install and tried many different things in the middle to solve my non-start problem to include completely (I think) removing plex and all folders (several times). I was seeing polkit errors sometimes (when not using sudo) which led me down a deadend of installing polkit. In any case, I made that change, aimed PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR at the right place for my setup (a separate .img from my VM.img) and I'm up and running now. Is there anything I can add to the discussion to help figure out why I had to comment out those lines to help other users / package modification?

alucryd commented on 2014-11-27 07:19 (UTC)

atomicfizzle: Well yeah, RPMs are only provided as x86_64 and i386. You need an ARM build, get it wherever you got your current one.

atomicfizzle commented on 2014-11-27 04:33 (UTC)

Anyone know how I get this upgrade to work on my ARM system? I'm at and pacman won't find this update. Is it because the arm arch is not listed in the PKGBUILD?

alucryd commented on 2014-11-26 18:41 (UTC)

@all: Before I get any more complaint, just so we're clear, this package works, if it doesn't there is sth wrong on your side, whether or not you are responsible for it, I can't tell in advance. I have successfully migrated an existing plex library (which didn't even come from an arch box but from a Synology NAS), and did 3 fresh installs on 3 different machines, all of them worked out of the box. I also have another install with a completely different approach than what I did with this package, using systemctl --user and the library residing in ~/.plexms, so as to mirror ~/.plexht, which works without issues as well. Although on the slight off chance there really is sth wrong with the package, which I highly doubt, I'd rather not get assaulted for it. I happen to have as much patience as a bomb squad on a defusing intervention, and I will answer in kind.

tmoore commented on 2014-11-26 16:19 (UTC)

*golf clap*

alucryd commented on 2014-11-26 10:15 (UTC)

And that my friend is why you will never be a packager. Those files are created by the software, they're not present on a fresh install, it is _NOT_ the package manager's job to deal with them. Period. Or would you like pacman to package your home directory? If you want babysitting, there's a good kindergarten out there called Ubuntu. Man, I love people raging when they don't know shit about the stuff they're talking about.

dz0ny commented on 2014-11-26 10:00 (UTC)

@alucryd are you on drugs? There should be no manual moving of installed packages after package was installed on system!! Thats the whole point of package managers, which can track where stuff is installed and what dependencies it needs. TLDR; Its not operators job to move files from /opt/plexmediaserver to /var/lib/plex, it's MAINTAINERS ONE! Sorry for rage post, but this really angers me!

trikolon commented on 2014-11-26 09:54 (UTC)

Got it working. After removing all and reinstalling. I did not notice, that I have access to se server from localhost. It's working now. thx.

alucryd commented on 2014-11-26 09:11 (UTC)

Did you follow the migration instructions in the install message?

trikolon commented on 2014-11-26 08:53 (UTC)

Hi, I was using plexmediaserver on Arch now for month without problems. After upgrading to plex-media-server somehow it seems, that the server is not starting or the weg gui cannot connect to the server. I can open the web gui with ip:32400/web but I cannot see any server. Any ideas?

alucryd commented on 2014-11-17 08:28 (UTC)

Samleybrize: Yup, as written on the dedicated wiki page :)

Samleybrize commented on 2014-11-16 22:27 (UTC)

I had to add the en_US.UTF-8 locale, otherwise the service refuse to start

alucryd commented on 2014-11-08 09:46 (UTC)

Thanks for the kind words sir :)

tmoore commented on 2014-11-08 02:51 (UTC)

Just to add positive vibes, I love what you've done with the package and really appreciate what you have done. People don't compliment maintainers enough IMHO :)

alucryd commented on 2014-11-07 22:14 (UTC)

Thijxx: Permissions are set up correctly by the PKGBUILD, I'm not responsible for you changing them to something else. And move instructions are already in the install file for anyone installing from a setup before I took over.

Thijxx commented on 2014-11-07 21:59 (UTC)

Please add an .install file with extra setup instructions; adding the right permissions and maybe moving an application support directory.

WarheadsSE commented on 2014-11-06 18:04 (UTC)

Yup. Remove ${} from the setting, and all is well.

WarheadsSE commented on 2014-11-06 18:01 (UTC)

I merged the changes, and then re-set the value. It seems like it did not interpret the value there. Let me alter the config to have the absolute vaule (not ${}) and try again.

alucryd commented on 2014-11-06 17:58 (UTC)

It appears you're still using the old application support location, I have set up the new one in /var/lib/plex. Are you upgrading or is it a new install? If it's an upgrade, did you move the application support dir as explained in the install message, did you merge the changes in /etc/conf.d/plexmediaserver?

WarheadsSE commented on 2014-11-06 17:50 (UTC)

I am seeing the failure to start, but after confirming that my configuration was correct, and removing the StandardOutput=null in the service, I am seeing that it is a permissions issue : what(): boost::filesystem::create_directories: Permission denied: "${PLEX_MEDIA_SERVER_HOME}/Library/Application Support/Plex Media Server"

alucryd commented on 2014-11-06 15:43 (UTC)

berot3: The launcher script makes use of LD_LIBRARY_PATH to load those libs, make sure you have PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver in /etc/conf.d/plexmediaserver.

berot3 commented on 2014-11-06 15:27 (UTC)

Freshly installed pms and got following errors (1 by 1): sudo systemctl start plexmediaserver.service opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory ldd /opt/plexmediaserver/Plex\ Media\ Server | grep "not found" => not found => not found => not found => not found => not found => not found => not found All those seem to be in /opt. But what is missing so pms can find the libraries? (/var/lib/plex/ is empty btw)

Jhackler commented on 2014-11-04 22:19 (UTC)

Sorry last comment, It was just a dumb error with the permission to my trans-coding folder.

Jhackler commented on 2014-11-04 22:15 (UTC)

Figured it out I deleted the install (again) relocated my app support and ran sudo usermod -s /bin/bash plex before starting service. (update) The web interface play is giving errors for playback which it didn't used to do, hopefully I can figure this out.

Jhackler commented on 2014-11-04 21:37 (UTC)

I have no clue what I am doing and the wiki isn't as detailed as it usually is :( loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled) Active: activating (auto-restart) (Result: exit-code) since Tue 2014-11-04 14:31:46 MST; 4s ago Process: 15237 ExecStart=/usr/bin/ (code=exited, status=127) Main PID: 15237 (code=exited, status=127) Nov 04 14:31:46 systemname systemd[1]: Unit plexmediaserver.service entered failed state.

alucryd commented on 2014-10-31 07:30 (UTC)


Thijxx commented on 2014-10-30 23:36 (UTC)

What are the permissions needed to set to /var/lib/plex?

alucryd commented on 2014-10-30 12:07 (UTC)

Ashex: Agreed, added to the service file. Although, please note that you can limit the size of your journal:

Ashex commented on 2014-10-30 11:59 (UTC)

Minor request that "StandardOutput=null" be added to the unit file. With debug disabled plex is incredibly noisy and will fill up the journal with things like this:[22302]: * Refreshing 100_0754 With a large enough library it causes the journal to grow out of control (with the default 30 day retention we're looking at 6GB+ of logs just from plex).

alucryd commented on 2014-10-28 08:46 (UTC)

flaccid: This is no bug, pacman expects to get something in return for a command, it's the correct behavior. That said, I changed the install file so that it doesn't fool pacman while still producing no output, you shouldn't see any more "command failed".

flaccid commented on 2014-10-28 07:32 (UTC)

@alucryd perhaps a bug should be lodged for pacman then?

alucryd commented on 2014-10-28 07:24 (UTC)

tmoore: You can safely ignore that. All user creation commands are piped to /dev/null, pacman has no output and thinks they fail, but they don't. lightdm and gdm do the same, and probably other official packages too, nothing to worry about.

tmoore commented on 2014-10-28 02:38 (UTC)

FYI.. is anyone else getting this after installing the .xz? error: command failed to execute correctly I believe that's due to the install-info command, but I don't see that in the post-build commands.. I'm not sure how it's picking it up. Could just be my system. Wanted to make sure. Other pkgs don't have the issue.

alucryd commented on 2014-10-27 08:59 (UTC)

techmunk: I took the forced locale off upstream's start script, it struck me as odd but I thought they had to have a reason for this, and that's why it's not in 'conf.d'. Did you try removing those lines from, does it launch correctly with another locale? I try to keep my linuxes international so I always use en_US here. For reference, here's upstream script: Regarding the UID/GID, I had to pick a pair so people don't have random ones, we have to define standards UID/GID at some point, and these will end up in once this package hits our repos. An unfortunate side effect is that they need to be created anew if they already exist, simply uninstalling and reinstalling plex-media-server will take care of this. Also, the permissions need to be set in the package function so pacman can track them, no going around that. As for the '/var/lib/plex' dir, this is the correct way to do it on Arch. Of course you're free to do whatever you want with the AppSupport dir, but the only way I'll support in this package is '/var/lib/plex'. Thanks for the heads up on the warning message, zsh was fine with the function, but not bash apparently (when called by pacman). I replaced it with a working one.

techmunk commented on 2014-10-27 00:00 (UTC)

Some things I think need to be addressed in this PKGBUILD. 1. I don't have the en_US.UTF-8 locale enabled. So setting LANG and LC_ALL to this in, causes plex not to start. These should probably be sourced from the environment file placed in /etc/conf.d, so that I can change them, without having to fix everytime I upgrade. 2. The package() method creates and sets permissions of /var/lib/plex to 421:421. As I'm upgrading, I have different uid/gid's. I have also changed the location of PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR, so I don't actually need that directory at all. I'd prefer it didn't get needlessly created and set to bogus permissions everytime I upgrade. This should probably be addressed in post_install(), and post_upgrade() should likely not call post_install(). If I've changed the permissions and groups on my system, I don't want the upgrade to go changing it back. This point is minor, and doesn't really bother me either way, but thought I would mention it as a potential issue or source of confusion. 3. The post_upgrade() doesn't run when replacing the old PMS PKGBUILD, so most people who might need to see the post_upgrade() message, are likely not to see it. Thanks for looking after and creating these PKGBUILDS!

Jhackler commented on 2014-10-26 16:23 (UTC)

How do I generate the en_US.UTF-8 locale before starting plex service. I need to migrate to the new package here.

hwesselmann commented on 2014-10-24 20:26 (UTC)

Please make sure to generate the en_US.UTF-8 locale before starting plex service. It's on the wiki, but it would be helpful if the package could output something like that on installation.

flaccid commented on 2014-10-21 18:25 (UTC)

Or you could just make your package usable.

alucryd commented on 2014-10-21 16:14 (UTC)

flaccid: Funny how some people don't know how to read, it's one of the most basic things, you should try it :) Deleted your 3 last comments, please stop spamming the comment section for no reason and consider scrolling down and/or consulting the wiki, because all of this has already been answered. Also, having a look at the package contents would be pretty self-explanatory.

alucryd commented on 2014-10-21 09:37 (UTC)

No, is provided with the package, and I already said _do not_ run plex by any other means than the provided service file.

flaccid commented on 2014-10-21 09:30 (UTC)

$ /usr/bin/ /opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory This is ffmpeg, currently on .54 so because the binary upstream is behind I guess we need a dirty symlink.

alucryd commented on 2014-10-18 21:48 (UTC)

lksbhm: Somehow PMS needs access to another directory I can't pinpoint, so proposed restrictions make it crash. I modified the wiki example with looser settings which do work here. Also added /tmp to ReadWrite, you'll need it if you use transcoding. slaecker: It should work out of the box, can you try running directly like this: sudo -u plex

slaecker commented on 2014-10-18 11:27 (UTC)

I upgraded from the old package plexmediaserver and moved the contents of the Application Support directory into /var/lib/plex but then the service refused to start. I then purged the plex-media-server installation and deleted /opt/plexmediaserver and /var/lib/plex and removed the user plex and its group. Afterwards I did a fresh install of plex-media-server and did a daemon-reload but the service still refuses to start. % systemctl status plexmediaserver.service ● plexmediaserver.service - Plex Media Server Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled) Active: failed (Result: start-limit) since Sa 2014-10-18 13:15:51 CEST; 7s ago Process: 14264 ExecStart=/usr/bin/ (code=dumped, signal=ABRT) Main PID: 14264 (code=dumped, signal=ABRT) Okt 18 13:15:45 homeserver systemd[1]: plexmediaserver.service: main process exited, code=dumped, status=6/ABRT Okt 18 13:15:45 homeserver systemd[1]: Unit plexmediaserver.service entered failed state. Okt 18 13:15:51 homeserver systemd[1]: plexmediaserver.service start request repeated too quickly, refusing to start. Okt 18 13:15:51 homeserver systemd[1]: Failed to start Plex Media Server. Okt 18 13:15:51 homeserver systemd[1]: Unit plexmediaserver.service entered failed state. I haven't done any restrictions so far as mentioned in the Wiki, only installed, daemon-reload and service start. Any hints?

alucryd commented on 2014-10-18 09:15 (UTC)

/opt/plex was a brain fart, thx for pointing it out. As for not being accessible, if I understand correctly, it shouldn't happen, then again I found out about those mechanisms yesterday so I may be wrong. I believe systemd spawns the process then restrict the directories. What happens if you get rid of the InaccesibleDirectories line and have / only in ReadOnlyDirectories ?

lksbhm commented on 2014-10-18 08:19 (UTC)

I tried following the wiki instructions for restrict.conf, but it won't work. I figured I needed to change /opt/plex to /opt/plexmediaserver and I use /srv/media as my media directory. So I have [Service] InaccessibleDirectories=/ ReadOnlyDirectories=/opt/plexmediaserver /srv/media ReadWriteDirectories=/var/lib/plex /tmp MemoryLimit=2G The error in journalctl is Failed at step NAMESPACE spawning /usr/bin/ Operation not permitted Can anyone clarify?

alucryd commented on 2014-10-17 14:13 (UTC)

thommy101: Glad you got it sorted! all: I just updated the wiki page, feel free to complete it if you feel I overlooked anything.

thommy101 commented on 2014-10-17 11:34 (UTC)

After a complete delete of all plex files and an install it works. Guess I've opened it once as root, which messed up a lot. Thanks for the help and for the package!

alucryd commented on 2014-10-17 10:25 (UTC)

Did you daemon-reload systemctl to use the new service file? Is /var/lib/plex and everything inside owned by plex:plex? _Do not_ use anything other than the service file to launch plex, you probably ran it as root and messed up a few permissions. I've installed this on 3 machines without any issue.

thommy101 commented on 2014-10-17 10:00 (UTC)

After a fresh install (came from plexmediaserver package, which refused to start after an upgrade) it won't start at all. The service crashes (and coredumps) about a non existing directory "/var/lib/plex/Plex Media Server/Logs". I also can't create it, because there is a file named "/var/lib/plex/Plex Media Server". Running from the last directory and plex does start. Any idea what is wrong?

alucryd commented on 2014-10-16 16:06 (UTC)

Updated, also added a notice about the library move in the install file.

whiskerz007 commented on 2014-10-16 00:48 (UTC)

Outdated -

commented on 2014-10-15 21:04 (UTC)

For anyone else trying to find the github repo for this, the link below is broken because the location changed.

alucryd commented on 2014-10-15 09:43 (UTC)

joshka: The rationale behind the move to /var is that, as its name implies, it is a variable directory where programs can write all sorts of stuff, and most of it isn't tracked by pacman. /var/lib is where we put $HOME for system users, or any other users created just for the purpose of running a particular piece of software. In most cases programs should not be allowed to modify anything under /usr or /opt, plus it is easier to move your configuration if it is in a dedicated directory. Now doing the move in the install file is against arch' policy (install should not, in most cases, manipulate your files), so at best I can add a message displayed upon upgrade, and I will. As for the naming, I chose to add hyphens to pkgname for a purely cosmetic reason, I prefer to keep upstream's naming for the actual files. Also, /var/lib/plex should remain as it is, because it's the plex user's home. You could use the same plex user and its home to build an HTPC running Plex Home Theater standalone for example (better than giving it root rights). I didn't change the temp directory, it is still set to /tmp in the conf file (or did I miss something?). As for tmpfs, first thing I usually do is "systemctl mask tmp.mount", because you can easily run out of space when you have limited ram. I'm not sure how Plex does its transcoding since I've never used it before, but if it does keep the whole file in /tmp, as you said you might run into issues with larger movies, disabling tmpfs would be a good idea. Regarding why I picked rpms over debs, there are several reasons: - libarchive, hence bsdtar, has had support for extracting rpms for more than a year now, you no longer need rpmextract. - Fedora is a lot closer to Arch than Ubuntu is, being systemd-based, you can usually just copy over their unit files and configuration (not in this case though). -Finally, rpms don't have sub-archives, you don't need an extra step to unpack data.tar.gz. Thanks for mentioning the thread, I wasn't sure what the best place to contact them about this was.

joshka commented on 2014-10-15 09:18 (UTC)

Hi again, Another quick question, what's the difference between the deb package and the rpm? Or was this just about consistency with pht?

joshka commented on 2014-10-15 09:13 (UTC)

Hi Alucryd, I like that you've gone to github for this. Should make fixing things quicker. I wonder if it might be a good idea to do the app support folder move automatically during the upgrade, alternatively detect an existing install and use the installed folder so as not to break. What are your thoughts on this? I'm sure there's a good reason for the move (i.e. /var is the 'right' place for this sort of thing). Can you expand on the reasoning a bit? This might help work out whether it's better to move or leave be. Would it make sense to prompt for what to do here? Regarding legal aspects. I got in touch with legal@plex about another issue a few days ago. (plugins don't have any explicit licensing). I just mentioned your thread in an email to the plex legal council. Lastly, do you have any particular thoughts on whether all of the parts of the package should be named plex-media-server vs plexmediaserver (folders etc). Shouldn't the application support folder be /var/lib/plex-media-server? I wonder also if you could explain the change from /tmp to /var/tmp. I haven't played much with transcoding, but I wonder whether this would hit the half RAM size max limit on tmpfs for larger movies. (

alucryd commented on 2014-10-15 07:58 (UTC)

For those migrating installations, the Application Support directory is now /var/lib/plex and is owned by plex:plex, pms will write everything it needs in there. Please stop pms and move your existing Application Support directory in there before updating.

alucryd commented on 2014-10-14 22:10 (UTC)

Thanks for the quick answers guys. I'll upload plex-media-server and merge this one into it. hjmuller: Regarding Plex for ARM, Arch Linux ARM is already providing an armv5 build their repos afaik. There's also RasPlex if you wish

tmoore commented on 2014-10-14 17:01 (UTC)

Correct me if I'm wrong, but I believe we get the binaries from Plex to build this pkg, and they are all x86.. And plex media server is proprietary, so unless Plex builds it for ARM (or releases source code) you probably won't see it. But honestly, since you are seeing plex being installed on TV's and such, seems like a request over in their forums to support Plex on Raspberry Pi wouldn't fall on deaf ears. It's a win/win for everyone.

hjmuller commented on 2014-10-14 16:41 (UTC)

Does this mean we'll have any ARM builds for plex? I'v been wanting to run plex on my arch/raspberry pi set up without doing a full Rasplex install.

Butcho commented on 2014-10-14 15:34 (UTC)

Sounds good to me.

tmoore commented on 2014-10-14 15:29 (UTC)

+1 for my vote. Always better to have it in [community] and supported by you fine fellows :)

alucryd commented on 2014-10-14 14:45 (UTC)

Hey, I'm the maintainer of plex-home-theater in [community], now that I'll be switching to an arch server, I've been working on bringing plex-media-server up to speed. I'm waiting for an answer as to whether it is possible to redistribute binary packages from Plex (, in which case I would include it in [community] or in my own repo. In the meantime I'd like to maintain this AUR package, and rename it to plex-media-server. I've corrected and improved the current scripts, you can find my changes here:

Butcho commented on 2014-10-11 15:12 (UTC)

Updated for new download URL

pconstable commented on 2014-10-11 04:43 (UTC)

so, for some reason, the 64bt .deb is not available. trying to download it directly just redirects to the download page.

fidostrike commented on 2014-10-05 18:55 (UTC)

hiyas, i fix plexmediaserver apply chown -R root:root /opt/plexmediaserver sudo patchelf --set-rpath /opt/plexmediaserver:/usr/lib Plex\ Media\ Server sudo patchelf --set-rpath /opt/plexmediaserver:/usr/lib Plex\ DLNA\ Server and change /etc/conf.d/plexmediaserver PLEX_MEDIA_SERVER_USER=plex to PLEX_MEDIA_SERVER_USER=root and systemctl start plexmediaserver Bye

tmoore commented on 2014-09-24 01:06 (UTC)

FYI - I'm back to using this again if you need me to maintain again.

skate_forever commented on 2014-08-24 12:03 (UTC)

I had to change the start_pms to get the correct running of plexmediaserver. Why I had to change that?? Because I changed some variables on /etc/conf.d/plexmediaserver or set symbolic link on Library to another disk. Please consider to use this patch. --- start_pms 2014-08-24 08:56:40.031310362 -0300 +++ /opt/plexmediaserver/start_pms 2014-08-24 08:45:51.081324843 -0300 @@ -10,32 +10,28 @@ test -f /etc/conf.d/plexmediaserver && . /etc/conf.d/plexmediaserver -#if [ -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" ] -#then -# chown -R ${PLEX_MEDIA_SERVER_USER} "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" -# if [ ! $? -eq 0 ] -# then -# echo "WARNING COULDN'T CHOWN $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR files to ${PLEX_MEDIA_SERVER_USER}, MAKE SURE I HAVE PERMISSON TO DO THAT!" -# exit 1 -# fi -#fi - - if [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" ] then mkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" - chown -R ${PLEX_MEDIA_SERVER_USER} "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" + chown -RH ${PLEX_MEDIA_SERVER_USER}: "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" if [ ! $? -eq 0 ] then echo "WARNING COULDN'T CREATE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR, MAKE SURE I HAVE PERMISSON TO DO THAT!" exit 1 fi +else + chown -RH ${PLEX_MEDIA_SERVER_USER}: "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" + if [ ! $? -eq 0 ] + then + echo "WARNING COULDN'T CHOWN $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR files to ${PLEX_MEDIA_SERVER_USER}, MAKE SURE I HAVE PERMISSON TO DO THAT!" + exit 1 + fi fi if [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Linux/i386/Frameworks/" ] then - mkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Linux/i386/Frameworks/" - chown -R ${PLEX_MEDIA_SERVER_USER} "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Linux/i386/Frameworks/" + cp -a "${PLEX_MEDIA_SERVER_HOME}/Resources/Plug-ins/Framework.bundle/" "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}/Plex Media Server/Plug-ins" + chown -RH ${PLEX_MEDIA_SERVER_USER}: "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Plug-ins/Framework.bundle/" if [ ! $? -eq 0 ] then echo "WARNING COULDN'T CREATE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Linux/i386/Frameworks, MAKE SURE I HAVE PERMISSON TO DO THAT!" @@ -46,7 +42,7 @@ if [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Logs" ] then mkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Logs" - chown -R ${PLEX_MEDIA_SERVER_USER} "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Logs" + chown -RH ${PLEX_MEDIA_SERVER_USER}: "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Logs" if [ ! $? -eq 0 ] then echo "WARNING COULDN'T CREATE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Logs, MAKE SURE I HAVE PERMISSON TO DO THAT!" @@ -54,7 +50,6 @@ fi fi - export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}" export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"

JustinZ commented on 2014-08-24 05:32 (UTC)

@hexbit - sudo usermod -s /bin/bash plex This seems to have fixed my nologin issue

hexbit commented on 2014-08-05 22:02 (UTC)

plex user had this passwd entry after install today "plex:x:421:421:Plex user:/var/lib/plex:/sbin/nologin" Should have been changed by post_install() not sure where it failed.

tad commented on 2014-08-05 04:39 (UTC)

I was able to install this previously without pulling in all of xorg, mesa etc. What dependencies have changed?

Butcho commented on 2014-08-04 13:26 (UTC)

updated to

Butcho commented on 2014-07-31 21:57 (UTC)

updated to

commented on 2014-07-19 19:54 (UTC)

I was having problems with this package and linux-3.15.5-2. When transcoding a video, I would get errors like this in my journal. I downgraded to linux-3.14.6-1, and the issue appears to have stopped. Could be related to the issue in this bug report.

tehgeek commented on 2014-06-26 08:31 (UTC)

@hjmuller -- Looks like it is already on the Pi -

hjmuller commented on 2014-06-26 03:04 (UTC)

Thanks, but I'd rather stick with Arch. I'd love for this to be available on my RPi in the future. Would it be worth asking the devs if they are planning to compile for different architectures? I'm not sure how open they are to this since they are closed source.

Butcho commented on 2014-06-26 02:37 (UTC)

These is closed source so this is compiled only to i686 and x86_64. Suggest you try RaspBMC.

hjmuller commented on 2014-06-26 02:32 (UTC)

Raspberry Pi. In PKGBUILD I modified arch to arch=('armv6h').

Butcho commented on 2014-06-26 02:31 (UTC)

hjmuller are you running i686 or x86_64?

hjmuller commented on 2014-06-26 02:19 (UTC)

I'm getting an error "==> ERROR: Failure while downloading plexmediaserver_0." Does the Sources link need to be updated or is this a temporary problem with the link?

HLFH commented on 2014-06-22 09:08 (UTC)

Thanks Butcho. Issue solved. I just have this issue : "sendto: Network is unreachable", but it works. [root@intelnuc ~]# systemctl status plexmediaserver ● plexmediaserver.service - Plex Media Server for Linux Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled) Active: active (running) since Sun 2014-06-22 11:03:30 CEST; 2min 17s ago Process: 312 ExecStart=/opt/plexmediaserver/start_pms (code=exited, status=0/SUCCESS) Main PID: 330 (Plex Media Serv) CGroup: /system.slice/plexmediaserver.service ├─330 /opt/plexmediaserver/Plex Media Server ├─370 Plex Plug-in [com.plexapp.system] /opt/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/ ... └─764 /opt/plexmediaserver/Plex DLNA Server Jun 22 11:03:30 intelnuc su[324]: (to plex) root on none Jun 22 11:03:30 intelnuc su[324]: pam_unix(su:session): session opened for user plex by (uid=0) Jun 22 11:03:30 intelnuc su[324]: pam_unix(su:session): session closed for user plex Jun 22 11:03:30 intelnuc systemd[1]: Started Plex Media Server for Linux. Jun 22 11:03:35 intelnuc start_pms[312]: sendto: Network is unreachable

ejstacey commented on 2014-06-22 03:42 (UTC)

If you're going to stop plexmediaserver for the upgrade, can you please start it again afterwards?

Butcho commented on 2014-06-21 15:22 (UTC)

package updated I'm trying to replicate and fix the issues addressed in the comments. I'm unable to replicate the library issue (yet).

HLFH commented on 2014-06-21 10:00 (UTC)

Hi mjob. Thanks for your ownCloud work !! And yes, everybody notices those crashes :( And apparently, there are not permanent fixes for the moment ! With errors like [root@intelnuc ~]# systemctl status plexmediaserver ● plexmediaserver.service - Plex Media Server for Linux Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled) Active: failed (Result: exit-code) since Sat 2014-06-21 11:52:47 CEST; 2min 50s ago Process: 306 ExecStart=/opt/plexmediaserver/start_pms (code=exited, status=0/SUCCESS) Main PID: 335 (code=exited, status=255) Jun 21 11:52:47 intelnuc su[315]: (to plex) root on none Jun 21 11:52:47 intelnuc su[315]: pam_unix(su:session): session opened for user plex by (uid=0) Jun 21 11:52:47 intelnuc systemd[1]: Started Plex Media Server for Linux. Jun 21 11:52:47 intelnuc start_pms[306]: Error: Unable to set up server: basic_string::_S_create Jun 21 11:52:47 intelnuc systemd[1]: plexmediaserver.service: main process exited, code=exited, status=255/n/a Jun 21 11:52:47 intelnuc systemd[1]: Unit plexmediaserver.service entered failed state.

commented on 2014-06-12 08:42 (UTC)

My plexmediaserver crashes regularly: Can you add a "Restart=on-failure" to the systemd service file? That would e nice. Does anybody also notice those crashes:

slaecker commented on 2014-06-10 20:46 (UTC)

Still the same lib issue on my machine: $ su plex $ /opt/plexmediaserver/start_pms /opt/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory Is anyone able to use this package without modifications like patchelf?

cmtonkinson commented on 2014-06-06 12:38 (UTC)

Pacman thinks plexmediaserver is missing a start script (which is causing pacman -Qk to exit with 1). $ sudo pacman -Q --check plexmediaserver warning: plexmediaserver: /opt/plexmediaserver/ (No such file or directory) plexmediaserver: 3783 total files, 1 missing file This was my fix... $ cd /opt/plexmediaserver $ ln -s start_pms $ sudo pacman -Q --check plexmediaserver plexmediaserver: 3783 total files, 0 missing files

Wolvee commented on 2014-06-05 15:51 (UTC)

After the update, (6/5/14) you'll need to restart your server. There seems to be a problem with the update where about half the time, the audio plays with no sound. (Tested on Roku2&3/SonyNSZGS8/)

Butcho commented on 2014-06-05 12:44 (UTC)

plex package updated.

mmack commented on 2014-05-28 17:06 (UTC)

I figured out how to isolate the libs to the /opt/plexmediaserver directory. I found online that the "patchelf" tool can set the dynamic library path. So I tried the following commands: sudo patchelf --set-rpath /opt/plexmediaserver:/usr/lib Plex\ Media\ Server sudo patchelf --set-rpath /opt/plexmediaserver:/usr/lib Plex\ DLNA\ Server And it works! No need to copy my libs to the /usr/lib directory either :)

slaecker commented on 2014-05-25 21:07 (UTC)

I get the same error as snoopo71 when running /opt/plexmediaserver/start_pms as user "plex". After some reading on the plex forums I now know that plex server ships with some heavily modified libs so I don't think it's a good idea to copy all the lib* files to /usr/lib. I tried creating /usr/lib/plexmediaserver and copy the files in there as I read that plexmediaserver usually stores the libs in there but I get the same error. Can anyone help on that topic? A sane solution without confusing the whole system would be great.

snoopo71 commented on 2014-05-19 15:50 (UTC)

Hi everyone I've met a problem after install plexmediaserver when launching /opt/plexmediaserver/start-pms. Plex thrown me "error while loading shared libraries: cannot open shared object file" and some other files. After googling I haven't found a solution. Solution: sudo copy all the lib* files from /opt/plexmediaserver/ to /usr/lib NEVER OVERWRITE anything (I've already broken a manjaro install by overwriting!!!!) I don't know if there is a better solution but that's what I found. Thx for comment.

Butcho commented on 2014-04-30 01:50 (UTC) is the current version if you don't have a plexpass account. Thanks

bolorino commented on 2014-04-29 21:34 (UTC)

Thanks for this package. There is a new version of plexmediaserver (

Jhackler commented on 2014-04-21 20:31 (UTC)

I had an issue with the dlna portion not showing up however I just restarted the service and disabled the the systemd service and renabled it and seems to work fine. I can't reproduce sirkingchase's issue though :/

sirkingchase commented on 2014-04-18 03:41 (UTC)

I cant get this to start from the systemd script. Iev tried editing the redhat script, the one provided, creating my own, a backup of my old one. Nothing. It just fails on the ExecStart command. I think it is something wrong with the environmental variables. They probably updated it and the changes were not relied to this package. As everything from my backedup copy is the same ( i.e. /etc/conf.d/ & systemd script are identical to the one provided) . The only thing different is the actual program files, i.e. everything in /opt/plexmediaserver Iev spent the last 4+ hours trying to get this to work. I could get to it start by executing - sudo /bin/sh -c "/opt/plexmediaserver/Plex\ Media\ Server" However it is running as root with no environment variables, I was able to run it as root after I added all libs in /opt/plexmediaserver/ to my /usr/lib ( only because I have newer libs and linking the new libs to as the old names didnt work ). Thank god I back up my shit... I was able to restore my working plex from a backup and now have it running. Wish I could get this to work.. Id like to play the new features and my auto library quit working ( when this stops working I update and it works again ). I think I am running something like 9.8.3

adambot commented on 2014-04-10 17:47 (UTC)

can you plese update the plexmediaserver.service to be similar to the one found here: I ran into the same issue described here: and lines 18-21 were added to the start script at github

marmotta commented on 2014-04-10 16:19 (UTC)

With arch plexmediaserver have a bug, task Plex DLNA server in idle one cpu as at 100%

Butcho commented on 2014-03-15 13:47 (UTC)

plex package updated.

BubbatheVTOG commented on 2014-03-14 22:34 (UTC)

Plexmediaserver was released to everyone! I have installed it just fine on my 64-bit rig. Here is the top of the PKGBUILD file for change. 8 pkgname=plexmediaserver 9 pkgver= 10 pkgrel=1 11 _subver=f80a8d6 12 pkgdesc="Plex Media Server for Linux" 13 url='' 14 arch=('i686' 'x86_64') 15 license=('closed') 16 depends=('rsync' 'avahi') 17 conflicts=('plexmediaserver-plexpass') 18 backup=('etc/conf.d/plexmediaserver') 19 install='plexmediaserver.install' 20 21 if [ "$CARCH" = "i686" ]; then 22 _arch='i386' 23 md5sums=('d4e9d2c494023de1f0994f4934d0c4fd') 24 elif [ "$CARCH" = "x86_64" ]; then 25 _arch='amd64' 26 md5sums=('549121339567b55b20cb6fda1968a518') 27 fi md5sums have also been changed to reflect the 32-bit package, though I don't have the hardware to test it. USE AT OWN RISK!

Butcho commented on 2014-02-28 21:50 (UTC)

package updated.

Sonyrockzz commented on 2014-02-28 21:03 (UTC)

PKGBUILD for Version with correct MD5SUMS # Maintainer: Rob Sletten <rsletten [at] gmail [dot] com> pkgname=plexmediaserver pkgver= pkgrel=3 _subver=da1d892 pkgdesc="Plex Media Server for Linux" url='' arch=('i686' 'x86_64') license=('closed') depends=('rsync' 'avahi') conflicts=('plexmediaserver-plexpass') backup=('etc/conf.d/plexmediaserver') install='plexmediaserver.install' if [ "$CARCH" = "i686" ]; then _arch='i386' md5sums=('e8acf73b1ed6b99729c2e3c581b64b09') elif [ "$CARCH" = "x86_64" ]; then _arch='amd64' md5sums=('47386fb497f36e45b52fe35958dbdb2d') fi source=("${pkgver}-${_subver}/${pkgname}_${pkgver}-${_subver}_${_arch}.deb" "${pkgname}.conf.d" "${pkgname}.service" "start_pms") md5sums+=('32cdd9f9de446f6646616a0077151726' 'd850fe41dd35aba09a375ac8d81175e0' '69efb2441c7971a9e546d76b51cd12cc') build() { ar -xv plexmediaserver_${pkgver}-${_subver}_${_arch}.deb || return 1 tar -zxf data.tar.gz || return 1 } package() { mkdir -p "${pkgdir}"/opt/plexmediaserver mkdir -p "${pkgdir}"/usr/lib/systemd/system cp -r usr/lib/plexmediaserver/* "${pkgdir}"/opt/plexmediaserver/ install -Dm755 ${srcdir}/start_pms "${pkgdir}"/opt/plexmediaserver/ install -Dm644 ${srcdir}/plexmediaserver.conf.d "${pkgdir}"/etc/conf.d/plexmediaserver install -Dm644 ${srcdir}/plexmediaserver.service "${pkgdir}"/usr/lib/systemd/system/plexmediaserver.service }

arch-nemesis commented on 2014-02-18 23:26 (UTC)

# netstat -ntlp | grep Plex tcp 0 0* LISTEN 7888/Plex DLNA Serv tcp 0 0* LISTEN 7837/Plex Media Ser tcp 0 0* LISTEN 7888/Plex DLNA Serv tcp 0 0* LISTEN 30085/Plex Plug-in tcp 0 0* LISTEN 7837/Plex Media Ser Although, for viewers OUTSIDE of the local network, you will need to PAT it. This may be configured by UPNP. Internal to your network, just permit whatever's listening. Most importantly, I think, is 32400.

Jhackler commented on 2014-02-12 16:07 (UTC)

If its just on the local network you could just allow all incoming connection for only machines on your local network (not as secure but better than just flat out opening all incoming trafic), or alternatively use wire-shark to find out all ports plex tries to communicate on and set rules to allow each of those ports which might take a bit more time and effort. once you find out with wire-shark what ports need to be open you can even go further by only allowing specific ips on you network to access it. Really depends on how strict you want to be. If you make sure every system on your wifi doesn't blindly allow incoming connection the first option should be fine for most people.

fettouhi commented on 2014-02-12 15:31 (UTC)

Anybody know how to set the firewall rules so that one can connect to the plex meadia server. I'm using ufw and I've tried to open the ports as suggested in the plex wiki but the only rule that works is allow all incoming connections.

Jhackler commented on 2014-02-06 20:26 (UTC)

Sorry for being lazy and asking just been really busy. Think you for encouraging me to figure it out by not responding though :D. I got it working the drive didn't have a uuid as it was created with a lable back when I was new to Linux just had to add a uuid, used gparted and added to fstab the permissions where already correct from when I used it on ubuntu.

Jhackler commented on 2014-02-05 19:22 (UTC)

Got it to work there was a left over directory messing it up from a plexhometheater install. However my ext4 usb drive mounts at /run/media/use/drivename and I can't get plex to see it how do I fix this?

ejstacey commented on 2014-01-23 14:31 (UTC)

Thanks Butcho!

WonderWoofy commented on 2014-01-13 17:24 (UTC)

Nice, thanks for the quick response Butcho.

Butcho commented on 2014-01-13 12:07 (UTC)

I inherited this package last month so I'm planning a major rewrite of the code to bring it up to acceptable standards. Thanks.

WonderWoofy commented on 2014-01-13 04:38 (UTC)

@ejstacey, yes this can be done with the use of the pre_upgrade and post_upgrade functions. But I really think that this package needs some work... @Butcho, is there a reason why you choose to have so many untracked files and directories that are created by the install script? This seems rather non-ideal to even have these exist. But then uninstallation doesn't actually remove these untracked files either, which seems like even worse practice. Additionally, the plex user is added during the post_install, which makes sense, but it too is just left there after uninstallation. For everything you do in the post_install, you need to undo in the post_remove. But simply being able to undo these things does not mean that you should be making directories and needlessly copying files either.

ejstacey commented on 2014-01-13 04:26 (UTC)

Hi. I understand not starting plex automatically no matter what, but if you stop it during the upgrade, are you able to start it again after the upgrade? That all seems to be in the install file, so I think it can be done... Alternatively, is there a reason to stop plex first? Maybe just leave it up to the user to restart it if automatically (re)starting the process in the install file (in any situation) goes against AUR/Arch guidelines. Personally I like the stop/upgrade/start scenario. Thanks!

Ashex commented on 2014-01-08 11:50 (UTC)

I encountered an issue when reinstalling with no Library, Framework.bundle is not copied over for some reason. This leads to the plug-ins not being loaded, until it's fixed by Plex (or worked around via start_pms) you'll need to copy it over manually.

jkennedy commented on 2014-01-02 05:47 (UTC)

You shouldn't automatically start PLEX in the .install file.

Butcho commented on 2014-01-01 23:33 (UTC)

Appreciate the suggestion. I've made the requested changes. Happy new years!

kranu commented on 2014-01-01 18:44 (UTC)

Could you change: install -Dm755 ../start_pms "${pkgdir}"/opt/plexmediaserver/ install -Dm644 ../plexmediaserver.conf.d "${pkgdir}"/etc/conf.d/plexmediaserver install -Dm644 ../plexmediaserver.service "${pkgdir}"/usr/lib/systemd/system/plexmediaserver.service to: install -Dm755 ${srcdir}/start_pms "${pkgdir}"/opt/plexmediaserver/ install -Dm644 ${srcdir}/plexmediaserver.conf.d "${pkgdir}"/etc/conf.d/plexmediaserver install -Dm644 ${srcdir}/plexmediaserver.service "${pkgdir}"/usr/lib/systemd/system/plexmediaserver.service That way it works if you build in a different directory.

Butcho commented on 2013-12-25 03:18 (UTC)

Updated for your pleasure. Merry Christmas!

Butcho commented on 2013-12-14 15:18 (UTC)

Appreciate it emphire. I'll take a peek at your configs and incorporate your suggested changes and give you credit. This package has changed paths a bit (used to be in /var/lib). I opted not to change it for ease of upgrading, my lateness in updating, and because I'm a new maintainer and this is my first update to the package. Thanks

emphire commented on 2013-12-13 01:35 (UTC)

Here is an updated package: WARNING: I didn't bother setting the md5sum for i686. You'll have to do that yourself if it's your platform I changed a few things: - split writable files into /var/lib/plexmediaserver and readonly files into /usr/lib/plexmediaserver - left /usr/lib/plexmediaserver owned by root - cleaned-up some of the directory creation and permission setting - removed the calls to reload daemon settings and start/restart pms (it's bad practice to do it in a package) - added a note to do it manually Be aware that you will have to move your media library to the /var/lib/plexmediaserver path or change the path in /etc/conf.d/ if you are upgrading. @Butcho: I'm sorry to hear that. Hope she does well. Please feel free to use this package when you're back.

Butcho commented on 2013-12-12 22:07 (UTC)

Sorry folks on the delay. Wife in the hospital for surgery. Should have it updated by weekend.

emphire commented on 2013-12-12 20:06 (UTC)

@enderblue: You can contact Butcho ( He is the package maintainer.

enderblue commented on 2013-12-11 16:45 (UTC)

I have an updated PKGBUILD file that references the latest Plex Media Server. Is there a way I can have access to update this package? If not, who should I submit it to to be updated?

tmoore commented on 2013-12-01 05:15 (UTC)

Good luck Butcho. I don't use plex anymore so my interest in it is starting to wane. Until they actually get better decoding streaming to my Nexus 7, I'll stick with Subsonic/Serviio

robot5x commented on 2013-11-29 21:51 (UTC)

hi guys - my error was nothing to do with plex sorry. locale conflict - all good now.

arch-nemesis commented on 2013-11-27 01:23 (UTC)

What happened to tmoore? I'll pick up this package tomorrow if it's still orphan'd

metak commented on 2013-11-26 15:55 (UTC)

Here's modified version of this package that installs plexmediaserver in /usr/lib like in deb file. I also added plexmediamanager icon...

tmoore commented on 2013-11-25 04:08 (UTC)

Run the commands manually inside of the start_pms script.. i.e. you probably need to set up your LD_LIBRARY_PATH before you fire off Plex\ Media \Server by hand. Doing it step by step should help you troubleshoot the exact step that's giving the startup issue.

robot5x commented on 2013-11-21 05:28 (UTC)

hi - can't start this package. New user, installed fine. I've tried all the stopping/starting, reinstalling recommended further below. After starting the service, systemctl tells me: [root@osiris plexmediaserver]# systemctl status plexmediaserver plexmediaserver.service - Plex Media Server for Linux Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; disabled) Active: failed (Result: core-dump) since Thu 2013-11-21 18:24:40 NZDT; 5min ago Process: 6970 ExecStart=/opt/plexmediaserver/start_pms (code=exited, status=0/SUCCESS) Main PID: 6973 (code=dumped, signal=ABRT) Nov 21 18:24:40 osiris su[6971]: (to plex) root on none Nov 21 18:24:40 osiris su[6971]: pam_unix(su:session): session opened for user plex by (uid=0) Nov 21 18:24:40 osiris systemd[1]: Started Plex Media Server for Linux. Nov 21 18:24:40 osiris systemd[1]: plexmediaserver.service: main process exited, code=dumped, status=6/ABRT Nov 21 18:24:40 osiris systemd[1]: Unit plexmediaserver.service entered failed state. some have suggested using the start_pms directly, which gives me: [root@osiris plexmediaserver]# systemctl stop plexmediaserver [root@osiris plexmediaserver]# ./start_pms [root@osiris plexmediaserver]# terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid I also tried just running the plex media server file, which gives me: [root@osiris plexmediaserver]# ./Plex\ Media\ Server ./Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory [root@osiris plexmediaserver]# pacman -Q |grep boost boost-libs 1.54.0-4 would love some help please.

tmoore commented on 2013-10-31 02:49 (UTC)

Added 32-bit back

tmoore commented on 2013-10-31 02:44 (UTC)

yea I have the original pkgbuild, I can roll it back.. just started enjoying using updpkgsums and it didn't always put things where they should be.

metak commented on 2013-10-30 23:15 (UTC)

Something like this maybe? Worst case scenario someone using 32-bit could post md5sum here in comment and you can just set it to skip? if [ "${CARCH}" = 'x86_64' ]; then ARCH='amd64' md5sums=('blahblah') elif [ "${CARCH}" = 'i686' ]; then ARCH='i386' md5sums=('blahblah') fi source=("${name}-${pkgver}_${ARCH}.deb")

tmoore commented on 2013-10-30 20:48 (UTC)

Doh.. I didn't realize anyone was using the 32-bit, and it required extra editing everytime I rebuilt the pkg for the sums. I can add it back in if you require.

FalsePerspective commented on 2013-10-30 17:17 (UTC)

Why is it 64-bit only?

tmoore commented on 2013-10-30 00:03 (UTC)

@famine: You have to leave that su -c in the start_pms script because it is called by the systemd service and needs a lot of ENV vars set before running as plex user.

tmoore commented on 2013-10-29 23:51 (UTC)

Sheesh.. They just released the new version.. Give me a second to update the pkg :)

Butcho commented on 2013-10-29 21:34 (UTC)

Notice it's out of date. Interested in still maintaining this tmoore? I can volunteer.

tmoore commented on 2013-10-27 03:29 (UTC)

Thanks for your input. I inherited this code when I took over maintenance, and haven't done too much other than to make sure it keeps running. Are you recommending this? Remove: cd ${PLEX_MEDIA_SERVER_HOME}; su -c "${PLEX_MEDIA_SERVER_HOME}/Plex\ Media\ Server &" ${PLEX_MEDIA_SERVER_USER} Replace with: systemctl start plexmediaserver ? (Or technically I probably should just remove it completely and not assume users want plex to start immediately on install.

commented on 2013-10-26 23:24 (UTC)

The systemd setup is not done very well. Instead of requiring to be run as root and trying to "su" to plex, it should configure the user as plex in the systemd file itself. I recommend updating the systemd service file, and removing the "su" command from start_pms.

ProfessorKaos64 commented on 2013-09-26 23:33 (UTC)

With this latest release, my channels no longer work. I have read this on a couple sites. 9.8.4

commented on 2013-09-13 12:05 (UTC)

Please vote plexhometheater

tmoore commented on 2013-09-10 13:36 (UTC)

@CyberConan: Agreed.. I have commented out the chown stanza.

CyberConan commented on 2013-09-09 13:09 (UTC)

@tmoore I have one plugin file with some modified code for take IMDB score in films instead themoviedb. I protect this file with root permissions. Anyway, my library in plex have 200k files and 60k subfolders (11GB)... make chown -R is a very very large process.

tmoore commented on 2013-09-09 03:24 (UTC)

Commented out the code.. Bad idea anyways

tmoore commented on 2013-09-09 03:06 (UTC)

I just tested the upgrade again.. the service started up.. mind you it took a little bit.. Might need to rethink that chown -R for large libraries.

tmoore commented on 2013-09-09 03:01 (UTC)

Why do you have files with root permission? The chown -R plex should work. You are installing the package as root right?

CyberConan commented on 2013-09-08 20:56 (UTC)

Same problem than drdrewdown because I have some files with root permissions and the plex user can't touch them. Temporaly resolve removing recursive option (-R) in start_pms file.

drdrewdown commented on 2013-09-08 18:25 (UTC)

now plexmediaserver won't start at all =\

tmoore commented on 2013-09-08 01:21 (UTC)

I'll add the following code to the start_pms.. Hopefully that gets you what you want. if [ -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" ] then chown -R ${PLEX_MEDIA_SERVER_USER} "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" if [ ! $? -eq 0 ] then echo "WARNING COULDN'T CHOWN $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR files to ${PLEX_MEDIA_SERVER_USER}, MAKE SURE I HAVE PERMISSON TO DO THAT!" exit 1 fi fi

tmoore commented on 2013-09-08 01:19 (UTC)

Well, changing the PLEX_MEDIA_SERVER_USER after the initial install isn't something I've thought of supporting.. If you know enough to change the user *after* an initial install/upgrade, I would assume you would know to change ownership's of all the files it owns as well. I wouldn't want the install or update script to be invasive to the system and start chown'ing files that *aren't* owned by plex_media_server_user, as that could cause a huge amount of damage if the error checking isn't correct.

commented on 2013-09-07 23:12 (UTC)

There is a bug with the start_pms script. It has a check for if PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR exists. However, if you change the PLEX_MEDIA_SERVER_USER, and it is different than the owner of PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR, then plex will fail to start. Please add a check that sees if any files or subdirectories of PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR are not owned by PLEX_MEDIA_SERVER_USER, and then does a recursive chown.

tmoore commented on 2013-09-06 00:00 (UTC)

Thanks for catching that. Updated source.

thevdude commented on 2013-09-05 18:08 (UTC)

Small issue with the plexmediaserver.service file. /usr/lib/systemd/system/plexmediaserver.service has this: EnvironmentFile=-/etc/conf.d/plexmediaserver which should be: EnvironmentFile=/etc/conf.d/plexmediaserver

tmoore commented on 2013-08-30 16:30 (UTC)

Correct, just uninstall this package and install the plexmediaserver-plexpass one. (Although I'm not positive what that gives you, other than it may be a newer version that is not open to the public) If this version matches that version, you can just stick with this one :0

commented on 2013-08-30 14:54 (UTC)

The scenario is taht i have tested plex and I would like to upgrade to Plexpass , then it would conflict with my existing plex setup. They conflicted for me in that scenario.

tmoore commented on 2013-08-28 19:48 (UTC)

Updated src with conflicts

tmoore commented on 2013-08-28 19:17 (UTC)

I can roll a new build and add that as a conflict.. no problem. I see what you are saying.

Arthur commented on 2013-08-28 18:59 (UTC)

a conflict doesn't means that the packages are the same, it simply means that they provide the same files. Here both plexmediaserver and plexmediaserver-plexpass provides a /etc/conf.d/plexmediaserver file, a systemd service file called plexmediaserver, … => they conflict I wouldn't be shocked if the plexmediaserver-plexpass was the only one to define the conflict (that would be enough, no need to have it on this package as well) ; but it wouldn't hurt to have it everywhere.

tmoore commented on 2013-08-28 18:55 (UTC)

plexmediaserver-plexpass is not the same.. it's for people who have paid for the product. This is different

tmoore commented on 2013-08-28 18:54 (UTC)

plexmediaserver-plexpass is not the same.. it's for people who have paid for the product. This is different

commented on 2013-08-28 10:21 (UTC)

Conflicts with plexmediaserver-plexpass

tmoore commented on 2013-08-24 01:43 (UTC)

Ok.. I threw in a couple of systemctl start plexmediaserver into the post_install post_upgrade

tmoore commented on 2013-08-24 01:38 (UTC)

Hmm.. it's supposed to.. it has this in the post_upgrade stanza systemctl --system daemon-reload

jcasper commented on 2013-08-23 17:47 (UTC)

Upgrading stops the server but doesn't restart it. Maybe a "systemctl start plexmediaserver" in post_upgrade, or a note saying that it needs to be restarted.

tmoore commented on 2013-08-23 15:31 (UTC)

Same here.. reports

dmast3r1 commented on 2013-08-23 09:16 (UTC)

Just double checked this, myplex reports, and web management says reboot of system and refresh your myplex settings in web management.

ProfessorKaos64 commented on 2013-08-23 03:22 (UTC)

Pacman -Qs reports: local/plexmediaserver Plex Media Server for Linux Plex Web Reports server as: Version Package build installed with -csi makepkg options. Removed previous server version with pacman -Rs beforehand. Stopped services, instllaed.

tmoore commented on 2013-08-22 19:57 (UTC)

Thanks! Package updated.

dmast3r1 commented on 2013-08-22 06:14 (UTC)

tmoore, I changed the following in PKGBUILD pkgver= pkgrel=1 _subver=ffe2a5d then changed MD5s to x86=33b3886fe93554172f85a58181dfdb1e X64=13b9ec1f6da7e522bdc6ef4c51dd38d2 after reinstall tested service is fine and version is up to hope that helps.

tmoore commented on 2013-08-22 04:24 (UTC)

I'll try and update it this week.

ionstorm commented on 2013-08-21 19:27 (UTC)

when will this be updated to the latest version? anyone got instructions on how to update this to work with future builds?

mariusn commented on 2013-08-16 08:22 (UTC)

Latest version is (

tmoore commented on 2013-07-31 00:48 (UTC)

@arokh You need to be a little more specific.. Changing the user plex runs as isn't as simple as just editing one file. If you don't know how to traverse a startup script and understand shell, you are better off just running it as the plex user.

Arthur commented on 2013-07-30 20:33 (UTC)

i'm running as another user and the service starts just fine. a library directory where your user can write is probably required though, can you at least paste some config/logs ?

commented on 2013-07-30 20:31 (UTC)

Running as different user than "plex" is broken, service won't start.

sirusdv commented on 2013-07-07 18:57 (UTC)

You are correct. My mistake for flagging as such.

dmast3r1 commented on 2013-07-07 06:15 (UTC)

You need a plexpass to run it...there is a plexmediaserver-plexpass in aur but its not up to date. The current listing on the plex site is There shouldn't be an out of date flag on this one.

sirusdv commented on 2013-07-07 05:48 (UTC)

Can we get an update to 0.9.8?

tmoore commented on 2013-06-28 00:58 (UTC)

@kastor: Hmm.. it seems to be breaking on this command install -Dm755 ../start_pms "${pkgdir}"/opt/plexmediaserver/ Make sure the directory you are running makepkg from has these files (they should be there after untarring the tarball plexmediaserver.conf.d plexmediaserver.install plexmediaserver.service start_pms PKGBUILD

kastor commented on 2013-06-27 22:17 (UTC)

Any idea? ==> Continue building plexmediaserver ? [Y/n] ==> ----------------------------------------- ==> ==> Building and installing package ==> Making package: plexmediaserver (Thu Jun 27 19:12:40 ART 2013) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found plexmediaserver_0. -> Found plexmediaserver.conf.d -> Found plexmediaserver.service -> Found start_pms ==> Validating source files with md5sums... plexmediaserver_0. ... Passed plexmediaserver.conf.d ... Passed plexmediaserver.service ... Passed start_pms ... Passed ==> Extracting sources... -> Extracting plexmediaserver_0. with bsdtar ==> Removing existing pkg/ directory... ==> Starting build()... x - debian-binary x - control.tar.gz x - data.tar.gz ==> Entering fakeroot environment... ==> Starting package()... install: cannot stat '../start_pms': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... ==> ERROR: Makepkg was unable to build plexmediaserver. ==> Restart building plexmediaserver ? [y/N]

tmoore commented on 2013-06-23 20:16 (UTC)

Make sure you are running the program with sudo systemctl start plexmediaserver There is an important LD_LIBRARY_PATH setting in /opt/plexmediaserver/start_pms that gets set/run. export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}"

dualcorex2 commented on 2013-06-23 14:00 (UTC)

I've realized what my problem is with adding Sections/Folders since upgrading. It appears that the Plex Media Scanner is not running. I tried to start it manually and received this message: "./Plex Media Scanner: error while loading shared libraries: cannot open shared object file: No such file or directory" I'm not sure how to file this since exists in /opt/plexmediaserver, and everything in directory is chown'd to plex:plex. Any help would be great. Thanks

tmoore commented on 2013-06-22 04:42 (UTC)

@ejstacey: Thanks for the input. You are right, I need to put some logic into the chown to make it faster on upgrades.

tmoore commented on 2013-06-22 04:40 (UTC)

Well, since it was an upgrade it should have read the values in your /etc/conf.d/plexmediaserver and used that to chown the files. If you didn't have the plex user/group before, how was this an upgrade?

flaccid commented on 2013-06-22 04:37 (UTC)

I had to manually add the plex user and group. I don't think the post_install() is actually succeeding in creating them (certainly not the plex user anyway).

flaccid commented on 2013-06-22 04:26 (UTC)

FYI I did an upgrade and recieved: Stopping Plexmediaserver before starting... (1/1) upgrading plexmediaserver [##########################################################################################] 100% chown: invalid user: ‘plex’

ejstacey commented on 2013-06-19 03:19 (UTC)

Upgrade seems to work fine for me, it's just taking a looooonnnnggggg time due to the chown (when I already had everything chown'd to plex). I'm currently at 5+ mins and counting ;) I guess my library is a good size... It may be worth seeing if /opt/plexmediaserver (or some file under that) is owned by plex and if not, do the chown. Otherwise, assume we already have plex owning everything and don't do it. Thanks!

tmoore commented on 2013-06-18 16:37 (UTC)

New version uploaded. I upgrade my installed version and didn't seem to have any issues. I did notice they changed the log directory location. It is now in /opt/plexmediaserver/Library/Application Support/Plex Media Server/Logs/

tmoore commented on 2013-06-18 14:35 (UTC)

Thanks.. I will work on an upgraded package.

prurigro commented on 2013-06-18 06:11 (UTC)

md5sums for latest version ( i686: 3c2922505d5468523d86e6c46584482b x86_64: f118f0f8d693b620767fc4f4ad554a1f

commented on 2013-06-12 19:52 (UTC)

@dualcorex2 It might be enough to change ownership of /opt/plexmediaserver for user plex, and copy recursively the /usr/local/plexmediaserver/* directories that left in the migration. I would not use plexmediaserver as root. I eventually added user plex to users group for be able to see certain directories of my $HOME.

dualcorex2 commented on 2013-06-12 14:45 (UTC)

@arch-nemesis Thanks for the information. However, /usr/local/plexmediaserver/Library doesn't seem to exist, and I've come to terms that the library is gone. But it still won't let me make a new one/add sections. I followed all your other instructions.

arch-nemesis commented on 2013-06-12 03:55 (UTC)

@dualcorex2 Everything previously stored in /usr/local is now in /opt. The upgrade doesn't move your library, however. You have do do that yourself. # cp -R /usr/local/plexmediaserver/Library /opt/plexmediaserver/ You will want to verify the that everything belongs to the plex user, especially if you copied the library as root. # chown -R plex:plex /opt/plexmediaserver Additionally, the home directory of the plex user should be changed to the new location in /etc/passwd, for example: plex:x:999:999:Plex Media Server:/opt/plexmediaserver/:/bin/bash You said you changed it to run as root. You should be able to change it back to run as plex by editing the variables in /etc/conf.d/plexmediaserver. Verify that it works, then you can safely remove the old directory # systemctl start plexmediaserver # systemctl status plexmediaserver (you might want to try it out, too) # rm -r /usr/local/plexmediaserver Did I miss anything?

dualcorex2 commented on 2013-06-12 01:05 (UTC)

So I may be a dummy, but I upgraded without reading the comments. After upgrade, I lost my libraries and I also have not been able to add a section to the new library. Any ideas why this might be? I changed it to run as root, and still no avail. Thanks.

tmoore commented on 2013-06-09 20:35 (UTC)

Yea.. if you have it working don't bother "upgrading".. I don't move people's library folders because that takes too much of a chance if something goes wrong. If you are a new person, then this should work OOTB, if you have an existing version, then you will have to move your Library folder to /opt/plexmediaserver, and may/may not have to chown /opt/plexmediaserver to the user you use.

commented on 2013-06-09 08:53 (UTC)

Maybe it sounds silly, but when I installed *-14 It does not copied my $PLEX_HOME/{Library,Application\ Data} ,$PLEX_HOME was in /usr, so I did it by hand. Also user plex didn't have access to /opt/plexmediaserver so I chown'ed to plex user recursively and it worked fine, also /opt was "listable" by 'plex' user. After this all ran OK, but I was having issues with the OOTB update.

tmoore commented on 2013-06-09 01:10 (UTC)

Ok.. DO NOT UPGRADE TO THIS IF YOU ALREADY HAVE IT WORKING I have added some checks in the installer to make sure it should work if you are upgrading.. but since nothing has changed in the binaries, there's no reason to upgrade to this if you are already running successfully. This just lays groundwork for the future if they ever upgrade the linux binaries

jcasper commented on 2013-06-08 23:25 (UTC)

Also, just a guess, but people may flag it out of date due to the PlexPass only releases. I think this package should obviously keep with the freely available version, although I could see those with PlexPass (not me for now, but I'm considering it) wanting to package that version up.

jcasper commented on 2013-06-08 23:18 (UTC)

I'd say the currently bare wiki page would be the best place: I don't think there's a way to link to it from this page, but you could put a "link" in the post_install message.

tmoore commented on 2013-06-07 19:19 (UTC)

Not sure why someone flagged this out of date. It's the current linux version ported from (

tmoore commented on 2013-06-07 19:18 (UTC)

PS - Does anyone know exactly where I could write installation instructions for this package? Seems silly to keep adding comments for instructions on installing via the AUR.. I guess I could package a README, but it seems nicer if the AUR pages could have at least a link to a wiki doc page or something.

tmoore commented on 2013-06-07 19:16 (UTC)

Ugh good point about the home directory setup. Ok.. My next update will be something that checks for an existing installation, so you don't have to uninstall/reinstall as well as checking the current setup/permissions. Maybe spit out some sort of post-installation instructions. I'll have it do what it can automatically, but when it comes to the plex media library, I want to muck with that as little as possible so people don't lose configurations.

arch-nemesis commented on 2013-06-07 17:22 (UTC)

Another thanks from me for keeping the package maintained correctly. This package used to be run as root and everything was stored in /root/var/lib. sheesh! Another thing that might make a difference for those of us who are upgrading, rather than uninstall-reinstall-ing. I think the reason why some people are having to start manually is a permissions issue and possibly an incorrect home directory for the plex user. The plex user, as always, requires a shell to work properly, and the home directory for that user should be changed to /opt/plexmediacenter. Also, when I did the upgrade everything in /opt/plexmediacenter was owned by root, and would have prevented the plex user from making changes, so I changed the ownership to plex. The reason that occurs, I think, is that /etc/conf.d/plexmediaserver is not sourced in the post_upgrade() function of your .install file. Of course, as you mentioned before, the old Library directory should also be moved.

mariusn commented on 2013-06-07 04:23 (UTC)

Yeah, that's ok man, we all learn from mistakes. You did a good thing explaining what a noob has to do to recover the initial configuration. I did not say that the files are deleted by upgrading... actually the bad thing is that they are kept in /usr/local after the upgrade. Maybe you can make a little script or write some after install instructions for the next update. Cheers!

jcasper commented on 2013-06-07 00:47 (UTC)

@tmoore pay no attention to that blowhard calling it "your" mess. The move to /opt went just fine for me, no problems at all. Thanks for moving it over and thanks for taking the time to package it up. Works great.

tmoore commented on 2013-06-06 23:53 (UTC)

PS - You won't have lost anything, as the installer doesn't delete your files. There are really only 3 things you need to care about and modify to point to a new location if you have things installed. /usr/local/plexmediaserver/Library (this stores your media database) /etc/conf.d/plexmediaserver (just edit this text file to change the path) /usr/lib/systemd/system/plexmediaserver.service (just edit this text file to change the path) That should be all you would have to do manually if you "upgraded" with this source. Just restart the service and it will look exactly the same

tmoore commented on 2013-06-06 23:50 (UTC)

I'm sorry about your issues. I guess I should have told you to simply copy your /usr/local/plexmediaserver/Library directory to /opt/plexmediaserver if you were going to upgrade. And I supposed edit the startup script. .. I did post that's all the difference that I changed with this and the previous version. But yes.. sorry, you should uninstall first. Then reinstall. This is my first time at maintaining a package and I am making obvious newb mistakes. I would be happy to step down if someone else wants to take over. Apparently there weren't any volunteers before.

mariusn commented on 2013-06-06 19:44 (UTC)

@tmoore WTF man? I spent 2 hours configuring my plex media server last night, and now you changed the location and all the configuration is lost, I have to do it all over again. That's not fair! It's my time you're wasting with radical changes like this. At least create a script to copy the files from /usr/local/plexmediaserver to the /opt/plexmediaserver location, and remove the /usr/local/plexmediaserver folder after that. Not to mention that the server won't autostart anymore with systemctl enable/start command... wtf? I had to go to /opt/plexmediaserver and start it manually from the file.

tmoore commented on 2013-06-06 04:41 (UTC)

New source tar uploaded with install location changed to /opt/plexmediaserver

tmoore commented on 2013-06-06 04:30 (UTC)

Thanks for the comment jcasper.. you are absolutely right. I will fix that.

jcasper commented on 2013-06-06 04:14 (UTC)

I think this should go in /opt/plexmediaserver, not /usr/local/plexmediaserver. /usr/local is for stuff I build myself outside of package management. /opt/ is for things like plexmediaserver. This is supported by as well as FHS (

tmoore commented on 2013-05-29 21:05 (UTC)

The plexmediaserver.install does create a user and group. I guess if you've installed an older version there could be discrepancies. That's why I've been doing uninstalls/reinstalls (and making sure your library dir is backed up) TBD is making this thing much smarter on upgrades and such. right now I just wanted to get it fairly consistent and useable.

dahankzter commented on 2013-05-29 17:59 (UTC)

Reinstalling and wiping the remnants of the old install seems to do the trick.

dahankzter commented on 2013-05-29 17:57 (UTC)

Nope all is broken. Reinstalling.

dahankzter commented on 2013-05-29 17:38 (UTC)

Your install script needs to add the group "plex" as well I think. Adding the group makes it work fine for me.

dahankzter commented on 2013-05-29 17:28 (UTC)

I just updated and now I cant start it. Error is May 29 19:27:28 antiva start_pms[15503]: su: user plex does not exist May 29 19:27:28 antiva systemd[1]: plexmediaserver.service: control process exited, code=exited status=1 May 29 19:27:28 antiva systemd[1]: Failed to start Plex Media Server for Linux. May 29 19:27:28 antiva systemd[1]: Unit plexmediaserver.service entered failed state. Can I just create the user? And group?

tmoore commented on 2013-05-29 13:30 (UTC)

Do you mean this? Installation is just like any other AUR package. Additional configuration is done by modifying the /etc/conf.d/plexmediaserver file.

vaski commented on 2013-05-29 13:19 (UTC)

Can you maybe put up an wiki on how to install this and configure?

tmoore commented on 2013-05-29 03:44 (UTC)

Doh.. thanks for the lookover.. Fixed and uploaded v13 src

commented on 2013-05-29 03:33 (UTC)

Your deps are messed up: depends=('rsync avahi') Makes pacman look for the dependency 'rsync avahi'. It should be: depends=('rsync' 'avahi')

tmoore commented on 2013-05-29 01:37 (UTC)

Ok.. I believe I have it working out of the box now. I added eskimod's solution (thanks!) and found another directory (${PLEX_MEDIA_SERVER_HOME}/Library/Application\ Support/Plex\ Media\ Server/Plug-ins) that needed to be created before starting as well. Here's the steps I did to test for success. pacman -R plexmediaserver rm /etc/conf.d/plex* rm -rf /usr/local/plexmediaserver removed plex from /etc/passwd and /etc/group sudo pacman -U plexmediaserver-

tmoore commented on 2013-05-29 00:10 (UTC)

Ok yea.. I see the logs issue adding that.. Now working on the plugins part. Man I could have sworn this was working.. Must've been legacy library crap I had. Will have version 12 up tonight

tmoore commented on 2013-05-28 23:58 (UTC)

Found it.. chown -R from the installer didn't work. I'll upload a new src. Guess the discussion about where to run the chown from (install or start_pms) made it get lost in translation :)

tmoore commented on 2013-05-28 23:54 (UTC)

PPS - I am going to blow away my Library directory and install it "realclean". I'll see if the installer needs to create Logs. I'm not dismissing your finding :)

tmoore commented on 2013-05-28 23:52 (UTC)

Thanks all. Yea the install script doesn't create any directories other than /usr/local/plexmediaserver, and then basically extracts the .deb file from plex into that directory. It then chown -R plex:plex all the files in /usr/local/plexmediaserver Now, here's how I've been testing it, and is probably how it got confusing. Between versions, to check things I just run "sudo pacman -R plexmediaserver". This removes all files, with the exception of /usr/local/plexmediaserver/Library. It will also rename /etc/conf.d/plexmediaserver to /etc/conf.d/plexmediaserver.pacsave. Then I just reinstall it with "sudo pacman -U plexmediaserver.xz" The installation process unpacks everything. Since the "Library" directory didn't get deleted (i.e. the default Application Support directory) nothing gets lost and when you start Plex up it auto creates the directories it needs. Now if you want to run this as another user (or as yourself), you need to make sure A> You've edited the /etc/conf.d/plexmediaserver file to have your username instead of "plex" in PLEX_MEDIA_SERVER_USER B> Either comment in PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR and point it to a directory that the user you defined above has FULL access rights to, recursively. If you don't define this, it will default to "/usr/local/plexmediaserver/Library/Application Support". You MUST make sure your userid from above can write to this directory recursively. The "" script you referred to is legacy and is not there in current releases.. Just use the "start_pms" script to run it (or more accurately, just run "sudo systemctl start plexmediaserver" TL:DR - Always make sure the user you run Plex as has full read/write to whatever is defined as PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR

bezerker commented on 2013-05-28 20:28 (UTC)

Sorry if I was unclear tmoore, my issue was similar to everyone elses in regards to the plugins not automatically being created (and Logs dir as well) due to permission issues. Unfortunately after fixing permissions the plugins did not get created and plex just bombed. To resolve it (since I rely on Plex more than my cable subscription. ha) I simply edited the conf.d appropriately to point back to my original install/plugins since I had a large setup already that I wanted to preserve. However, for new installs from scratch it appears to be slightly borked permission wise or missing a step to create those plugins/Logs dir. :)

dmast3r1 commented on 2013-05-28 19:14 (UTC)

Eskimod got it, this assumes though that plex has been successfully run and the plugins were built in /usr/local/plexmediaserver/Resources/Plug-ins/ ...if you did what I did and killed the whole directory, try cd to /usr/local/plexmediaserver then ./ this will startup the plexmediaserver as the currently signed in user, then kill the process with top/pkill then the plugins should be built...this is all very roundabout way I'm sure there is a much easier way out there.

eskimod commented on 2013-05-28 18:47 (UTC)

Just fixed this problem. stop the plexmediaserver sudo systemctl stop plexmediaserver.service sudo chown -R plex:plex /usr/local/plexmediaserver cd /usr/local/plexmediaserver sudo rm -rf Library/Application\ Support/Plex\ Media\ Server/Plug-ins/{System.bundle,Framework.bundle} sudo cp -r Resources/Plug-ins/{System.bundle,Framework.bundle} Library/Application\ Support/Plex\ Media\ Server/Plug-ins/ start the service sudo systemctl start plexmediaserver.service

uppfinnarn commented on 2013-05-28 18:04 (UTC)

Could you share exactly what you did? Because I'm having the same problem.

dmast3r1 commented on 2013-05-28 17:22 (UTC)

After messing around with it I used the script located in /usr/local/plexmediaserver this process built the plugins in /Media/plugins or i simply copied the plugins to the /library/application support tree and voila it works now...not sure why the process could not write the plugins the other way around but w/e it works now THANK YOU FOR ALL THE HELP!!!

tmoore commented on 2013-05-28 13:45 (UTC)

So your error is pretty clear, either those files don't exist or the user running the service can't read/write the directories. Run these commands and post back the results: cat /etc/conf.d/plexmediaserver ls -ld /usr/local/plexmediaserver ls -ld "/usr/local/plexmediaserver/Library/Application Support/"

dmast3r1 commented on 2013-05-28 06:11 (UTC)

Plex Plug-in [com.plexapp.agents.movieposterdb]: can't open file '/usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/': [Errno 2] No such file or directory Plex Plug-in [com.plexapp.system]: can't open file '/usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/': [Errno 2] No such file or directory Plex Plug-in [com.plexapp.system]: can't open file '/usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/': [Errno 2] No such file or directory Plex Plug-in [com.plexapp.agents.themoviedb]: can't open file '/usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/': [Errno 2] No such file or directory Plex Plug-in [com.plexapp.system]: can't open file '/usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/': [Errno 2] No such file or directory Plex Plug-in [com.plexapp.agents.thetvdb]: can't open file '/usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/': [Errno 2] No such file or directory Plex Plug-in [com.plexapp.system]: can't open file '/usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/': [Errno 2] No such file or directory Plex Plug-in [com.plexapp.system]: can't open file '/usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/': [Errno 2] No such file or directory a snip of messages i receive after running start_pms Anyone fixed this??

tmoore commented on 2013-05-28 04:42 (UTC)

Ps also this is 64-bit And if all else fails, uninstall/reinstall sudo pacman -R plexmediaserver sudo pacman -U {your xz file}

tmoore commented on 2013-05-28 04:37 (UTC)

Ok make sure that the plex home directory is owned by the user you have configured in /etc/conf.d/plexmediaserver Ie to fix run: sudo chown -R plex:plex /usr/local/plexmediaserver

dmast3r1 commented on 2013-05-28 04:29 (UTC)

[dennis@serverx1 ~]$ terminate called after throwing an instance of 'boost::filesystem::filesystem_error' what(): boost::filesystem::copy_file: No such file or directory: "/usr/local/plexmediaserver/Resources/com.plexapp.plugins.library.db", "/usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db" ****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /usr/local/plexmediaserver/Library/Application Support/Plex Media Server/CrashReports/7932c1d6-527e-6943-51e24995-38f4ae94.dmp

tmoore commented on 2013-05-28 04:25 (UTC)

Can you post your /etc/conf.d/plexmediaserver Also, what happens if you run this directly (as that's all the systemctl is really doing): sudo /usr/local/plexmediaserver/start_pms &

dmast3r1 commented on 2013-05-28 04:08 (UTC)

Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled) Active: failed (Result: core-dump) since Mon 2013-05-27 21:01:37 MST; 6s ago Process: 22554 ExecStart=/usr/local/plexmediaserver/start_pms (code=exited, status=0/SUCCESS) Main PID: 22561 (code=dumped, signal=ABRT) CGroup: name=systemd:/system/plexmediaserver.service May 27 21:01:37 serverx1 systemd[1]: Starting Plex Media Server for Linux... May 27 21:01:37 serverx1 systemd[1]: Started Plex Media Server for Linux. May 27 21:01:37 serverx1 systemd[1]: plexmediaserver.service: main process exited, code=dumped, status=6/ABRT May 27 21:01:37 serverx1 systemd[1]: Unit plexmediaserver.service entered failed state. after update still not able to launch pms

tmoore commented on 2013-05-28 02:52 (UTC)

Also, change this line in /etc/conf.d/plexmediaserver to be PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${PLEX_MEDIA_SERVER_HOME}/Library/Application Support" I'll fix that up in the source.. The key is always to have the user that runs the software be able to read/write/create in both the HOME and APPLICATION_SUPPORT directories... It does some crazy things behind the scenes.. I'm not sure what the developers were thinking sometimes, but I don't have access to source.

tmoore commented on 2013-05-28 02:50 (UTC)

Hmm.. So you changed the PLEX_MEDIA_SERVER_HOME to be /home/pms/lib/plexmediaserver? In that case, just make sure that either user "plex" or whatever user you are running it as has full read/write permissions to that directory on down (i.e. chmod -R plex:plex /home/pms/lib/plexmediaserver) I'll try and reproduce it on my end if you can give me exactly how you have it setup.

bezerker commented on 2013-05-28 01:16 (UTC)

Currently this only works if you point it to your old library (in my case /home/pms/lib/plexmediaserver) If you try to recreate with the new path you chose with user plex, it complains it cannot make the Logs dir. After manually creating that dir, it complains that it's missing plugins and fails to start.

tmoore commented on 2013-05-27 19:19 (UTC)

- Added stanza to start_pms for autocreation of directory that Plex complains about (plex also autoremoves this directory on shutdown) $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Linux/i386/Frameworks/

tmoore commented on 2013-05-27 19:00 (UTC)

New version: -Disabled using syslog by default: The logs normally live in /usr/local/plexmediaserver/Library/Application Support/Plex Media Server/Logs. They are broken out by daemon and much easier to read there than in one big file. Plus, by using the web interface you can turn on/off debugging/verbose (myplex). You can change location to /var/log/plexmediaserver using /etc/conf.d/plexmediaserver -Removed creating plexmediaserver.log, chowning, etc.

Arthur commented on 2013-05-27 16:04 (UTC)

chowning the whole directory at each start is a bit problematic indeed, i think i would check if the root dir is correctely owned and if so assume that the whole library is ok.

tmoore commented on 2013-05-27 15:47 (UTC)

Hmm.. I put the chown in the background, because if you have a large library it can take a while for the start_pms to start up.. Not sure if this is the best way to do it (for upgrades for example). I think it will work for now.

tmoore commented on 2013-05-27 15:35 (UTC)

Great feedback! - That's the way it came from the Plex.. but you are right, I fixed the source to come before the APPLICATION_SUPPORT_DIR check. - Good catch! I missed it. I combined the post_install stanzas - Moved the touch+chown to the start_pms script

Arthur commented on 2013-05-27 08:14 (UTC)

- Why is the conf.d file sourced after creating the APPLICATION_SUPPORT_DIR in the start_pms script ? - You're defining post_install() twice in the .install file, which i'm pretty sure cannot work (the first one is likely never executed) - And is touch+chown /var/log/plexmediaserver.log necessary in the post_install() ? this should probably be done in the start_pms script in case plex is ran as another user. Other than that, looks great, thanks!

tmoore commented on 2013-05-26 22:21 (UTC)

PS - Of course after you makepkg/install, start it up like so sudo systemctl enable plexmediaserver sudo systemctl start plexmediaserver That will make it start on boot and start now.

tmoore commented on 2013-05-26 22:19 (UTC)

Ok.. I've actually rebuild the pkg and fixed a lot of things.. It should work perfect out of the box. Be gentle with me, this is my first Archlinux pkg. Here are the changes: - Changed default path to /usr/local/plexmediaserver in all configurations - Now creates user plex and group plex postinstall - Fixed LD_LIBRARY_PATH issues people were having (it now finds things properly) - Set PLEX_MEDIA_SERVER_USE_SYSLOG=true as the default. - Rewrote startup script to match distribution - Changed hardcoded links to be variables You can change anything you want in /etc/conf.d/plexmediaserver I have it running as user plex because I never like to have services listening on the internet as root :) Feedback welcome!

tmoore commented on 2013-05-26 04:59 (UTC)

I am going to start using this exclusively when my Roku 3 gets here next Wednesday, so I'll packages it up and help maintain.

enkahel commented on 2013-05-23 10:12 (UTC)

I have figured it out. I thought that $PLEX_MEDIA_SERVER_HOME was in fact the home for Plex local DB. Since I had it wrong, the Plex Media Server wasn't able to start. $PLEX_MEDIA_SERVER_HOME is related to the binaries directory. I put back the default value for $PLEX_MEDIA_SERVER_HOME and everything is going fine by now. Local DB is located underneath the Plex user's home in var/lib/plexmediaserver Hope this will help

enkahel commented on 2013-05-23 10:12 (UTC)

I have figured it out. I thought that $PLEX_MEDIA_SERVER_HOME was in fact the home for Plex local DB. Since I had it wrong, the Plex Media Server wasn't able to start. $PLEX_MEDIA_SERVER_HOME is related to the binaries directory. I put back the default value for $PLEX_MEDIA_SERVER_HOME and everything is going fine by now. Local DB is located underneath the Plex user's home in var/lib/plexmediaserver Hope this will help

Arthur commented on 2013-05-23 08:55 (UTC)

If you want to move the plex library you need to set PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/home/media/.plexmediaserver" in the conf.d file.

enkahel commented on 2013-05-23 08:48 (UTC)

I have figured it out. I thought that $PLEX_MEDIA_SERVER_HOME was in fact the home for Plex local DB. Since I had it wrong, the Plex Media Server wasn't able to start. $PLEX_MEDIA_SERVER_HOME is related to the binaries directory. I put back the default value for $PLEX_MEDIA_SERVER_HOME and everything is going fine by now. Local DB is located underneath the Plex user's home in var/lib/plexmediaserver Hope this will help

Arthur commented on 2013-05-22 07:52 (UTC)

If nobody adopt it, i will try to sort it out some time this week.

mrohnstock commented on 2013-05-22 06:18 (UTC)

I'm out of time to maintain this package (and currently using pms on my nas, provided by plex directly). So... feel free to take over this package :).

enkahel commented on 2013-05-22 03:59 (UTC)

I am getting the same error as waa_woo. I have tried the following so far : - /var/lib/plexmediaserver did not exist so I created a symlink to /usr/lib/plexmediaserver - I tried both or using systemctl by forcing LD_LIBRARY_PATH to /var/lib/plexmediaserver first - I tried to set LD_LIBRARY_PATH accordingly in my user's profile No luck with all this, still getting the following error : [system]# /usr/lib/plexmediaserver/Plex\ Media\ Server /usr/lib/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory error appears clearly with : systemctl status plexmediaserver

mrohnstock commented on 2013-05-20 11:44 (UTC)

stop flagging the package as outdated, if there is none new package for none plexpass users.

mrohnstock commented on 2013-05-17 08:37 (UTC)

@inhumantsar: you're doing something wrong. All required files in the deb-package are already marked as executable by default, only needs this flag, which where executed in PKGBUILD. @waa_woo: don't start the server directly, use or the service. By the way: your issue got already discussed here several times, so read the comments.

commented on 2013-05-16 18:43 (UTC)

Getting this error: [system]# /usr/lib/plexmediaserver/Plex\ Media\ Server /usr/lib/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory

commented on 2013-05-16 16:26 (UTC)

None of the binary files were marked as executable. Had to manually chmod +x Plex*, and Resources/Python/bin/python

Arthur commented on 2013-03-25 20:18 (UTC)

How is this not a duplicate of ?

commented on 2013-03-14 06:45 (UTC)

ibexmonj, what do you mean? It's your first time?) http://serverhost:32400/web - PMS web interface, you can manage your media there.

ibexmonj commented on 2013-03-13 22:21 (UTC)

I installed the plexmediaserver and added it using systelctl to starup how do I browse my library ?

commented on 2013-03-13 18:13 (UTC)

I updated PMS and my whole library was gone. If there's anyone with similar problem - that was caused by changes in plexmediaserver configuration (/etc/conf.d/plexmediaserver). To fix this, change last string to: PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="$(awk -F: -v v=${PLEX_MEDIA_SERVER_USER} '{if ($1==v) print $6}' /etc/passwd)/Library/Application Support/"

anish commented on 2013-03-13 03:04 (UTC)

Install the other one for now, this is broken. The main difference is I use the rpm source, he uses dpkg

sysfu commented on 2013-03-13 03:03 (UTC)

What are the main differences between this package and the "plexmediaserver" package maintained by "monty"? Trying to figure out which one to install.

anish commented on 2013-03-06 21:16 (UTC)


jrussell commented on 2013-02-27 13:36 (UTC)

removing the profile in the /root directory fixed the problem :) it was rm -r /root/var

jrussell commented on 2013-02-26 19:24 (UTC)

Ok it appears to just be one of my computers that doesnt run plex.... No idea what to do now...nothing much in the log

jrussell commented on 2013-02-26 17:51 (UTC)

Cool thanks! I still get the same error though, I removed plexmediaserver and made sure I deleted all left over files: /usr/lib/plexmediaserver/ /etc/conf/plexmediaserver and the log file, installed again and same error, trying on a different PC now

mrohnstock commented on 2013-02-26 13:01 (UTC)

hey jrussell, as I already informed you by mail, I've changed the installscript to handle correctly shutdown of the plexmediaserver, before installation gets started. I think some libraries of plexmediaserver did not got replaced with new one in the package. Give it a shoot and mail back. rc.d scripts got removed and systemd is required for installation by now.

jrussell commented on 2013-02-24 13:18 (UTC)

Cant run plex after updating: plexmediaserver.service - Plex Media Server for Linux Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled) Active: failed (Result: core-dump) since Sun 2013-02-24 15:13:08 SAST; 1min 2s ago Process: 4979 ExecStart=/usr/lib/plexmediaserver/ (code=exited, status=0/SUCCESS) Main PID: 4986 (code=dumped, signal=ABRT) CGroup: name=systemd:/system/plexmediaserver.service Feb 24 15:13:08 russell-server systemd[1]: Starting Plex Media Server for Linux... Feb 24 15:13:08 russell-server su[4984]: (to root) root on none Feb 24 15:13:08 russell-server su[4984]: pam_unix(su:session): session opened for user root by (uid=0) Feb 24 15:13:08 russell-server systemd[1]: Started Plex Media Server for Linux. Feb 24 15:13:08 russell-server[4979]: terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exceptio..._cast> >' Feb 24 15:13:08 russell-server[4979]: what(): bad lexical cast: source type value could not be interpreted as target Feb 24 15:13:08 russell-server systemd[1]: plexmediaserver.service: main process exited, code=dumped, status=6/ABRT Feb 24 15:13:08 russell-server systemd[1]: Unit plexmediaserver.service entered failed state

mrohnstock commented on 2013-01-31 07:42 (UTC)

you need to set a loginshell for the user. usermod -s /bin/bash plexmediaserver and it should work.

anish commented on 2013-01-30 20:11 (UTC)

@epitron whoops, sorry about that, fixed now

epitron commented on 2013-01-30 19:40 (UTC)

Missing a dependency: rpmextract

jrussell commented on 2013-01-30 16:08 (UTC)

Could someone help me get this to run as its own user? so far I have run: useradd -d /usr/lib/plexmediaserver -M -s /bin/false -U plexmediaserver chown -R plexmediaserver:plexmediaserver /usr/lib/plexmediaserver chmod -R 755 /usr/lib/plexmediaserver I changed the user in /etc/conf.d/plexmediaserver from root to plexmediaserver, but trying to start it now with systemctl I get: systemctl start plexmediaserver.service Job for plexmediaserver.service failed. See 'systemctl status plexmediaserver.service' and 'journalctl -xn' for details.

mrohnstock commented on 2013-01-30 07:28 (UTC)

Please look in your /usr/conf.d/plexmediaserver, to check, if you've applied all required changes, introduced in package plexmediaserver.conf as announced on 2012-08-30 14:56.

mrohnstock commented on 2013-01-30 07:23 (UTC)

plexmediaserver provides it's own libboost. boost-libs 1.50.0-4 won't get used by plexmediaserver, because of the presetted LD_LIBRARY_PATH, which should lead to /var/lib/plexmediaserver, where all dependencies are located.

zer01ne commented on 2013-01-30 06:30 (UTC)

It seems that plexmediaserver errors on the start of the service because libboost has upgraded to 1.50 and PMS needs 1.47. Is there not a way to remove the specific call for libboost-1.47 or make it look for >=libboost-1.47? Jan 29 20:17:06 localhost systemd[1]: Starting Plex Media Server for Linux... Jan 29 20:17:06 localhost systemd[1]: Started Plex Media Server for Linux. Jan 29 20:17:06 localhost[32197]: /usr/lib/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory Jan 29 20:17:06 localhost systemd[1]: plexmediaserver.service: main process exited, code=exited, status=127/n/a Jan 29 20:17:06 localhost systemd[1]: Unit plexmediaserver.service entered failed state root@daemon:~[root@daemon ~]# pacman -Ss boost-libs extra/boost-libs 1.50.0-4 [installed]

Arthur commented on 2013-01-28 12:20 (UTC)

I am pretty that was the default behaviour when i reinstalled plex on a new server a few weeks ago. I might be wrong

mrohnstock commented on 2013-01-28 12:18 (UTC)

I don't need to forward port 32400 to connect from a different host to my plexmediaserver. Where did you get this informations from (about "plexmediaserver is now only accepting unlogged connetion from localhost")? Also /manage get's automatically redirected to /web by default - so you're right.

Arthur commented on 2013-01-28 11:33 (UTC)

Except that by default plexmediaserver si now only accepting unlogged connexion from localhost. So you have to "ssh -L32400:localhost:32400" you@server" and then configure the server at http://localhost:32400/web (not manage, the new interface is at /web). You can also start by configuring a vhost to act as a reverse proxy to and avoid all this "ssh" part. This way you can bypass the tiresome way to authenticate through and manage the auth by yourself with an apache based filter on the proxypass.

mrohnstock commented on 2013-01-28 09:27 (UTC)

what did "sudo systemctl info plexmediaserver" said? The URL to connect to webinterface is http://YOURHOST:32400/manage/index.html

commented on 2013-01-28 01:55 (UTC)

Can someone please tell me how to run this? I ran start 2 systemd commands but the web interface still isn't running for me. sudo systemctl --system daemon-reload sudo systemctl start plexmediaserver.service

mrohnstock commented on 2013-01-14 21:25 (UTC)

updated package and changed pkgrel, as requested.

gtmanfred commented on 2013-01-14 03:27 (UTC)

please fix the pkgrel, it should be a regular digit, it shoud be the number of times you have updated teh pkgbuild for that version... not a random number they tacked with the version

mrohnstock commented on 2013-01-13 16:01 (UTC)

@ajfathers: Nice to see, you're using ArchLinux/ARM. I can't provide a ARM-Package, because the server is only available precompiled on x86 / x86_64 in this package. You can try the NAS packages from plexapp, which got compiled for ARMv7. Feel free to create a new package for this platform by using this PKGBUILD. btw, ARM isn't officially supported by Archlinux. You're using a port of Archlinux, which got ported to ARM. So, I do not update the description, because there shouldn't be confusion, if you read the FAQ of Archlinux/ARM carefully ;).

commented on 2013-01-13 02:48 (UTC)

Friends, Every time I search "ArchLinux Plex Media Server" I get this/current page so I am gonna have to ask you this stupid question :). I have ArchLinux/ARM running on my Pogoplug device. I want/wish to install PMS (Plex Media Server) on this device i.e. on ARM so that I can stream it to my Roku's Plex channel/App. Is it possible? Everywhere I read that PMS can be installed only on Ubuntu or Fedora or CentOS. Since this current project is listed on ArchLinux website, I am hoping that this is meant for ArchLinux/ARM :) :). If not, can Monty pls update that in the description (if possible) to avoid confusion? If I am right and this is indeed meant for ArchLinux/ARM, will someone be kind enough to put together a step-by-step guide for non-linux (windows based) folks like me? :) :) thanks a ton to all Gurus in adv.

mrohnstock commented on 2012-12-04 12:59 (UTC)

package updated. The rc-script is still presented, because arch did not removed the rc-scripts from existing packages, too. @punkrockguy318: home of root is /root. plexmediaserver will create all required files to the home directory of the user setted in /etc/conf.d/plexmediaserver. Feel free to create and change the user by your own.

commented on 2012-12-04 11:45 (UTC) is out. Please, update.

prg commented on 2012-11-23 13:43 (UTC)

not sure why this creates /root/var/lib/plexmediaserver on startup shouldn't it be doing this in /var/lib instead of within the root home directory? why doesn't the systemd unit file run the server as another user?

mrohnstock commented on 2012-11-20 19:49 (UTC)

package updated - on next release, I'll remove the rc-script.

prg commented on 2012-11-16 15:59 (UTC) looks like we have two packages for this

mrohnstock commented on 2012-09-12 06:55 (UTC)

updated again

mrohnstock commented on 2012-09-04 08:06 (UTC)

updated to

mrohnstock commented on 2012-08-30 14:56 (UTC)

done, /etc/conf.d/plexmediaserver gets used by initscript and systemd-service. Modified PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR, so please update an existent /etc/conf.d/plexmediaserver with this change.

mrohnstock commented on 2012-08-30 08:25 (UTC)

I'm currently rewritten the whole init-stuff to let the user choice to use systemd or init (rc.d) to start plexmediaserver. I'll post again, when the package got updated. Sorry for the inconvenience.

daschu117 commented on 2012-08-30 07:00 (UTC)

You shouldn't be executing "/etc/rc.d/plexmediaserver stop" in your .install file. This violates basic Arch principals, and makes for some really disgusting noise if someone is using systemd already. However, if you're going to ignore this, then please at least at least fix the code to look for "/run/daemons/plexmediaserver", as this will properly check that the daemon is running before doing anything: pre_install() { if [ -f /run/daemons/plexmediaserver ]; then /etc/rc.d/plexmediaserver stop; fi; }

mrohnstock commented on 2012-08-28 06:12 (UTC)

Arch can handle systemd and initscripts vice versa. So, this change does not have any advantage (right now).

CyberConan commented on 2012-08-27 18:58 (UTC)

Arch now only use rc.conf file for daemons (for now). Here I found a script for systemd: I use leonsio instructions and plex start perfectly.

mrohnstock commented on 2012-08-10 06:11 (UTC)

Attention: PLEX_MEDIA_SERVER_HOME moved from plexmediaserver.rc.d to plexmediaserver.conf.d. Please update an existing conf.d manually.

mrohnstock commented on 2012-08-09 17:31 (UTC)

makes sense, will update the package tomorrow to and add your suggestion.

commented on 2012-08-09 16:28 (UTC)

Why is PLEX_MEDIA_SERVER_HOME defined in the rc-script? Shouldnt it be in the conf-file?

mrohnstock commented on 2012-08-01 06:08 (UTC) got now finally fixed.

mrohnstock commented on 2012-07-15 12:40 (UTC)

rc.d modified as suggested by Arthur.

Arthur commented on 2012-07-14 06:53 (UTC)

'ctypes Not Found' issue : (from plex forums) rm -r "/home/$PLEX_USER/Library/Application Support/Plex Media Server/Plug-ins/{System,Framework}.bundle" && /etc/rc.d/plexmediaserver restart

mrohnstock commented on 2012-07-03 12:58 (UTC)

package updated. is still an issue...

mrohnstock commented on 2012-06-26 13:03 (UTC)

updated package: - wait 3 sec after kill signal sended to plexmediaserver and check, if it's still running - added from (Thanks MelanomaSky ( dirty-fix is required, until plexmediaserver's libdbus get's recompiled by plex.

commented on 2012-06-23 08:07 (UTC)

Hi Arthur, Would you mind looking at this thread and verifying if there is something that requires further investigation. /Mark

mrohnstock commented on 2012-06-20 10:51 (UTC)


mrohnstock commented on 2012-06-09 10:30 (UTC)

updated, again.

mrohnstock commented on 2012-06-05 14:23 (UTC)

updated to currented build - nothing else changed.

mrohnstock commented on 2012-05-21 09:47 (UTC)

updated to currented build.

mrohnstock commented on 2012-05-16 05:40 (UTC)

@emphire: changed with your suggestions

emphire commented on 2012-05-15 20:11 (UTC)

Please change "/usr/lib/plexmediaserver/Plex\ Media\ Server > /var/log/plexmediaserver.log" to "/usr/lib/plexmediaserver/Plex\ Media\ Server >> /var/log/plexmediaserver.log" so the log files doesn't get overwritten every time pms loads. Thanks!

mrohnstock commented on 2012-05-14 20:55 (UTC)

updated package, with the change-request by MatejLach. nothing else changed.

MatejLach commented on 2012-05-14 18:22 (UTC)

Please fix: "# Installation done # change execution user in # /etc/conf.d/plexmediaserver/plexmediacenter.conf.d # Lauch the server with /etc/rc.d/plexmediaserver start" to: # Installation done # change execution user in # /etc/conf.d/plexmediaserver # Lauch the server with /etc/rc.d/plexmediaserver start

mrohnstock commented on 2012-05-12 10:17 (UTC)

use "/etc/rc.d/plexmediaserver start" and don't start plexmediaserver directly from /usr/lib/plexmediaserver

mrohnstock commented on 2012-05-12 10:15 (UTC)

start-script is using LD_PRELOAD with the install-dir of plexmediaserver, where all these missing dependencies are located.

kylef commented on 2012-05-11 21:16 (UTC)

Looks like there are a lot of missing dependencies:: % ldd /usr/lib/plexmediaserver/Plex\ Media\ Server | grep "not found" => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found => not found

kylef commented on 2012-05-11 19:25 (UTC)

There is a missing dependency for boost (and version specific). Unfortunately archlinux uses a much newer version so this package is incompatible. /usr/lib/plexmediaserver/Plex Media Server: error while loading shared libraries: cannot open shared object file: No such file or directory

r0b0ticus commented on 2012-04-09 19:06 (UTC)

Here is the md5 for the x86_64 version, tested and working on my home server. 7aa1f4158bbea6778061796c8f65b66f

Dianoga commented on 2012-03-29 17:08 (UTC)

The PKGBUILD below works for installing the 0.9.6 beta (x86). The md5 under x86_64 would need to be updated for the 64 bit version # Contributor: Praekon <> # Contributor: Arthur <> # Contributor: Jon Wiersma <> # Contributor: Ray <> # Contributor: Dianoga <> pkgname=plexmediaserver pkgver= pkgrel=2 pkgnumber=ba33da9 pkgdesc="Plex Media Server for Linux" url="" arch=('i686' 'x86_64') license=('closed') depends=('avahi' 'rsync') replace=('plex') backup=("etc/conf.d/$pkgname") install="$pkgname.install" if [ "$CARCH" = "i686" ]; then _arch='i386' md5sums=('4442031c7faebded7e9ecd7e77053648') elif [ "$CARCH" = "x86_64" ]; then _arch='amd64' md5sums=('df26c3634bdd02e38ca2fb0cfe8309d7') depends+=('lib32-libxml2' 'lib32-sqlite3' 'lib32-boost-libs' 'lib32-curl') fi source=("${pkgname}/${pkgname}_${pkgver}-${pkgnumber}_${_arch}.deb" "$pkgname.conf.d" "$pkgname.rc.d") md5sums+=('cb0b32d853f2c8b760e62b391196a881' 'f4b9a8473551127ab3de151005600f07') build() { ar -xv ${pkgname}_${pkgver}-${pkgnumber}_${_arch}.deb || return 1 tar -zxf data.tar.gz || return 1 } package(){ mkdir -p $pkgdir/usr/lib/plexmediaserver mkdir -p $pkgdir/etc/rc.d cp -r usr/lib/plexmediaserver/* $pkgdir/usr/lib/plexmediaserver/ install -D -m644 plexmediaserver.conf.d $pkgdir/etc/conf.d/plexmediaserver install -D -m755 plexmediaserver.rc.d $pkgdir/etc/rc.d/plexmediaserver }

falconindy commented on 2012-03-27 03:20 (UTC)

Please use makepkg --source to create source tarballs. It's unreasonable to expect that the directory inside the tarball is named anything except the name of the package, and you'd avoid packaging the excess files included with this sourceball.

commented on 2012-03-24 22:13 (UTC)

okay on 32bit machines, delete line 48 - EOF from PKGBUILD to get this package to work thanks to JonnyJD in IRC

commented on 2012-03-24 21:30 (UTC)

i don't know why but yaourt complains about md5sums on x32 build. tryed several times now ona freshly installed arch without success. cleared tmp folder and redownloaded everything. the md5sums seems to match if i check them manually though... ==> Building and installing package ==> Erstelle Paket: plexmediaserver (Sa 24. Mär 22:29:14 CET 2012) ==> Prüfe Laufzeit-Abhängigkeiten... ==> Prüfe Buildtime-Abhängigkeiten... ==> Empfange Quellen... -> plexmediaserver_0. gefunden -> plexmediaserver.conf.d gefunden -> plexmediaserver.rc.d gefunden ==> Ãberprüfe Gültigkeit der Quell-Dateien mit md5sums... plexmediaserver_0. ... FEHLGESCHLAGEN plexmediaserver.conf.d ... Durchgelaufen plexmediaserver.rc.d ... Durchgelaufen ==> FEHLER: Eine oder mehrere Dateien überstanden nicht die Gültigkeits-Prüfung! ==> ERROR: Makepkg was unable to build plexmediaserver. anyone has an idea?

emphire commented on 2012-03-22 18:02 (UTC)

Just noticed a couple of minor issues: In the rc.d file (around line 19): the redirect (>) should be an append (>>) so the logs don't get overwritten on each startup. Also, there some missing quotation marks in the PKGBUILD in the x86_64 pkgdeps line. Thanks.

mrohnstock commented on 2012-03-20 17:59 (UTC)

plexmediaserver got released for linux:

commented on 2012-03-17 17:22 (UTC)

the plex server 9.5.2 worked for me. This one gives me an error when i run the file. The other plex i downloaded i just had to run rc.d start plexmediaserver this one doesnt have that daemon?

anish commented on 2012-03-15 20:03 (UTC)

Updated to latest

commented on 2012-03-12 10:05 (UTC)

The following PKGBUILD file worked for me for the latest plexmediaserver version as of 12.03.2012: # Contributor: Praekon <> # Contributor: Arthur <> # Contributor: Jon Wiersma <> pkgname=plexmediaserver pkgver= pkgrel=2 pkgdesc="Plex Media Server for Linux" url="" arch=('i686' 'x86_64') license=('closed') depends=('avahi' 'rsync') replace=('plex') backup=("etc/conf.d/$pkgname") install="$pkgname.install" if [ "$CARCH" = "i686" ]; then _arch='i386' md5sums=('b74084ad5323d159fd493fdcfb0c6e11') elif [ "$CARCH" = "x86_64" ]; then _arch='amd64' md5sums=('d99becb20972ea993ca38620e1987d51') depends+=('lib32-libxml2' 'lib32-sqlite3' 'lib32-boost-libs' 'lib32-curl') fi source=("$url/repo/pool/main/p/${pkgname}/${pkgname}_${pkgver}-dff0bd5_${_arch}.deb" "$pkgname.conf.d" "$pkgname.rc.d") md5sums+=('cb0b32d853f2c8b760e62b391196a881' '6c56f99a450b64af22abfd549d32eb38') build() { ar -xv ${pkgname}_${pkgver}-dff0bd5_${_arch}.deb || return 1 tar -zxf data.tar.gz || return 1 } package(){ mkdir -p $pkgdir/usr/lib/plexmediaserver mkdir -p $pkgdir/etc/rc.d cp -r usr/lib/plexmediaserver/* $pkgdir/usr/lib/plexmediaserver/ install -D -m644 plexmediaserver.conf.d $pkgdir/etc/conf.d/plexmediaserver install -D -m755 plexmediaserver.rc.d $pkgdir/etc/rc.d/plexmediaserver }

r0b0ticus commented on 2012-03-09 14:33 (UTC)

I tried it last night with my roku and android phone both played without issue. I just installed the package and then downloaded and extracted the .deb file and rsync'd it over the install directory.

praekon commented on 2012-03-08 07:06 (UTC)

oh, additional info: avahi is not necessary anymore for netatalk etc. With avahi and netatalk running on the server im running into problems. Is avahi as dependency for plex still needed?

praekon commented on 2012-03-08 07:02 (UTC)

Is there anybody with a chance to test the package? I'm on a business trip till end of next week (and then i will test my new iPad first :D).

mrohnstock commented on 2012-03-08 06:51 (UTC)

looks like isn't finished yet for ubuntu. Two versions appear in distro repo.

r0b0ticus commented on 2012-03-07 22:22 (UTC)

This shouldn't be too difficult to update for Only the URL and md5 hashes in the PKGBUILD would need to be modified. I can look into doing it this weekend possibly.

panthar commented on 2012-02-05 23:03 (UTC)

Are all those lib32 dependencies actually needed? I tested installing Plex in a temporary directory on a 64 bit Arch install. It ran perfectly with none of the 32 bit libraries installed. (Tested from scratch, adding a library of media then playing on a client on another machine).

emphire commented on 2011-12-25 22:29 (UTC)

The redirection to the log file in the rc.d file should be ">>" rather than just ">" so it doesn't overwrite the log file on every restart. Thanks.

emphire commented on 2011-12-20 23:43 (UTC)

Isn't "/etc/conf.d/plexmediaserver" a better spot for "/etc/plexmediaserver.conf"? Also, would you be able to add a variable to plexmediaserver.conf to set the user to run plex as?

commented on 2011-12-07 15:15 (UTC)

Is this able to be built for the arm arch? after hacking the PKGBUILD to download the i686.deb, I get the following: ==> Tidying install... -> Purging other files... -> Compressing man and info pages... -> Stripping unneeded symbols from binaries and libraries... /usr/bin/strip: Unable to recognise the format of the input file `./usr/lib/plexmediaserver/' ==> ERROR: An unknown error has occurred. Exiting...

FalsePerspective commented on 2011-12-04 18:59 (UTC)

I'd like to update my Plex server because my Android/iPad clients no longer find the one currently installed. Can this package please be updated? Thanks!

praekon commented on 2011-12-03 11:37 (UTC)

First: thanks for the nice work! I send you an updated PKGBUILD for version 9.5.2

Arthur commented on 2011-11-11 17:58 (UTC)

A (very) quick google search remind you the existence of [multilib] for lib32-*

bladesuk1 commented on 2011-11-11 17:56 (UTC)

install fails as there's a bunch of dependencies that get added for x86_64 architectures: depends+=('lib32-libxml2' 'lib32-sqlite3' 'lib32-boost-libs' 'lib32-curl') of these, only lib32-boost-libs seems to exist (and even that's marked as being out of date). any suggestions? right now, i'm just attempting the install without these libraries just to see what happens, but i'm getting no further than "./ line 10: ./Plex Media Server: No such file or directory". any suggestions?

commented on 2011-11-11 00:00 (UTC)

You can change the path of the library in the configuration file pretty easily to be honest. I'm not sure I see how its difficult to change, my Library is in a protected folder under home you just need to set the path correctly. You'll note there is a comment pointing to a configuration file in /etc Now, the plex server probably should run as a separate user, but since its a daemon I don't find that to be such a big issue honestly. Switching the user isn't all that tough, I'm Lazy, but you would probably need to ensure all of the permissions are correct so that user is able to execute and read the libraries. I suppose printing to stdout might annoy some people if you are not headless. My system is, so I never see it when I shell in.

Arthur commented on 2011-11-05 12:52 (UTC)

The init script is a very poor one, I agree. Feel free to send me a better one...

commented on 2011-11-05 12:19 (UTC)

The deamon prints to stdout (when from the console). When started with rc.d start plexmediaserver the default library location is /Library (it tries to be ${HOME}/Library but ${HOME} isn't defined for a service). Is it possible to set which user:group the server runs as? It now runs as root and that's not right.

commented on 2011-10-16 17:23 (UTC)

Everything works great for me. Make sure you build lib32-boost with the current version. You may need to update the sha512 hash for lib32-boost when you run the build and switch mirrors.

commented on 2011-09-29 14:06 (UTC)

Error staring plexserver. Add rsync to dependences sh: /usr/bin/rsync: No such file or directory sh: /usr/bin/rsync: No such file or directory sh: /usr/bin/rsync: No such file or directory sh: /usr/bin/rsync: No such file or directory

FalsePerspective commented on 2011-08-29 06:05 (UTC)

Works perfectly when started using :-) However, - everything is installed under /opt instead of /usr/lib; - the rc.d init script and a config file that it refers to are not being installed; and - the rc.d init script doesn't seem to kill plex's child processes.

Arthur commented on 2011-08-11 16:18 (UTC)

Go to http://localhost:32400/manage for the admin interface. for a web client

commented on 2011-08-11 15:16 (UTC)

spoke too soon, it appears to hang when starting the server. :: Starting Plex media server [BUSY] 8192

commented on 2011-08-11 15:10 (UTC)

Thanks, looks like it works great

commented on 2011-05-21 12:13 (UTC)

It doesn't work for me (64 bit arch). ./ terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid ./ line 7: 13772 Aborted ${SCRIPTPATH}/Plex\ Media\ Server

archtux commented on 2011-05-15 10:23 (UTC)

Fixed. Now it works!

anish commented on 2011-05-15 08:07 (UTC)

Oh nevermind, I see what I did wrong. thanks ! Can u try with the update ?

anish commented on 2011-05-15 08:01 (UTC)

Hrm ? Can you check your ? sed -i 's/\.\/Plex/${SCRIPTPATH}\/Plex/' is supposed to fix exactly that

archtux commented on 2011-05-15 07:59 (UTC)

I had to add 'cd /opt/plex' in file '' to start plex

anish commented on 2011-05-15 00:39 (UTC)

To access server, go to http://localhost:32400/manage

anish commented on 2011-05-15 00:20 (UTC)

Should be working fine now.

anish commented on 2011-05-14 22:10 (UTC)

I have it working on Arch, please wait till I sort out some minor bugs