Once service stops, won't restart

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
Paulitix
Newbie
Newbie
Posts: 7
Joined: October 21st, 2013, 3:17 pm

Once service stops, won't restart

Post by Paulitix »

I currently have Sab v 0.7.16 running as a service on a 12.04 LTS vm. If I stop the service, it fails when I try to restart it, but I can still run sabnzbd from the command line. When I run:

Code: Select all

sh -x /etc/init.d/sabnzbdplus start
I get this output:

Code: Select all

+ NAME=sabnzbdplus
+ 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
+ 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
+ [ -z  ]
+ . /etc/default/sabnzbdplus
+ USER=sean
+ CONFIG=
+ HOST=0.0.0.0
+ PORT=8081
+ EXTRAOPTS=
+ [ -z sean ]
+ OPTIONS=--daemon
+ [ -n  ]
+ [ -n 0.0.0.0 ]
+ SERVER=0.0.0.0
+ [ -n 8081 ]
+ SERVER=0.0.0.0:8081
+ [ -n 0.0.0.0:8081 ]
+ OPTIONS=--daemon --server 0.0.0.0:8081
+ [ -n  ]
+ return 0
+ is_running
+ pgrep -f -x -u sean ^/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=80
+ [ 80 ]
+ [ 80 -gt 6 ]
+ /usr/bin/expr 80 - 7
+ COL=73
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf  * Starting SABnzbd+ binary newsgrabber
 * Starting SABnzbd+ binary newsgrabber       + /usr/bin/expr 80 - 1
+ /usr/bin/tput hpa 79
                                                                               + printf
 + start-stop-daemon --quiet --chuid sean --start --exec /usr/bin/sabnzbdplus -- --daemon --server 0.0.0.0:8081
+ check_retval
+ [ 2 -eq 0 ]
+ log_end_msg 1
+ [ -z 1 ]
+ [ 73 ]
+ [ -x /usr/bin/tput ]
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf \r
+ /usr/bin/tput hpa 73
                                                                         + [ 1 -eq 0 ]
+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
+ echo ]
]
+ return 1
+ exit 1
Can anyone help?
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Once service stops, won't restart

Post by sander »

What is the output of "sudo service sabnzbdplus restart"?

Have you compared the output of "sh -x /etc/init.d/sabnzbdplus start" with a succesful start?
Paulitix
Newbie
Newbie
Posts: 7
Joined: October 21st, 2013, 3:17 pm

Re: Once service stops, won't restart

Post by Paulitix »

Code: Select all

 * Stopping SABnzbd+ binary newsgrabber                                  [ OK ]
 * Starting SABnzbd+ binary newsgrabber                                  [fail]
I can't get a successful start to be able to check. Last time I started the service was right after I created the VM, so I have to keep reverting to snapshot to get to a state where it was running as a service.


I'm prolly gonna start from scratch, as that will be quicker than troubleshooting, but I wanna figure this out...cuz I know its gonna be something stupid.

UPDATE: Its really strange. When I revert back to right after I installed SAB, I can start and stop the service no problem. So something happened between then and installing SickBeard, Couchpotato and Transmission that broke it.

UPDATE: It's SickBeard. Once that gets installed, I can no longer restart the service. I think it has to do with ports.
Post Reply