Page 1 of 1

Linux Server Install Help

Posted: October 1st, 2011, 10:54 am
by sobgtp
Hello,

Setting up my media server and I was working on getting sabnzbd up and running however I am running into an issue and I was wondering if someone could assist

Ubuntu 10.04

I understand that I need to update the configuration file /etc/default/sabnzbdplus , I edit the file with my system user i.e. USER:shawn and I have udpated the host and port so that it will run as a service

The name I am setting up the configuration file with is the same user name that I use for the server, however when I attempt to start the service I am given and error message:

Code: Select all

shawn@SERVER:~$ sudo service sabnzbdplus start
/etc/default/sabnzbdplus: 12: USER:shawn: not found
 * SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
The contents of my config file are:

Code: Select all

USER:shawn

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=

# [optional] hostname/ip and port number to listen on:
HOST=0.0.0.0
PORT=8090
It is probably something simple but every guide that I find simply says update the file and start the service

Thanks
Shawn

Re: Linux Server Install Help

Posted: October 1st, 2011, 1:56 pm
by sander
Why do you leave "CONFIG=" empty? What if you let that point the existing sabzbnd.ini (in ~/.sabnzbd).

Oh wait: you *can* run sabnzbdplus from the command line, can't you?

Re: Linux Server Install Help

Posted: October 1st, 2011, 2:53 pm
by sobgtp
I tried pointing to the ~/.sabnzbd/sabnzbd.ini file but that made no difference.

I can not run it from the command prompt, I have the config file updated but every time I attempt to run the application it gives me the user not found error message.

Re: Linux Server Install Help

Posted: October 1st, 2011, 10:46 pm
by sander
Here's the recipe:

login as shawn
open a terminal, type "sabnzbdplus" + <ENTER>. If the wizard starts, fill out everyting.
Now, check that SABnzbd is running correctly: can you use the webinterface? Does it download?
If so, stop sabnzbdplus.
Edit the sabnzbdplus config file (the one containg USER:shawn), and fill out "CONFIG=/home/shawn/.sabnzbd/sabnzbd.ini". Save the file.
Now start sabnzbdplus via "sudo service sabnzbdplus start"

HTH

Re: Linux Server Install Help

Posted: October 2nd, 2011, 2:53 am
by jcfp
sobgtp wrote:

Code: Select all

shawn@SERVER:~$ sudo service sabnzbdplus start
/etc/default/sabnzbdplus: 12: USER:shawn: not found
 * SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
The contents of my config file are:

Code: Select all

USER:shawn
That semicolon is your problem. Replace with "=" to fix. Setting CONFIG is optional, just as it says; leaving it empty will just use the standard location (perfectly fine for most users).

Re: Linux Server Install Help

Posted: October 2nd, 2011, 3:17 am
by sander
jcfp wrote:
That semicolon is your problem. Replace with "=" to fix.
Ah, good catch!