Cannot install jackett?

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
I'm trying to install jacket in a jail running on TrueNAS-12.0-U1.1 release:
Code:
iocage create -n jackett -r 12.2-RELEASE boot=on dhcp=on vnet=on bpf=yes
iocage exec jackett 'pkg install -y jackett'
iocage exec jackett 'sysrc jackett_enable=YES'
iocage exec jackett 'service jackett start'

The service would not start, looking at the logs it complains about mono-5.10 version. How do you manually install jackett, without using the community plugin? I tried using a different version of mono5.20 or mono6.8 but 5.10 is directly tied to jacket package.
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
echo '{"pkgs":["curl","ca_root_nss","llvm80","libepoxy","libiconv","py37-certsrv","py37-openssl"]}' > /tmp/pkg.json iocage create -n "jackett" -p /tmp/pkg.json -r 12.2-RELEASE dhcp="on" bpf="yes" vnet="on" allow_raw_sockets="1" boot="on" rm /tmp/pkg.json iocage exec jackett mkdir -p /config iocage fstab -a jackett /mnt/tank/apps/jackett /config nullfs rw 0 0 # install mono v6 here... iocage pkg jackett install -f /tmp/mono-6... iocage exec jackett ln -s /usr/local/bin/mono /usr/bin/mono iocage exec jackett "fetch https://github.com/Jackett/Jackett/releases/download/v0.17.15/Jackett.Binaries.Mono.tar.gz -o /usr/local/share" iocage exec jackett "tar -xzvf /usr/local/share/Jackett.Binaries.Mono.tar.gz -C /usr/local/share" iocage exec jackett rm /usr/local/share/Jackett.Binaries.Mono.tar.gz iocage exec jackett "pw user add jackett -c jackett -u 818 -d /nonexistent -s /usr/bin/nologin" iocage exec jackett chown -R jackett:jackett /usr/local/share/Jackett /config iocage exec jackett mkdir /usr/local/etc/rc.d iocage exec jackett ee /usr/local/etc/rc.d/jackett iocage exec jackett chmod u+x /usr/local/etc/rc.d/jackett iocage exec jackett sysrc "jackett_enable=YES" iocage exec jackett service jackett start

When the ee command is run for the rc.d file, paste this in:
Code:
#!/bin/sh

# $FreeBSD$
#
# PROVIDE: jackett
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# jackett_enable: Set to YES to enable jackett
# Default: NO
# jackett_user: The user account used to run the jackett 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
# jackett_group: The group account used to run the jackett 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
# jackett_data_dir: Directory where jackett configuration
# data is stored.
# Default: /var/db/jackett

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

: ${jackett_enable:="NO"}
: ${jackett_user:="jackett"}
: ${jackett_group:="jackett"}
: ${jackett_data_dir:="/config"}

command="/usr/sbin/daemon"
procname="/usr/local/bin/mono"
command_args="-p ${jackett_data_dir}/jackett.pid -f ${procname} /usr/local/share/Jackett/JackettConsole.exe -d ${jackett_data_dir}"

start_precmd=jackett_precmd
jackett_precmd() {
export USER=${jackett_user}
if [ ! -d ${jackett_data_dir} ]; then
install -d -o ${jackett_user} -g ${jackett_group} ${jackett_data_dir}
fi

export XDG_CONFIG_HOME=${jackett_data_dir}
}

run_rc_command "$1"
 
Top