Downloads fail and do not get unrarred

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.
MonNeric
Newbie
Newbie
Posts: 4
Joined: July 16th, 2011, 5:05 am

Re: Downloads fail and do not get unrarred

Post by MonNeric »

Yeah the entry just says "Failed" with no more details:

Code: Select all

Completed	2011-07-16 20:02:10
Name	My.Download
Size	1 MB
Status	Failed
Category	tv
Path	/media/sda4/downloads/.hidden/incomplete/My.Download
Download	 Downloaded in 2 seconds at an average of 502 KB/s
It doesn't even seem it is trying to unrar in fact. Note that when I select "Download" or +repair, the download fails as well (but the actual files located in incomplete are still ok)
User avatar
jcfp
Release Testers
Release Testers
Posts: 990
Joined: February 7th, 2008, 12:45 pm

Re: Downloads fail and do not get unrarred

Post by jcfp »

MonNeric wrote:

Code: Select all

2011-07-16 20:02:10,673::INFO::[postproc:490] Running repair on set My.Download
2011-07-16 20:02:10,682::INFO::[newsunpack:766] Scanning "/media/sda4/downloads/.hidden/incomplete/My.Download/My.Download.vol00+1.par2"
2011-07-16 20:02:10,729::INFO::[newsunpack:781] Par verify failed on /media/sda4/downloads/.hidden/incomplete/My.Download/My.Download.vol00+1.par2!
2011-07-16 20:02:10,731::INFO::[postproc:505] Par2 check finished on My.Download
Par2 fails, is "Post-Process Only Verified Jobs" on by any chance?
MonNeric
Newbie
Newbie
Posts: 4
Joined: July 16th, 2011, 5:05 am

Re: Downloads fail and do not get unrarred

Post by MonNeric »

Yes it was and putting it of makes the post processing work again ! Thank you for that.
However isn't the par2 supposed to succeed ? My downloads are all in good state so it doesn't matter for those but what will happen the day they will need to be repaired ?

Again thanks and Cheers !
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Downloads fail and do not get unrarred

Post by shypike »

Having the option on is the right thing.
Assuming this is a case of an NZB containing multiple rar/par sets
and one of the sets being unrepairable.

However the way SABnzbd deals with set failures in multi-set jobs is not very nice.
Currently the only way to deal with that is the following clumsy way:
When the failed job is in the History:
Set SABnzbd to paused.
Go to the job folder in the "incomplete" folder and remove all files of the failed set.
Click retry in History.
Click the job in the queue.
Remove all files of the failed set.
Resume downloading.

There needs to come a solution for this, but so far it's not clear to me exactly how
and there are lots of other high priotity things that require attention.
MonNeric
Newbie
Newbie
Posts: 4
Joined: July 16th, 2011, 5:05 am

Re: Downloads fail and do not get unrarred

Post by MonNeric »

Thanks both for your reply and sorry I dig this up after a month as I was away for quite some time.

Anyway, in all my previous installations of SABnzbd, I've always had the option on and it has always been able to repair the bad sets.

Is there a possibility that my par2 utility is incorrectly installed on my ubuntu ?

Cheers
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Downloads fail and do not get unrarred

Post by shypike »

MonNeric wrote: Is there a possibility that my par2 utility is incorrectly installed on my ubuntu ?
Possibly. The best way to find out it to run a repair from a bash shell.
Go to the job folder and type:

Code: Select all

par2 r name.of.a.par2.file.par *
gregpeters
Newbie
Newbie
Posts: 5
Joined: December 5th, 2011, 5:47 pm

Re: Downloads fail and do not get unrarred

Post by gregpeters »

Hi,

I just installed sabnzbd+ and SickBeard on my NAS (Netgear Stora). Everything is working fine, except for one thing: sabnzbd+ will download a file, check it, but it doesn't get unrared.

I'm receiving the following error warnings:
s-l-d5-xvid.nfo - Unpacking failed, [Errno 2] No such file or directory 729.13 MB Failed

Completed at 23:29:49 on Monday 05 December 2011
Download:
Downloaded in 11 minutes 20 seconds at an average of 1.07 MB/s
Repair:
[s-l-d5-xvid] Quick Check OK
Unpack:
[s-l-d5-xvid.nfo] Error "[Errno 2] No such file or directory" while unpacking RAR files
Path:
/home/USERNAME/MeineOrdner/SABnzbd/downloads/complete/_FAILED_s-l-d5-xvid.nfo
I didn't make many changes to sabnzbd+ settings. On the Switches Configuration everything is active, except "Fail on yEnc CRC Errors" and "Prevent Duplicate Downloads".

I've installed the following packages:
Package: sabnzbdplus
Version: 0.5.6-1
Depends: py25-cheetah, py25-yenc, par2cmdline
Conflicts: py24-sabnzbd, py25-sabnzbd
Section: net
Architecture: arm
Maintainer: NSLU2 Linux <[email protected]>
MD5Sum: 31d8d38af7cc6378d4268c9381a66c39
Size: 1436196
Filename: sabnzbdplus_0.5.6-1_arm.ipk
Source: http://easynews.dl.sf.net/sourceforge/s ... src.tar.gz
Package: py25-cheetah
Version: 2.4.2.1-1
Depends: python25
Section: misc
Architecture: arm
Maintainer: NSLU2 Linux <[email protected]>
MD5Sum: ddfdde1180592da88e3824950dd5e732
Size: 343352
Filename: py25-cheetah_2.4.2.1-1_arm.ipk
Source: http://pypi.python.org/packages/source/ ... 2.1.tar.gz
Package: py25-yenc
Version: 0.3-1
Depends: python25
Section: misc
Architecture: arm
Maintainer: NSLU2 Linux <[email protected]>
MD5Sum: 1022b73f1e4e8cdde6ba36d6b3b8757b
Size: 9356
Filename: py25-yenc_0.3-1_arm.ipk
Source: http://sabnzbd.sourceforge.net/yenc-0.3.tar.gz
Package: par2cmdline
Version: 0.4-4
Depends: libstdc++
Section: apps
Architecture: arm
Maintainer: NSLU2 Linux <[email protected]>
MD5Sum: 9f651b7508fbb6050e124693350ba51b
Size: 90667
Filename: par2cmdline_0.4-4_arm.ipk
Source: http://easynews.dl.sf.net/sourceforge/p ... 0.4.tar.gz
Package: unrar
Version: 3.9.8-1
Depends: libstdc++
Section: apps
Architecture: arm
Maintainer: stripwax <[email protected]>
MD5Sum: 72c5ff8f5b644f9e0498ff3b5e811f9a
Size: 94962
Filename: unrar_3.9.8-1_arm.ipk
Source: http://www.rarlab.com/rar/unrarsrc-3.9.8.tar.gz
Package: python
Version: 2.5-1
Depends: python25
Section: devel
Architecture: arm
Maintainer: NSLU2 Linux <[email protected]>
MD5Sum: 67b9e8866017b0969e7b5745a2a91d97
Size: 785
Filename: python_2.5-1_arm.ipk
Source: /
Description: This is a package that sets up the default python.
Package: openssl
Version: 0.9.8p-1
Section: libs
Architecture: arm
Maintainer: NSLU2 Linux <[email protected]>
MD5Sum: 0c77f23461c01155aa0cb15e7ecc85a9
Size: 838474
Filename: openssl_0.9.8p-1_arm.ipk
Source: http://www.openssl.org/source/openssl-0.9.8p.tar.gz
As said, everything is working fine: sabnzbd will download the files to a local folder and I've to unrar them manually.

Cheers,

Greg
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Downloads fail and do not get unrarred

Post by shypike »

You using an old, no longer supported release on a platform we don't know and don't have access to.
There isn't an awful lot we can do.
Have you tested the unrar program separately?
gregpeters
Newbie
Newbie
Posts: 5
Joined: December 5th, 2011, 5:47 pm

Re: Downloads fail and do not get unrarred

Post by gregpeters »

Thanks shypike,

Yes, I tested unrar. It will unrar the file if I just enter:
unrar e /PathToFile/NameOfFile.rar
I'm unsing the following versions:

unrar:
UNRAR 3.92 beta 1 freeware Copyright (c) 1993-2010 Alexander Roshal
par2:
par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.
Any ideas?

Cheers,

Greg
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Downloads fail and do not get unrarred

Post by shypike »

Have you tried to download with the same NZB on a PC or Mac?
To make sure it's not just a rotten post?
Other than that, I have no idea how to solve this for you.
gregpeters
Newbie
Newbie
Posts: 5
Joined: December 5th, 2011, 5:47 pm

Re: Downloads fail and do not get unrarred

Post by gregpeters »

Yep, this is very strange indeed.

I installed and downloaded the current SABnzbd version (0.6.12 -- Python Source) and installed it on the Stora. Again, everything is working fine. Sickbeard (also installed on the Stora) is communicating with SABZnbd, SABZnbd is downloading but then SABnzbd fails to unrar the files. I've no problems to unrar the files manually like this:

Code: Select all

unrar e /PathToFolder/SABnzbd/downloads/incomplete/FileName/FileName.rar /PathToFolder/SABnzbd/downloads/complete/FileName/
According to the SABnzbd installation note, SABnzbd is requiring

Code: Select all

unrar >= 3.90+ from http://www.rarlab.com/rar_add.htm
I've installed

Code: Select all

Package: unrar 3.9.8-1 Source: http://www.rarlab.com/rar/unrarsrc-3.9.8.tar.gz
Is there an alternative method (post script?) that let's you execute unrar?

Cheers,

Greg
gregpeters
Newbie
Newbie
Posts: 5
Joined: December 5th, 2011, 5:47 pm

Re: Downloads fail and do not get unrarred

Post by gregpeters »

Just installed SABnzbd on a Windows 7 and downloaded the same NZB. Everything worked fine... also it did unrar the files.

Cheers,

Greg
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Downloads fail and do not get unrarred

Post by shypike »

I'm out of options, it would require an extensive debugging session.
gregpeters
Newbie
Newbie
Posts: 5
Joined: December 5th, 2011, 5:47 pm

Re: Downloads fail and do not get unrarred

Post by gregpeters »

okay, I found the error!

(I'm a Newbie, so please be patient ;) )

It actually was a permission problem, but I still can't understand (completely) why this was causing errors (see section at the end).

The problem was that I was starting SABnzbd with the following line:

Code: Select all

/home/opt/bin/python2.5 /home/USERNAME/SABnzbd-0.6.12/SABnzbd.py -d -f /home/USERNAME/.sabnzbd/sabnzbd.ini
The problem was that this started SABnzbd as root. I should have entered the following:

Code: Select all

sudo -u USERNAME -H /home/opt/bin/python2.5 /home/USERNAME/SABnzbd-0.6.12/SABnzbd.py -d -f /home/USERNAME/.sabnzbd/sabnzbd.ini
.... and before that I should have changed the permission to SABnzbd and all other folders involved with this:

Code: Select all

sudo chown -R USERNAME:USERNAME /home/USERNAME/SABnzbd-0.6.12     #the install folder
sudo chown -R USERNAME:USERNAME /home/USERNAME/MeineOrdner/SABnzbd/ #the download, log, etc folder
sudo chown -R USERNAME:USERNAME /home/USERNAME/.SABnzbd/ #the config, INI folder
Since I did that everything is working fine.

I don't -- however -- understand the following:
1) In SABnzbd | configuration | folder, I set Permissions for completed downloads to 777
2) If i activated SABnzbd | configuration | Switsches | Enable folder rename, SABnzbd would copy everything without doing unrar from the /downloads/incomplete folder to the /downloads/complete folder and would add "failed" to the folder name. So SABnzbd created directories and copied files, but didn't have sufficient permissions to unrar the files (or to be precise: didn't start unrar with sufficient permissions). puuuhhh

still learning

Cheers and thanks for the help,

Greg
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Downloads fail and do not get unrarred

Post by shypike »

The "permissions" setting is applied after unrar.
So if rights were not sufficient for unrar in teh first place, the above won't help.
The permissions setting is primarily meant to make finished downloads more public,
not to solve initial rights issues.
Post Reply