setting nice/ionice parameters causes unpacking to fail

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.
Post Reply
woop1
Newbie
Newbie
Posts: 2
Joined: February 26th, 2012, 5:41 pm

setting nice/ionice parameters causes unpacking to fail

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: setting nice/ionice parameters causes unpacking to fail

Post by shypike »

Check from a bash/sh/csh session which parameters the nice of your OS expects.
woop1
Newbie
Newbie
Posts: 2
Joined: February 26th, 2012, 5:41 pm

Re: setting nice/ionice parameters causes unpacking to fail

Post 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.
Post Reply