Page 1 of 1

SABnzbd cannot read Watched Folder when run as service

Posted: November 11th, 2011, 4:30 pm
by nhasian
Fresh install of Fedora16 and SABnzbd. everything works fine if I run SABnzbd from a terminal as a regular user. I'm trying to start it as a service when my computer boots. I have followed the instructions from http://wiki.sabnzbd.org/install-fedora-repo as listed below and was able to successfully start and stop the SABnzbd service from the terminal as described in step 3.

For some reason IF I run SABnzbd as a service it will not read the watched folder which resides in my ~/Downloads/incomplete/nzbs
the nzb files just sit there. If I stop the service and then just run it manually then it will start processing the nzbs. is this a permissions issue with the folder or am I missing something?

Run SABnzbd as a service
The RPM installs a service (init.d) but does not start it by defaut. If you want to run SABnzbd as a service executed as user $sabuser, you need to

(as $sabuser) run SABnzbd once to have a configuration file (the service checks that /home/$sabuser/.sabnzbd/sabnzbd.ini exists). Don't forget to stop SABnzbd when done
(as root) define a few variables in /etc/sysconfig/SABnzbd
(as root) try to start the service ("service SABnzbd start"), see if it's running ("service SABnzbd status"), try to stop it ("service SABnzbd stop"). If you can't stop it, it means the gui address and/or the username/password and/or the apikey is/are wrong (ie. fix /etc/sysconfig/SABnzbd). It's very important that the system can stop properly SABnzbd. Please be careful.
(as root) if the third step works: "chkconfig —levels 345 SABnzbd on", to have SABnzbd started in run levels 3,4, and 5 when your computer starts

Re: SABnzbd cannot read Watched Folder when run as service

Posted: November 11th, 2011, 4:37 pm
by shypike
When running as a service, SABnzbd usually runs under a different user account.
This affects access rights.
Also ~ is not probably not pointing to the right folder.

Re: SABnzbd cannot read Watched Folder when run as service

Posted: November 12th, 2011, 11:39 am
by nhasian
Thanks for the heads up. after you mentioned that I noticed that when I run SABnzbd as a user the "Default Base Folder" was /home/username but when I ran it as a service the default base folder was changed to /home/username/.sabnzbd

after I changed the settings in the User Folders to absolute pathnames ie /home/fedora/Downloads/incomplete/nzbs it worked fine. thanks!