Page 1 of 1
Path for unrar, unzip on nas
Posted: August 29th, 2010, 4:38 pm
by manks
I've installed sabnzbd on my netgear stora and installed unrar and unzip through ipkg but sabnzbd can't find them is there some thing I need to do to edit the file path to get sab to find them? Thanks.
Re: Path for unrar, unzip on nas
Posted: August 30th, 2010, 6:32 pm
by shypike
The PATH environment variable should be such that it includes the path where unrar and unzip are.
Re: Path for unrar, unzip on nas
Posted: September 1st, 2010, 2:13 am
by manks
Thanks. Not sure what's happening as SAB is clearly looking for other files.
I've copied the log below. My Stora doesn't have access to root so I have to start sab in sudo mode and if I want to run a program I always have to run it based on the folder path such as /opt/bin/unrar rarfile.rar so I'm not sure if that makes a difference or not? Any help gratefully received.
2010-09-01 07:55:41,737::INFO::[SABnzbd:1021] Starting SABnzbd.py-0.5.3
2010-09-01 07:55:41,740::DEBUG::[__init__:261] Starting postprocessor
2010-09-01 07:55:41,751::DEBUG::[__init__:264] Starting assembler
2010-09-01 07:55:41,761::DEBUG::[__init__:267] Starting downloader
2010-09-01 07:55:41,771::DEBUG::[scheduler:159] Starting scheduler
2010-09-01 07:55:41,781::DEBUG::[__init__:272] Starting dirscanner
2010-09-01 07:55:41,784::INFO::[dirscanner:367] Dirscanner starting up
2010-09-01 07:55:41,791::DEBUG::[newzbin:100] Starting msgidgrabber
2010-09-01 07:55:41,801::DEBUG::[__init__:277] Starting urlgrabber
2010-09-01 07:55:41,804::INFO::[urlgrabber:103] URLGrabber starting up
2010-09-01 07:55:41,811::INFO::[SABnzbd:386] _yenc module... found!
2010-09-01 07:55:41,814::ERROR::[SABnzbd:396] par2 binary... NOT found!
2010-09-01 07:55:41,817::WARNING::[SABnzbd:404] unrar binary... NOT found
2010-09-01 07:55:41,820::WARNING::[SABnzbd:409] unzip binary... NOT found!
2010-09-01 07:55:41,823::INFO::[SABnzbd:413] nice binary... found (/bin/nice)
2010-09-01 07:55:41,825::INFO::[SABnzbd:417] ionice binary... found (/usr/bin/ionice)
2010-09-01 07:55:41,827::INFO::[SABnzbd:422] pyOpenSSL... found (True)
2010-09-01 07:55:41,841::INFO::[SABnzbd:1119] Starting web-interface on 192.168.1.65:8085
2010-09-01 07:55:41,846::INFO::[_cplogging:55] [01/Sep/2010:07:55:41] ENGINE Bus STARTING
2010-09-01 07:55:41,901::INFO::[_cplogging:55] [01/Sep/2010:07:55:41] ENGINE Started monitor thread '_TimeoutMonitor'.
2010-09-01 07:55:42,113::INFO::[_cplogging:55] [01/Sep/2010:07:55:42] ENGINE Serving on 192.168.1.65:8085
2010-09-01 07:55:42,116::INFO::[_cplogging:55] [01/Sep/2010:07:55:42] ENGINE Bus STARTED
Re: Path for unrar, unzip on nas
Posted: September 1st, 2010, 7:02 am
by shypike
Somewhow SABnzbd receives an incomplete path.
Try starting it from a small shell script.
That way you can add an "echo $PATH" statement, so you can se what's wrong.
You should then start the script as you would normally start SABnzbd.
Re: Path for unrar, unzip on nas
Posted: September 1st, 2010, 5:11 pm
by manks
/opt/bin/python2.5 /opt/share/SABnzbd/SABnzbd.py -d -f /opt/etc/sabnzbd.ini -s $ni -s 192.168.1.65:8085
I have copied the above into a script which I use to start sab however I'm not familiar with the echo path function - do you have tips on how to include the above.
Thanks for your help.
Re: Path for unrar, unzip on nas
Posted: September 2nd, 2010, 3:36 am
by shypike
will show you the current path.
If it starts invisible, you might need to use output redirection.
You can extend the path with:
Code: Select all
PATH = $PATH:/missing/path
export PATH
Re: Path for unrar, unzip on nas
Posted: September 3rd, 2010, 6:38 am
by manks
Thanks for your patience and support it that worked a treat. Copied unrar, unzip and par2 across to the outputed directory and its working perfectly now.