[OFFICIAL] sabnzbd

Problems with packages? Post here, using [tags] of the package name.

Re: [OFFICIAL] sabnzbd

Postby sporez » Mon Mar 14, 2011 9:07 pm

I'm having trouble with SABnzbd running myself. I have Arch Linux ARM installed with a Pogoplug pink.

I have installed python, cherrypy, cheetah, pyopenssl, unrar and unzip and the sabnzbd package. Once I start sabnzbd I open up my browser and try to browse to ipOfPlug:8081 but the browser just says "Unable to connect" even though SAB seems to be running on the pogoplug. Here's the sabnzbd log file, if that helps:

$this->bbcode_second_pass_code('', '2011-03-14 16:25:23,113::INFO::[SABnzbd:973] --------------------------------
2011-03-14 16:25:23,115::INFO::[SABnzbd:974] SABnzbd.py-0.5.6 (rev=2503)
2011-03-14 16:25:23,116::INFO::[SABnzbd:984] Platform = posix
2011-03-14 16:25:23,118::INFO::[SABnzbd:985] Python-version = 2.7.1 (r271:86832, Feb 26 2011, 13:18:21)
[GCC 4.5.2]
2011-03-14 16:25:23,394::INFO::[misc:308] cache_dir directory: /opt/sabnzbd/cache does not exist, try to create it
2011-03-14 16:25:23,401::INFO::[__init__:674] /opt/sabnzbd/cache/bookmarks.sab missing
2011-03-14 16:25:23,403::INFO::[__init__:674] /opt/sabnzbd/cache/rss_data.sab missing
2011-03-14 16:25:23,408::INFO::[__init__:674] /opt/sabnzbd/cache/bytes9.sab missing
2011-03-14 16:25:23,410::INFO::[__init__:674] /opt/sabnzbd/cache/queue9.sab missing
2011-03-14 16:25:23,412::INFO::[postproc:139] Loading postproc queue
2011-03-14 16:25:23,415::INFO::[__init__:674] /opt/sabnzbd/cache/postproc1.sab missing
2011-03-14 16:25:23,422::INFO::[__init__:674] /opt/sabnzbd/cache/watched_data.sab missing
2011-03-14 16:25:23,427::INFO::[downloader:334] Resuming
2011-03-14 16:25:23,513::INFO::[__init__:251] All processes started
2011-03-14 16:25:23,516::INFO::[SABnzbd:269] Web dir is /opt/sabnzbd/interfaces/smpl
2011-03-14 16:25:23,809::INFO::[SABnzbd:1038] Starting SABnzbd.py-0.5.6
2011-03-14 16:25:23,856::INFO::[dirscanner:375] Dirscanner starting up
2011-03-14 16:25:23,873::INFO::[SABnzbd:390] _yenc module... found!
2011-03-14 16:25:23,875::INFO::[SABnzbd:398] par2 binary... found (/usr/bin/par2)
2011-03-14 16:25:23,876::INFO::[SABnzbd:406] unrar binary... found (/usr/bin/unrar)
2011-03-14 16:25:23,877::INFO::[SABnzbd:411] unzip binary... found (/usr/bin/unzip)
2011-03-14 16:25:23,879::INFO::[SABnzbd:417] nice binary... found (/usr/bin/nice)
2011-03-14 16:25:23,880::INFO::[SABnzbd:421] ionice binary... found (/usr/bin/ionice)
2011-03-14 16:25:23,881::INFO::[SABnzbd:426] pyOpenSSL... found (True)
2011-03-14 16:25:23,893::INFO::[urlgrabber:103] URLGrabber starting up
2011-03-14 16:25:23,925::INFO::[SABnzbd:1136] Starting web-interface on 127.0.0.1:8080
2011-03-14 16:25:23,929::INFO::[_cplogging:55] [14/Mar/2011:16:25:23] ENGINE Bus STARTING
2011-03-14 16:25:24,014::INFO::[_cplogging:55] [14/Mar/2011:16:25:24] ENGINE Started monitor thread '_TimeoutMonitor'.
2011-03-14 16:25:24,225::INFO::[_cplogging:55] [14/Mar/2011:16:25:24] ENGINE Serving on 127.0.0.1:8080
2011-03-14 16:25:24,227::INFO::[_cplogging:55] [14/Mar/2011:16:25:24] ENGINE Bus STARTED
2011-03-14 16:25:38,411::INFO::[rss:376] Running scheduled RSS scan
2011-03-14 16:31:22,286::WARNING::[interface:219] API Key missing, please enter the api key from Config->General into your 3rd party program:
')
sporez
 
Posts: 3
Joined: Tue Mar 01, 2011 8:11 pm

Re: [OFFICIAL] sabnzbd

Postby WarheadsSE » Mon Mar 14, 2011 9:47 pm

sporez:
verify via netstat that the port is opened for listening.

It might not be open, which is a distinct issue in itself.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [OFFICIAL] sabnzbd

Postby sporez » Mon Mar 14, 2011 10:27 pm

$this->bbcode_second_pass_quote('WarheadsSE', 's')porez:
verify via netstat that the port is opened for listening.

It might not be open, which is a distinct issue in itself.


when I run netstat -tln I get this (the port 8081 is sickbeard which is working fine):

$this->bbcode_second_pass_code('', 'Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 :::139 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::445 :::* LISTEN')
sporez
 
Posts: 3
Joined: Tue Mar 01, 2011 8:11 pm

Re: [OFFICIAL] sabnzbd

Postby WarheadsSE » Tue Mar 15, 2011 12:53 pm

Ok, so it's listening on 0.0.0.0:8081, good. I don't use sickbeard, so the question is, does it have a limiter in the config file to specify which address it will talk to?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [OFFICIAL] sabnzbd

Postby ygator » Tue Mar 15, 2011 6:06 pm

sabnzbd defaults to running on 8080 which from you netstat it is.
However, it is only listening on the loopback device 127.0.0.1.
You need to change SABNZBD_IP in /etc/conf.d/sabnzbd to that of the IP address of your pogo plug.
ygator
 
Posts: 97
Joined: Tue Aug 10, 2010 9:37 pm

Re: [OFFICIAL] sabnzbd

Postby niko86 » Sun Mar 20, 2011 4:49 pm

Hello just got my pogoplug yesterday and got the courage to install PlugLinux.

I am a total novice when it comes to linux and the mountains of related commands and concepts. I tried installing Sabnzbd using ygator's instructions on page 2. Everything went well until I got this error and now receive it every time I run 'pacman S sabnzbd':


$this->bbcode_second_pass_code('', '[root@Arch Linux ARM install /]# pacman -S sabnzbd
resolving dependencies...
looking for inter-conflicts...

Targets (15): par2cmdline-0.4-14 libffi-3.0.9-1 python-3.1.3-2
python-cheetah-2.4.0-1 python2-2.7.1-6 libxml2-2.7.8-1
python-feedparser-4.1-6 python-yenc-0.3-1 pyopenssl-0.11-1
unrar-4.0.6-1 unzip-6.0-5 run-parts-3.4.1-1
ca-certificates-20090814+nmu2-1 curl-7.21.4-2 sabnzbd-0.5.4-3

Total Download Size: 1.00 MB
Total Installed Size: 153.27 MB

Proceed with installation? [Y/n] Y
:: Retrieving packages from community...
error: failed retrieving file 'sabnzbd-0.5.4-3-arm.pkg.tar.xz' from plugboxlinux.org : Not Found
warning: failed to retrieve some files from community
error: failed to commit transaction (Not Found)
Errors occurred, no packages were upgraded.
')

Any help would be much appreciated.
niko86
 
Posts: 3
Joined: Sun Mar 20, 2011 4:42 pm

Re: [OFFICIAL] sabnzbd

Postby pepedog » Sun Mar 20, 2011 5:02 pm

Did you run updates first?
Be careful and follow this
http://Arch Linux ARM.com/index.php5/PlugApps_February_Update
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [OFFICIAL] sabnzbd

Postby niko86 » Sun Mar 20, 2011 5:06 pm

$this->bbcode_second_pass_quote('pepedog', 'D')id you run updates first?
Be careful and follow this
http://Arch Linux ARM.com/index.php5/PlugApps_February_Update


Edit: fixed that problem by actually reading ygators post :(

I can only get sabnzbd running by using the:

python2 /opt/sabnzbd/python2 SABnzbd.py

Is this fine? Seeing as '/usr/bin/python-config' points to python3 in its first line in nano. Could it be changed to point to python2 or would that break stuff?

I need to add it as a daemon, but having trouble getting it to work.

Also I'm stuck on actually mounting a usb hard drive and specifying sabnzbd to use that as a download directory.

I do enjoy working things out for myself, but I do feel totally out of my depth as a total linux novice.
niko86
 
Posts: 3
Joined: Sun Mar 20, 2011 4:42 pm

Re: [OFFICIAL] sabnzbd

Postby ygator » Mon Mar 21, 2011 5:19 am

They have fixed everything now, though I have not tested from a clean install, but nothing really special to do.
First make sure everything is up to date with
$this->bbcode_second_pass_code('', 'pacman -Syyu')and then you simply do a
$this->bbcode_second_pass_code('', 'pacman -S sabnzbd')To start and stop you do
$this->bbcode_second_pass_code('', '/etc/rc.d/sabnzbd start
/etc/rc.d/sabnzbd stop')You can also add it to the daemon list at the end of /etc/rc.conf to have it auto start at boot.

Once you have setup sabnzbd you will need to edit /etc/conf.d/sabnzbd and set your api key.
You will also want to set the IP up as well. This is used when doing an /etc/rc.d/sabnzbd stop.

When you setup sabnzbd to put the files to your mounted drive instead of the default you want to make sure it is mounted before starting sabnzbd or else it will reset back to defaults. Also sabnzbd defaults and runs under the sabnzbd user. If you keep it this way you will want to mount the drive with sabnzbd as the owner of the drive. If you don't do this then you will need to have it run under root by changing the user in /etc/conf.d/sabnzbd.
ygator
 
Posts: 97
Joined: Tue Aug 10, 2010 9:37 pm

Re: [OFFICIAL] sabnzbd

Postby niko86 » Mon Mar 21, 2011 10:33 am

Thanks ygator, I'll try a clean install and start from scratch not got anything to lose really :lol:

Is there a total novice guide to Arch Linux ARM? I do ok at scraping together info from the wiki and forum posts, but the majority of information assumes you know what is being talked about. For example mounting a hard drive, proper way to shutdown etc.
niko86
 
Posts: 3
Joined: Sun Mar 20, 2011 4:42 pm

PreviousNext

Return to Packages

Who is online

Users browsing this forum: No registered users and 6 guests