Page 1 of 3

Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 8:55 am
by sanderh
Version: 0.5.4
OS: Debian Squeeze
Install-type: Linux repo
Firewall Software: custom iptables
Are you using IPV6? no
Is the issue reproducible? yes


I'm using SABnzbd+ in combination with sickbeard on my Linux debian server. Every single download in my SABnzbd+ queue gets a "failed" status (folders also get a FAILED_ prefix). Files do not get unrarred and just say in my SABnzbd download folder. The files themselves are not damaged, once I manually unrar them I can play them without problems. This is how my logfile looks like:

Code: Select all

2011-05-01 13:16:30,744::INFO::[newsunpack:384] Extracting rarfile /etc/sabnzbdplus/downloads/incomplete/Community.S02E11.720p.HDTV.X264-DIMENSION/community.211.720p-dimension.rar (belonging to community.211.720p-dimension) to /etc/sabnzbdplus/downloads/complete/TV/_UNPACK_Community.S02E11.720p.HDTV.X264-DIMENSION
2011-05-01 13:16:33,237::INFO::[newsunpack:563] Skipping unrar file check due to unreliable file names or old unrar
2011-05-01 13:16:33,237::INFO::[newsunpack:567] Unpacked 0 files/folders in 2 seconds
2011-05-01 13:16:33,237::INFO::[newsunpack:189] Unrar finished on /etc/sabnzbdplus/downloads/incomplete/Community.S02E11.720p.HDTV.X264-DIMENSION
2011-05-01 13:16:33,238::INFO::[postproc:317] unpack_magic finished on Community.S02E11.720p.HDTV.X264-DIMENSION
2011-05-01 13:16:33,240::INFO::[newsunpack:127] Running external script /root/.sickbeard/autoProcessTV/sabToSickBeard.py(/etc/sabnzbdplus/downloads/complete/TV/_FAILED_Community.S02E11.720p.HDTV.X264-DIMENSION, Community.S02E11.720p.HDTV.X264-DIMENSION.nzb, Community.S02E11.720p.HDTV.X264-DIMENSION, , tv, alt.binaries.teevee, 2)
It seems like something goes wrong when the postprocessing script is being executed (line 6). I've already tried removing the script in my Folder configuration but that didn't help.

Could it be one of the following be causing this?
  • Folders > Post-Processing Scripts Folder. current = autoProcessTV folder (sickbeard)
  • Switches > Default Post-Processing. current = +delete
What do I have to do in order to fix this?

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 10:01 am
by shypike
sanderh wrote: 2011-05-01 13:16:33,237::INFO::[newsunpack:563] Skipping unrar file check due to unreliable file names or old unrar
Which version of unrar do you use?

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 10:48 am
by sanderh
I'm currently using version 4.00, or at least that's what's running on my linux box. I suppose SABnzbd just uses that version.

I updated it after I got this warning on the bottom of my webpage: "Your UNRAR version is not recommended, get it from http://www.rarlab.com/rar_add.htm". But it seems like it's still there. Do I have to tell SABnzbd to use a specific unrar package or smth?

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 11:55 am
by shypike
Check which one appears first in when following the $PATH variable.

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 12:05 pm
by sanderh
Do you mean I should check my $PATH variable in linux?

If so, when I enter "echo $PATH" this is my output:

Code: Select all

root@oxygen:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 12:16 pm
by shypike
So, make sure that this is the path that SABnzbd also gets.
And make sure that, when you run unrar from a shell, it's indeed the RarLab's unrar and not some "free" version.

SABnzbd will l;og a line like this (when you set logging level to debug or info):
unrar binary... found (/usr/bin/unrar)

The /usr/bin/unrar part is important.
Type the path that is shown in your log file in a shell and check which unrar it is.

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 1:33 pm
by sanderh
It looks like it can find my unrar client:

Code: Select all

2011-04-30 11:19:45,488::INFO::[sabnzbdplus:394] unrar binary... found (/usr/bin/unrar)


But this one seems to have version 0.0.1. So.. that should be the problem? How can I remove the current one and replace it with the other unrar client?

I removed the old one in usr/bin/unrar. The only unrar program I now have is located in /usr/local/bin/unrar. I'll try moving the new to /usr/bin now.. if that's possible. Does SABnzbd look for the par2 and rar programs only on startup btw?

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 2:30 pm
by shypike
sanderh wrote: Does SABnzbd look for the par2 and rar programs only on startup btw?
Yes.

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 4:11 pm
by sanderh
Sigh... I just tried downloading a new file but I still get a "failed" status.

After changing the unrar program I received a new warning:

Code: Select all

2011-05-02 23:04:06,609 ERROR: Error "[Errno 2] No such file or directory" while running rar_unpack on My.FileName.Bla.Bla
.

These are the details btw:

Code: Select all

Repair: 
[My.filename] Quick Check OK
Unpack: 
[My.filename] Error "[Errno 2] No such file or directory" while unpacking RAR files
Script: 
The directory name indicates it failed to extract, cancelling (More)[/hide]
SABnzbd+ is a great program but I can't seem to get it working properly :(. I also uploaded my entire logfile here btw

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 4:24 pm
by shypike
What is shown when you type /usr/bin/unrar in a shell session?
How do you start SABnzbd?

Re: Downloads fail and do not get unrarred

Posted: May 2nd, 2011, 4:50 pm
by sanderh
When I type /usr/bin/unrar, this is my correspending output:

Code: Select all

root@oxygen:~# /usr/bin/unrar

UNRAR 4.00 freeware      Copyright (c) 1993-2011 Alexander Roshal

Usage:     unrar <command> -<switch 1> -<switch N> <archive> <files...>
               <@listfiles...> <path_to_extract\>

<Commands>
  e             Extract files to current directory
  l[t,b]        List archive [technical, bare]
  p             Print file to stdout
  t             Test archive files
  v[t,b]        Verbosely list archive [technical,bare]
  x             Extract files with full path

<Switches>
  -             Stop switches scanning
  ad            Append archive name to destination path
....
SABnzbd automatically starts when booting my server. I used a script that can be found here.

EDIT: Even when I try downloading a PDF I still get the criticial logo next to all my downloads Image. Unlike .mkv files, it has a completed status instead of the failed status.. but that little image tells me something's wrong.

I guess I've missed some prerequisites whilst installing SABnzbd+. Would complete removing my current installation, followed by a fresh install be a good idea? If so, how would you advise me to do this?

Re: Downloads fail and do not get unrarred

Posted: May 3rd, 2011, 10:37 am
by jcfp
Remove stuff: sudo apt-get purge ^unrar* ^sabnzbdplus*
Also get rid of any sabnzbd init script and other unrar stuff you manually added to your system.

Make sure contrib and non-free are enabled, then install sabnzbdplus: sudo aptitude --with-recommends install sabnzbdplus
This will pull in the correct unrar too: the non-free one. Setup the init script supplied by the package (yes there is one) by editing /etc/default/sabnzbdplus, after that try running: sudo /etc/init.d/sabnzbdplus start

Re: Downloads fail and do not get unrarred

Posted: May 3rd, 2011, 2:37 pm
by sanderh
I completely removed my installation as I had installed it in my root directory. Not a good idea.

Just reinstalled it now, using the correct packages etc. Thank you for the feedback, and what an awesome program I must say :).

Re: Downloads fail and do not get unrarred

Posted: July 16th, 2011, 5:21 am
by MonNeric
Hi guys,

Sorry to hijack the topic (let me know if I need to create a new thread) but I've a very similar behavior with SABnzbd although I'm not sure it is due to the same cause.
All files are downloaded OK but then there is no post processing done and the download is marked as "Failed". The archive stays in the incomplete folder and is not moved in the complete folder.
If I go to the incomplete folder and I unrar the archive manually the video files are perfectly OK.

Version: 0.6.5
OS: Ubuntu 10.10
Install-type: Linux repo
Is the issue reproducible? yes

I tried what jcfp suggested but it doesn't correct the issue.

Below is the content of the log file when processing the download:

Code: Select all

2011-07-16 20:01:54,157::INFO::[downloader:539] Connecting [email protected]:563 finished
2011-07-16 20:02:10,659::INFO::[__init__:817] /media/sda4/downloads/.hidden/incomplete/My.Download/__ADMIN__/SABnzbd_nzo_6ywkvp removed
2011-07-16 20:02:10,661::INFO::[nzbqueue:167] Saving queue
2011-07-16 20:02:10,664::INFO::[__init__:828] Saving data for queue9.sab in /media/sda4/downloads/.hidden/admin/queue9.sab
2011-07-16 20:02:10,666::INFO::[postproc:83] Saving postproc queue
2011-07-16 20:02:10,669::INFO::[postproc:235] Starting PostProcessing on My.Download => Repair:True, Unpack:True, Delete:True, Script:None, Cat:tv
2011-07-16 20:02:10,672::INFO::[postproc:475] Par2 check starting on My.Download
2011-07-16 20:02:10,672::INFO::[__init__:828] Saving data for postproc1.sab in /media/sda4/downloads/.hidden/admin/postproc1.sab
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
2011-07-16 20:02:10,836::INFO::[postproc:448] Cleaning up My.Download (keep_basic=True)
2011-07-16 20:02:10,839::INFO::[__init__:817] /media/sda4/downloads/.hidden/incomplete/My.Download/__ADMIN__/SABnzbd_nzf_G0ff2A removed
2011-07-16 20:02:10,841::INFO::[__init__:817] /media/sda4/downloads/.hidden/incomplete/My.Download/__ADMIN__/SABnzbd_nzf_wEWxpZ removed
[...]
I tested the post processing with the different +unpack, +delete options and with the sickbeard script but with no differences. To be noted that my previous installations of sabnzbd + sickbeard (on a different machine) were working perfectly and I followed the same configuration.

Thanks for your help !

Cheers

Re: Downloads fail and do not get unrarred

Posted: July 16th, 2011, 5:30 am
by shypike
Can you see any details about why the unrarring failed?
Have you clicked on the entry in the history to get the download report?