unrar

Report & discuss bugs found in SABnzbd
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.
Post Reply
spadger
Newbie
Newbie
Posts: 7
Joined: June 17th, 2010, 3:19 pm

unrar

Post by spadger »

Must say this is an awesome program and many thanks.  I have only one slight annoyance though, every time it's done a unrar unpack it leaves a "unrar " process for every use so depending on how many files it's unpacked it'll leave that many.  I can't kill the processes, even with a -9 won't do it, only if i shutdown sabnzbd will it take them down with it, restarting sabnzbd won't kill though.  Any ideas what could be causing this?

Regards.

System details:

Version: 0.5.2
Python: v2.6
unrar: v3.91
OS: Gentoo kernel 2.6.30
Install type: Python source
Skin: Plush
Firewall software:  my own bash script
ipv4
Last edited by spadger on June 17th, 2010, 3:34 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: unrar

Post by shypike »

Sounds very much like a problem in unrar itself.
Have you tried older versions?
spadger
Newbie
Newbie
Posts: 7
Joined: June 17th, 2010, 3:19 pm

Re: unrar

Post by spadger »

shypike wrote: Sounds very much like a problem in unrar itself.
Have you tried older versions?
I've done a bit of testing and it's seems to be doing it everytime i start or restart sabnzbd.  For example i'll start sabnzbd and there'll be one unrar in the process list, then if i restart sabnzbd from within the web gui it'll put another unrar in, they're zombied processes and even a kill -9 won't rid them,  i need to shutdown and startup sabn again? very strange but the program is fine it's just annoying.  I also use nzbgetweb with unrar and it's fine so i'm not sure what's going on.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: unrar

Post by shypike »

At startup we run unrar once to find out its version number.
I'll check whether this results in a orphaned process.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: unrar

Post by shypike »

No problem on Ubuntu 9.10.
Maybe you could try an experiment.
Find module newsunpack.py.
At about line 114, you'll find:

Code: Select all

    if not (sabnzbd.WIN32 or sabnzbd.DARWIN):
        sabnzbd.newsunpack.RAR_PROBLEM = not unrar_check(sabnzbd.newsunpack.RAR_COMMAND)
Change this to:

Code: Select all

    #if not (sabnzbd.WIN32 or sabnzbd.DARWIN):
        #sabnzbd.newsunpack.RAR_PROBLEM = not unrar_check(sabnzbd.newsunpack.RAR_COMMAND)
Please report if this solves the problem.
It's not a proper solution yet, but it might narrow down the search.
spadger
Newbie
Newbie
Posts: 7
Joined: June 17th, 2010, 3:19 pm

Re: unrar

Post by spadger »

I commented out the unrar check and it's fixed the problem :)  Also noticed that it'll will accept the rar command as well which maybe better as i may need to pack stuff up with rar sometimes.  sabnzbd is always running on my server 24/7 anyway, i restarted it yesterday and got the usual problem of unrar defunct and today i check my processes and the zombied unrar was gone, do zombie processes have a timeout on closing because i couldn't kill it myself?  But anyway your solution has done the trick, i may try uninstalling unrar and try with rar.

Cheers for a great program anyway it does just what i want for episode downloading and sorting.

Many thanks.
Ian.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: unrar

Post by shypike »

I have no idea about the issue.
Could be a problem in the Python port.

You can have both unrar and rar installed.
The rar package comes with an unrar too.
Post Reply