Plex Media Server Notes

Installation

Did this in a FreeBSD jail for the FreeNAS plugin sucks.

# Get more current updates to PMS
mkdir -p /usr/local/etc/pkg/repos
touch /usr/local/etc/pkg/repos/FreeBSD.conf

Add this to FreeBSD.conf

FreeBSD: {
    url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}
# Update system and install Plex
pkg update -f
pkg upgrade -f
pkg install plexmediaserver-plexpass

# Installed here (if you have a PlexPass)
/usr/local/share/plexmediaserver-plexpass

# Enable at boot
sysrc plexmediaserver_plexpass_enable=YES

Migration

Data is kept here

# FreeBSD
/usr/local/plexdata-plexpass/Plex Media Server

# Plex plugin
/var/db/plexdata/Plex Media Server

Sync that stuff to the new server before you start the Plex Daemon:

service plexmediaserver_plexpass start

Then

  • Log out and log back in
  • Clean Bundles, Empty Trash, Optimize Database
  • Make sure the server’s accessible outside the network
  • Make sure Plex comes up when you reboot

Downgrading

Had to downgrade from v1.18.4.2171 to the last version that worked v1.17.0.1709. This was because I’d keep seeing the wonderful “The transcoder exited due to an error” message only on my Samsung TV. Nothing in the logs (except for the fact that the newer version required a /home/plex/transcode which didn’t exist; creating this folder didn’t help.) Gave up trying to solve the problem.

# Stop Plex
service plexmediaserver_plexpass stop

# Remove latest version
pkg remove plexmediaserver-plexpass

# Add the last one that works
pkg add /var/cache/pkg/plexmediaserver-plexpass-1.17.0.1709.txz

# Start Plex
service plexmediaserver_plexpass start

References