This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

SABnzbd will not run

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
nobby
NewUser
NewUser
Posts: 8
Joined: 24 Jun 2012 02:59
Status: Offline

SABnzbd will not run

Post by nobby »

Hi, I'm having an issue with getting SABnzbd running in a jail. I've had it running previously just fine, but yesterday I had to reboot my server and when I started up my jail, I just couldn't get SAB going again. I have Sickbeard installed as well and that runs with no problems.
I tried installing a new jail using TheBrig (my original jail was a manual install), did a portsnap fetch, installed SAB from ports, and still no joy. I've been scouring the internet for a solution but nothing has come up yet.

This is what I get when I start SAB in the jail

Code: Select all

root@test:/ # /usr/local/etc/rc.d/sabnzbd start
Starting sabnzbd.
But when I try to load up the webpage I get a "404 - Not Found" message.

Below is some output when I run the above command.

Code: Select all

run_rc_command "$1"
+ run_rc_command start
+ _return=0
+ rc_arg=start
+ [ -z sabnzbd ]
+ shift 1
+ rc_extra_args=''
+ _rc_prefix=''
+ eval '_override_command=$sabnzbd_program'
+ _override_command=''
+ command=''
+ _keywords='start stop restart rcvar '
+ rc_pid=''
+ _pidcmd=''
+ _procname=''
+ [ -n '' ]
+ [ -z start ]
+ [ -n '' ]
+ eval 'rc_flags=$sabnzbd_flags'
+ rc_flags=''
+ eval '_chdir=$sabnzbd_chdir' '_chroot=$sabnzbd_chroot' '_nice=$sabnzbd_nice' '_user=$sabnzbd_user' '_group=$sabnzbd_group' '_groups=$sabnzbd_groups'
+ _chdir='' _chroot='' _nice='' _user=_sabnzbd _group=_sabnzbd _groups=''
+ [ -n _sabnzbd ]
+ eval if [ -x /usr/bin/id '];' then /usr/bin/id '-un;' fi
+ [ -x /usr/bin/id ]
+ /usr/bin/id -un
+ [ _sabnzbd = root ]
+ [ -z '' ]
+ eval
+ [ start != start ]
+ [ -n sabnzbd_enable -a start != rcvar -a start != stop ]
+ checkyesno sabnzbd_enable
+ eval '_value=$sabnzbd_enable'
+ _value=YES
+ debug 'checkyesno: sabnzbd_enable is set to YES.'
+ return 0
+ eval '_cmd=$start_cmd' '_precmd=$start_precmd' '_postcmd=$start_postcmd'
+ _cmd=sabnzbd_start _precmd=sabnzbd_prestart _postcmd=''
+ [ -n sabnzbd_start ]
+ _run_rc_precmd
+ check_required_before start
+ local _f
+ [ ! -d /usr/local/sabnzbd/. ]
+ return 0
+ [ -n sabnzbd_prestart ]
+ debug 'run_rc_command: start_precmd: sabnzbd_prestart '
+ eval 'sabnzbd_prestart '
+ sabnzbd_prestart
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin:/usr/local/bin:/usr/local/sbin
+ [ ! -f /usr/local/sabnzbd -a ! -d /usr/local/sabnzbd -a ! -L /usr/local/sabnzbd ]
+ _return=0
+ [ 0 -ne 0 ]
+ check_required_after start
+ local _f _args
+ return 0
+ return 0
+ _run_rc_doit 'sabnzbd_start '
+ debug 'run_rc_command: doit: sabnzbd_start '
+ eval 'sabnzbd_start '
+ sabnzbd_start
+ [ ! -f '' ]
+ su -m _sabnzbd -c '/usr/local/bin/SABnzbd.py --daemon -f /usr/local/sabnzbd/sabnzbd.ini'
+ echo 'Starting sabnzbd.'
Starting sabnzbd.
+ _return=0
+ [ 0 -ne 0 ]
+ return 0
+ _run_rc_postcmd
+ [ -n '' ]
+ return 0
+ return 0
I'm not sure what other log reports I can obtain that would help pinpoint the issue (or how to run them), but if anyone could help me out I would appreciate it.

Cheers

nobby
NewUser
NewUser
Posts: 8
Joined: 24 Jun 2012 02:59
Status: Offline

Re: SABnzbd will not run

Post by nobby »

Okay, if I specify a different port to 8080 when running SABnzbd.py then I can access the webpage. Could there be something locking up port 8080?

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: SABnzbd will not run

Post by fsbruva »

That must be it. Run this command inside the jail:

sockstat -l46

It will list all the things that are bound to network addresses, including the port they are bound to.

nobby
NewUser
NewUser
Posts: 8
Joined: 24 Jun 2012 02:59
Status: Offline

Re: SABnzbd will not run

Post by nobby »

Below is the output when I run sockstat without Sab running. Nothing seems to be using port 8080, but if I try to start Sab on 8080 it just won't run. I do have owncloud running outside the jail on port 8080 but that's on ip 192.168.1.250 so I wouldn't have thought that would cause a conflict - plus it was all running happy together before I rebooted my machine.

Code: Select all

root@proto:/ # sockstat -l46
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     python2.7  44833 7  tcp4   192.168.1.230:8090    *:*
root     sendmail   10240 3  tcp4   192.168.1.230:25      *:*
_sabnzbd python2.7  10215 4  tcp4   192.168.1.230:8081    *:*
root     syslogd    10184 6  udp4   192.168.1.230:514     *:*
Anyway, I've got Sab running on 8082 for now and have updated Sickbeard etc to point to the correct port so all is working.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: SABnzbd will not run

Post by raulfg3 »

nobby wrote:I do have owncloud running outside the jail on port 8080 but that's on ip 192.168.1.250 so I wouldn't have thought that would cause a conflict
I think that this is the core of problem.

Do not use same port for owncloud and for SABnzbd.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: SABnzbd will not run

Post by fsbruva »

Can you run the sockstat command inside your owncloud jail please? I will bet that Owncloud has bound to all IP's at 8080. And! the reason it worked before has to do with the order the jails are being started. Are you starting them all in parallel? Which one did you build first, and which one is getting started first now?

nobby
NewUser
NewUser
Posts: 8
Joined: 24 Jun 2012 02:59
Status: Offline

Re: SABnzbd will not run

Post by nobby »

Thanks for your replies. I ran sockstat in the main nas4free environment and the output is below. I imagine that the line "www lighttpd 2006 4 tcp4 *:8080" means that port 8080 is bound to all IPs as you say. I don't remember, but I must have been experimenting with getting owncloud up and running a couple of months ago - after I had the jail & SAB going.
I don't have owncloud running in a jail, its in the webserver folder. I guess on system restart, the webserver service gets started first followed by the command scripts. This is probably all painfully obvious to someone with more technical knowledge than me - thanks for helping me to understand.

Code: Select all

nas4free:~# sockstat -l46
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     python2.7  50908 4  tcp4   192.168.1.230:8090    *:*
350      python2.7  50829 8  tcp4   192.168.1.230:8082    *:*
350      python2.7  50829 9  tcp4   192.168.1.230:9090    *:*
root     sendmail   10240 3  tcp4   192.168.1.230:25      *:*
350      python2.7  10215 4  tcp4   192.168.1.230:8081    *:*
root     syslogd    10184 6  udp4   192.168.1.230:514     *:*
root     lighttpd   2450  5  tcp4   192.168.1.250:443     *:*
root     mDNSRespon 2381  3  udp4   *:32465               *:*
root     mDNSRespon 2381  4  udp4   *:5353                *:*
root     sshd       2275  4  tcp6   *:22                  *:*
root     sshd       2275  5  tcp4   *:22                  *:*
root     smbd       2236  26 tcp6   *:445                 *:*
root     smbd       2236  27 tcp6   *:139                 *:*
root     smbd       2236  28 tcp4   *:445                 *:*
root     smbd       2236  29 tcp4   *:139                 *:*
root     nmbd       2233  9  udp4   *:137                 *:*
root     nmbd       2233  10 udp4   *:138                 *:*
root     nmbd       2233  11 udp4   192.168.1.250:137     *:*
root     nmbd       2233  12 udp4   192.168.1.255:137     *:*
root     nmbd       2233  13 udp4   192.168.1.250:138     *:*
root     nmbd       2233  14 udp4   192.168.1.255:138     *:*
root     nmbd       2233  19 udp4   192.168.1.230:137     *:*
root     nmbd       2233  20 udp4   192.168.1.230:137     *:*
root     nmbd       2233  21 udp4   192.168.1.230:138     *:*
root     nmbd       2233  22 udp4   192.168.1.230:138     *:*
www      lighttpd   2006  4  tcp4   *:8080                *:*
root     rpc.statd  1932  4  udp6   *:1015                *:*
root     rpc.statd  1932  5  tcp6   *:1015                *:*
root     rpc.statd  1932  6  udp4   *:1015                *:*
root     rpc.statd  1932  7  tcp4   *:1015                *:*
root     nfsd       1928  5  tcp4   *:2049                *:*
root     nfsd       1928  6  tcp6   *:2049                *:*
root     mountd     1916  5  udp6   *:999                 *:*
root     mountd     1916  6  tcp6   *:999                 *:*
root     mountd     1916  7  udp4   *:999                 *:*
root     mountd     1916  8  tcp4   *:999                 *:*
root     rpcbind    1888  4  udp6   *:*                   *:*
root     rpcbind    1888  6  udp6   *:111                 *:*
root     rpcbind    1888  7  udp6   *:724                 *:*
root     rpcbind    1888  8  tcp6   *:111                 *:*
root     rpcbind    1888  9  udp4   *:111                 *:*
root     rpcbind    1888  10 udp4   *:996                 *:*
root     rpcbind    1888  11 tcp4   *:111                 *:*
?        ?          ?     ?  tcp6   *:988                 *:*
?        ?          ?     ?  udp4   *:937                 *:*
?        ?          ?     ?  udp4   *:2049                *:*
?        ?          ?     ?  udp6   *:751                 *:*
?        ?          ?     ?  udp4   *:*                   *:*
?        ?          ?     ?  udp6   *:854                 *:*
?        ?          ?     ?  tcp4   *:914                 *:*
?        ?          ?     ?  udp6   *:2049                *:*

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: SABnzbd will not run

Post by fsbruva »

Yup - your owncloud install is breaking your SABnzbd. You need to reconfigure the webserver service to only listen on a particular port. You would do this by adding this line to the "Auxiliary Parameters" field of the "Webserver" service in the Nas4Free webgui:

Code: Select all

server.bind                = "192.168.1.250"
That will force the webpages served up to only listen on the HOST ip, and leave all the jail ip's alone.

Post Reply

Return to “Jails”