November 17, 201114 yr Author I think I got this problem when I had no wright permissions on the tmp folder. But I think I check that with the plugin.
November 17, 201114 yr your plugin probably needs to create a folder inside the tmp folder and give thatread/write permission for the particular user. Changing permissions on the entire temp folder is not a good idea. NOTE: I have no idea what your plugin does, just saying.
November 17, 201114 yr Author I only change owners. but not on the original tmp folder if [ $(readlink -f $PLEX_TMPDIR) != "/tmp" ] && [ "$(stat -c %U $PLEX_TMPDIR)" != "$RUNAS" ]; then logger -t plex-rc.plex "Plex Media Server: changing owner of $PLEX_TMPDIR to $RUNAS" chown -R $RUNAS:users $PLEX_TMPDIR fi
November 17, 201114 yr Solved. ffmpeg would not start as it couldn't find libcurl.so.4. Added /usr/local/plex to /etc/ld.so.conf, reloaded config, restarted plex, and all is well. I also note just a few posts above that the same problem is reported and the solution was adding a line to the go script to add /usr/local/plex to /etc/ld.so.conf. I would have thought that your plugin installer would either place required library files into a more standard location like /usr/local/lib (which would be loaded automatically) or add the library path to /etc/ld.so.conf. I suppose for those wanting to install plex to the cache drive rather than /usr/local, the option to have a unique path in /etc/ld.so.conf would be nice. Either way, perhaps you can update what the 'final answer' is as I'd like to keep as standard of a config as possible. I.e. had I not been farting around and followed the "standard" current plug-in installation with recommended settings (i.e. binaries at /usr/local; appdata, library, tmp, etc. at something like /mnt/cache/.appdata), then would I still need 'manually' update /etc/ld.so.conf or are you doing this?
November 17, 201114 yr Author I don't know why you have to update your ld.so.conf. i don't do that and it works for me. Plex uses its own environment with this LD_LIBRARY_PATH variable. I export this with the installation path. e.g /usr/local/plex so plex should look for all his librarys and binaries there.
November 17, 201114 yr Author I would have thought that your plugin installer would either place required library files into a more standard location like /usr/local/lib (which would be loaded automatically) or add the library path to /etc/ld.so.conf. I provide only the download and the installation of the original Plex Media Server from the official homepage. and I create some start and stop scripts thats all this plugin does. The libraries (binaries) are all there where the "developers" of plex wants them to be.
November 17, 201114 yr I don't know why you have to update your ld.so.conf. i don't do that and it works for me. Plex uses its own environment with this LD_LIBRARY_PATH variable. I export this with the installation path. e.g /usr/local/plex so plex should look for all his librarys and binaries there. I am currently trying to avoid 'cold booting' my array as it's .... well .... busy. However, I think I'll do so after a bit more housekeeping. Could be that ffmpeg was using the ld.so.conf library paths and plex was using the env variable. I'll post results after a 'clean' reboot later today.
November 17, 201114 yr @spidi, stokkes, et. al. Before I forget, ABSOLUTELY AWESOME WORK FROM ALL OF YOU. My hat is off and I bow in your general direction. SABnzb, SB, CP, and now Plex all working PERFECTLY. My little home media server is close to perfection in no small part due to your efforts. Of course, kudos to Tom as well as without him...
November 19, 201114 yr using beta 5 12a installed the plug and i see it on the web gui.. but also get an error Nov 19 18:13:20 Server su[22711]: Successful su for unraid-plex by root Nov 19 18:13:20 Server su[22711]: + root:unraid-plex Nov 19 18:13:20 Server plex-rc.plex: starting PMS Nov 19 18:13:20 Server su[22713]: Successful su for unraid-plex by root Nov 19 18:13:20 Server su[22713]: + root:unraid-plex Nov 19 18:13:22 Server plex-rc.plex: Check 1: Plex has NOT started yet, something is maybe wrong! Nov 19 18:13:24 Server plex-rc.plex: Check 2: Plex has NOT started yet, something is maybe wrong! Nov 19 18:13:26 Server plex-rc.plex: Check 3: Plex has NOT started yet, something is maybe wrong! Nov 19 18:13:28 Server plex-rc.plex: Check 4: Plex has NOT started yet, something is maybe wrong! Nov 19 18:13:30 Server plex-rc.plex: Check 5: Plex has NOT started yet, something is maybe wrong! i don't have a cache drive installed using this as my library /mnt/disk3/.plex/Lib and this as my temp /mnt/disk3/.plex/tmp any advice on where to go from here? i'm quite the noob with anything that requires touching code
November 19, 201114 yr Author first, don't use hidden folders (e.g. /.plex). second, maybe you have the issue with language export of en_US.UTF-8. open the plugin and search for this line: (su $RUNAS -s /bin/bash -c "(cd $PLEX_INSTALLDIR; export LD_LIBRARY_PATH=$PLEX_INSTALLDIR; export TMPDIR=$TMP_LINK; export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6; export LC_ALL=en_US.UTF-8; export LANG=en_US.UTF-8; ulimit -s 3000; ./Plex\ Media\ Server) &")& delete the red marked entries and try it again.
November 19, 201114 yr Author if you don't know how to do it, use this: http://dl.dropbox.com/u/26598301/plex-media-server-noarch-0.9.5.1b-no-utf8-ds.plg
November 20, 201114 yr Spidi, If you don't recommend using a hidden directory, how do you prevent the mover from moving the library directory on the cache to the protected array? Install the unraid-mover-exclude-underscore package from unMenu and change paths to "_" instead of "." ? Thanks!
November 20, 201114 yr The latest series of unRAID 5.x Beta has the ability to mark what folders on the cache drive are shares and which one's are not.
November 20, 201114 yr does something like removeplg exist ? would like to upgrade from previous version without having to reboot ...
November 20, 201114 yr Author @BRiT thats what I mean @sacretagent you don't have to deinstall the old one. Only disable PMS and install the new one with "installplg plex-media-server-0.9.5.1-....plg" but only if you mean an old version of my plugin. than you have to follow the update instruction of the first post. (with remove old plugin, I mean delete the old pluginfile thats all)
November 20, 201114 yr hey spidi no dice installplg /boot/config/plugins/plex-media-server-noarch-0.9.5.1-ds.plg installing plugin: plex-media-server-noarch-0.9.5.1-ds Warning: simplexml_load_file(): I/O warning : failed to load external entity "/boot/config/plugins/plex-media-server-noarch-0.9.5.1-ds.plg" in /usr/local/sbin/installplg on line 13 xml parse error sure it is something stupid
November 20, 201114 yr bah found it stoopid things happen when you copy paste and don't verify the new version has a b in the title it should be installplg /boot/config/plugins/plex-media-server-noarch-0.9.5.1b-ds.plg ;)
November 20, 201114 yr upgrade went succesfull only worrying part was the time it took to start up again ... took forever to chown my existing folders to unraid_plex user good that i always keep top open to see what is going on little question .... anybody has issues with myplex ? get "myplex can not connect to your server" routing should be OK... gonna try to restart my router later on .... could be that... just wondering if somebody has it working ?
November 20, 201114 yr one question: Is the server still able to go to (S3) sleep after the install of the PMS? Or will it be always on?
November 20, 201114 yr Ok, is there a stop comand I could add to the S3 sleep script then? To stop PLEX before I send the server to sleep...
November 20, 201114 yr if you don't know how to do it, use this: http://dl.dropbox.com/u/26598301/plex-media-server-noarch-0.9.5.1b-no-utf8-ds.plg thanks... the server has started up now! do i still have to do this to get the library to show up? http://lime-technology.com/wiki/index.php?title=Plex_for_UnRAID_FAQ
November 21, 201114 yr only worrying part was the time it took to start up again ... took forever to chown my existing folders to unraid_plex user I didn't chown, left it as nobody and it works great. Is there a need to change it?
Archived
This topic is now archived and is closed to further replies.