Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Latest reviews

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE
I need this, and it works great.
Thank you for this writeup. I've removed dedup from my ZFS setup as I was beginning to see similar issues to this article on my dump device for VM backups. I probably would have spent way too much time troubleshooting this if I hadn't run across another posting, and this article.
Im posting this as notes for myself in the future.

I decided to nuke my old v2 Sonarr after multiple failed attaempts at trying to upgrade to v3. I Had to combine this guide with another over at https://www.digimoot.com/truenas-sonarr-v3/ to get it to work


echo '{"pkgs":["mono","mediainfo","sqlite3","ca_root_nss","curl"]}' > /tmp/pkg.json
iocage create -n "sonarr" -p /tmp/pkg.json -r 12.2-RELEASE ip4_addr="vnet0|10.1.1.203/24" defaultrouter="10.1.1.1" vnet="on" allow_raw_sockets="1" boot="on" resolver="none"
rm /tmp/pkg.json
iocage exec sonarr mkdir -p /config
iocage exec sonarr mkdir -p /mnt/tv
iocage exec sonarr mkdir -p /mnt/mom
iocage exec sonarr mkdir -p /mnt/downloads
iocage fstab -a sonarr /mnt/volume/jails/sonarr /config nullfs rw 0 0
iocage fstab -a sonarr /mnt/volume/downloads /mnt/downloads nullfs rw 0 0
iocage fstab -a sonarr /mnt/volume/tv /mnt/tv nullfs rw 0 0
iocage fstab -a sonarr /mnt/volume/mom /mnt/mom nullfs rw 0 0
iocage exec sonarr ln -s /usr/local/bin/mono /usr/bin/mono

*** type jls to find jail # and jexec directly into jail ***



pkg install mediainfo sqlite3 ca_root_nss curl llvm80 libiconv nano wget


mkdir /usr/local/share/download
cd /usr/local/share/download
fetch https://download.sonarr.tv/v3/phantom-develop/3.0.4.1033/Sonarr.phantom-develop.3.0.4.1033.linux.tar.gz -o /usr/local/share/download/
wget https://github.com/jailmanager/jailmanager.github.io/releases/download/v0.0.1/mono-6.8.0.105.txz

cd /usr/local/share/download
pkg install -y mono-6.8.0.105.txz
ln -s /usr/local/bin/mono /usr/bin/mono
tar -xzvf /usr/local/share/download/Sonarr.phantom-develop.3.0.4.1033.linux.tar.gz -C /usr/local/share
mv /usr/local/share/Sonarr /usr/local/share/sonarr
mkdir /usr/local/etc/rc.d
nano /usr/local/etc/rc.d/sonarr

*** exit jail and back to freenas shell ***

iocage exec sonarr "pw user add sonarr -c sonarr -u 351 -d /nonexistent -s /usr/bin/nologin"
iocage exec sonarr chown -R sonarr:sonarr /usr/local/share/NzbDrone /config
iocage exec sonarr mkdir /usr/local/etc/rc.d
iocage exec sonarr nano /mnt/iocage/jails/sonarr/root/usr/local/etc/rc.d/sonarr

#!/bin/sh

# $FreeBSD$
#
# PROVIDE: sonarr
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# sonarr_enable: Set to YES to enable sonarr
# Default: NO
# sonarr_user: The user account used to run the sonarr daemon.
# This is optional, however do not specifically set this to an
# empty string as this will cause the daemon to run as root.
# Default: media
# sonarr_group: The group account used to run the sonarr daemon.
# This is optional, however do not specifically set this to an
# empty string as this will cause the daemon to run with group wheel.
# Default: media
# sonarr_data_dir: Directory where sonarr configuration
# data is stored.
# Default: /var/db/sonarr

. /etc/rc.subr
name=sonarr
rcvar=${name}_enable
load_rc_config $name

: ${sonarr_enable:="NO"}
: ${sonarr_user:="sonarr"}
: ${sonarr_group:="sonarr"}
: ${sonarr_data_dir:="/config"}


pidfile="${sonarr_data_dir}/sonarr.pid"
command="/usr/sbin/daemon"
procname="/usr/local/bin/mono"
command_args="-f ${procname} /usr/local/share/sonarr/Sonarr.exe –data=${sonarr_data_dir} –nobrowser"

start_precmd=sonarr_precmd
sonarr_precmd() {
if [ ! -d ${sonarr_data_dir} ]; then
install -d -o ${sonarr_user} -g ${sonarr_group} ${sonarr_data_dir}
fi

export XDG_CONFIG_HOME=${sonarr_data_dir}
}

run_rc_command "$1"

iocage exec sonarr chmod u+x /usr/local/etc/rc.d/sonarr
iocage exec sonarr sysrc "sonarr_enable=YES"
iocage exec sonarr service sonarr start
This was easy to follow and got my TeamSpeak server up and running very quickly. Including the process for updating the server is also very much appreciated.
Thanks!
The instructions worked flawlessly on TrueNAS-CORE 12 and Ubuntu Server 20.04.
Thank you!
worked perfectly, thank you so much.
I actually thought this was very well put together and I think I am actually the target audience for a guide written in this style. There were a couple of errors that caught me out though...

There are a couple of times you've put "user" instead of "usr" in the path and below could be corrected because the "Jail" command is wrong, even though it can be quite easily extrapolated from the "Plugins" command.

Plugins - ls -al "/mnt/$TANK/iocage/jails/$PLUGIN[/B]/root/Plex Media Server"

Jail - /mnt/$TANK/iocage/jails/$JAIL/root/user/local/plexdata/Plex Media Server

Otherwise very useful and it worked! Thanks!
Works like a charm, thank you. If using Proxmox remember to enable QEMU guest agent in the VM's option menu.
The only missing commands were to make qemu-ga and qemu-guest-agent executable by chmod +x command
Had a Dell perc h310 I wanted to use for a Truenas install. Absolutely stellar writeup that gave me enough confidence to cross flash the dell card instead of ordering a different model already LSI branded. Worked perfectly by following this guide.
Interesting and very useful; however, I would recommend removing Desktop and Laptop drives since it is not recommended using them with Free/True NAS. Also, I'm surprised to not see any SSD or NVM. At the end it might worth it to make this collective such as using a Google Drive, so we could help you to maintain it.
Thank you for this. Just found this article and resolved my issue.
Top