kaiguy Posted May 15, 2011 Share Posted May 15, 2011 Avahi is already included in the later 5.0 betas. Just enable AFP within unRAID and it should show up. Quote Link to comment
BRiT Posted May 15, 2011 Share Posted May 15, 2011 The Plex guides state that Avahi needs to be enabled for automatic discovery by clients. I think unRAID 5.0b6a has Avahi already built in, so you should only need to enable it (AFP). As for the symlink directions, those are done once at the shell prompt (telnet/ssh). @smoldersonline, that's a bit odd that starting it from the go script has it looking for the library in / instead of /root/. So for it to start from the GO script, these instructions should be done once from the shell prompt. This is after you manually invoke Plex as root and import at least a small portion of your library to assure that it works fine for you. After that pre-emptive troubleshooting, stop Plex and then do something like the following: cd ~ mkdir /mnt/cache/.Plex/ mv ~/Library/ /mnt/cache/.Plex/ ln -s /mnt/cache/.Plex/Library /Library ln -s /mnt/cache/.Plex/Library /root/Library echo "ln -s /mnt/cache/.Plex/Library /Library" >> /flash/config/go echo "ln -s /mnt/cache/.Plex/Library /root/Library" >> /flash/config/go echo "/mnt/cache/.Plex/start.sh >> /Library/Logs/Plex\ Media\ Server.log 2>&1 &" >> /flash/config/go Then reboot to make sure it's working. As always, change /mnt/cache/.Plex/ to the location of your choice and where you have Plex installed to. NOTE: I'm symlinking the Library directory into two locations so one can manually restart Plex server without having to reboot. The first symlink into /Library handles starts from the go script, and the second symlink into /root/Library handles starts manually as root. Quote Link to comment
mazma Posted May 15, 2011 Share Posted May 15, 2011 I have a folder on my cache drive called Plex so I'm guessing the first two lines of your instructions I don't need to do. However the 3rd line errors with no such file or directory for /root/Library/. mv ~/Library/ /mnt/cache/.Plex/ What am I missing? Quote Link to comment
Chris Pollard Posted May 15, 2011 Share Posted May 15, 2011 yep, I see Avahi is enabled with AFP. I still can't see the library on my macs however. Is there any config required for Avahi? Quote Link to comment
BRiT Posted May 15, 2011 Share Posted May 15, 2011 I have a folder on my cache drive called Plex so I'm guessing the first two lines of your instructions I don't need to do. However the 3rd line errors with no such file or directory for /root/Library/. mv ~/Library/ /mnt/cache/.Plex/ What am I missing? I'm assuming everyone needs to run Plex at least once to manually verify it's working on their system before trying to automate the process. That was for when you're logged in as root and had invoked and started Plex at least once. The "~/Library" is the same as /root/Library. If you haven't started Plex manually at least once as root then those directories and files will not be there. Quote Link to comment
smoldersonline Posted May 15, 2011 Share Posted May 15, 2011 Something strange going on here. I copied over the library from my HT-Mac mini. The library (initially) shows up fine in the (browser) Plex Media Manager, except for the movie posters, background fanart shows up OK. I've added the posters manually so this could be a permissions issue (no clue how to solve it ). The library also show up OK in the Plex client (HT-Mac mini), again without the Movie posters. I can start a movie OK, but when I exit the movie, Plex Media Server (on unRAID) stops responding. When I manually (SSH) restart Plex Media Server, it does not pick up the library. After a reboot of the server, all will (temporarily) work again (except for the posters). I think that before I copied over the library, Plex Media Server did not crash when exiting a movie, but I'm not sure. No clue what is going on here. Will also post on the Plex forum. Quote Link to comment
kaiguy Posted May 15, 2011 Share Posted May 15, 2011 Is there any consensus as to what the permissions should be for the Plex folder? I believe when uncompressed it is 1000:1000. Should that make any difference? I guess I'm still having some issues wrapping my head around who should own what in 5.0b6a. I had Plex up and running to some extent. Besides some strange errors in the console, it was scanning my library and playing media on Plex for Mac just fine. I received an error when trying to transcode however. I installed the lib that said it was missing, and transcoding worked, although very choppy and without audio. Has anyone successfully transcoded yet (i.e. played on Plex for ATV2 or iOS)? I think my issue is due to some missing shared libraries for ffmpeg. Quote Link to comment
mazma Posted May 15, 2011 Share Posted May 15, 2011 I have a folder on my cache drive called Plex so I'm guessing the first two lines of your instructions I don't need to do. However the 3rd line errors with no such file or directory for /root/Library/. mv ~/Library/ /mnt/cache/.Plex/ What am I missing? I'm assuming everyone needs to run Plex at least once to manually verify it's working on their system before trying to automate the process. That was for when you're logged in as root and had invoked and started Plex at least once. The "~/Library" is the same as /root/Library. If you haven't started Plex manually at least once as root then those directories and files will not be there. Ah! The only thing I had to change was /flash/config/go to /boot/config/go otherwise I got a directory/file not found error. I checked the go script and it was there. Still, upon reboot Plex isn't starting on its own. Quote Link to comment
mgworek Posted May 16, 2011 Share Posted May 16, 2011 Any luck with yours? I am getting the same errors. Is anyone getting errors on starting PMS? I get: File "/mnt/cache/_custom/plex/PMS/Resources/Python/lib/python2.7/logging/handlers.py", line 77, in emit File "/mnt/cache/_custom/plex/PMS/Resources/Python/lib/python2.7/logging/handlers.py", line 155, in shouldRollover File "/mnt/cache/_custom/plex/PMS/Resources/Python/lib/python2.7/logging/__init__.py", line 719, in format File "/mnt/cache/_custom/plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 43, in format File "/mnt/cache/_custom/plex/PMS/Resources/Python/lib/python2.7/logging/__init__.py", line 464, in format File "/mnt/cache/_custom/plex/PMS/Resources/Python/lib/python2.7/logging/__init__.py", line 324, in getMessage File "/mnt/cache/_custom/plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 144, in __str__ File "/mnt/cache/_custom/plex/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 99, in load File "/root/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 438, in open response = self._open(req, data) File "/root/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 456, in _open '_open', req) File "/root/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 416, in _call_chain result = func(*args) File "/root/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1217, in http_open return self.do_open(httplib.HTTPConnection, req) File "/root/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1192, in do_open raise URLError(err) URLError: <urlopen error [Errno -2] Name or service not known> Logged from file core.py, line 224 But I am still able to get to the web manager. When trying to stream, I get an error also (referring to ffmpeg) - does anyone know anything about this? Quote Link to comment
Stokkes Posted May 17, 2011 Author Share Posted May 17, 2011 Here's the ldd for ffmpeg: linux-gate.so.1 => (0xb780f000) libcurl.so.4 => /usr/lib/libcurl.so.4 (0xb77c8000) libass.so.4 => /usr/lib/libass.so.4 (0xb77b0000) libfreetype.so.6 => not found libfribidi.so.0 => not found libfontconfig.so.1 => not found libiconv.so.2 => not found libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb778f000) libasound.so.2 => not found libmp3lame.so.0 => not found libfaac.so.0 => not found libm.so.6 => /lib/libm.so.6 (0xb7768000) libz.so.1 => /usr/lib/libz.so.1 (0xb7754000) libc.so.6 => /lib/libc.so.6 (0xb75f1000) libpthread.so.0 => /lib/libpthread.so.0 (0xb75d8000) libidn.so.11 => /usr/lib/libidn.so.11 (0xb75a7000) libldap-2.3.so.0 => /usr/lib/libldap-2.3.so.0 (0xb7571000) liblber-2.3.so.0 => /usr/lib/liblber-2.3.so.0 (0xb7565000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb754e000) libresolv.so.2 => /lib/libresolv.so.2 (0xb7537000) librt.so.1 => /lib/librt.so.1 (0xb752e000) libssl.so.0 => /lib/libssl.so.0 (0xb74e5000) libcrypto.so.0 => /lib/libcrypto.so.0 (0xb739d000) libdl.so.2 => /lib/libdl.so.2 (0xb7399000) /lib/ld-linux.so.2 (0xb7810000) libfreetype.so.6 => not found libfontconfig.so.1 => not found libenca.so.0 => not found There are a lot of dependencies missing in 5.0b6 that are required for ffmpeg (and thus, transcoding via Plex for iOS or AppleTV or Roku). Quote Link to comment
Stokkes Posted May 17, 2011 Author Share Posted May 17, 2011 New wiki entry: http://lime-technology.com/wiki/index.php?title=Plex_for_UnRAID_FAQ Currently has entries to fix: 1) Inability to play video files on Plex for iOS 2) Disappearing library on iOS devices Quote Link to comment
darbronnoco Posted May 17, 2011 Share Posted May 17, 2011 Any progress on making it work on 4.x? Hopefully 5 will be ready for prime time soon. Plex will complete my total media bliss! Quote Link to comment
mgworek Posted May 17, 2011 Share Posted May 17, 2011 Had it working yesterday after uninstalling the "C" compiler & development tools. Today, after a reboot, it no longer works. I am getting this error again, even though C is not installed. terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid ./start.sh: line 7: 8936 Aborted ./Plex\ Media\ Server i did not change anything. Thoughts? Quote Link to comment
dirrtyjoe Posted May 17, 2011 Share Posted May 17, 2011 Had it working yesterday after uninstalling the "C" compiler & development tools. Today, after a reboot, it no longer works. I am getting this error again, even though C is not installed. terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid ./start.sh: line 7: 8936 Aborted ./Plex\ Media\ Server i did not change anything. Thoughts? Did you maybe still have the "C" compiler installing on reboot? Quote Link to comment
mgworek Posted May 17, 2011 Share Posted May 17, 2011 I do not believe so. I removed almost everything in my go file to try it and also manually deleted all of the packages that came with C this morning. I rebooted yesterday after disabling C and it all worked. Not sure why a reboot this morning messed it up. I just upgraded to beta6a, I was on beta4. Doing a parity check, it will be a long wait before I can try again. I will let you know what happens when I can try again. Had it working yesterday after uninstalling the "C" compiler & development tools. Today, after a reboot, it no longer works. I am getting this error again, even though C is not installed. terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid ./start.sh: line 7: 8936 Aborted ./Plex\ Media\ Server i did not change anything. Thoughts? Did you maybe still have the "C" compiler installing on reboot? Quote Link to comment
BRiT Posted May 17, 2011 Share Posted May 17, 2011 Here's the ldd for ffmpeg: linux-gate.so.1 => (0xb780f000) libcurl.so.4 => /usr/lib/libcurl.so.4 (0xb77c8000) libass.so.4 => /usr/lib/libass.so.4 (0xb77b0000) libfreetype.so.6 => not found libfribidi.so.0 => not found libfontconfig.so.1 => not found libiconv.so.2 => not found libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb778f000) libasound.so.2 => not found libmp3lame.so.0 => not found libfaac.so.0 => not found libm.so.6 => /lib/libm.so.6 (0xb7768000) libz.so.1 => /usr/lib/libz.so.1 (0xb7754000) libc.so.6 => /lib/libc.so.6 (0xb75f1000) libpthread.so.0 => /lib/libpthread.so.0 (0xb75d8000) libidn.so.11 => /usr/lib/libidn.so.11 (0xb75a7000) libldap-2.3.so.0 => /usr/lib/libldap-2.3.so.0 (0xb7571000) liblber-2.3.so.0 => /usr/lib/liblber-2.3.so.0 (0xb7565000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb754e000) libresolv.so.2 => /lib/libresolv.so.2 (0xb7537000) librt.so.1 => /lib/librt.so.1 (0xb752e000) libssl.so.0 => /lib/libssl.so.0 (0xb74e5000) libcrypto.so.0 => /lib/libcrypto.so.0 (0xb739d000) libdl.so.2 => /lib/libdl.so.2 (0xb7399000) /lib/ld-linux.so.2 (0xb7810000) libfreetype.so.6 => not found libfontconfig.so.1 => not found libenca.so.0 => not found There are a lot of dependencies missing in 5.0b6 that are required for ffmpeg (and thus, transcoding via Plex for iOS or AppleTV or Roku). Actually, a good portion of those are NOT missing, as they are included in the "PLEX" installed folder where you have your start.sh. It adds it's own libraries to the linker path before it starts off the service. To get genuine output from "ldd" you need to do the same. -rwxr-xr-x 1 brit 1000 124367 May 5 20:02 libass.so.4* -rwxr-xr-x 1 brit 1000 73205 May 5 20:02 libavahi-client.so.3* -rwxr-xr-x 1 brit 1000 55429 May 5 20:02 libavahi-common.so.3* -rwxr-xr-x 1 brit 1000 6080560 May 5 20:02 libavcodec.so.52* -rwxr-xr-x 1 brit 1000 1040592 May 5 20:02 libavformat.so.52* -rwxr-xr-x 1 brit 1000 116112 May 5 20:02 libavutil.so.50* -rwxr-xr-x 1 brit 1000 141573 May 5 20:02 libboost_filesystem.so.1.46.1* -rwxr-xr-x 1 brit 1000 263374 May 5 20:02 libboost_iostreams.so.1.46.1* -rwxr-xr-x 1 brit 1000 433534 May 5 20:02 libboost_program_options.so.1.46.1* -rwxr-xr-x 1 brit 1000 1079412 May 5 20:02 libboost_regex.so.1.46.1* -rwxr-xr-x 1 brit 1000 98211 May 5 20:02 libboost_signals.so.1.46.1* -rwxr-xr-x 1 brit 1000 16293 May 5 20:02 libboost_system.so.1.46.1* -rwxr-xr-x 1 brit 1000 121430 May 5 20:02 libboost_thread.so.1.46.1* -rwxr-xr-x 1 brit 1000 2413759 May 5 20:02 libcurl.so.4* -rwxr-xr-x 1 brit 1000 337235 May 5 20:02 libdbus-1.so.3* -rwxr-xr-x 1 brit 1000 23415 May 5 20:02 libepeg.so.0* -rwxr-xr-x 1 brit 1000 209907 May 5 20:02 libexpat.so.1* -rwxr-xr-x 1 brit 1000 99643 May 5 20:02 libexslt.so.0* -rwxr-xr-x 1 brit 1000 89664 May 5 20:02 libfaac.so.0* -rwxr-xr-x 1 brit 1000 245739 May 5 20:02 libfontconfig.so.1* -rwxr-xr-x 1 brit 1000 4649796 May 5 20:02 libfreeimage.so.3* -rwxr-xr-x 1 brit 1000 637624 May 5 20:02 libfreetype.so.6* -rwxr-xr-x 1 brit 1000 92741 May 5 20:02 libfribidi.so.0* -rwxr-xr-x 1 brit 1000 973644 May 5 20:02 libiconv.so.2* -rwxr-xr-x 1 brit 1000 297847 May 5 20:02 libjpeg.so.8* -rwxr-xr-x 1 brit 1000 33936 May 5 20:02 libminiupnpc.so.5* -rwxr-xr-x 1 brit 1000 327522 May 5 20:02 libmp3lame.so.0* -rwxr-xr-x 1 brit 1000 9188 May 5 20:02 libnatpmp.so.1* -rwxr-xr-x 1 brit 1000 4425772 May 5 20:02 libpython2.7.so.1.0* -rwxr-xr-x 1 brit 1000 299141 May 5 20:02 libsoci_core-gcc-3_0-3.0.0.so* -rwxr-xr-x 1 brit 1000 108624 May 5 20:02 libsoci_sqlite3-gcc-3_0-3.0.0.so* -rwxr-xr-x 1 brit 1000 693759 May 5 20:02 libsqlite3.so.0* -rwxr-xr-x 1 brit 1000 252632 May 5 20:02 libswscale.so.0* -rwxr-xr-x 1 brit 1000 1645425 May 5 20:02 libxml2.so.2* -rwxr-xr-x 1 brit 1000 278879 May 5 20:02 libxslt.so.1* -rwxr-xr-x 1 brit 1000 101724 May 5 20:02 libz.so.1* Quote Link to comment
kaiguy Posted May 18, 2011 Share Posted May 18, 2011 I'm no Linux/unRAID guru, but I have been able to tackle pretty much any unRAID-related project I've tried. I cannot get this to run stable whatsoever. I feel like as soon as I'm getting close, everything on my server crashes (web GUI, telnet, etc.). And my server is normally rock-solid. Sigh. Quote Link to comment
dirrtyjoe Posted May 18, 2011 Share Posted May 18, 2011 I'm in the same boat.... as soon as I think I've got things working, something else breaks... Does anyone have a guide that has worked for them, from start to finish? I can get the Web Manager up (despite some errors on start) but then transcoding doesn't work. I get transcoding working and I reboot to ensure it holds, and it's all broken again... **sigh** is right. Quote Link to comment
Joe L. Posted May 18, 2011 Share Posted May 18, 2011 I'm no Linux/unRAID guru, but I have been able to tackle pretty much any unRAID-related project I've tried. I cannot get this to run stable whatsoever. I feel like as soon as I'm getting close, everything on my server crashes (web GUI, telnet, etc.). And my server is normally rock-solid. Sigh. That sounds like you are running out of memory. (lots of un-related issues with various programs) Are you sure you are not writing files to the in-memory file system (and filling it). That would have exactly the symptoms you describe. Joe L. Quote Link to comment
kaiguy Posted May 18, 2011 Share Posted May 18, 2011 That sounds like you are running out of memory. (lots of un-related issues with various programs) Are you sure you are not writing files to the in-memory file system (and filling it). That would have exactly the symptoms you describe. Joe L. Thanks for your reply, Joe. Yeah, I'm fairly certain it's not writing to memory, as I followed BRiT's instructions for the symlinks. I am running sabnzbd and sickbeard, so perhaps I'll disable those and give it a try. I am running 4 GB of RAM, however, and Plex Media Server for Linux only requires 256MB. This process has actually been very frustrating, as my server is located in a position where it can only run headless. When Plex crashes the webgui, telnet, etc., there's nothing I can do to gracefully shut the array down (despite my being able to use the power button with 4.7. Not sure why it doesn't work with 5.0b6a). So I've had quite a few parity checks just due to Plex alone. Frustrating, to say the least! Quote Link to comment
speedkills Posted May 18, 2011 Share Posted May 18, 2011 I'm bummed to hear that, shutting down has never worked well for me on my unRaid box but I had hoped the issue would be fixed with 5.0. Quote Link to comment
Chris Pollard Posted May 18, 2011 Share Posted May 18, 2011 I can't make it run stable either, Plex Process is dying. I'm giving up and sticking with the OS-X PMS for now. Quote Link to comment
mrklaw Posted May 18, 2011 Share Posted May 18, 2011 is this something that you think time will solve? PMS on linux is still quite a new project so hopefully it'll mature. I'm still in the planning stages for my server, I'm leaning towards the HP Proliant microserver, and unRAID. But eventually I want to migrate PMS to the server, and replace my mini with appleTVs. (I have my fingers crossed they'll bring out a 1080p version that doesn't need transoding for) Quote Link to comment
Chris Pollard Posted May 18, 2011 Share Posted May 18, 2011 This is the first release so I'm sure it will improve. Quote Link to comment
jheimark Posted May 18, 2011 Share Posted May 18, 2011 ...I'm giving up and sticking with the OS-X PMS for now. Unfortunately, it looks like I am going to be doing the exact same for the same reasons as everyone here. It seems like the slackware-support is designed for just that, slackware. Not for an Unraid system. Hopefully when 5.0 is finished, we can figure out a way to get this running on our systems... Question for those who know more about Plex than I: will really "running" the PMS require I buy a dedicated video card/significantly upgrade my CPU? When I went with unraid, I kind of decided to separate media hosting (in my unraid nas) and media playing/compiling (on whatever is pulling from it). It seems like unraid does so well at the first piece (hosting/serving) that we all want to add lots of the second piece (processing/delivering stream) to it. I am extremely new to the community and wonder if people have had this discussion somewhere (I couldn't find it in a cursory search). Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.