NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

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
danandrews80
Newbie
Newbie
Posts: 5
Joined: March 25th, 2009, 1:41 pm

NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by danandrews80 »

Hi

I have just installed the new version on an unslung nslu2 and i get the error above, i have installed par2cmd, but it is not recognising it

What should i do

Thanks
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by shypike »

Make sure the location is the $PATH variable.
Check in a command shell.
If you start it as a init.d service, you may need to extend the $PATH in the starter script.
danandrews80
Newbie
Newbie
Posts: 5
Joined: March 25th, 2009, 1:41 pm

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by danandrews80 »

hi sorry what do you mean by this

I am a bit of a newb with linux

Thanks

These are my errors

2009-03-26 18:32:22,822 ERROR par2 binary... NOT found!
2009-03-26 18:32:22,833 WARNING unrar binary... NOT found
Last edited by danandrews80 on March 25th, 2009, 3:12 pm, edited 1 time in total.
Zilvermeeuw
Newbie
Newbie
Posts: 3
Joined: August 29th, 2009, 9:48 am

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by Zilvermeeuw »

An old topic, but it helped me!

I changed my start-up script in:

Code: Select all

PATH=$PATH:/usr/local/bin
/usr/bin/python /home/sabnzbd/sabnzbd/SABnzbd.py -f /home/sabnzbd/sabnzbd/SABnzbd.ini 1>/dev/null 2>&1 &
On Linux of course....  ;D
mrwolf
Newbie
Newbie
Posts: 4
Joined: August 2nd, 2010, 12:56 pm

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by mrwolf »

Sorry for the bump, but how do I make this work? I've upgraded to 0.5.6, and after a reboot on my Synology I get the same error.

This is my startup script (S99SABnzbd.sh in /usr/syno/etc/rc.d

Code: Select all

#!/bin/sh
if [ "start" = "$1" ]; then
  /opt/bin/python2.5 /opt/share/SABnzbd/SABnzbd.py -f /root/.sabnzbd/sabnzbd.ini
  /opt/bin/python2.5 /volume1/@appstore/sickbeard/SickBeard.py --quiet &
  /opt/bin/python2.6 /volumeUSB1/usbshare/couchpotato/CouchPotato.py -d
elif [ "stop" = "$1" ]; then
  /usr/bin/killall -9 python2.5
elif [ "restart" = "$1" ]; then
  $0 stop
  $0 start
elif [ "" = "$1" ]; then
  echo "Start, stop or restart service? Use a parameter..."
fi
spazhammer
Newbie
Newbie
Posts: 2
Joined: March 14th, 2011, 6:06 am

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by spazhammer »

I'm also getting this error on my buffalo linkstation live NAS Device..

heres the sab log fragment for it starting up:

Code: Select all

2011-03-14 11:00:48,627::INFO::[SABnzbd:973] --------------------------------
2011-03-14 11:00:48,650::INFO::[SABnzbd:974] SABnzbd.py-0.5.6 (rev=2503)
2011-03-14 11:00:48,654::INFO::[SABnzbd:984] Platform = posix
2011-03-14 11:00:48,659::INFO::[SABnzbd:985] Python-version = 2.5.5 (r255:77872, May 16 2010, 22:50:08)
[GCC 3.4.4 (release) (CodeSourcery ARM 2005q3-2)]
2011-03-14 11:00:49,605::INFO::[__init__:702] /opt/share/SABnzbd/cache/bookmarks.sab removed
2011-03-14 11:00:49,692::INFO::[postproc:139] Loading postproc queue
2011-03-14 11:00:49,729::INFO::[__init__:702] /opt/share/SABnzbd/cache/postproc1.sab removed
2011-03-14 11:00:49,791::INFO::[downloader:334] Resuming
2011-03-14 11:00:50,239::INFO::[__init__:251] All processes started
2011-03-14 11:00:50,245::INFO::[SABnzbd:269] Web dir is /opt/share/SABnzbd/interfaces/Plush
2011-03-14 11:00:52,239::INFO::[SABnzbd:1038] Starting SABnzbd.py-0.5.6
2011-03-14 11:00:52,587::INFO::[dirscanner:375] Dirscanner starting up
2011-03-14 11:00:52,608::INFO::[urlgrabber:103] URLGrabber starting up
2011-03-14 11:00:52,616::INFO::[SABnzbd:390] _yenc module... found!
2011-03-14 11:00:52,621::ERROR::[SABnzbd:400] par2 binary... NOT found!
2011-03-14 11:00:52,628::WARNING::[SABnzbd:408] unrar binary... NOT found
2011-03-14 11:00:52,633::INFO::[SABnzbd:411] unzip binary... found (/bin/unzip)
2011-03-14 11:00:52,638::INFO::[SABnzbd:417] nice binary... found (/bin/nice)
2011-03-14 11:00:52,642::INFO::[SABnzbd:423] ionice binary... NOT found!
2011-03-14 11:00:52,647::INFO::[SABnzbd:426] pyOpenSSL... found (True)
2011-03-14 11:00:52,671::INFO::[SABnzbd:1136] Starting web-interface on NAS:8080
2011-03-14 11:00:52,681::INFO::[_cplogging:55] [14/Mar/2011:11:00:52] ENGINE Bus STARTING
2011-03-14 11:00:52,757::INFO::[_cplogging:55] [14/Mar/2011:11:00:52] ENGINE Started monitor thread '_TimeoutMonitor'.
2011-03-14 11:00:53,110::INFO::[_cplogging:55] [14/Mar/2011:11:00:53] ENGINE Serving on NAS:8080
2011-03-14 11:00:53,115::INFO::[_cplogging:55] [14/Mar/2011:11:00:53] ENGINE Bus STARTED
2011-03-14 11:01:04,648::INFO::[rss:376] Running scheduled RSS scan
2011-03-14 11:01:09,657::INFO::[newzbin:365] Fetching Newzbin bookmarks
my startup script for this is:

Code: Select all

#! /bin/sh

/opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/SABnzbd.ini -d
/opt/bin/python2.6 /opt/share/sickbeard/SickBeard.py --quiet &

exit 0
echo $PATH
/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

both par2 and unrar are installed and living in /opt/bin although i created symlinks to /usr/bin as well, to see if this fixed it (it didnt)

if i start sabnzbd from a commandline as root, it works just fine. its only when running from the startup script it has a problem. i tried adding in /opt/bin to the PATH variable in the startup script, as well as "cd /opt/share/SABnzbd" but neither of these worked.

any ideas?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by shypike »

You say it works as root, but not from the startup script.
Does the account SABnzbd runs under, have read/execute access to all required folders and files?
This includes any symlink you made as root.
spazhammer
Newbie
Newbie
Posts: 2
Joined: March 14th, 2011, 6:06 am

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by spazhammer »

unless i'm mistaken, it all runs as root on startup so should have adequate permissions?

root@NAS:~# ps -ef|grep SAB
root      1023    1 99 06:47 ?        00:00:14 /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/SABnzbd.ini -d
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by shypike »

SABnzbd searches the PATH variable it gets.
If it can find par2, it's not in the path.

You can check the code (and maybe add a few logging lines) in newsunpack.py.
The top of the file contains the part you need.
Senne
Newbie
Newbie
Posts: 1
Joined: June 10th, 2011, 9:30 am

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by Senne »

mrwolf wrote: Sorry for the bump, but how do I make this work? I've upgraded to 0.5.6, and after a reboot on my Synology I get the same error.

This is my startup script (S99SABnzbd.sh in /usr/syno/etc/rc.d

Code: Select all

#!/bin/sh
if [ "start" = "$1" ]; then
  /opt/bin/python2.5 /opt/share/SABnzbd/SABnzbd.py -f /root/.sabnzbd/sabnzbd.ini
  /opt/bin/python2.5 /volume1/@appstore/sickbeard/SickBeard.py --quiet &
  /opt/bin/python2.6 /volumeUSB1/usbshare/couchpotato/CouchPotato.py -d
elif [ "stop" = "$1" ]; then
  /usr/bin/killall -9 python2.5
elif [ "restart" = "$1" ]; then
  $0 stop
  $0 start
elif [ "" = "$1" ]; then
  echo "Start, stop or restart service? Use a parameter..."
fi
I added PATH=$PATH:/opt/bin

Code: Select all

#!/bin/sh
PATH=$PATH:/opt/bin/
if [ "start" = "$1" ]; then
....
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: NSLU2 and Sabnzbd (No PAR2 program found, repairs not possible)

Post by shypike »

You should add
export PATH
after you change the path.
Post Reply