[OFFICIAL] sabnzbd

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

Re: [OFFICIAL] sabnzbd

Postby rgb » Mon Feb 20, 2012 11:40 am

Hi,

I have an annoying problem:
I recently bought a pogoplug running now Archlinuxarm (of course ;)) with sabnzbd and sickbeard. On my MacbookPro sabnzbd has no problems fetching nzbs given by sickbeard. But on my pogoplug it fails:
$this->bbcode_second_pass_code('', 'https://api.nzbmatrix.com/v1.1/download.php?id=xxxxx&username=xxxxxxx&apikey=xxxxxxxx&scenename=1 - URL Fetching failed; ()')
Adding nzbs manually works fine. Temporarily setted sickbeard to "Blackhole" and its loading...
Everything is right: my nzbmatrix username, the API etc... Tried to generate new Api several times, but with no luck. Also connections to the ssl-Server by Astraweb (US & EU) are failing, which is also not the case on my MBP:
$this->bbcode_second_pass_code('', '[Errno 111] Failed to connect: (0, 'Error') -1@ssl-us.astraweb.com:563')

Because everything works fine on my MBP, I thought it has to be a problem with the configuration of Arch? Maybe SSL configuration? You see, I'm new in that and hope you will help me :)

[SOLVED]: restarting sabnzbd with --clear solved all problems...
rgb
 
Posts: 1
Joined: Mon Feb 20, 2012 11:27 am

Re: [OFFICIAL] sabnzbd

Postby Chemodile » Sun Apr 08, 2012 12:28 am

$this->bbcode_second_pass_quote('minmao', 'O')ne more question, it seems sabnzbd does not allow me to change the downolad directory.
I tried to point the download folder to the mounted hdd drive (the system is on a small flash drive), however, whenever I tried to change the download folder, I got the following:

ERROR: download_dir directory: /media/Download/incomplete error accessing

I could tried both the GUI and changed the .ini file. Neither work.
What shall I do? Thanks!

I'm having this problem as well, and have been trying all day to solve it. It SEEMS like a permissions problem, so that's where I've been focusing my efforts, but nothing seems to work.

Here's what I've tried so far:
- chmod 777 on the folder and all subfolders that I'm attempting to point sab to.
- chown these folders to sabnzbd. I've noticed that I can issue these commands (as root) without any errors, but the settings don't seem to actually change. Possibly something to do with the mount parameters? I'm using udev-automount from the sticky in this forum.
- Added various secondary groups to the sabnzbd user (disk, storage, optical, and even root just to test when nothing else worked. As far as I can tell it should only need 'disk' permissions, but the error persists even when the sabnzbd user belongs to root!)

Very frustrating that I've finally got all the software I want running nicely, but the entire setup is bottlenecked by the fact that sab can't use my hard drive.

edit: Solution found and detailed two posts down, hopefully this helps someone.
Last edited by Chemodile on Sun Apr 08, 2012 2:58 pm, edited 1 time in total.
Chemodile
 
Posts: 2
Joined: Sun Apr 08, 2012 12:04 am

Re: [OFFICIAL] sabnzbd

Postby WarheadsSE » Sun Apr 08, 2012 12:55 am

Dumb ? What is the FS on this hard drive it can't use?
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 Chemodile » Sun Apr 08, 2012 1:01 am

$this->bbcode_second_pass_quote('WarheadsSE', 'D')umb ? What is the FS on this hard drive it can't use?

NTFS. Thanks for the hint, I finally got this all sorted out without any undesirable side effects.

SAB apparently doesn't like the mount parameters used by udev-automount so I removed it and set up my own. Here are the steps I took:

Remove automount:
$this->bbcode_second_pass_code('', 'pacman -R udev-automount')

Unmount the NTFS partition you want SAB to save to.
$this->bbcode_second_pass_code('', 'umount /media/{Your mount point}')

Find the UUID of said partition.
$this->bbcode_second_pass_code('', 'blkid')

Output should look something like this. The partition we're looking for is the one with TYPE="ntfs"
$this->bbcode_second_pass_code('', '[root@alarm ~]# blkid
/dev/sda1: UUID="7a18d305-a9c3-4c6d-98c4-cb3d45aa2037" TYPE="ext2"
/dev/sdb1: LABEL="DVR" UUID="01CD1614230ACDC0" TYPE="ntfs"
/dev/sdb2: UUID="a0ca2678-0808-487d-bccf-41245c68f2f3" TYPE="swap"
[root@alarm ~]#')

Edit /etc/fstab and add the following line, making sure to replace the UUID with the one you found using blkid. Also make sure to keep an empty newline at the end of /etc/fstab or you'll get warning messages about it later.
$this->bbcode_second_pass_code('', 'UUID=01CD1614230ACDC0 /media/DVR ntfs-3g rw,umask=0000,defaults 0 0')

Create your mount point if it doesn't already exist.
$this->bbcode_second_pass_code('', 'mkdir /media/DVR')

And mount the partition.
$this->bbcode_second_pass_code('', 'mount /media/DVR')

I also gave disk permissions to the user that SABnzbd runs under but this may or may not actually be necessary. If you do this, make sure the user is correct, as it can vary depending on how you installed SAB. It's easy to check by using the 'top' command while SAB is running.
$this->bbcode_second_pass_code('', 'usermod -a -G disk sabnzbd')

At this point you should be good. Make sure to go back into SAB and change the folders, as it will have likely reset them to default when you unmounted the drive.

I also set up a script called 'attach' that I run manually when I connect the drive, which mounts the NTFS partition, restores my sabnzbd.ini from a backup file (to fix the folder settings,) and activates the swap partition that I've set up on the same drive. Eventually I'd like to be able to do this all automatically when the drive is connected, but I haven't figured out how to do that yet.
$this->bbcode_second_pass_code('', '[root@alarm ~]# cat /usr/sbin/attach
#!/bin/bash
mount /media/DVR
cp /opt/sabnzbd/sabnzbd.ini.fix /opt/sabnzbd/sabnzbd.ini
swapon /dev/sdb2
free
[root@alarm ~]#')
Chemodile
 
Posts: 2
Joined: Sun Apr 08, 2012 12:04 am

Re: [OFFICIAL] sabnzbd

Postby chaskito » Sat Apr 21, 2012 9:54 pm

PORTS!!!! This was mentioned previously, but I want to iterate how important this is for efficient use of sab on these little servers. I was having miserable problems with sab running my pogo P01 really "hot" ie. sysload around 5-6.5.

My usenet provider allowed 50 ports so I allowed sab to use that many. Big mistake. In SABnzbd under "config - servers" - I changed the ports to 40 (no change) then down to 30. Now I get consistent download speeds (max out my dl speed) and don't choke the pogo. I also changed the setting under "config - switches - queue" so that while a job is being verified and repaired downloading is paused allowing more efficient use of resources.

Hope this helps someone, I know I was getting frustrated - -
chaskito
 
Posts: 26
Joined: Sun Feb 27, 2011 8:50 pm

Re: [OFFICIAL] sabnzbd

Postby Snerler » Mon Jun 18, 2012 3:34 pm

Sabnzbd is now showing that there is an update available. Is there going to be an update through pacman in the near future?
Snerler
 
Posts: 21
Joined: Fri May 11, 2012 2:52 am

Re: [OFFICIAL] sabnzbd

Postby caderoux » Wed Jul 25, 2012 3:53 am

I updated my system with pacman -Syu and it just updated sabnzbd, but the web interface is not coming up at http://192.168.1.197:8080/sabnzbd/ like it was before.

The only thing I see in the logs for today is this (notice the first line, which I'm not sure why since I have been able to download fine using nzbmatrix and a Chrome plugin)

$this->bbcode_second_pass_code('', '2012-07-24 21:27:46,742::WARNING::[interface:196] API Key missing, please enter the api key from Config->General into your 3rd party program:
2012-07-24 21:27:46,946::WARNING::[__init__:161] Signal 15 caught, saving and exiting...
2012-07-24 21:27:46,949::INFO::[nzbqueue:174] Saving queue
2012-07-24 21:27:47,666::INFO::[__init__:880] Saving data for queue9.sab in /opt/sabnzbd/admin/queue9.sab
2012-07-24 21:27:47,670::INFO::[__init__:880] Saving data for totals9.sab in /opt/sabnzbd/admin/totals9.sab
2012-07-24 21:27:47,708::INFO::[__init__:880] Saving data for rss_data.sab in /opt/sabnzbd/admin/rss_data.sab
2012-07-24 21:27:47,711::INFO::[__init__:880] Saving data for bookmarks.sab in /opt/sabnzbd/admin/bookmarks.sab
2012-07-24 21:27:47,728::INFO::[__init__:880] Saving data for watched_data.sab in /opt/sabnzbd/admin/watched_data.sab
2012-07-24 21:27:47,731::INFO::[postproc:84] Saving postproc queue
2012-07-24 21:27:47,734::INFO::[__init__:880] Saving data for postproc1.sab in /opt/sabnzbd/admin/postproc1.sab
2012-07-24 22:23:39,247::INFO::[SABnzbd:1259] --------------------------------
2012-07-24 22:23:39,270::INFO::[SABnzbd:1260] SABnzbd.py-0.7.2 (rev=7170325df56fcc39749b19d6a5c1e70c4dbe28f9)
2012-07-24 22:23:39,272::INFO::[SABnzbd:1272] Platform = posix
2012-07-24 22:23:39,274::INFO::[SABnzbd:1273] Python-version = 2.7.3 (default, Apr 29 2012, 15:21:38)
[GCC 4.6.3]
2012-07-24 22:23:39,276::INFO::[SABnzbd:1274] Arguments = /opt/sabnzbd/SABnzbd.py -f /opt/sabnzbd/sabnzbd.ini -s 127.0.0.1:8080 -d
2012-07-24 22:23:39,278::INFO::[SABnzbd:1287] Read INI file /opt/sabnzbd/sabnzbd.ini
2012-07-24 22:23:39,303::INFO::[__init__:904] Loading data for bookmarks.sab from /opt/sabnzbd/admin/bookmarks.sab
2012-07-24 22:23:39,320::INFO::[__init__:904] Loading data for rss_data.sab from /opt/sabnzbd/admin/rss_data.sab
2012-07-24 22:23:39,324::INFO::[__init__:904] Loading data for totals9.sab from /opt/sabnzbd/admin/totals9.sab
2012-07-24 22:23:39,332::INFO::[postproc:90] Loading postproc queue
2012-07-24 22:23:39,335::INFO::[__init__:904] Loading data for postproc1.sab from /opt/sabnzbd/admin/postproc1.sab
2012-07-24 22:23:39,340::INFO::[__init__:904] Loading data for queue9.sab from /opt/sabnzbd/admin/queue9.sab
2012-07-24 22:23:39,743::INFO::[__init__:904] Loading data for watched_data.sab from /opt/sabnzbd/admin/watched_data.sab
2012-07-24 22:23:39,771::INFO::[downloader:208] Resuming
2012-07-24 22:23:39,773::INFO::[__init__:314] All processes started
2012-07-24 22:23:39,776::INFO::[SABnzbd:333] Web dir is /opt/sabnzbd/interfaces/Plush
2012-07-24 22:23:39,801::INFO::[SABnzbd:333] Web dir is /opt/sabnzbd/interfaces/Config
2012-07-24 22:23:40,200::INFO::[SABnzbd:462] _yenc module... found!
2012-07-24 22:23:40,204::INFO::[SABnzbd:470] par2 binary... found (/usr/bin/par2)
2012-07-24 22:23:40,206::INFO::[SABnzbd:478] unrar binary... found (/usr/bin/unrar)
2012-07-24 22:23:40,208::INFO::[SABnzbd:483] unzip binary... found (/usr/bin/unzip)
2012-07-24 22:23:40,230::INFO::[SABnzbd:489] nice binary... found (/usr/bin/nice)
2012-07-24 22:23:40,232::INFO::[SABnzbd:493] ionice binary... found (/usr/bin/ionice)
2012-07-24 22:23:40,234::INFO::[SABnzbd:498] pyOpenSSL... found (True)
2012-07-24 22:23:40,294::INFO::[SABnzbd:1470] Starting web-interface on 127.0.0.1:8080
2012-07-24 22:23:40,299::INFO::[_cplogging:55] [24/Jul/2012:22:23:40] ENGINE Bus STARTING
2012-07-24 22:23:40,460::INFO::[_cplogging:55] [24/Jul/2012:22:23:40] ENGINE Started monitor thread '_TimeoutMonitor'.
2012-07-24 22:23:40,749::INFO::[_cplogging:55] [24/Jul/2012:22:23:40] ENGINE Serving on 127.0.0.1:8080
2012-07-24 22:23:40,755::INFO::[_cplogging:55] [24/Jul/2012:22:23:40] ENGINE Bus STARTED
2012-07-24 22:23:40,783::INFO::[notifier:87] Sending registration to localhost:23053
2012-07-24 22:23:41,920::INFO::[SABnzbd:1539] Starting SABnzbd.py-0.7.2
2012-07-24 22:23:41,939::INFO::[dirscanner:265] Dirscanner starting up
2012-07-24 22:23:41,951::INFO::[urlgrabber:77] URLGrabber starting up
[root@alarm logs]#
')
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: [OFFICIAL] sabnzbd

Postby m0rphU » Wed Jul 25, 2012 10:46 am

This should be due to a change of sabnzbd's default behaviour as of version 0.7. From now on sabnzbd does only listen on localhost. See the logfile for that:
$this->bbcode_second_pass_code('', '2012-07-24 22:23:39,276::INFO::[SABnzbd:1274] Arguments = /opt/sabnzbd/SABnzbd.py -f /opt/sabnzbd/sabnzbd.ini -s 127.0.0.1:8080 -d
...
2012-07-24 22:23:40,749::INFO::[_cplogging:55] [24/Jul/2012:22:23:40] ENGINE Serving on 127.0.0.1:8080')

You can change this by manually editing the sabnzbd.ini (while sabnzbd stopped).

But you can also use this as a chance to enhance your security and just allow connection via a local proxy (e.g. with apache or nginx) or a permanent ssh tunnel (e.g. with autossh).
m0rphU
 
Posts: 7
Joined: Fri Jun 10, 2011 9:55 am

Re: [OFFICIAL] sabnzbd

Postby caderoux » Wed Jul 25, 2012 11:53 pm

I'm not worried about security right now, just trying to get things back working. I was already using 0.7 version of sabnzbd

I did sabnzbd stop, edited the ini file to set host = 0.0.0.0, sabnzbd start with no effect.

$this->bbcode_second_pass_code('', '2012-07-25 18:48:25,372::INFO::[SABnzbd:1274] Arguments = /opt/sabnzbd/SABnzbd.py -f /opt/sabnzbd/sabnzbd.ini -s 127.0.0.1:8080 -d
2012-07-25 18:48:25,374::INFO::[SABnzbd:1287] Read INI file /opt/sabnzbd/sabnzbd.ini
')

Even tried rebooting, but it seems like the ini file is getting rewritten on the reboot - perhaps because that -s parameter is coming on the command line - what causes that command line to be sent when the daemon is started?
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: [OFFICIAL] sabnzbd

Postby caderoux » Thu Jul 26, 2012 2:42 am

$this->bbcode_second_pass_quote('m0rphU', 'T')his should be due to a change of sabnzbd's default behaviour as of version 0.7. From now on sabnzbd does only listen on localhost. See the logfile for that:
$this->bbcode_second_pass_code('', '2012-07-24 22:23:39,276::INFO::[SABnzbd:1274] Arguments = /opt/sabnzbd/SABnzbd.py -f /opt/sabnzbd/sabnzbd.ini -s 127.0.0.1:8080 -d
...
2012-07-24 22:23:40,749::INFO::[_cplogging:55] [24/Jul/2012:22:23:40] ENGINE Serving on 127.0.0.1:8080')

You can change this by manually editing the sabnzbd.ini (while sabnzbd stopped).

But you can also use this as a chance to enhance your security and just allow connection via a local proxy (e.g. with apache or nginx) or a permanent ssh tunnel (e.g. with autossh).


Ended up editing /etc/conf.d/sabnzbd to set the address there to 0.0.0.0 - it looks like that's the source of the commandline parameters. Maybe that was a change from 0.7.1 to 0.7.2...
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am
Top

PreviousNext

Return to Packages

Who is online

Users browsing this forum: No registered users and 18 guests

cron