danb35
Hall of Famer
- Joined
- Aug 16, 2011
- Messages
- 15,458
Trying to manually install Deluge in a jail--the plugin isn't installing and is giving an absolutely useless error message. So I create the jail and add mountpoints with:
Enter the jail, add a user of
The deluged service starts just fine, but deluge_web doesn't:
...and indeed, when I look in the rc file, there seems to be a missing "fi":
That's easy enough to fix. More problematic is that it insists on putting files into the user's home directory, even when deluge_web_confdir is pointing somewhere else. And since media has a home directory of /nonexistent, it fails. A simple short-term fix would be to give media a home directory, but it doesn't seem like this should be necessary. Thoughts?
Code:
iocage create --name "deluge" -r 11.2-RELEASE ip4_addr="vnet0|192.168.1.67/24" defaultrouter="192.168.1.1" boot="on" host_hostname="deluge" vnet="on" iocage fstab -a deluge /mnt/tank/portsnap/ports /usr/ports nullfs rw 0 0 iocage fstab -a deluge /mnt/tank/portsnap/db /var/db/portsnap nullfs rw 0 0 iocage fstab -a deluge /mnt/tank/apps/deluge /config nullfs rw 0 0 iocage fstab -a deluge /mnt/tank/torrents /media/torrents nullfs rw 0 0
Enter the jail, add a user of
media
with uid/gid of 8675309, login disabled, home directory of /nonexistent, then pkg install nano deluge-cli
. Once it's installed:Code:
chown -R media:media /config sysrc deluged_enable=YES sysrc deluged_user=media sysrc deluged_group=media sysrc deluged_confdir=/config sysrc deluge_web_enable=YES sysrc deluge_web_user=media sysrc deluge_web_group=media sysrc deluge_web_confdir=/config
The deluged service starts just fine, but deluge_web doesn't:
Code:
root@deluge:/usr/local/etc/rc.d # service deluge_web start /usr/local/etc/rc.d/deluge_web: 67: Syntax error: "}" unexpected (expecting "fi")
...and indeed, when I look in the rc file, there seems to be a missing "fi":
That's easy enough to fix. More problematic is that it insists on putting files into the user's home directory, even when deluge_web_confdir is pointing somewhere else. And since media has a home directory of /nonexistent, it fails. A simple short-term fix would be to give media a home directory, but it doesn't seem like this should be necessary. Thoughts?