Help with Freenas install
Posted: 12 Jul 2019, 05:23
I used NZBGet for years on windows before moving to a Freenas server, I switched to SAB at that time because of a manual install resource tutorial... Now I'm trying to move back to NZBGet and having a hell of a time, any help would be appreciated.
So far these are the steps I've taken, I think the main issue I'm having is permissions and properly setting the user for NZBGet to run as.
After this I manually edit the config from within the jail....
-Set the WebDir and ConfigTemplate
-Set the DaemonUsername Value to
Then...
Web UI loads and I can login with the default credentials, but I can't save modified settings, pretty sure I need to make changes to the /rc.conf/nzbget file to move the configuration file to the proper directory and have write permissions but I'm not sure how. For now I just did this and kept the file in the default location...
Modified settings now save... So I try adding a NZB and get this error...
So far these are the steps I've taken, I think the main issue I'm having is permissions and properly setting the user for NZBGet to run as.
Code: Select all
echo '{"pkgs":["nzbget","ca_root_nss"]}' > /tmp/pkg.json
iocage create -n "nzbget" -p /tmp/pkg.json -r 11.2-RELEASE ip4_addr="vnet0|192.168.1.33/24" defaultrouter="192.168.1.1" vnet="on" allow_raw_sockets="1" boot="on"
rm /tmp/pkg.json
iocage exec nzbget "pw user add nzbget -c nzbget -u 499 -d /nonexistent -s /usr/bin/nologin"
iocage exec nzbget mkdir -p /config
iocage exec nzbget mkdir -p /downloads
iocage exec nzbget mkdir -p /mnt/complete
iocage fstab -a nzbget /mnt/storage/apps/nzbget /config nullfs rw 0 0
iocage fstab -a nzbget /mnt/storage/downloaded /mnt/complete nullfs rw 0 0
iocage fstab -a nzbget /mnt/temp/downloads /downloads nullfs rw 0 0
iocage exec nzbget chown -R nzbget:nzbget /downloads /mnt/complete /config
iocage exec nzbget ln -s /usr/local/bin/python2.7 /usr/bin/python
iocage exec nzbget ln -s /usr/local/bin/python2.7 /usr/bin/python2
iocage exec nzbget sysrc nzbget_enable=YES
iocage exec nzbget sysrc nzbget_conf_dir="/config"
Code: Select all
ee /usr/local/etc/nzbget.conf
Code: Select all
WebDir=/usr/local/share/nzbget/webui
ConfigTemplate=/usr/local/share/nzbget/nzbget.conf
Code: Select all
DaemonUsername=nzbget
Code: Select all
iocage exec nzbget service nzbget start
Code: Select all
iocage exec nzbget chown -R nzbget:nzbget /usr/local/etc/nzbget.conf
I assume NZBGet is not running as user=nzbget since that user should have write permissions for the downloads directory. From here I'm lost...Could not create file /downloads/tmp/nzb-1.tmp