Resource icon

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

teldar

Dabbler
Joined
Apr 11, 2018
Messages
18
I am starting to see how important users and groups are...

I do have problems work my shares occasionally, but I'm getting a handle on that...

What I actually meant was what HE, the one who wrote the guide has his file system set up as. Academic for me for some time as my power supply, board, or CPU failed last night. So it's going to be some time before I'm moving forward.
 

Jason Giddens

Dabbler
Joined
Jun 8, 2013
Messages
37
Hey @Pentaflake .. i am following your guide and have gotten hung up. I am installing plexpass and got through the first three steps (create json, create jail, remove json.) and I am getting this error on the next step:

root@freenas:/ # iocage fstab -a plex /mnt/tank1/apps/plex /config nullfs rw 0 0
Successfully added mount to plex's fstab
Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/iocage/cli/fstab.py", line 126, in cli
add_path=add_path, header=header)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/iocage.py", line 1064, in fstab
exit_on_error=self.exit_on_error)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_fstab.py", line 65, in __init__
self.__fstab_parse__()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_fstab.py", line 75, in __fstab_parse__
self.__fstab_mount__()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_fstab.py", line 165, in __fstab_mount__
raise RuntimeError(f"{stderr_data.decode('utf-8')}")
RuntimeError: mount_nullfs: /mnt/tank1/apps/plex: No such file or directory

I have 3 datasets: Apps, Downloads and Movies. I want to have the jails live in apps, but instead iocage created a dataset called "iocage" and put all its stuff there, at the top of the /tank1 tree. I am good at following instructions but I am a bit weak on the underlying logic with Freenas. Any help is appreciated.
 

Jason Giddens

Dabbler
Joined
Jun 8, 2013
Messages
37
NVM! I figured out that i had not created the dataset for plex under the apps dataset.

Hey @Pentaflake .. i am following your guide and have gotten hung up. I am installing plexpass and got through the first three steps (create json, create jail, remove json.) and I am getting this error on the next step:

root@freenas:/ # iocage fstab -a plex /mnt/tank1/apps/plex /config nullfs rw 0 0
Successfully added mount to plex's fstab
Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/iocage/cli/fstab.py", line 126, in cli
add_path=add_path, header=header)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/iocage.py", line 1064, in fstab
exit_on_error=self.exit_on_error)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_fstab.py", line 65, in __init__
self.__fstab_parse__()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_fstab.py", line 75, in __fstab_parse__
self.__fstab_mount__()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_fstab.py", line 165, in __fstab_mount__
raise RuntimeError(f"{stderr_data.decode('utf-8')}")
RuntimeError: mount_nullfs: /mnt/tank1/apps/plex: No such file or directory

I have 3 datasets: Apps, Downloads and Movies. I want to have the jails live in apps, but instead iocage created a dataset called "iocage" and put all its stuff there, at the top of the /tank1 tree. I am good at following instructions but I am a bit weak on the underlying logic with Freenas. Any help is appreciated.
 

SavageAUS

Patron
Joined
Jul 9, 2016
Messages
418
NVM! I figured out that i had not created the dataset for plex under the apps dataset.
You need to adapt the storage location and pools to your own system.


Sent from my iPhone using Tapatalk
 

Prasanth

Contributor
Joined
Mar 2, 2014
Messages
100
Started getting this error when trying to update my pkg

pkg: repository FreeBSD contains packages for wrong OS version: FreeBSD:11:amd64

Anyone else getting the same errors and low how to fix it?
 

SavageAUS

Patron
Joined
Jul 9, 2016
Messages
418
Has anyone managed to get ombi working? Mine says it’s running but page never loads.


Sent from my iPhone using Tapatalk
 

Jason Giddens

Dabbler
Joined
Jun 8, 2013
Messages
37
Installed tautulli using the directions and all went well until the last step:

Code:
root@freenas:/mnt/myVol/apps # iocage exec tautulli service tautulli start
Starting tautulli.
Shared object "libdl.so.1" not found, required by "python2"
/usr/local/etc/rc.d/tautulli: WARNING: failed to start tautulli


any ideas?
 

Jason Giddens

Dabbler
Joined
Jun 8, 2013
Messages
37
Update - I am getting this same error about "libdl.so.1" with my sabnzb install too.

Installed tautulli using the directions and all went well until the last step:

Code:
root@freenas:/mnt/myVol/apps # iocage exec tautulli service tautulli start
Starting tautulli.
Shared object "libdl.so.1" not found, required by "python2"
/usr/local/etc/rc.d/tautulli: WARNING: failed to start tautulli


any ideas?
 

verysneaky

Dabbler
Joined
Jun 4, 2018
Messages
22
Has anyone managed to get ombi working? Mine says it’s running but page never loads.
I think you'll find the service isn't running; these instructions are outdated for ombi. As of ombi v3, ombi requires the .NET core, which isn't supported by freebsd (iirc). I spun up a lightweight debian VM and got it working satisfactorily there.

Update - I am getting this same error about "libdl.so.1" with my sabnzb install too.
Try upgrading python2?
Code:
pkg upgrade python2

This will make sure it's up to date. Alternatively, just re-running the install command:
Code:
pkg install python2

The docs indicate this should force a pull of any required/missing dependencies.
 

Jason Giddens

Dabbler
Joined
Jun 8, 2013
Messages
37
Adding Mylar..

For several days now I have been struggling to get my new 11.2 Freenas box off the ground and finally feel like I am in a good spot. I have done Sonarr, Radarr, Sabnzbd, Lidarr, Organizr, Nzbhydra and tautulli. The only piece missing is Mylar. I had it running as a plugin on my 9.2 machine so I knew it was possible. I took the headphones instructions and repurposed them thus:

Code:
echo '{"pkgs":["python2","py27-sqlite3","py27-openssl","ca_root_nss","git"]}' > /tmp/pkg.json
iocage create -n "mylar" -p /tmp/pkg.json -r 11.1-RELEASE ip4_addr="10.0.10.226/24" defaultrouter="10.0.10.254" vnet="on" allow_raw_sockets="1" boot="on"
rm /tmp/pkg.json
iocage fstab -a mylar /mnt/myVol/apps/mylar/config nullfs rw 0 0
iocage exec mylar ln -s /usr/local/bin/python2.7 /usr/local/bin/python
iocage exec mylar git clone https://github.com/evilhero/mylar /usr/local/share/mylar
iocage exec mylar "pw user add mylar -c mylar -u 111 -d /nonexistent -s /usr/bin/nologin"
iocage exec mylar chown -R mylar:mylar /usr/local/share/mylar /config
iocage exec mylar ee /usr/local/etc/rc.d/mylar

For the /etc/rc.d/mylar file I stole the one from my old 9.2 machine and changed some paths:


#!/bin/sh
#
# PROVIDE: mylar
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# mylar_enable (bool): Set to NO by default.
# Set it to YES to enable it.
# mylar_user: The user account mylar daemon runs as what
# you want it to be. It uses 'media' user by
# default. Do not sets it as empty or it will run
# as root.
# mylar_group: The group account mylar daemon runs as what
# you want it to be. It uses 'media' group by
# default. Do not sets it as empty or it will run
# as wheel.
# mylar_data_dir: Directory where mylar configuration
# data is stored.
# Default: /var/db/mylar

. /etc/rc.subr
name="mylar"
rcvar="${name}_enable"
load_rc_config ${name}
j
: ${mylar_enable:="NO"}
: ${mylar_user:="media"}
: ${mylar_group:="media"}
: ${mylar_data_dir:="/var/db/mylar"}

pidfile="$mylar_data_dir/mylar.pid"
command="/usr/local/bin/python2.7"
command_args="/usr/local/share/mylar/Mylar.py --datadir ${mylar_data_dir} -d --pidfile ${pidfile} -q --nolaunch"

start_precmd="mylar_prestart"
mylar_prestart() {
if [ -f ${pidfile} ]; then
rm -f ${pidfile}
echo "Removing stale pidfile."
elif [ ! -d ${pidfile%/*} ]; then
install -d -o $mylar_user -g $mylar_group ${pidfile%/*}
fi

if [ ! -d ${mylar_data_dir} ]; then
install -d -o ${mylar_user} -g ${mylar_group} ${mylar_data_dir}
fi
}

run_rc_command "$1"


then:

Code:
iocage exec mylar chmod u+x /usr/local/etc/rc.d/mylar
iocage exec mylar sysrc "mylar_enable=YES"
iocage exec mylar sysrc "mylar_user=mylar"
iocage exec mylar sysrc "mylar_dir=/usr/local/share/mylar"
iocage exec mylar sysrc "mylar_conf=/config/config.ini"
iocage exec mylar sysrc "mylar_flags=--datadir /config --host=0.0.0.0"
iocage exec mylar sed -i '' -e 's?/var/run/mylar/mylar.pid?/config/mylar.pid?g' /usr/local/etc/rc.d/mylar
iocage exec mylar service mylar start

I dont know if any of htose commands are superfluous, but thats what I did.

Now, if i try to start the service, it fails:
Code:
root@freenas:~ # iocage exec mylar service mylar start
Starting mylar.
Unknown option: --
usage: /usr/local/bin/python2.7 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
/usr/local/etc/rc.d/mylar: WARNING: failed to start mylar


bbut, if i go into the jail and start it manually with
Code:
python Mylar.py

it works. Any idea how I could fix my rc.d file?

Thanks!
 

sp00nlude

Dabbler
Joined
Sep 10, 2016
Messages
21
Thank you for the guide, I followed it to create my first iocage jail for sonarr. However after reboot it stopped working. I am not able to access http://192.168.0.206:8989 though I do see the jail is running. Am I missing a step or is there a networking config problem?

Code:
root@freenas:~ # iocage list
+-----+--------+-------+--------------+---------------+
| JID |  NAME  | STATE |   RELEASE	|	  IP4	  |
+=====+========+=======+==============+===============+
| 6   | sonarr | up	| 11.1-RELEASE | 192.168.0.206 |
+-----+--------+-------+--------------+---------------+
 

SavageAUS

Patron
Joined
Jul 9, 2016
Messages
418
Thank you for the guide, I followed it to create my first iocage jail for sonarr. However after reboot it stopped working. I am not able to access http://192.168.0.206:8989 though I do see the jail is running. Am I missing a step or is there a networking config problem?

Code:
root@freenas:~ # iocage list
+-----+--------+-------+--------------+---------------+
| JID |  NAME  | STATE |   RELEASE	|	  IP4	  |
+=====+========+=======+==============+===============+
| 6   | sonarr | up	| 11.1-RELEASE | 192.168.0.206 |
+-----+--------+-------+--------------+---------------+
I would suggest deleting the jail and starting over just in case you missed a step.


Sent from my iPhone using Tapatalk
 

sp00nlude

Dabbler
Joined
Sep 10, 2016
Messages
21
I would suggest deleting the jail and starting over just in case you missed a step.


Sent from my iPhone using Tapatalk

Thanks, I did that when I encountered this the first time. I see vnet under bridge0 as a member as well so I'm not sure what's wrong. I'll probably recreate the jail again and try not to reboot until 11.2 becomes stable.
 

rio236

Dabbler
Joined
Aug 19, 2016
Messages
38
Hello,
I've a new install of FreeNAS 11.2 Beta3 + Plex

I prepared the system -
Datasets:
created '/mnt/tank/apps/plex/config'
Created user:
plex:plex is owner of /plex/config

I ran the following and stopped after # iocage exec plex chown -R plex:plex /config

Please advised what I didn't do correctly.

Non Plexpass:
# echo '{"pkgs":["plexmediaserver","ca_root_nss"]}' > /tmp/pkg.json
# iocage create -n "plex" -p /tmp/pkg.json -r 11.1-RELEASE ip4_addr="vnet0|<192.168.1.98>/<24>" defaultrouter="<192.168.1.1>" vnet="on" allow_raw_sockets="1" boot="on"
WARNING: FreeBSD 11.1-RELEASE HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Sun Sep 30 20:00:00 EDT 2018
will not have been corrected.
src component not installed, skipped
Installing updates... done.
plex successfully created!
* Starting plex
+ Started OK
+ Configuring VNET FAILED
ifconfig: <192.168.1.98>/<24>: bad value (width invalid)
# rm /tmp/pkg.json
# iocage fstab -a plex /mnt/tank/apps/plex /config nullfs rw 0 0
Successfully added mount to plex's fstab
# iocage fstab -a plex /mnt/tank/video /mnt/video nullfs ro 0 0
Successfully added mount to plex's fstab
# iocage exec plex chown -R plex:plex /config
plex is not running, starting jail
jail: mount.fstab: /mnt/iocage/jails/plex/root/config: No such file or directory
# iocage exec plex sysrc "plexmediaserver_enable=YES"
# iocage exec plex sysrc "plexmediaserver_enable=YES"
# iocage exec plex sysrc plexmediaserver_support_path="/config"
# iocage exec plex service plexmediaserver start

Thanks in advance for you support.
 
Last edited:

SavageAUS

Patron
Joined
Jul 9, 2016
Messages
418
Why use 11.1 RELEASE ON 11.2 system?
Use 11.2-RELEASE
Also remove <> from ip address and mask


Sent from my iPhone using Tapatalk
 

rio236

Dabbler
Joined
Aug 19, 2016
Messages
38
Why use 11.1 RELEASE ON 11.2 system?
Use 11.2-RELEASE
Also remove <> from IP address and mask


Sent from my iPhone using Tapatalk
Thanks.

I'm stuck here now and would appreciate any help.
Code:
# iocage exec plex chown -R plex:plex /config
chown: plex: illegal group name
 
Last edited:

sp00nlude

Dabbler
Joined
Sep 10, 2016
Messages
21
Thanks.

I'm stuck here now and would appreciate any help.
Code:
# iocage exec plex chown -R plex:plex /config
chown: plex: illegal group name

That's because you probably didn't create the 'plex' group in the jail. I recommend reading this post on permissions. Once you decide how your permission is going to work, you can use this command to create a group in the jail.

iocage exec plex "pw groupadd -n <group> -g <groupID>" (remove the < > )
iocage exec plex "pw groupmod <group> -m plex" (this allows you to add the 'plex' user into the group).
 

denist

Contributor
Joined
Jan 28, 2013
Messages
188
Installed tautulli using the directions and all went well until the

Code:
root@freenas:/mnt/myVol/apps # iocage exec tautulli service tautulli start
Starting tautulli.
Shared object "libdl.so.1" not found, required by "python2"
/usr/local/etc/rc.d/tautulli: WARNING: failed to start tautulli


any ideas?

You will need to change the FreeBSD package to an older version as the issue lies with sqlite3. Otherwise destroy the jail and change the package to 11.2 not 11.1 and you will not have that issue. This is how I have installed all my jails.

I am just stuck on running the unrar script for transmission as it is not calling it or maybe I have a permission issue. If anyone has it working please let me know how you have done it. I did do an all in one iocage with all software installed but Sonarr, Radarr, and Jackett do not work as there is multiple instances of mono. So I did separate jails for each. If I cannot get the script to work I might install deluge iocage. Still need to do the Emby I age also. Once I have everything setup I will share my install guides text files.

Thanks.
 

rio236

Dabbler
Joined
Aug 19, 2016
Messages
38
That's because you probably didn't create the 'plex' group in the jail. I recommend reading this post on permissions. Once you decide how your permission is going to work, you can use this command to create a group in the jail.

iocage exec plex "pw groupadd -n <group> -g <groupID>" (remove the < > )
iocage exec plex "pw groupmod <group> -m plex" (this allows you to add the 'plex' user into the group).

Thank you.
 
Top