Resource icon

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

Joined
Feb 17, 2015
Messages
13
Thanks
2
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.
Try using this guide instead, this guide is based on the one we are discussing here but has more detailed steps and is therefore more ELI5 proof. It also includes setting up user/group/permissions so jails like Transmission, Sonarr & Radarr can work together properly. You can also do some steps in de UI instead of in de shell, for example creating the jails and the mount points. When you want to create a jail via UI be aware to do the 'advanced jail creation' and select all required options (e.g. vnet, allow_raw_sockets, autoboot).

Good luck!

edit: I added a comment on github with my feedback, I think this will help you with some issues I ran into.

Hey all, I've had Sonarr & SABnzbd working together nicely for a while, and now I've decided to add Transmission into the mix as a backup. I had no issues getting Sonarr, Jackett and Transmission working together, but after a successful download of a torrent from my private tracker, that's when I realized Sonarr doesn't unpack .rar files. So I've been trying to add an auto extract script to run after Transmission, and not having much luck finding a good guide that still works... a lot of the forum post I find are dead ends.

Can anyone advise me on scripts they use with transmission for automatic extraction?
Use a private tracker which doesn't allow RAR'ed content ;)
 
Last edited:
Joined
Jan 17, 2015
Messages
14
Thanks
0
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".
 
Joined
Aug 19, 2015
Messages
23
Thanks
0
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

FreeNAS Experienced
Joined
Jun 14, 2012
Messages
380
Thanks
13
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

Newbie
Joined
Feb 17, 2015
Messages
13
Thanks
2
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

FreeNAS Experienced
Joined
Jun 14, 2012
Messages
380
Thanks
13
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.
 
Joined
Oct 25, 2018
Messages
7
Thanks
1
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.
 
Joined
Feb 17, 2015
Messages
13
Thanks
2
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.
 
Joined
Oct 25, 2018
Messages
7
Thanks
1
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 any more. I have basic knowledge, but working the command line is something I haven’t done since graduating college.
 

Wolfeman0101

FreeNAS Experienced
Joined
Jun 14, 2012
Messages
380
Thanks
13
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.
 
Joined
Sep 24, 2014
Messages
39
Thanks
1
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

FreeNAS Experienced
Joined
Jun 13, 2013
Messages
164
Thanks
22
metadata options not loading and server settings unavailable with 1.15.1.707 for me .. going to downgrade
 
Joined
Sep 24, 2014
Messages
39
Thanks
1
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
---------------------------------------------------------------------------
 
Joined
Sep 24, 2014
Messages
39
Thanks
1
metadata options not loading and server settings unavailable with 1.15.1.707 for me .. going to downgrade
How do you downgrade ?
 
Joined
Sep 24, 2014
Messages
39
Thanks
1
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

FreeNAS Experienced
Joined
Jun 13, 2013
Messages
164
Thanks
22
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:
 
Top