Sickrage plugin will not start after last update

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Get ready to do it all again in iocage :)
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
I haven't done a fresh one, my iocage is a old warden jail, imported into iocage. However, the migration script work and it still runs fine.

I figure I'll wait for them to write a new plugin, I did create a job for it and I made it cleari n the notes "hey guys, to make this, might be as easy as just renaming a few things for the old sickrage plugin and a URL change, etc" (which is mostly true)

You'll see one eventually.
 

Skyler

Dabbler
Joined
Feb 8, 2014
Messages
28
Yeah, I keep reading that more plugins will be available in 11.2 than previous versions. Just need to give it time, I suppose. In the meantime I think I'll check out Sonarr.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Good luck a lot of people love it. I personally found the UI abhorrent, but I'm quite old fasioned.
 

Wartooth

Cadet
Joined
Jan 4, 2017
Messages
4
Here is the script I used to migrate from sickrage (warden) to sickchill (iocage). I used the steps from the post here #22, and combined it with Joshua's commands in this thread, then rolled it into a script derived from a bunch of other posts about scripting iocage installs I've read on the forums. This could also be used to migrate to medusa. The script also needs the rc file to be created, I saved it and copied it as part of the install script. I've had issues with the .pid file, not sure what or where that needs to be (no expert), but its been enough so I could get it working again.

After all that though, I notice that there is an official iocage Sickchill plugin now in testing, which might be the better way to go. Instructions are at the blog post: https://www.ixsystems.com/blog/february-plugin-updates-and-new-plugins-for-testing/



Code:
#!/bin/sh
JAIL_IP=[JAIL STATIC IP]
JAIL_PATH=[PATH TO JAILS CONFIG DIRECTORY e.g. "/mnt/jails/jaildata"]
JAIL_NAME=sickchill
DEFAULT_GW_IP=[GATEWAY IP ADDRESS]
SHARED_GRP=[SHARED GROUP NAME AS NAMED IN FREENAS SYSTEM]
SHARED_GRPID=[GROUP ID NUMBER SHARED BETWEEN JAIL AND FREENAS]

iocage stop ${JAIL_NAME}
iocage destroy -f ${JAIL_NAME}
echo '{"pkgs":["git","ca_root_nss","nano","python27","py27-sqlite3","py27-openssl","py27-pip","py27-lxml","unrar"]}' > /tmp/pkg.json
iocage create --name "${JAIL_NAME}" -p /tmp/pkg.json -r 11.2-RELEASE ip4_addr="vnet0|${JAIL_IP}/24" vnet="on" allow_raw_sockets="1" defaultrouter="${DEFAULT_GW_IP}" boot="on" host_hostname="${JAIL_NAME}" mount_linprocfs="1"
rm /tmp/pkg.json

mkdir -p ${JAIL_PATH}/${JAIL_NAME}/config/
iocage exec ${JAIL_NAME} mkdir /config

iocage fstab -a ${JAIL_NAME} ${JAIL_PATH}/${JAIL_NAME}/config/ /config nullfs rw 0 0
iocage fstab -a ${JAIL_NAME} [/PATH/TO/MEDIA] [/PATH/TO/MEDIA/INSIDE/JAIL] nullfs rw 0 0
iocage fstab -a ${JAIL_NAME} [/PATH/TO/DOWNLOADS] [/PATH/TO/DOWNLOADS/INSIDE/JAIL] nullfs rw 0 0

iocage exec ${JAIL_NAME} pw useradd -n ${JAIL_NAME}
iocage exec ${JAIL_NAME} pw groupadd -n ${SHARED_GRP} -g ${SHARED_GRPID}
iocage exec ${JAIL_NAME} pw groupmod ${SHARED_GRP} -m ${JAIL_NAME}

iocage exec ${JAIL_NAME} mkdir -p /git/sickchill
iocage exec ${JAIL_NAME} git clone https://github.com/SickChill/SickChill.git /git/sickchill/
iocage exec ${JAIL_NAME} cp -R /git/sickchill /usr/local/share/sickchill
iocage exec ${JAIL_NAME} chown -R ${JAIL_NAME}:${JAIL_NAME} /usr/local/share/sickchill
iocage exec ${JAIL_NAME} pip install -r /usr/local/share/${JAIL_NAME}/requirements/requirements.txt


cp [/PATH/TO/RC.D/FILES/]${JAIL_NAME} /mnt/iocage/jails/${JAIL_NAME}/root/usr/local/etc/rc.d/${JAIL_NAME}
iocage exec ${JAIL_NAME} chmod 755 /usr/local/etc/rc.d/${JAIL_NAME}

iocage exec ${JAIL_NAME} sysrc "${JAIL_NAME}_enable=YES"
iocage exec ${JAIL_NAME} sysrc "${JAIL_NAME}_data_dir=/config"
iocage exec ${JAIL_NAME} sysrc "${JAIL_NAME}_user=${JAIL_NAME}"
iocage exec ${JAIL_NAME} sysrc "${JAIL_NAME}_group=${JAIL_NAME}"


cp -Ripv -f "/mnt/Tank/jails/sickrage_1/var/db/sickrage/" "${JAIL_PATH}/${JAIL_NAME}/config"
rm /${JAIL_PATH}/${JAIL_NAME}/config/sickchill.pid
sed -ie 's/SickRage\/SickRage.git/SickChill\/SickChill.git/g' ${JAIL_PATH}/${JAIL_NAME}/config/config.ini 
iocage exec ${JAIL_NAME} chown -R ${JAIL_NAME}:${JAIL_NAME} /config

iocage exec ${JAIL_NAME} service ${JAIL_NAME} start

# should be able to remove this after the next FN release (currently needed for 11.1-U2 systems)
#iocage exec ${JAIL_NAME} sysrc -f /etc/rc.conf ifconfig_epair0_name="epair0b"
#iocage exec ${JAIL_NAME} sysrc -f /etc/rc.conf ${JAIL_NAME}_enable="YES"

iocage restart ${JAIL_NAME}





#!/bin/sh

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

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

: ${sickchill_enable:="NO"}
: ${sickchill_user:="sickchill"}
: ${sickchill_group:="sickchill"}
: ${sickchill_data_dir:="/config"}




pidfile="${sickchill_data_dir}/sickchill.pid"
command="/usr/local/bin/python2.7"
command_args="/usr/local/share/sickchill//SickBeard.py --datadir ${sickchill_data_dir} -d --pidfile ${pidfile} -q --nolaunch"


start_precmd=sickchill_precmd
sickchill_precmd() {
if [ ! -d ${sickchill_data_dir} ]; then
install -d -o ${sickchill_user} -g ${sickchill_group} ${sickchill_data_dir}
fi

export XDG_CONFIG_HOME=${sickchill_data_dir}
}

run_rc_command "$1"
 
Top