(Tutorial) How To Install Plex in a FreeNAS 11.2 Jail

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
Just did a fresh install of FN 11 U2. Don't know why but I can't start plexmediaserver in my jail. service plexmediaserver start but running service plexmediaserver status shows it's not running. I tried rebooting the jail and freenas box without any luck. The install was working until I signed out of the server. I tried installing in a new jail from scratch and also can't get it running from the command line. service plexmediaserver onstart also doesn't work. My other jails are functioning.
 
Joined
Apr 9, 2015
Messages
1,258
May want to check and make sure it is installed. The command while in the jail would be:

pkg info
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
May want to check and make sure it is installed. The command while in the jail would be:

pkg info
Plexmediaserver is installed and also is working but when I type service plexmediaserver status it says it's not running. Weird do you think it's a bug with FN 11U2?
 

nemisisak

Explorer
Joined
Jun 19, 2015
Messages
69
Plexmediaserver is installed and also is working but when I type service plexmediaserver status it says it's not running. Weird do you think it's a bug with FN 11U2?
Basic question but just in case... Are you running the command when you ssh in the actual Jail? If not the commands wont work.
 

scottmaverick

Dabbler
Joined
Aug 24, 2016
Messages
24
I can no longer update my plex media server after 1.7.5, here is the problem.

root@Plex:/ # pkg update
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sq
lite) failed: No such file or directory
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/meta.txz: No address record
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/packagesite.txz: No address
record
Unable to update repository FreeBSD
Error updating repositories!
root@Plex:/ #

Any suggestions?
 

nemisisak

Explorer
Joined
Jun 19, 2015
Messages
69
I can no longer update my plex media server after 1.7.5, here is the problem.

root@Plex:/ # pkg update
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sq
lite) failed: No such file or directory
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/meta.txz: No address record
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/packagesite.txz: No address
record
Unable to update repository FreeBSD
Error updating repositories!
root@Plex:/ #

Any suggestions?
service plexmediaserver stop
pkg update && pkg upgrade multimedia/plexmediaserver
service plexmediaserver start
 
Joined
Apr 9, 2015
Messages
1,258
It's probably an old jail. If it was installed in version 9.10 then it will not update using the package system. The one I have installed from 9.3 is on version 1.3.3 it still works fine just a few features are different. Once FreeNAS 11.1 is out and the jail system switches I plan to redo all my jails and be on the latest version. The alternative is to update using an external script like the one that is referenced in this resource https://forums.freenas.org/index.ph...-radarr-jackett-and-transmission-with-vpn.58/
 

scottmaverick

Dabbler
Joined
Aug 24, 2016
Messages
24
service plexmediaserver stop
pkg update && pkg upgrade multimedia/plexmediaserver
service plexmediaserver start

root@Plex:/ # service plexmediaserver stop
plexmediaserver not running? (check /var/run/plex/plex.pid).
root@Plex:/ # pkg update && pkg upgrade multimedia/plexmediaserver
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sq
lite) failed: No such file or directory
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/meta.txz: No address record
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/packagesite.txz: No address
record
Unable to update repository FreeBSD
Error updating repositories!
root@Plex:/ #

It's probably an old jail. If it was installed in version 9.10 then it will not update using the package system. The one I have installed from 9.3 is on version 1.3.3 it still works fine just a few features are different. Once FreeNAS 11.1 is out and the jail system switches I plan to redo all my jails and be on the latest version. The alternative is to update using an external script like the one that is referenced in this resource https://forums.freenas.org/index.ph...-radarr-jackett-and-transmission-with-vpn.58/

I did create it in 9.10, when did they stop updating using the package system because I've only had this issue since the beginning of August? It looks like 1.8.1 is available to install via package.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
Basic question but just in case... Are you running the command when you ssh in the actual Jail? If not the commands wont work.
Yes I'm running the command in the plexmediaserver jail.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
when did they stop updating using the package system
They haven't it's still working just fine. You likely have a networking problem and should start a new thread to troubleshoot it.
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
hmm .. I just tried updating to latest 1.8 and packages updated without any conflict etc

I did the:

service plexmediaserver stop
pkg update && pkg upgrade multimedia/plexmediaserver
service plexmediaserver start

.. but plex page still says 1.7.5 and that I need an update. I installed from scratch (not using plugins) and updated to 1.7.5 (this was before the plugins got updated) and has and still is working just fine. I know if you manually updated the plugin the web page wouldn't show any versions past what the actual plugin version was at ..

whats the command to just check just the plex version installed? ..

Code:
root@Plex:/ # service plexmediaserver stop									 
Stopping plexmediaserver.													   
Waiting for PIDS: 96363, 96363.												 
Cleaning up leftover child processes.										   
Waiting for PIDS: 96372 96371 96370 96364, 96372.							   
root@Plex:/ # pkg update && pkg upgrade multimedia/plexmediaserver			 
Updating FreeBSD repository catalogue...										
FreeBSD repository is up to date.											   
All repositories are up to date.												
Updating FreeBSD repository catalogue...										
FreeBSD repository is up to date.											   
All repositories are up to date.												
Checking integrity... done (0 conflicting)									 
Your packages are up to date.												   
root@Plex:/ # service plexmediaserver start									 
Starting plexmediaserver.													   
root@Plex:/ #					 
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

nemisisak

Explorer
Joined
Jun 19, 2015
Messages
69
hmm .. I just tried updating to latest 1.8 and packages updated without any conflict etc

I did the:

service plexmediaserver stop
pkg update && pkg upgrade multimedia/plexmediaserver
service plexmediaserver start

.. but plex page still says 1.7.5 and that I need an update. I installed from scratch (not using plugins) and updated to 1.7.5 (this was before the plugins got updated) and has and still is working just fine. I know if you manually updated the plugin the web page wouldn't show any versions past what the actual plugin version was at ..

whats the command to just check just the plex version installed? ..

Code:
root@Plex:/ # service plexmediaserver stop									
Stopping plexmediaserver.													  
Waiting for PIDS: 96363, 96363.												
Cleaning up leftover child processes.										  
Waiting for PIDS: 96372 96371 96370 96364, 96372.							  
root@Plex:/ # pkg update && pkg upgrade multimedia/plexmediaserver			
Updating FreeBSD repository catalogue...										
FreeBSD repository is up to date.											  
All repositories are up to date.												
Updating FreeBSD repository catalogue...										
FreeBSD repository is up to date.											  
All repositories are up to date.												
Checking integrity... done (0 conflicting)									
Your packages are up to date.												  
root@Plex:/ # service plexmediaserver start									
Starting plexmediaserver.													  
root@Plex:/ #					

This is to do with the repository. This has never really been clarified very well but once the update has been released it is ported and uploaded to freshports.org. However just because the update is up there doesn't mean the repository has been updated.

In this case I tried updating plex yesterday but even though the port was up the repository didnt update the port.

You can see all packages by using the below command and this shows the version.
pkg info

Anyhow plex is now updatable so running your previously stated commands will update it.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
The port was just updated yesterday. If you go to freshports.org you can set a notification that will email you when a port gets updated.
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
Thanks guys! .. I just jumped the gun a bit. Updated now
 

Amsoil_Jim

Contributor
Joined
Feb 22, 2016
Messages
175
I have the plexpass version installed and the latest version is 1.8.2.4209 on freshports. my version is 1.8.1.4139.
I ran "pkg update && pkg upgrade multimedia/plexmediaserver-plexpass"
Code:
Updating FreeBSD repository catalogue...
[PlexMediaServer-Plexpass] Fetching meta.txz: 100%	944 B   0.9kB/s	00:01	
[PlexMediaServer-Plexpass] Fetching packagesite.txz: 100%	6 MiB   3.1MB/s	00:02	
Processing entries: 100%
FreeBSD repository update completed. 26895 packages processed.
All repositories are up to date.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
Your packages are up to date.

Code:
root@PlexMediaServer-Plexpass:/ # pkg info
apr-1.5.2.1.5.4_2			  Apache Portability Library
ca_root_nss-3.31			   Root certificate bundle from the Mozilla Project
compat10x-amd64-10.3.1003000.20170608 Convenience package to install the compat10x libraries
compat9x-amd64-9.3.903000.20170608 Convenience package to install the compat9x libraries
curl-7.54.1					Command line tool and library for transferring data with URLs
cvsps-2.1_2					Create patchset information from CVS
db5-5.3.28_6				   Oracle Berkeley DB, revision 5.3
expat-2.2.0_1				  XML 1.0 parser written in C
gdbm-1.13					  GNU database manager
gettext-runtime-0.19.8.1_1	 GNU gettext runtime libraries and programs
git-2.13.1_1				   Distributed source code management tool
indexinfo-0.2.6				Utility to regenerate the GNU info page index
libffi-3.2.1				   Foreign Function Interface
libnghttp2-1.23.1			  HTTP/2.0 C Library
p5-Authen-SASL-2.16_1		  Perl5 module for SASL authentication
p5-Digest-HMAC-1.03_1		  Perl5 interface to HMAC Message-Digest Algorithms
p5-Error-0.17024			   Error/exception handling in object-oriented programming style
p5-GSSAPI-0.28_1			   Perl extension providing access to the GSSAPIv2 library
pcre-8.40					  Perl Compatible Regular Expressions library
perl5-5.24.1_1				 Practical Extraction and Report Language
pkg-1.10.1					 Package manager
plexmediaserver-plexpass-1.8.1.4139 Plex Media Server component
python27-2.7.13_4			  Interpreted object-oriented programming language
readline-6.3.8_1			   Library for editing command lines as they are typed
serf-1.3.9_1				   Serf HTTP client library
sqlite3-3.19.3				 SQL database engine in a C library
subversion-1.9.5			   Version control system

So am I missing something here on getting it to update to the latest version?
I have updated this several times before like this with no problems.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Good lord be patient. Plex just released the latest version yesterday, give it some time for the port to be updated. If you're that pressed for the update go to freshports.org and set a notification for when the port gets updated, which it already has.
 
Joined
Apr 9, 2015
Messages
1,258
Yep, gotta give it time. It can take up to two weeks for the pkg to be updated which is about the same amount of time for the PMS docker container as well as the android apps.

If you absolutely positively, like OCD or ADHD have to be on the latest version then check the resources for plex and grab the script so you can update from the Plex site directly.
 

Amsoil_Jim

Contributor
Joined
Feb 22, 2016
Messages
175
Good lord be patient. Plex just released the latest version yesterday, give it some time for the port to be updated. If you're that pressed for the update go to freshports.org and set a notification for when the port gets updated, which it already has.
Sorry, I thought since it was showing the updated version on freshports.org that it had already been updated, hence the question.
Screen Shot 2017-09-02 at 9.24.48 AM.png


Just because it shows the updated version on freshports.org doesn't mean that it's actually available for downloading/updating?

You can chill out... All that happened was I logged into my plex server and there was the "update available bar at the top, so I went to feshports.org to see it. The new version was on there ,and as the image shows the new version, I attempted the update...
 

picklefish

Explorer
Joined
Mar 13, 2016
Messages
62
I am downgrading to 1.7.5 because 1.8.1 has a remote buffering problem. I was using plugins before but now I'm setting up a jail. I am having trouble finding a way to install the previous version.

EDIT:I figured out that I need to use the package portdowngrade to downgrade multimedia/plexmediaserver but it is throwing an error when I try. I will post here when I figure out exactly how to downgrade after installing.

Edit2: Steps to install old version. v1.7.6

stop old one
status plexmediaserver stop

download tar
wget https://downloads.plex.tv/plex-media-server/1.7.6.4058-8fa494d15/PlexMediaServer-1.7.6.4058-8fa494d15-freebsd-amd64.tar.bz2
extract
tar -xvf PlexMediaServer-1.7.6.4058-8fa494d15-freebsd-amd64.tar.bz2
go into extracted folder
cd PlexMediaServer-1.7.6.4058-8fa494d15-freebsd-amd64

backup or remove the old folder and copy the contents of the tar into the install folder
mv /usr/local/share/plexmediaserver /usr/local/share/plexmediaserver.bak
mkdir /usr/local/share/plexmediaserver
cp * /usr/local/share/plexmediaserver

Don't know why you have to do these but you do
ln -s /usr/local/share/plexmediaserver/Plex\ Media\ Server /usr/local/share/plexmediaserver/Plex_Media_Server
ln -s /usr/local/share/plexmediaserver/libpython2.7.so.1 /usr/local/share/plexmediaserver/libpython2.7.so

auto-start and fix support path
edit /etc/rc.conf
add lines
plexmediaserver_enable="YES"
and
plexmediaserver_support_path="/usr/local/plexdata"

make sure your old settings cache etc are in /usr/local/plexdata/Plex Media Server

start service
status plexmediaserver start
check that it started
status plexmediaserver status

hope this helps
 
Last edited:
Top