radarr - can not see mounts

Shrdlu

Dabbler
Joined
Mar 23, 2019
Messages
20
Hello all.

I am hoping someone can help me with a radarr problem. My apologies and thanks in advance.

The problem is when i load up the radarr webui and import existing movies -> start import then go to /mnt there are no folders.
I have also entered the jail shell and mkdir /mnt/test and still no folders appear with the radarr webui. The folders all appear within the jail shell with ls.

I have a feeling im making a stupid mistake with permissions, but i cannot see the error.

My system set up is:
Truenas: TrueNAS-13.0-U3.1

Jail version: 13.1-RELEASE-p2
creation method: manual
radarr version: latest
radarr jail mount: /mnt/Apps/iocage/jails/radarr/root/mnt/movies
radarr jail source: /mnt/Main/Data/Videos/Movies

User created within Truenas webui accounts/user
radarr uid: 352
Primary Group: radarr
Secondary group: wheel

Group created within Truenas webui accounts/group
radarr gid: 352
Both mount locations have user and group as "rwx" within their dataset permissions and group set as "wheel"
Wheel is the group i plan to put all my -arr apps into. Plex and Transmission are both currently in Wheel and work fine.

From within the radarr jail shell /mnt ls -la shows:
drwxr-xr-x 5 root wheel 5 Feb 17 00:47 .
drwxr-xr-x 18 root wheel 22 Feb 16 23:42 ..
drwx------+ 29 root wheel 29 Jan 5 2022 movies
drwxr-xr-x 2 root wheel 2 Feb 17 00:47 test
drwxrwx---+ 3 921 wheel 3 Feb 16 15:49 torrents
user 921 is transmission

id radarr shows:
uid=352(radarr) gid=352(radarr) groups=352(radarr)

sysrc -a shows:
cron_flags: -J 15
ifconfig_epair0b: SYNCDHCP
ipv6_activate_all_interfaces: YES
radarr_enable: YES
sendmail_enable: NO
sendmail_msp_queue_enable: NO
sendmail_outbound_enable: NO
sendmail_submit_enable: NO
syslogd_flags: -c -ss

cat /usr/local/etc/rc.d/radarr shows:
#!/bin/sh

# PROVIDE: radarr
# REQUIRE: LOGIN network
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf or use sysrc to enable radarr
# ${radarr_enable="YES"}
# Optionaly there are some other parameters
# ${radarr_user="radarr"}
# ${radarr_group="radarr"}
# This stores radarr data (e.g., databases, configs, logs)
# ${radarr_data_dir="/usr/local/radarr"}
# This stores the PID files that daemon will use
# ${radarr_pid_dir:="/var/run/radarr"}

. /etc/rc.subr
name=radarr
rcvar=radarr_enable
load_rc_config $name

: ${radarr_enable:=NO}
: ${radarr_user:="radarr"}
: ${radarr_group:="radarr"}
: ${radarr_exec_dir:="/usr/local/share/radarr/bin"}
: ${radarr_data_dir:="/usr/local/radarr"}
: ${radarr_pid_dir:="/var/run/radarr"}

pidfile="${radarr_pid_dir}/${name}_daemon.pid"
pidfile_child="${radarr_pid_dir}/${name}_child.pid"
command="/usr/sbin/daemon"


start_precmd=${name}_precmd
radarr_precmd() {
if [ ! -d ${radarr_data_dir} ]; then
install -d -o ${radarr_user} -g ${radarr_group} ${radarr_data_dir}
fi
if [ ! -d ${radarr_pid_dir} ]; then
install -d -o ${radarr_user} -g ${radarr_group} ${radarr_pid_dir}
fi

# .NET 6+ use dual mode sockets to avoid the separate AF handling.
# disable .NET use of V6 if no ipv6 is configured.
# See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17
ifconfig | grep -q inet6
if [ $? == 1 ]; then
export DOTNET_SYSTEM_NET_DISABLEIPV6=1
fi

rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} ${radarr_exec_dir}/Radarr --data=${radarr_data_dir} --nobrowser >> /dev/null 2>&1 ${rc_flags}"
}

run_rc_command "$1"
 

Shrdlu

Dabbler
Joined
Mar 23, 2019
Messages
20
I have now managed to get radarr to see the folders by changing radarr user to root.

First I tried adding the radarr user into the wheel group using pw usermod radarr -G wheel but still could not see the folders

I changed the user to root by editting /usr/local/etc/rc.d/radarr
: ${radarr_user:=”radarr”}
to:
: ${radarr_user:=”root”}

I am now going try setting up radarr and hope it works. But i am still confused why it would not work before?
 
Last edited:
Top