Can't get sabnzbdplus to run at all

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Rumbles
Newbie
Newbie
Posts: 10
Joined: March 11th, 2012, 5:06 am

Can't get sabnzbdplus to run at all

Post by Rumbles »

I recently had sab running fine on ubuntu server 11.10, but had some issues and ended having some issues while trying to get it to run as a different user and ended up uninstalling it completely, upon reinstall I can't get it to run at all and it gives no error when starting. Nothng appears to be entered in ~/.sabnzb/logs/sabnzb.txt either, so I don't know what's causing it to fail. I get this output when I run:

Code: Select all

$ sudo sh -x /etc/init.d/sabnzbdplus start
+ DAEMON=/usr/bin/sabnzbdplus
+ SETTINGS=/etc/default/sabnzbdplus
+ [ -x /usr/bin/sabnzbdplus ]
+ [ -r /etc/default/sabnzbdplus ]
+ DESC=SABnzbd+ binary newsgrabber
+ DEFOPTS=--daemon
+ sed -n 1s/^#\!\([a-z0-9\.\/]\+\)\(.*\)/\1(\2)?/p /usr/bin/sabnzbdplus
+ PYTHONEXEC=^/usr/bin/python( -OO)?
+ PIDFILE=/var/run/sabnzbdplus.pid
+ SETTINGS_LOADED=FALSE
+ unset USER CONFIG HOST PORT EXTRAOPTS
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ LOG_DAEMON_MSG=
+ start_sab
+ load_settings
+ [ FALSE != TRUE ]
+ . /etc/default/sabnzbdplus
+ USER=root
+ CONFIG=
+ HOST=192.168.0.67
+ PORT=8787
+ EXTRAOPTS=
+ [ -z root ]
+ [ -z root ]
+ OPTIONS=--daemon
+ [ -n  ]
+ [ -n 192.168.0.67 ]
+ SERVER=192.168.0.67
+ [ -n 8787 ]
+ SERVER=192.168.0.67:8787
+ [ -n 192.168.0.67:8787 ]
+ OPTIONS=--daemon --server 192.168.0.67:8787
+ [ -n  ]
+ SETTINGS_LOADED=TRUE
+ return 0
+ is_running
+ pgrep -f -x -u root ^/usr/bin/python( -OO)? /usr/bin/sabnzbdplus --daemon.*
+ PID=
+ RET=1
+ [ 1 -gt 1 ]
+ return 1
+ log_daemon_msg Starting SABnzbd+ binary newsgrabber
+ [ -z Starting SABnzbd+ binary newsgrabber ]
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != x ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput xenl
+ /usr/bin/tput cols
+ COLS=115
+ [ 115 ]
+ [ 115 -gt 6 ]
+ /usr/bin/expr 115 - 7
+ COL=108
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf  * Starting SABnzbd+ binary newsgrabber
 * Starting SABnzbd+ binary newsgrabber       + /usr/bin/expr 115 - 1
+ /usr/bin/tput hpa 114
                                                                                                                  + printf
 + start-stop-daemon --quiet --chuid root --start --exec /usr/bin/sabnzbdplus -- --daemon --server 192.168.0.67:8787
+ check_retval
+ [ 2 -eq 0 ]
+ log_end_msg 1
+ [ -z 1 ]
+ [ 108 ]
+ [ -x /usr/bin/tput ]
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf \r
+ /usr/bin/tput hpa 108
                                                                                                            + [ 1 -eq 0 ]
+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
+ echo ]
]
+ return 1
+ exit 1
Not really sure what I'm looking for here and the bit in red:

Code: Select all

+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
means nothing to me.

Any clue what I'm looking at or where else to look would be greatly appreciated.
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Can't get sabnzbdplus to run at all

Post by sander »

Start the easy way:

Login as the user that should run SABnzbd, and then type "sabnzbdplus"<ENTER> ... What happens?
Rumbles
Newbie
Newbie
Posts: 10
Joined: March 11th, 2012, 5:06 am

Re: Can't get sabnzbdplus to run at all

Post by Rumbles »

thanks for the help sander,

it starts up fine, and even loads up the config that was set up the last time I managed to get it working correctly (so why the config folder in my own user folder? Is this for the service config?)

if I try to run as a service it fails:

Code: Select all

sudo service sabnzbdplus start
 * SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
sudo /etc/init.d/sabnzbdplus start
 * SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
any ideas why?
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Can't get sabnzbdplus to run at all

Post by sander »

What is in /etc/default/sabnzbdplus ?
Rumbles
Newbie
Newbie
Posts: 10
Joined: March 11th, 2012, 5:06 am

Re: Can't get sabnzbdplus to run at all

Post by Rumbles »

Ah it had been blanked out after one of my reinstalls, seems to be running fine now...

Thanks sander! weird that until I had run it as root it wasn't letting me run it as a service
Post Reply