Plex Jail Error when updating via script.

Status
Not open for further replies.

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
Been running plex via jail instead of plugin for over two years now and usually update via this script.

Code:
./PMS_Updater.sh -u "plex credentials" -p "password" -a


Which will grab the latest port from:
https://www.freshports.org/multimedia/plexmediaserver-plexpass/

Yet today it get this:
plex.PNG
 
Last edited:

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
Can you provide a bit more information. What version of FreeNAS are you using? Is your jail an iocage one or warden?

Did you change anything before this started happening?
 

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
Can you provide a bit more information. What version of FreeNAS are you using? Is your jail an iocage one or warden?

Did you change anything before this started happening?

11.1U4

Warden have yet to switch over to iocages.

With the exception of removing a separate jail (plexpy) no.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
And that's what happens when you update via a hack. Dependencies change and your stuck with a non working binary.

Seriously, how hard is it to wait a couple days for the package to be updated?
 

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
And that's what happens when you update via a hack. Dependencies change and your stuck with a non working binary.

Seriously, how hard is it to wait a couple days for the package to be updated?
What are my options?
 
Joined
Jul 10, 2016
Messages
521
I sure hope that isn't your real password...
 

Jailer

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

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
And next time take a snapshot before you do an upgrade and you won't have to worry about these things.
 

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
pkg install -f plexmediaserver and hope that it fixes it.

And next time take a snapshot before you do an upgrade and you won't have to worry about these things.

Code:
[root@freenas ~]# pkg install -f plexmediaserver								
Updating local repository catalogue...										 
pkg: Repository local load error: access repo file(/var/db/pkg/repo-local.sqlite
) failed: No such file or directory											 
pkg: file:///usr/ports/packages/meta.txz: No such file or directory			 
repository local has no meta file, using default settings					   
pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory	 
Unable to update repository local											   
Error updating repositories!													
[root@freenas ~]#																   


No dice even after I rolledback to another plex snapshot.

My best bet to make an iocage and transfer over my plex db? (I still have fill access over smb and ftp)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
AstroZombie said:
My best bet to make an iocage and transfer over my plex db? (I still have fill access over smb and ftp)

Looks like this is your chance to start fresh.

Make a separate dataset and put your plex library data in it, then map that into the iocage jail.

I'm half way there myself and can now start either the warden or iocage jail on that same dataset (obviously not both at the same time or I'm asking for disaster).... but I noticed the iocage seems to respond slower when scrubbing through video, so I'm holding back on a full switch.
 

Jailer

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

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
Ok so I think this is right:

Code:
echo '{"pkgs":["plexmediaserver-plexpass","ca_root_nss"]}' > /tmp/pkg.json
iocage create -n "plex" -p /tmp/pkg.json -r 11.1-RELEASE ip4_addr="192.168.0.7/255.255.255.0" defaultrouter="192.168.0.1" vnet="on" allow_raw_sockets="1" boot="on" #creates jail?
rm /tmp/pkg.json
iocage fstab -a plex /mnt/mainvolume/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server rw 0 0 #mounts plex db from warden?
iocage fstab -a plex /mnt/mainvolume/maindataset/ nullfs rw 0 0 #mounts media dataset countaing my collection?
iocage exec plex chown -R plex:plex /config
iocage exec plex sysrc "plexmediaserver_plexpass_enable=YES"
iocage exec plex sysrc plexmediaserver_plexpass_support_path="/config"
iocage exec plex service plexmediaserver_plexpass start


Do i run this in the old UI or new UI?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Old or better yet via SSH.
 

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
Old or better yet via SSH.
Code:
[root@freenas ~]# iocage fstab -a plex /mnt/mainvolume/maindataset/ nullfs rw 0
0																			   
Please specify a valid fstab entry!											 
																			   
Example:																		
  /the/source /dest FSTYPE FSOPTIONS FSDUMP FSPASS							 
[root@freenas ~]# iocage exec plex chown -R plex:plex /config				   
chown: plex: illegal group name												 
True																			
[root@freenas ~]# iocage exec plex sysrc "plexmediaserver_plexpass_enable=YES" 
plexmediaserver_plexpass_enable: YES -> YES									 
																			   
[root@freenas ~]# iocage exec plex sysrc plexmediaserver_plexpass_support_path="
/config"																		
plexmediaserver_plexpass_support_path: /config -> /config					   
																			   
[root@freenas ~]# iocage exec plex service plexmediaserver_plexpass start	   
plexmediaserver_plexpass does not exist in /etc/rc.d or the local startup	   
directories (/usr/local/etc/rc.d), or is not executable						 
True					   
 
Last edited:
Status
Not open for further replies.
Top