Page 1 of 1

DD-WRT Router - SABnzbd Plus won't Start

Posted: February 26th, 2011, 10:12 am
by dbreaka
I have installed SABnzbd via Optware on my DD-WRT Router (Asus RT-N16). When I do the following command

Code: Select all

root@DD-WRT:~# /opt/share/SABnzbd.py -s localhost:7777
I get the following after:

Code: Select all

2011-02-25 16:49:07,777::INFO::[SABnzbd:973] --------------------------------
2011-02-25 16:49:07,817::INFO::[SABnzbd:974] SABnzbd.py-0.5.6 (rev=2503)
2011-02-25 16:49:07,823::INFO::[SABnzbd:984] Platform = posix
2011-02-25 16:49:07,830::INFO::[SABnzbd:985] Python-version = 2.5.5 (r255:77872, May 20 2010, 23:37:05) 
[GCC 4.1.1]
2011-02-25 16:49:08,534::INFO::[__init__:702] /opt/share/SABnzbd/cache/bookmarks.sab removed
2011-02-25 16:49:08,554::INFO::[postproc:139] Loading postproc queue
2011-02-25 16:49:08,804::INFO::[__init__:702] /opt/share/SABnzbd/cache/postproc1.sab removed
2011-02-25 16:49:08,830::INFO::[downloader:334] Resuming
2011-02-25 16:49:08,996::INFO::[__init__:251] All processes started
2011-02-25 16:49:09,004::INFO::[SABnzbd:269] Web dir is /opt/share/SABnzbd/interfaces/smpl
2011-02-25 16:49:09,239::INFO::[SABnzbd:1038] Starting SABnzbd.py-0.5.6
2011-02-25 16:49:09,288::INFO::[dirscanner:375] Dirscanner starting up
2011-02-25 16:49:09,308::INFO::[urlgrabber:103] URLGrabber starting up
2011-02-25 16:49:09,317::INFO::[SABnzbd:390] _yenc module... found!
2011-02-25 16:49:09,323::INFO::[SABnzbd:398] par2 binary... found (/opt/bin/par2)
2011-02-25 16:49:09,329::INFO::[SABnzbd:406] unrar binary... found (/opt/bin/unrar)
2011-02-25 16:49:09,335::INFO::[SABnzbd:411] unzip binary... found (/opt/bin/unzip)
2011-02-25 16:49:09,341::INFO::[SABnzbd:417] nice binary... found (/opt/bin/nice)
2011-02-25 16:49:09,348::INFO::[SABnzbd:423] ionice binary... NOT found!
2011-02-25 16:49:09,354::INFO::[SABnzbd:426] pyOpenSSL... found (True)
2011-02-25 16:49:09,376::INFO::[SABnzbd:1136] Starting web-interface on localhost:7777
2011-02-25 16:49:09,386::INFO::[_cplogging:55] [25/Feb/2011:16:49:09] ENGINE Bus STARTING
2011-02-25 16:49:09,448::INFO::[_cplogging:55] [25/Feb/2011:16:49:09] ENGINE Started monitor thread '_TimeoutMonitor'.
2011-02-25 16:49:09,581::INFO::[_cplogging:55] [25/Feb/2011:16:49:09] ENGINE Serving on localhost:7777
2011-02-25 16:49:09,593::INFO::[_cplogging:55] [25/Feb/2011:16:49:09] ENGINE Bus STARTED
2011-02-25 16:49:23,548::INFO::[rss:376] Running scheduled RSS scan
It hangs on this last line:

2011-02-25 16:49:23,548::INFO::[rss:376] Running scheduled RSS scan

I try to navigate to http://192.168.1.1:7777/sabnzbd via my web browser, but I get a timeout.

I'm stuck at this point.

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 26th, 2011, 12:06 pm
by shypike
Do you have any RSS definitions and are they active?

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 27th, 2011, 8:49 am
by dbreaka
This is a new installation, no RSS feeds have been defined.

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 27th, 2011, 8:53 am
by dbreaka
SOLVED!

I executed the following instead and it worked:

/opt/share/SABnzbd/SABnzbd.py -s 192.168.1.1:9090

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 27th, 2011, 10:34 am
by shypike
Good. Apparently your router reserves some ports for its own use.

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 27th, 2011, 12:52 pm
by dbreaka
Spoke too soon.

Won't work on the router. I get a segmentation error and it shuts down. Not enough RAM on this thing. Sucks.

Unit RAM = 128 MB (2x 64MB - Samsung K4N511163QZ-HC25 or 2x 64MB - Samsung K4T51163QG-HCE6)
Unit Flash = 32 MB (MACRONIX MX29GL256EHTI2I-90Q)
Unit CPU = Broadcom4718A, 533 MHz (Factory clocked to 480MHz)

Word to anyone wanting to use this for SABnzbd, it won't work! You're best to run this on an actual desktop system.

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 28th, 2011, 2:30 am
by john3voltas
How about using one of it's USB ports (if it even has one) and plug a pendisk?
That way maybe you could use the pendisk as swap file.
Just a thought ;)
Cheers

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 28th, 2011, 2:47 pm
by shypike
128M is just not enough, sorry.

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 28th, 2011, 5:22 pm
by john3voltas
Are you sure?
Not even using swap?
Cheers

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 28th, 2011, 5:40 pm
by shypike
It would have to be a very efficient swap.
Of the 128M a significant part will be used by the OS and router software.
You'd be lucky if 64M was left for SABnzbd, which is just too little.

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: February 28th, 2011, 11:07 pm
by dbreaka
john3voltas wrote: How about using one of it's USB ports (if it even has one) and plug a pendisk?
That way maybe you could use the pendisk as swap file.
Just a thought ;)
Cheers
My attempt at SABnzbd on this router was actually done with a 4GB USB Stick. I even made the swapfile 1GB.

Definitely requires more RAM if you want to use this.

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: March 1st, 2011, 1:04 am
by z3r0z
it would be skull bashingly slow even if it worked. Even the highest end consumer routers seldom have processors faster than a blazing 300mhz... how long would it take to do repairs and unrars on that??

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: March 2nd, 2011, 12:34 am
by Effenberg0x0
Just a comment on my experience: I had many, many routers from all brands, always running alternative firmwares like DD-WRT, Tomato, etc. Bricked a few, etc. Man, its just not worth the pain. You always need more than they can do. You end up overclocking, burning the whole thing. Running stuff like Transmission-daemon and sabnzbd on the router will slow your network completely.

If you can, get yourself a mini-itx PC, like a Revo, which is very cheap, consumes very little power, and install your favorite Linux distro on it. The use your current router just as the AP. I have a Mini-PC that operates as Local DNS, DHCP server, Lamp, FTP, Windows File Server / Domain Controler, Firewall, Router (wired 1Gbit / wireless N), runs a small RAID 1 with two HDD (mdadm), plus Sabnzbd, Sick Beard, Couchpotato and Transmission-daemon, and is capable of XBMC via HDMI at very smooth 1080P.

I paid like 50 USD more on it than I would on a reasonably decent standard router. eBay / etc is got this things very cheap. Sure, it takes some effort to set it all up right, ok, you'll spend some days fixing it, but there's a lot of info on how to do it online. Something like BrazilFW (ex. Coyote NAS) for example may help you get up and running quickly. You can leave it headless or use the TV HDMI input as monitor when needed.

You'll be happier and there's no way to compare cost-benefit to any domestic / SOHO router I have ever seen.

Just my 2 cents.

Regards,
Effenberg

Re: DD-WRT Router - SABnzbd Plus won't Start

Posted: March 2nd, 2011, 3:25 am
by john3voltas
Local DNS, DHCP server, Lamp, FTP, Windows File Server / Domain Controler, Firewall, plus Sabnzbd, Sick Beard, Couchpotato and Transmission-daemon
I'm doing all this (except Firewall atm) on Seagate Dockstar (30€ on eBay).
Of course I had to buy an external USB disk (500GB for 50€).
Power consumption is between 5-8Watts.
Cheers