Page 1 of 1
unrar
Posted: June 17th, 2010, 3:29 pm
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
Re: unrar
Posted: June 17th, 2010, 4:40 pm
by shypike
Sounds very much like a problem in unrar itself.
Have you tried older versions?
Re: unrar
Posted: June 17th, 2010, 5:23 pm
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.
Re: unrar
Posted: June 18th, 2010, 2:26 am
by shypike
At startup we run unrar once to find out its version number.
I'll check whether this results in a orphaned process.
Re: unrar
Posted: June 18th, 2010, 12:44 pm
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.
Re: unrar
Posted: June 18th, 2010, 2:09 pm
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.
Re: unrar
Posted: June 18th, 2010, 2:19 pm
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.