Hi all,
I've been going crazy trying to figure this out, I'm hoping someone can help me out. I installed SABnzbd on my Netgear Stora (which uses Red Hat Linux) through the following process:
Install ipkg
Ipkg unzip
Ipkg unrar
Install par2cmdline
Ipkg python
Install cherrypy
Install cheetah
Install SABnzbd
I initially got the 'par2, unzip, & unrar binary not found' messages but I remedied that by changing newsgrabber.py (for some reason my PATH had no effect) however I started getting the message "Your unrar version is not recommended, get it from http://www.rarlab.com/rar_add.htm' so I updated it, no dice. I tried the versions at that link, no luck.
Not the biggest issue, however when a download completes it always fails and gives me the message "Error "[Errno 13] Permission denied" while unpacking RAR files". It will also throw up a similar message when performing a par2 check. I have adjusted the permissions while troubleshooting and made everything 777 to no avail, the same message. The only strange thing is that when I change them using winscp to 7777 and try unpacking using winrar, the files unpack as expected. If I do everything and them retry with SAbnzbd it fails, and if I don't change it in winscp I can't use winrar.
I did have absolute download and incomplete folders, I've sinced made them relative and within the SABnzbd directory and this hasn't affected anything.
Can anyone help? It'd be much appreciated. Let me know if I need to add/explain anything.
Thanks
Unrar & Permission Errors
Forum rules
Help us help you:
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.
Unrar & Permission Errors
Last edited by loco88 on February 22nd, 2012, 5:38 pm, edited 2 times in total.
Re: Unrar & Permission Errors
What does unrar give as signon if you run it manually?
Does the rarlab version that you installed come first in the PATH?
The permissions issue is beyond me, as I don't know your platform.
Does the rarlab version that you installed come first in the PATH?
The permissions issue is beyond me, as I don't know your platform.
Re: Unrar & Permission Errors
I'm not sure what you mean/how I would get that information, can you tell me what I'd need to do to get this for you?shypike wrote:What does unrar give as signon if you run it manually?
Does the rarlab version that you installed come first in the PATH?
The permissions issue is beyond me, as I don't know your platform.
I uninstalled the ipkg version and still have the issue, I've also moved the unrar directory to the front of the PATH but it doesn't appear to affect the error message (I restarted SABnzbd)
Sorry, I've edited my post to include that the Stora runs Red Hat Linux.
Thanks
Re: Unrar & Permission Errors
How about opening a shell session and typing unrar?
Re: Unrar & Permission Errors
Unrar from rarlabs:shypike wrote:How about opening a shell session and typing unrar?
Code: Select all
-bash-3.2# unrar
-bash: /home/opt/bin/unrar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
ipkg version:
Code: Select all
-bash-3.2# ipkg install unrar
Installing unrar (4.1.3-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/unrar_4.1.3-1_arm.ipk
Configuring unrar
Successfully terminated.
-bash-3.2# unrar
UNRAR 4.10 beta 3 freeware Copyright (c) 1993-2011 Alexander Roshal
Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
<Commands>
e Extract files to current directory
l[t,b] List archive [technical, bare]
p Print file to stdout
t Test archive files
v[t,b] Verbosely list archive [technical,bare]
x Extract files with full path
<Switches>
- Stop switches scanning
@[+] Disable [enable] file lists
ad Append archive name to destination path
ag[format] Generate archive name using the current date
ai Ignore file attributes
ap<path> Set path inside archive
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
id[c,d,p,q] Disable messages
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
n<file> Include only specified file
n@ Read file names to include from stdin
n@<list> Include files listed in specified list file
o[+|-] Set the overwrite mode
or Rename files automatically
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
sl<size> Process files with size less than specified
sm<size> Process files with size more than specified
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation, access)
u Update files
v List all volumes
ver[n] File version control
vp Pause before each volume
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files listed in specified list file
y Assume Yes on all queries
-bash-3.2#
Re: Unrar & Permission Errors
If SABnzbd sees /home/opt/bin/unrar as the first item in the path, then things won't work.
You have to make sure that the right unrar is found first.
Consider deleting /home/opt/bin/unrar, because it's corrupt or just not meant for your OS.
You have to make sure that the right unrar is found first.
Consider deleting /home/opt/bin/unrar, because it's corrupt or just not meant for your OS.
Re: Unrar & Permission Errors
I've removed it and only have the ipkg version and am still having the problems
Re: Unrar & Permission Errors
So, what do you see when you type just unrar?
Re: Unrar & Permission Errors
I just get the followingshypike wrote:So, what do you see when you type just unrar?
Code: Select all
-bash-3.2# unrar
UNRAR 4.10 beta 3 freeware Copyright (c) 1993-2011 Alexander Roshal
Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
<Commands>
e Extract files to current directory
l[t,b] List archive [technical, bare]
p Print file to stdout
t Test archive files
v[t,b] Verbosely list archive [technical,bare]
x Extract files with full path
<Switches>
- Stop switches scanning
@[+] Disable [enable] file lists
ad Append archive name to destination path
ag[format] Generate archive name using the current date
ai Ignore file attributes
ap<path> Set path inside archive
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
id[c,d,p,q] Disable messages
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
n<file> Include only specified file
n@ Read file names to include from stdin
n@<list> Include files listed in specified list file
o[+|-] Set the overwrite mode
or Rename files automatically
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
sl<size> Process files with size less than specified
sm<size> Process files with size more than specified
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation, access)
u Update files
v List all volumes
ver[n] File version control
vp Pause before each volume
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files listed in specified list file
y Assume Yes on all queries
To give some background:
My path file:
Code: Select all
PATH=/home/opt/bin:/home/opt:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/sbin:/opt/sbin:/usr/sbin:/sbin
Code: Select all
-bash-3.2# cd /home/opt/bin
-bash-3.2# ls
2to3-2.6 infocmp pydoc-2.6 tic
bzcat infotocap pydoc2.5 toe
bzip2 ipkg python tput
bzip2-bzip2 ipkg-opt python-config tset
bzip2recover nano python2.5 unrar
captoinfo ncurses-clear python2.5-config unzip
cheetah ncurses5-config python2.6 unzip-unzip
cheetah-analyze ncursesw5-config python2.6-config unzipsfx
cheetah-compile openssl reset update-alternatives
clear par2 rnano zipgrep
funzip par2create smtpd-2.6.py zipinfo
idle par2repair smtpd.py
idle-2.6 par2verify smtpd2.5.py
idle2.5 pydoc sqlite3
Re: Unrar & Permission Errors
Just an update, I've started trying whatever I can.
As far as I can tell, SABnzbd is running as root:
On a job that fails through SABnzbd, the 'par2 r' command works:
Then the unraring works:
And I end up with the avi file that is expected. This is not possible through SABnzbd.
The files download to 'incomplete' and are then moved to 'downloads' in the sabnzbd directory which has permissions:
As far as I can tell, SABnzbd is running as root:
Code: Select all
-bash-3.2# ps ax -f | grep 'py'
Unknown HZ value! (85) Assume 100.
root 2171 1 17 14:32 ? SNl 6:15 /opt/bin/python2.5 /home/loco88/FamilyLibrary/sickbeard/SickBeard.py -d
root 2208 1 7 14:32 ? SNl 2:40 /opt/bin/python2.5 /home/loco88/FamilyLibrary/sabnzbd/SABnzbd.py -d
root 2248 1 0 14:33 ? RNl 0:05 /opt/bin/python2.6 /home/loco88/FamilyLibrary/couchpotato/CouchPotato.py -d
root 4583 2143 1 15:07 pts/0 R+ 0:00 grep py
Code: Select all
Repair is required.
2 file(s) are missing.
17 file(s) exist but are damaged.
You have 309 out of 328 data blocks available.
You have 27 recovery blocks available.
Repair is possible.
You have an excess of 8 recovery blocks.
19 recovery blocks will be used to repair.
Computing Reed Solomon matrix.
Constructing: done.
Solving: done.
Wrote 244084269 bytes to disk
Verifying repaired files:
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.nfo" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r00" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r01" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r02" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r03" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r04" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r05" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r06" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r07" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r08" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r09" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r10" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r11" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r12" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r13" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r14" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.r15" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.rar" - found.
Target: "eastbound.and.down.s03e01.hdtv.xvid-asap.sfv" - found.
Repair complete.
Code: Select all
-bash-3.2# unrar e eastbound.and.down.s03e01.hdtv.xvid-asap.r00
UNRAR 4.10 beta 3 freeware Copyright (c) 1993-2011 Alexander Roshal
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r00
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.rar
Extracting Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 6%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r00
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 12%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r01
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 18%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r02
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 24%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r03
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 30%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r04
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 36%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r05
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 43%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r06
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 49%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r07
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 55%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r08
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 61%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r09
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 67%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r10
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 73%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r11
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 79%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r12
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 86%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r13
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 92%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r14
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi 98%
Extracting from eastbound.and.down.s03e01.hdtv.xvid-asap.r15
... Eastbound.and.Down.S03E01.HDTV.XviD-ASAP.avi OK
All OK
The files download to 'incomplete' and are then moved to 'downloads' in the sabnzbd directory which has permissions:
Code: Select all
-bash-3.2# ls -l
total 660
-rw-r--r-- 1 root root 2270 Feb 4 06:28 ABOUT.txt
-rw-r--r-- 1 root root 53372 Feb 4 06:28 CHANGELOG.txt
-rw-r--r-- 1 root root 1071 Feb 4 06:28 COPYRIGHT.txt
-rw-r--r-- 1 root root 17990 Feb 4 06:28 GPL2.txt
-rw-r--r-- 1 root root 35147 Feb 4 06:28 GPL3.txt
-rw-r--r-- 1 root root 5335 Feb 4 06:28 INSTALL.txt
-rw-r--r-- 1 root root 4268 Feb 4 06:28 ISSUES.txt
-rw-r--r-- 1 root root 311 Feb 4 06:28 PKG-INFO
-rw-r--r-- 1 root root 935 Feb 4 06:28 README.txt
-rw-r--r-- 1 root root 5316 Feb 4 06:28 SABHelper.py
-rwsr-sr-x 1 root root 62010 Feb 4 06:28 SABnzbd.py
-rw-r--r-- 1 root root 421 Feb 4 06:28 Sample-PostProc.cmd
-rwxr-xr-x 1 root root 433 Feb 4 06:28 Sample-PostProc.sh
drwxr-sr-x 3 root users 154 Feb 24 14:53 admin
drwxr-sr-x 5 root users 4096 Feb 20 12:26 cherrypy
drwxrwxrwx 38 root users 4096 Feb 24 14:38 downloads
drwxr-sr-x 2 root users 4096 Feb 20 12:25 email
drwxr-sr-x 2 root users 80 Feb 20 12:26 gntp
drwsrwsrwt 87 root users 8192 Feb 24 12:18 incomplete
drwxr-sr-x 7 root users 69 Feb 20 12:25 interfaces
drwxr-sr-x 2 root users 4096 Feb 20 12:25 licenses
drwxr-sr-x 9 root users 69 Feb 20 12:25 locale
drwxr-sr-x 2 root users 68 Feb 24 14:34 logs
-rw-r--r-- 1 root root 96689 Feb 4 06:28 nzb.ico
drwx--S--- 2 root users 8192 Feb 24 00:06 nzbbackup
drwxr-sr-x 5 root users 40 Feb 20 12:25 po
drwxr-sr-x 3 root users 4096 Feb 24 11:11 sabnzbd
-rw-r--r-- 1 root root 287934 Feb 4 06:28 sabnzbd.ico
-rw------- 1 root users 2666 Feb 24 14:53 sabnzbd.ini
-rw------- 1 root users 2666 Feb 24 14:53 sabnzbd.ini.bak
drwxr-sr-x 2 root users 39 Feb 20 12:25 tools
drwxr-sr-x 2 root users 58 Feb 20 12:25 util
Re: Unrar & Permission Errors
How do you start SABnzbd?
From the same command prompt from where you run the manual commands?
If not, possible there are subtle differences in the environment variables.
Is the user account of the terminal session the same as for SABnzbd?
From the same command prompt from where you run the manual commands?
If not, possible there are subtle differences in the environment variables.
Is the user account of the terminal session the same as for SABnzbd?
Re: Unrar & Permission Errors
I start it through /etc/rc.local with nice 8 ionice c3 and as a daemon.
I think I've narrowed the problem down a bit. I did a fresh install from ipkg using version 0.5.6 and basically did all I could to break it and I couldn't; it works fine. So I downloaded the latest version 0.6.15 and extracted all the files to the same folder and ran SABnzbd.py. I had to re-run the wizard, I have 2 different sabnzbd.ini (one in /root/.sabnzbd/ and one in /home/opt/share/SABnzbd/) and I basically get one use out of SABnzbd. Once I restart it or the machine reboots, I get the errors and have problems.
Am I updating wrong? Is there a procedure I'm missing that would remedy this?
Thanks
I think I've narrowed the problem down a bit. I did a fresh install from ipkg using version 0.5.6 and basically did all I could to break it and I couldn't; it works fine. So I downloaded the latest version 0.6.15 and extracted all the files to the same folder and ran SABnzbd.py. I had to re-run the wizard, I have 2 different sabnzbd.ini (one in /root/.sabnzbd/ and one in /home/opt/share/SABnzbd/) and I basically get one use out of SABnzbd. Once I restart it or the machine reboots, I get the errors and have problems.
Am I updating wrong? Is there a procedure I'm missing that would remedy this?
Thanks
Re: Unrar & Permission Errors
Our standard tar.gz distribution file works different from most packages.
Out setup puts the sabnzbd.ini file in ~/.sabnzbd
All default paths might be different.
Out setup puts the sabnzbd.ini file in ~/.sabnzbd
All default paths might be different.
Re: Unrar & Permission Errors
For some reason the .ini in the install directory only occurs after the second wizard (I always get 2 wizards when I use the 0.6.15 package for some reason)