Resource icon

FN11.3 iocage jails - Plex, Tautulli, Sonarr, Radarr, Lidarr, Jackett, Transmission, Organizr

TerranPhil

Dabbler
Joined
Jan 17, 2015
Messages
19
I updated from 9.10 today. Trying to follow this guide, but it assumes too much, or requires understanding I do not have. I'm trying to follow the directions for plex, but when i get to this step
iocage fstab -a plex /mnt/tank1/apps/plex /config nullfs rw 0 0
I am getting error Destination: /mnt/main/iocage/jails/plex/root/config does not exist!
My pool is named main not tank1, so I subbed that in (may be helpful to call that out in the guide). I created dataset apps and dataset plex inside that as is assumed with this, so not sure what I'm missing. I need some ELI5 instructions here, which these are not. Any help would be greatly appreciated.

Did you make the "/config" directory in the plex jail? That command is "iocage exec plex mkdir -p /config".
 

Stingray88

Dabbler
Joined
Aug 19, 2015
Messages
38
Use a private tracker which doesn't allow RAR'ed content ;)

I've been on the same private tracker for over ten years. I've got 10TB downloaded, and over 70TB uploaded. I'm not switching to a new tracker...
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I think I figured it out. This needs to be changed:
Code:
iocage exec organizr sed -i '' -e 's?listen = 127.0.0.1:9000?listen = /var/run/php-fpm.sock?g' /usr/local/etc/php-fpm.conf
iocage exec organizr sed -i '' -e 's/;listen.owner = www/listen.owner = www/g' /usr/local/etc/php-fpm.conf
iocage exec organizr sed -i '' -e 's/;listen.group = www/listen.group = www/g' /usr/local/etc/php-fpm.conf
iocage exec organizr sed -i '' -e 's/;listen.mode = 0660/listen.mode = 0600/g' /usr/local/etc/php-fpm.conf


To this:
Code:
iocage exec organizr2 sed -i '' -e 's?listen = 127.0.0.1:9000?listen = /var/run/php-fpm.sock?g' /usr/local/etc/php-fpm.d/www.conf
iocage exec organizr2 sed -i '' -e 's/;listen.owner = www/listen.owner = www/g' /usr/local/etc/php-fpm.d/www.conf
iocage exec organizr2 sed -i '' -e 's/;listen.group = www/listen.group = www/g' /usr/local/etc/php-fpm.d/www.conf
iocage exec organizr2 sed -i '' -e 's/;listen.mode = 0660/listen.mode = 0600/g' /usr/local/etc/php-fpm.d/www.conf
 

nMad

Dabbler
Joined
Feb 17, 2015
Messages
17
I have changed the repo of my sabnzbd jail to the latest one so I could get the most recent sabnzbd version via pkg. However I am getting some errors now when doing a pkg update. Can somebody help me out?

Output of pkg -vv:
Code:
Repositories:
  FreeBSD: {
    url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }

When I run a pkg upgrade && pkg update I receive the following errors:
Code:
iocage exec sabnzbd pkg update && pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.

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!

edit:
I just discovered this is the same for other jails where I didn't change the repo when using the iocage exec command.
When I run pkg update && pkg upgrade in the jail itself using jls and then jexec <JID> I do not get any error messages.
 
Last edited:

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
Anyone else having issues with the latest version of Plexpass? I'm getting "Conversion failed. A required codec could not be found or failed to install." and when I try to restart the service I'm getting child process that are hanging on shutting down.
 

Quicksilv3r

Dabbler
Joined
Oct 25, 2018
Messages
13
Alright, total newbie here, unix/linux/BSD newbie completely, I've been using FreeNas since the fall, but the only thing I have had setup is Plex since the fall, and I honestly don't even know how I was able to manage getting it up and running.

My current setup is downloading from Sabnzbd from my main pc and have Sickbeard/Couchpotato on my main rig to transfer files from my main pc to my FreeNas build.

I want to move away from relying on my main pc completely and having FreeNas take care of everything. So currently I have plex installed on FreeNas and I am able to watch movies/tv shows. But now, I want everything downloaded from my server and sorted by my FreeNas, and I am stumped.

I need a FreeNas 11.2 dummies guide to installing and working with Sabnzbd, Sonarr, Radarr/CouchPotato (I was able to somewhat figure out how to install Sabnzbd and get the webgui up and going)

My biggest issue is how to figure out how to get Sonarr and Couchpotato to see the folders I have created for Plex. I may have to start from scratch and that sucks, but if I have to, so be it.

I've tried reading through this guide, but I'm just so lost. Since I'm on 11.2 I only have Sabnzbd in a jail, everything else is or was created in the iocage and I have a feeling, I'm just getting very confused how to do everything.
 

nMad

Dabbler
Joined
Feb 17, 2015
Messages
17
Anyone else having issues with the latest version of Plexpass? I'm getting "Conversion failed. A required codec could not be found or failed to install." and when I try to restart the service I'm getting child process that are hanging on shutting down.
I am on version 1.15.1.707_1 for almost two weeks now without the problem you are mentioning. I did notice that the child processes are preventing the Plex service to be stopped indeed, really weird..

all right, total newbie here, unix/linux/BSD newbie completely, I've been using FreeNas since the fall, but the only thing I have had setup is Plex since the fall, and I honestly don't even know how I was able to manage getting it up and running.

My current setup is downloading from Sabnzbd from my main pc and have Sickbeard/Couchpotato on my main rig to transfer files from my main pc to my FreeNas build.

I want to move away from relying on my main pc completely and having FreeNas take care of everything. So currently I have plex installed on FreeNas and I am able to watch movies/tv shows. But now, I want everything downloaded from my server and sorted by my FreeNas, and I am stumped.

I need a FreeNas 11.2 dummies guide to installing and working with Sabnzbd, Sonarr, Radarr/CouchPotato (I was able to somewhat figure out how to install Sabnzbd and get the webgui up and going)

My biggest issue is how to figure out how to get Sonarr and Couchpotato to see the folders I have created for Plex. I may have to start from scratch and that sucks, but if I have to, so be it.

I've tried reading through this guide, but I'm just so lost. Since I'm on 11.2 I only have Sabnzbd in a jail, everything else is or was created in the iocage and I have a feeling, I'm just getting very confused how to do everything.
If you are a "BSD newbie" then start working on that first. You'll need some basic knowledge to understand the concepts. All guides you'll find are not 100% complete and correct for your situation. So while it can give you some guidance, you will need to gain knowledge about the concepts to tailor it to your own situation.

Don't do this on your own FreeNAS server with data you don't want to lose. My suggestion is to install the latest FreeNAS version in a VM and start learning about the basic concepts of FreeBSD / FreeNAS / Jails. It took me quite some time to understand. When you understand the basic concepts you can try to follow this guide which is based on the one we are discussing here but with more detailed steps.
 

Quicksilv3r

Dabbler
Joined
Oct 25, 2018
Messages
13
I am on version 1.15.1.707_1 for almost two weeks now without the problem you are mentioning. I did notice that the child processes are preventing the Plex service to be stopped indeed, really weird..


If you are a "BSD newbie" then start working on that first. You'll need some basic knowledge to understand the concepts. All guides you'll find are not 100% complete and correct for your situation. So while it can give you some guidance, you will need to gain knowledge about the concepts to tailor it to your own situation.

Don't do this on your own FreeNAS server with data you don't want to lose. My suggestion is to install the latest FreeNAS version in a VM and start learning about the basic concepts of FreeBSD / FreeNAS / Jails. It took me quite some time to understand. When you understand the basic concepts you can try to follow this guide which is based on the one we are discussing here but with more detailed steps.

I understand the basics, I was in school for computer network and tech support, but that was 20yrs ago, and I’m not even in the IT world anymore. I have basic knowledge, but working the command line is something I haven’t done since graduating college.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I can't get anything to play that has to transcode. I keep getting "Conversion failed. A required codec could not be found or failed to install."

Code:
Mar 12, 2019 23:09:37.315 [0x80c5d4600] DEBUG - HTTP requesting GET https://downloads.plex.tv/codecs/eae-69c1de6-23/freebsd-x86_64-standard/EasyAudioEncoder-freebsd-x86_64-standard.zip
Mar 12, 2019 23:09:37.599 [0x80c5d4600] DEBUG - HTTP 200 response from GET https://downloads.plex.tv/codecs/eae-69c1de6-23/freebsd-x86_64-standard/EasyAudioEncoder-freebsd-x86_64-standard.zip
Mar 12, 2019 23:09:37.667 [0x80c5d4600] ERROR - Unzip: could not set executable bit on output file
Mar 12, 2019 23:09:37.667 [0x80c5d4600] ERROR - CodecManager: failed to extract zip
Mar 12, 2019 23:09:37.667 [0x80c5d4600] ERROR - Error configuring transcoder: Decoder install failed: eac3_eae
Mar 12, 2019 23:09:37.667 [0x80c5d4600] DEBUG - Streaming Resource: Terminating session 0x80ce24e20:gk74r1kj0jlf0k3pm01fgohr which is using transcoder slot.  Used slots is now 0
Mar 12, 2019 23:09:37.667 [0x80c5d4600] DEBUG - Streaming Resource: Terminated session 0x80ce24e20:gk74r1kj0jlf0k3pm01fgohr with reason Conversion failed. A required codec could not be found or failed to install.
Mar 12, 2019 23:09:37.667 [0x80c9e7b00] DEBUG - Killing job.


Someone on the Plex told me "That is a very clear error. The codecs directory needs to have execute permissions and if on mounted volume then it must have exec in \etc\fstab and must not have noexec" but I don't know how to fix that.
 

treboR2Robert

Dabbler
Joined
Sep 24, 2014
Messages
46
I can't get anything to play that has to transcode. I keep getting "Conversion failed. A required codec could not be found or failed to install."

Code:
Mar 12, 2019 23:09:37.315 [0x80c5d4600] DEBUG - HTTP requesting GET https://downloads.plex.tv/codecs/eae-69c1de6-23/freebsd-x86_64-standard/EasyAudioEncoder-freebsd-x86_64-standard.zip
Mar 12, 2019 23:09:37.599 [0x80c5d4600] DEBUG - HTTP 200 response from GET https://downloads.plex.tv/codecs/eae-69c1de6-23/freebsd-x86_64-standard/EasyAudioEncoder-freebsd-x86_64-standard.zip
Mar 12, 2019 23:09:37.667 [0x80c5d4600] ERROR - Unzip: could not set executable bit on output file
Mar 12, 2019 23:09:37.667 [0x80c5d4600] ERROR - CodecManager: failed to extract zip
Mar 12, 2019 23:09:37.667 [0x80c5d4600] ERROR - Error configuring transcoder: Decoder install failed: eac3_eae
Mar 12, 2019 23:09:37.667 [0x80c5d4600] DEBUG - Streaming Resource: Terminating session 0x80ce24e20:gk74r1kj0jlf0k3pm01fgohr which is using transcoder slot.  Used slots is now 0
Mar 12, 2019 23:09:37.667 [0x80c5d4600] DEBUG - Streaming Resource: Terminated session 0x80ce24e20:gk74r1kj0jlf0k3pm01fgohr with reason Conversion failed. A required codec could not be found or failed to install.
Mar 12, 2019 23:09:37.667 [0x80c9e7b00] DEBUG - Killing job.


Someone on the Plex told me "That is a very clear error. The codecs directory needs to have execute permissions and if on mounted volume then it must have exec in \etc\fstab and must not have noexec" but I don't know how to fix that.

I have just noticed this too.

I recently moved my jail from 1 pool to another and thought i messed something up.

So i deleted all my jails and the iocage dataset and started all over again.

I created the new jail, installed plexmediaserver-plexpass and it installed 1.14.1.5488 because I hadn't yet put the override in for the latest pkg's.

Anyway i tried playing something that needed transcoding again and it worked straight away.

Great I thought, all fixed.

Then I noticed it was an old version and remembered about the override to change from quarterly pkg's to the latest pkg's in FreeBSD.conf

I done that, updated to the latest pkg 1.15.1.707_1, went back to plex web tried to play something that needed transcoding and

"Conversion failed. A required codec could not be found or failed to install."

Defiantly something wrong with this latest build !
 
Last edited:

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
698
metadata options not loading and server settings unavailable with 1.15.1.707 for me .. going to downgrade
 

treboR2Robert

Dabbler
Joined
Sep 24, 2014
Messages
46
Interestingly on freshports they say something about the previous release being broken

And there is a new version listed from March 13th but obviously this hasn't been compiled and added to the repository yet.

I think there is a way to do it yourself but I have no clue how.

Here's the last few versions listed on freshports. Not really sure what the comments mean, Maybe we could downgrade to one of the builds from 23rd Feb ??

------------------------
13 Mar 2019 16:43:20
1.15.1.791_1
multimedia/plexmediaserver-plexpass: Update to 1.15.1.791
--------------------------------------------------------------------
-----------------------
25 Feb 2019 03:07:05
1.15.1.707_1
multimedia/plexmediaserver-plexpass: Unbreak port

Sync rc script with upstream's start.sh script
-----------------------------------------------------------
-----------------------
23 Feb 2019 14:22:38
1.15.1.707
multimedia/plexmediaserver-plexpass: Mark BROKEN

Plex broke the build on FreeBSD. Numerous issues with the binaries,
obviously broken rpath, etc.
-----------------------------------------------------------------------------
-----------------------
23 Feb 2019 13:01:02
1.15.1.707
multimedia/plexmediaserver-plexpass: Update to 1.15.1.707

Changelog: https://forums.plex.tv/t/plex-media-server/30447/246
---------------------------------------------------------------------------
 

treboR2Robert

Dabbler
Joined
Sep 24, 2014
Messages
46
metadata options not loading and server settings unavailable with 1.15.1.707 for me .. going to downgrade

How do you downgrade ?
 

treboR2Robert

Dabbler
Joined
Sep 24, 2014
Messages
46
I removed the /config mount and moved all the files back.

what happened ? is it working now ?

if so can you explain what you did ?

thanks
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
698
How do you downgrade ?
After failing with my Google-Fu and not finding any concise walk throughs to revert back to previous version or fix current broken (for FreeNAS) version .. I just deleted the jail and installed plex-pass version a fresh .. this time I won't mess with the jail and just wait for the plug in to officially update on it's quarterly stable train :oops:
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
what happened ? is it working now ?

if so can you explain what you did ?

thanks

So in this guide it has you mount a folder outside your jail to /config in your Plex jail.
Code:
iocage fstab -a plex /mnt/tank1/apps/plex /config nullfs rw 0 0


  1. Stop the Plex jail
    Code:
    sudo iocage stop plex
  2. Go into the FreeNAS GUI and removed the mounted drive (didn't know how to do it via CLI)
  3. Went to /mnt/tank1/apps/plex and ran
    Code:
    sudo cp -Rv * /mnt/iocage/jails/plex/root/config/
  4. Start the Plex jail
    Code:
    sudo iocage start plex
  5. Ran
    Code:
    sudo iocage console plex
  6. Went into /config and ran
    Code:
    chown -R plex:plex ./
  7. Started the Plex service
    Code:
    service plexmediaserver_plexpass start
Note that tank1 is just a placeholder and yours is probably called something different. Mine is called vol1. Also probably smart to backup your config folder before you do anything. I'm no expert and this is just how I got mine working again until someone smarter can get the mounted drive thing working again.
 
Top