PAR2 not found, wierd problem

Get help with all aspects of 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
Shrekkie
Newbie
Newbie
Posts: 2
Joined: October 10th, 2009, 9:44 am

PAR2 not found, wierd problem

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

Re: PAR2 not found, wierd problem

Post 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.
Shrekkie
Newbie
Newbie
Posts: 2
Joined: October 10th, 2009, 9:44 am

Re: PAR2 not found, wierd problem

Post 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 :)
Post Reply