Page 1 of 1

PAR2 not found, wierd problem

Posted: October 10th, 2009, 10:24 am
by Shrekkie
Hi , i'm runningSABnzbd 0.4.12 on centos 5.3 server, everything is working fine if i start SABnzbd from terminal ./path/SABnzbd.py -b0 -s 0.0.0.0:$PORT -f /path/.sabnzbd/sabnzbd.ini --browser 0 -d. But I want SABnzbd to run as service in the script I start SABnzbd with the same command and then I get 1 error, PAR2 not found. Can't find a solution for this problem.

So from terminal:
2009-10-10 17:15:44,433::INFO::celementtree module... found!
2009-10-10 17:15:44,433::INFO::par2 binary... found (/usr/local/bin/par2)
2009-10-10 17:15:44,434::INFO::unrar binary... found (/usr/bin/unrar)
2009-10-10 17:15:44,434::INFO::unzip binary... found (/usr/bin/unzip)
2009-10-10 17:15:44,435::INFO::nice binary... found (/bin/nice)
2009-10-10 17:15:44,435::INFO::ionice binary... found (/usr/bin/ionice)

By script:
2009-10-10 17:17:29,080::INFO::celementtree module... found!
2009-10-10 17:17:29,080::ERROR::par2 binary... NOT found!
2009-10-10 17:17:29,081::INFO::unrar binary... found (/usr/bin/unrar)
2009-10-10 17:17:29,081::INFO::unzip binary... found (/usr/bin/unzip)
2009-10-10 17:17:29,082::INFO::nice binary... found (/bin/nice)
2009-10-10 17:17:29,082::INFO::ionice binary... found (/usr/bin/ionice)

Anyone who knows the solution for this?

Re: PAR2 not found, wierd problem

Posted: October 10th, 2009, 10:38 am
by shypike
Make sure the PATH variable is correct for the script.
Clearly /usr/local/bin is missing from it.
init.d scripts usually receive a limited path, you have to extend it in your script.

Re: PAR2 not found, wierd problem

Posted: October 10th, 2009, 11:59 am
by Shrekkie
Thank you, solved it, couldn't set path or didn't know howto, but created a symlink in folder /usr/bin to par2 and know it's working :)