Page 1 of 1

setting nice/ionice parameters causes unpacking to fail

Posted: February 26th, 2012, 5:48 pm
by woop1
Hi,

I've got a problem with setting the nice/ionice parameters. As soon as I do, sabnzbd complains that unpacking failed ("An expected file has not been found").
I think my parameters are correct, I tried "-n 2" and "-n2" for nice.
The relevant part of the Log:

Code: Select all

2012-02-26 23:33:26,589::DEBUG::[newsunpack:531] Running unrar ['/usr/bin/nice', '-n', '2', '/usr/bin/ionice', '-c2', '-n4', '/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-p-', '/home/usenet/Downloads/incomplete/SOMETHING/SOMETHING.rar', '/home/usenet/Downloads/complete/_UNPACK_SOMETHING/']
2012-02-26 23:33:26,623::DEBUG::[newsunpack:637] Checking existence of /home/usenet/Downloads/complete/_UNPACK_SOMETHING/SOMEFILE.avi
2012-02-26 23:33:26,624::INFO::[newsunpack:644] Missing expected file: SOMEFILE.avi => unrar error?
As soon as I remove the nice parameter, everything works fine. The log above is with setting both "-n 2" for nice and "-c2 -c4" for ionice, however the problem is the same if I just use either of them.

Thanks for any help,
woop

Version: 0.6.15
OS: Debian Squeeze
Install-type: source
Are you using IPV6? no
Is the issue reproducible? yes

Re: setting nice/ionice parameters causes unpacking to fail

Posted: February 27th, 2012, 4:17 am
by shypike
Check from a bash/sh/csh session which parameters the nice of your OS expects.

Re: setting nice/ionice parameters causes unpacking to fail

Posted: February 27th, 2012, 4:58 am
by woop1
I run sabnzbd with 'nice -n 5 ./sab.py -d -f config.ini', so the above configuration SHOULD work fine.
I checked in htop, and the sab process has a niceness of 5 , so that seems to work ok

//edit: example

Code: Select all

usenet@hostname:~$ nice -n 5 tail -f test &
[1] 19937
usenet@hostname:~$ ps -eo pid,ni,pri,user,args | grep tail
19937   5  17 usenet   tail -f test
19940   0  24 usenet   grep tail
By the way, why was the topic moved to Debian/Ubuntu Package? I'm using the python source, not the package provided by squeeze.