Resource icon

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

bigzaj

Explorer
Joined
Jan 6, 2016
Messages
95
Is there a meaningful difference in functionality between mapping the destination with "/mnt"

I have mapped movies to Plex using:

Source: /mnt/media/movies
Destination: /movies
and
Destination: /mnt/movies

Only difference in the second is I see the movies folder when browsing in folders plex, but it still does not let me go deeper, does not display sub-folders, etc.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
Those that have installed deluge are you able to limit the speed of upload and downloads? I can't seem to get it to work.
 

bigzaj

Explorer
Joined
Jan 6, 2016
Messages
95
I followed the instructions to change the repo to get the latest for Plex and I get this error:

Plex_Repo.png


Any help is appreciated. Had it working yesterday then cleaned / re-installed jail to new location
htJwQH
 
Last edited:

Pentaflake

Explorer
Joined
Jul 8, 2014
Messages
91
One more item that I just found out. The PlexPy scripting no longer works due to their change to the name Tautulli. This worked for me when I had to recreate the jail.

Code:
echo '{"pkgs":["python2","py27-sqlite3","py27-openssl","ca_root_nss","git"]}' > /tmp/pkg.json
iocage create -n "tautulli" -p /tmp/pkg.json -r 11.1-RELEASE ip4_addr="vnet0|<IP>/<MASK>" defaultrouter="<GATEWAY>" vnet="on" allow_raw_sockets="1" boot="on"
rm /tmp/pkg.json
iocage fstab -a tautulli /mnt/tank1/apps/tautulli /config nullfs rw 0 0
iocage exec tautulli git clone https://github.com/Tautulli/Tautulli.git /usr/local/share/Tautulli
iocage exec tautulli "pw user add tautulli -c tautulli -u 109 -d /nonexistent -s /usr/bin/nologin"
iocage exec tautulli chown -R tautulli:tautulli /usr/local/share/Tautulli /config
iocage exec tautulli cp /usr/local/share/Tautulli/init-scripts/init.freenas /usr/local/etc/rc.d/tautulli
iocage exec tautulli chmod u+x /usr/local/etc/rc.d/tautulli
iocage exec tautulli sysrc "tautulli_enable=YES"
iocage exec tautulli sysrc "tautulli_flags=--datadir /config"
iocage exec tautulli service tautulli start
I'll update this later today in the guide

Still nothing. I don't see an error just nothing happens.
I believe they made a change to the way redirects/certs were handled in an update before this one. If you reinstall with the latest it should work going forward. I'll be updating the url to the latest version in the guide.

Is there a meaningful difference in functionality between mapping the destination with "/mnt"

I have mapped movies to Plex using:

Source: /mnt/media/movies
Destination: /movies
and
Destination: /mnt/movies

Only difference in the second is I see the movies folder when browsing in folders plex, but it still does not let me go deeper, does not display sub-folders, etc.
No, there is not you can change it to anything you like.

I followed the instructions to change the repo to get the latest for Plex and I get this error:

View attachment 23508

Any help is appreciated. Had it working yesterday then cleaned / re-installed jail to new location
htJwQH

This is normally and issue with networking not being setup correctly in the jail.
 

bigzaj

Explorer
Joined
Jan 6, 2016
Messages
95
This is normally and issue with networking not being setup correctly in the jail.

I have read that issue, not sure what would have or could have changed on the networking? If I tell the plex jail to ping pkg.freebsd.org then run update it works.
 
Last edited:

bigzaj

Explorer
Joined
Jan 6, 2016
Messages
95
Using warden jails I was apple to map /mnt/media/transcode to /config/Plex Media Server/Cache/Transcode.

However iocage does not allow spaces in the path, how can I remap the transcode folder? I mounted this to /transcode and use the built in option to manually assign for use during transcoding, but there is not an option to change the Sync+ folder. I need to map to "/config/Plex Media Server/Cache/Transcode" so that Sync movies do not eat up storage on my apps SSD.
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192

Celena

Dabbler
Joined
Dec 6, 2016
Messages
13
I did not think this worked because of "nullfs"

-edit-
Tried this and it throws an error when starting
replace space by \040 when you add it iocage fstab -a JAIL /mnt/media/transcode /config/Plex\040Media\040Server/Cache/Transcode nullfs rw 0 0
 

Chuck Remes

Contributor
Joined
Jul 12, 2016
Messages
173
Yesterday I took the plunge and replaced my (very solid and never-had-a-problem-with-it) FreeNAS Corral server with 11.1-U3. I never ran 9.x prior so I had to do a fresh install. Here were my basic steps to convert and get my plex, radarr, sonarr, and sabnzbd working.

* Prior to the fresh install, I recorded the name, UID, and GID for all users that were accessing my plex, sonarr, etc. data.
* Recorded all paths to plex, sonnar, etc. config directories
* Recorded all paths to my media

Upon installation of 11.1-U3, I imported my existing zpools via the new beta GUI. I should point out that upon login to the GUI (and every subsequent login) I get an error from the GUI. How this stuff passes QA is beyond me.

Anyway, once in I did my initial configuration. Setup static IP, default gateway, NTP servers, etc. Then I created users and groups to match the users and groups I recorded from my Corral installation. I also made sure that the UID and GID numbers corresponded exactly.

Everything looked good at this point.

Then I used this guide for setting up the plex, sonarr, radarr, and sabnzbd jails. I started with plex.

I like to be able to recreate things on the fly, so I did everything by script for reproducibility purposes. The standard script provided in this resource was a great start. I pulled out IP, MASK, and GATEWAY and made those parameters in my script. I also had to update all of the paths since mine were different (e.g. /mnt/tank1/video changed to /mnt/tank/media, etc). Lastly, I made sure to update the UID numbers in the script to match my existing UIDs on the server. The sabnzbd server still gives me trouble because some package script creates a _sabnzbd user with id 352 that I then have to override. I'll have to dig into this later.

I almost immediately ran into a problem using the `vnet="on"` and `vnet0` syntax. After some searching here and noting that 11.1-U3 broke some workarounds (i.e. vnet0 to epair0b) I decided to eliminate using vnet altogether. I put my actual interface (e.g. ix0) into the script and set vnet="off". Plex fired up and asked me to add libraries. Oops! Something was screwed up...

Looking at my plex /config directory I saw that under Corral it was using `~plex/config/Plex/Application Support/Plex Media Server`. That needed to change to `~plex/config/Plex Media Server`. Fixed that up, restarted the jail, and it picked up my working configuration, all libraries, metadata, etc. Nice!

I'm going to skip over the play by play for the rest of these. Major takeaways for me on getting sabnzbd, sonarr, and radarr to work:

1. Make sure that all 3 are mounting the same dataset to the same mountpoints inside the jail
I needed to mount `/mnt/tank/not-backed-up/pvr/downloads` to `/downloads` in all 3 jails. Under that path I already had `/downloads/complete` and `/downloads/incomplete` and their subdirs like `tv` and `movies`. By making sure these paths were in sync across all 3 jails, the renaming and moving functionality available in sonarr and radarr worked great. I didn't need to do any 'remote path mapping' to translate the paths.

I have to say that running plex under a jail is much faster than under docker. My 4k movies no longer buffer.

I'd like to thank @Pentaflake and others in this thread for such a great resource!
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
If I could combine a suggestion with a shameless plug of my own work--a fairly complex installation like this could really benefit from being scripted, so there's much less manual work for the user to do (and potentially mess up). @kjake did the first ones I remember seeing (his script for a Unifi jail is here); I've been working on one for Nextcloud (link).
 

bigzaj

Explorer
Joined
Jan 6, 2016
Messages
95
replace space by \040 when you add it iocage fstab -a JAIL /mnt/media/transcode /config/Plex\040Media\040Server/Cache/Transcode nullfs rw 0 0

I have tried this too, puts 040 in the file path and creates the folder.

Folder_040.png Plex_040.png
 

bigzaj

Explorer
Joined
Jan 6, 2016
Messages
95
I put it in with the backlash, gets ignored everytime.

--SOLVED--

Thank you, in the fstab command I used two '\' this time so that it would show in the path, works now.
 

Attachments

  • 040_Create.png
    040_Create.png
    115.5 KB · Views: 689
Last edited:

Celena

Dabbler
Joined
Dec 6, 2016
Messages
13
I put it in with the backlash, gets ignored everytime.

--SOLVED--

Thank you, in the fstab command I used two '\' this time so that it would show in the path, works now.

View attachment 23551

i have forget to write the " in the command iocage fstab -a JAIL "/mnt/media/transcode /config/Plex\040Media\040Server/Cache/Transcode nullfs rw 0 0"
 

qpip

Cadet
Joined
Mar 22, 2018
Messages
2
I followed this guide as IO was having trouble with plugins. The only exception is that I have an offsite server which syncs via syncthing (Freenas 9 plugin version), to a shared storage pool. Sonarr and Radarr are configured to pick up the local mounted directory as equivalent to the remote directory.

This worked fantastically before I moved to iocage, but now I'm having real trouble with permissions. None of the iocage jails (nor my SMB shares for that matter) seem to be able to read the synced files, without a manual recursive permissions fix (nuclear option).

Does iocage treat permissions differently from previous plugins? Shared storage pool is mounted rw and has correct permissions applied through GUI. Is syncthing plugin screwing things up? Can you think of a better alternative?
 

Benc

Dabbler
Joined
Nov 5, 2015
Messages
37
I can't find any examples of good practice how to set ownership and permissions on folders so all this jails and outside users access data safely and efficiently. I read link given in OP, but it is generic. For now I used group option on torrent and media folders but I guess I would have better control using settings for each user. Just not sure where to start.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
Is it worth the effort to convert from warden to Iocage?

Sent from my SAMSUNG-SGH-I537 using Tapatalk
 

Chuck Remes

Contributor
Joined
Jul 12, 2016
Messages
173
I can't find any examples of good practice how to set ownership and permissions on folders so all this jails and outside users access data safely and efficiently. I read link given in OP, but it is generic. For now I used group option on torrent and media folders but I guess I would have better control using settings for each user. Just not sure where to start.
On your Freenas server, setup a user. For example, "pvr" for personal video recorder. It will have a uid. Let's assume the uid is 1003.

When you create your plex, sonarr, radarr, and other jails, make sure that you set those user uid's to 1003. When you mount your directories then they will be able to access the files since they share the same UID.

There are more sophisticated ways of accomplishing this via groups or other mechanisms. You can graduate to those once you get the basics working. For example, I don't want my plex server to be able to modify the media libraries (just index them). So I have made it readonly for ple
 
Top