Life of a Geek Admin

The Daily adventures of a true geek administrator

Life of a Geek Admin - The Daily adventures of a true geek administrator

Plex Media Server Startup soci_error

A good friend of mine recently ran into an issue where Plex Media Server running on Fedora  would not start up. After multiple times trying to start\stop it, deleted pid files, removing subsys lock files, discovered that /var was full, so it couldn’t write something during startup which was causing it not to start.

Receiving an error similar to this:

Starting PlexMediaServer: terminate called after throwing an instance of 'soci::soci_error'

Searching Google wasn’t much help, just a bunch of guys saying to optimize sqlite and\or reinstall Plex.

Started looking at the filesystems and found that /var was filled up.  This was causd by another process filling up the space. After freeing up space in /var/log it and allowed Plex to start no problem.

How to install Plex Media Server 0.9.6.6 on CentOS / Fedora / RHEL

In an earlier post we covered installing Plex Media Server 0.9.6.3 on a Windows 7 system. In this post we’ll cover how to install and configure on a Linux system, CentOS 6.2 to be exact, but this process can be used on Fedora / and RHEL as well.

First make sure you meet the system requirements.

System Requirements:

  • 1.6 GHz processor (2.4 GHz dual core for 1080p transcoding).
  • 256 MB RAM
  • Gigabit Ethernet recommended for HD streaming.
  • N.B. Flash and Silverlight video playback is not supported on Linux.

Installation is very simple. It is just a matter of adding the repo to the server and importing the key.

Create the plex.repo definition in /etc/yum.repos.d with the following contents.

[PlexRepo]
name=PlexRepo
baseurl=http://plexapp.com/rpmrepo/release/$basearch/
enabled=1
gpgcheck=1

Import the GPG key

$ rpm --import http://plexapp.com/plex_pub_key.pub

Then install it with this command:

$ yum install plexmediaserver

Now start the Plex Media Server

$ /etc/init.d/plexmediaserver start

Once the startup is completed open a browser and goto http://localhost (or systems ip):32400/manage/index.html

Click on any of the Add Media to you Library icons to add your content for the devices to see. Change preferences from the many options available.

Look for future posts on customizing Plex Media Server and adding DLNA profiles for some of the many devices that can connect.

Currently Plex Media Server runs off older init scripts. there is a post in the Plex forums with a way to use the newer systemd here http://forums.plexapp.com/index.php/topic/43464-clean-systemd-scripts-for-fedora-17/

 

Plex Media Server v0.9.6.6 / Plex v0.9.5.4 / Plex for iOS v2.5 Released

Great News !! Plex Media Server v0.9.6.6 / Plex v0.9.5.4 / Plex for iOS v2.5 has been released and here is the laundry list. You can download it here http://wiki.plexapp.com/index.php/Downloads and look for a future post on installing and configuring on Linux as well as some custom DLNA configs!

If you’ve experienced an issue with TV scans missing posters or other artwork, somewhat randomly, this has been fixed; we’ve been experiencing increasingly heavy traffic with all the new users, so we had to bulk up our infrastructure!
Movie matching should be more accurate and much faster; we now have a fully automated system which improves the agent matching over time based on the anonymous data sent back. Pretty cool, right?
We’ve pushed quite a few updates to the agents to fix non-ASCII poster/subtitle filename issues on Linux, metadata for personal show scanning, and a number of other issues.
We released a new version of Plex for Android, with fixes and a few new features. The update for Google TV is coming shortly!
We’re in the process of pushing a new release of Plex for iOS today to Apple, should be available in a week or so. Fixes and goodies abound, and to be nice, here’s a full list of changes you have to look forward to:
NEW: Home screen sections can be re-ordered or hidden. Yay!
NEW: Background art while browsing. Pretty!
NEW: Easier to read list view when browsing by folder. Useful!
FIX: High bitrate content will correctly transcode instead of attempting Direct Play (thanks, majortom!)
FIX: Media deletion & progress reporting works when using myPlex without publishing servers.
FIX: Network addresses are resolved earlier to make playing media on remote clients more reliable.
FIX: Easier method for adding friends.
FIX: Crash when attempting to set a user rating for an item with no community rating.
FIX: Crash marking a show (un)watched.
FIX: A few layout & graphical issues.
We also have a new Plex Media Server release for you, with a number of improvements, which can be downloaded from the usual place (and shortly from auto-update):

NEW: Added (advanced) preference for specifying location of Aperture/iPhone XML paths. The preference is ApertureLibraryXmlPath for Aperture and iPhotoLibraryXmlPath for iPhoto. Yes, we’re going to have an easy way to get at these advanced preferences soon.
NEW: (Linux) Allow syslog logging via environment variable PLEX_MEDIA_SERVER_USE_SYSLOG. This has been requested for ages.
NEW: (API) Massive performance improvement for players that ask for paged data (e.g. for Roku). If you have large library sections, you’ll notice a big change; with 1000 items, the page requests are 6 times faster.
NEW: (API) Added /library/sections/X/{sorts|filters} endpoints for advanced filtering.
FIX: Sidecar (e.g. SRT) subtitle files work again. Sorry, that was a bad regression.
FIX: (Windows) Upload speeds from the server were artificially slow in some cases. We’d gotten sporadic reports over the months that upload speeds seemed limited, and we finally managed to track down the issue. The upload speed will now max out your connection, and will take much less CPU as well.
FIX: A crash when scanning for plug-ins when permissions are wrong.
FIX: (Mac) Fix some Aperture photos not displaying properly.
FIX: Library timeline could generate blank items occasionally.
FIX: Web interface didn’t show added and deleted items properly when scanning.
FIX: Don’t pass back bogus blank content ratings.
FIX: (Linux) DLNA icon and server name were missing on some platforms.
FIX: When overwriting plug-ins, files that don’t exist anymore are deleted.
FIX: Handle 302 as well as 301 redirects in the image transcoder.
FIX: When scanning files that had already been scanned, they didn’t end up with thumbnails.
FIX: Certain image formats (TIFF, BMP, PCX) didn’t get thumb nailed.
FIX: Fixed sleep prevention, OS X (and possibly Linux) should sleep now.
FIX: (Windows) Fixed a crash on start.
FIX: (Synology) DLNA to PS3 wasn’t working.
FIX: (DLNA) Memory leak in DLNA server process.
FIX: (DLNA) Fixed PS3 audio dropouts by transcoding to stereo for now in the profile.
FIX: (DLNA) Fixed evaluation of limitations.
FIX: (DLNA) Fixed AAC audio not playing to PS3.
FIX: (DLNA) Build-in profile now supports Samsung SmartTVs (thanks, holzi!)
We also have some fixes in a new release of the Plex Laika desktop client:
FIX: Update RTMP to 2.4
FIX: Fix for connectivity issues when PMS isn’t running locally (thanks to elwertk).
FIX: Playback of interlaced H.264 content (MBAFF) was broken (thanks to elwertk).
FIX: Use the same user agent as earlier in Plex/Nine.
FIX: Add the Plex language and version headers.
FIX: When forced transcode was enabled, playback could fail for local files.
FIX: Support for chained indirects in channels.

Your Own Media Server using Plex Media Server

Recently I found a need to add the ability for my Roku XD box to be able to access my home movies and other media on my NAS, also looking for an all in one solution to stream to Asus Transformer TF101, iPod Touch, Sony Bravia TV and iPhone. A good co-worker recommended Plex Media Server which does all the above and more.

Plex Media Server is the solution for local and online media. According to the site:

” Plex Media Server seamlessly connects your Plex clients with all of your local and online media. The combination of centralized library management, streaming of online content, and powerful transcoding functionality provides an unrivaled level of flexibility and ease of use.
Plex Media Server runs on your Mac, PC, or compatible NAS device and serves your media to all of your Plex clients including Plex-enabled mobile devices and 2011 LG Smart TVs.”

Plex uses apps (iOS and Android) to connect mobile devices, channel for Roku and DNLA settings to connect to PS3, xBox and TV’s. There are also forums where users have submitted working DNLA configurations for other devices.

Things look good and sound good to me, so first need to download Plex Media Server from http://wiki.plexapp.com/index.php/Downloads and install Windows or Fedora. At the time of this posting Plex Media Server 0.9.6.4 was available. !!!Update!!!! Plex Media Server 0.9.6.5 has been released. Download it from here.

For my use it will be on a Windows 7 Professional.

Once the file has been downloaded just double-click and accept the defaults for Windows installation. For Fedora add the repo and use yum to install the package.

Create the file /etc/yum.repos.d/plex.repo and insert the following contents.

[PlexRepo]
name=PlexRepo
baseurl=http://plexapp.com/rpmrepo/release/$basearch/
enabled=1
gpgcheck=1

Import the Plex GPG key:

$ rpm --import http://plexapp.com/plex_pub_key.pub

Then install it with this command:

$ yum install plexmediaserver

After the installation the Plex Media server will be running. Next we need to define a folder on the NAS that is attached to the Windows 7 system. The steps are the same for adding to the Linux system as well. Open the Media Manager interface with Mozilla FireFox, Google Chrome or Opera, Internet Explorer is not supported.

To open the Plex interface click on the plex icon in the toolbar and it will open your default browser and you will be introduced to the Plex interface. If you are using Linux open a browser and goto http://localhost:32400/manage/index.html

Now we can add movies or home movies. Click on the link and a box will appear. Click Add and browse to the location on your NAS or hard drive to the location of the movies. Once done click Add Section and Plex will scan the drive and add what it finds.

At this point you can add photos, music, TV shows and other movies. Now you have content ready for you to attach devices you have.

Attaching Roku XD

Adding access to the Roku to Plex Media server is as easy as using the Add Channel feature on the Roku and add Plex. When you start the Plex channel on your Roku, it will try to discover your Plex Media Server(s) automatically. Unfortunately, discovery may not work, depending on your network. You can add the server manually by going to Preferences -> Plex Media Servers -> Add Server Manually. On that screen, enter the IP address of the Plex Media Server. Verify that the server is running and you have the right IP address by opening a browser and going to http://[ip_address]:32400/. If it’s working, it’ll show some XML. If you get an error message from your browser (e.g. server not responding), then either your Plex Media Server isn’t running, or you have the wrong IP address. Once it’s working, enter that IP address into your Roku.

Asus Transformer

To attach the Asus Transformer to Plex Media Server you just have to purchase the app from Google Play and install it. Just as the Roku open the app and it will attempt to find your Plex server and if not add it the same way.

Sony Bravia

As for the Sony Bravia TV I am still working on creating a DNLA profile for the TV to discover the server. Newer Sony Bravia TV’s (2010 – 2012) have profiles that work, but since mine is a 2009 it is taking sometime to get a working profile. With the help of the Plex forums I don’t expect this to be a big hurdle.

I hope this will help you to look at another way to deliver your content to your connected home.

Switch to our mobile site