Page 1 of 1
SABnzbd does not support symlinks.
Posted: October 15th, 2008, 6:41 am
by geebee
Over on the QNAP forum a couple of us have been trying to get SAB to support symlinks and it doesnt look like it does.
Any thoughts?
Re: SABnzbd does not support symlinks.
Posted: October 15th, 2008, 6:54 am
by shypike
It works fine on Ubuntu Linux (ext2 and ext3).
What does QNAP use for a file system?
Do symlinks work at all?
Re: SABnzbd does not support symlinks.
Posted: October 15th, 2008, 8:33 am
by Balrog
Hi,
I'm also one of the guys from the Qnap forum that has been struggling with soft links.
The qnap is running EXT3 filesystems. And what happens is this:
Sabnzbd wants to save to the directory /share/Qdownload/sabnzbd/complete/Movies (example)
I want my movies to go into /share/Qmultimedia/film
Instead af changing configuration in sabnzbd I just deleted the Movies directory and replaced it with a softlink/symlink using the
ln -s
command
But next time sabnzbd wants to save to the Movies folder (which is now a link to /share/Qmultimedia/film) it says in the log that it can't create Movies folder! :-(
We have checked permissions on destination, they are all 777 and ownership is also in order.
Oh and yes symlinks works fine for everything else. I use it alot.
Thank you for your time :-)
Re: SABnzbd does not support symlinks.
Posted: October 17th, 2008, 12:58 pm
by switch
Does this issue still happen if tv sorting is turned off?
Re: SABnzbd does not support symlinks.
Posted: October 20th, 2008, 9:58 am
by Balrog
Hi Switch,
Thank you for your reply. I'll turn off TV sorting and revert with the result.
brgds
Kenneth
Re: SABnzbd does not support symlinks.
Posted: October 20th, 2008, 12:25 pm
by Balrog
Hi,
Turning off tv sorting made no difference. This is from the web log:
2008-10-20 18:06:05,025 ERROR [sabnzbd.misc] Failed making (/share/Qdownload/sabnzbd/complete/TV)
<- /share/Qdownload/sabnzbd/complete/TV already exists as a link pointing to /share/Public/serier, but it is as if sabnzbd can't see links, so tries to make the folder again and fails.
Re: SABnzbd does not support symlinks.
Posted: October 20th, 2008, 12:56 pm
by switch
Can you try running the following from python (either enter it at command line or shove it in a file and give it a .py extension):
Code: Select all
import os
list = '/share/Qdownload/sabnzbd/complete/TV'.split('/')
path = ''
for d in list:
if d:
path += '/' + d
if not os.path.exists(path):
print 'making: %s' % path
os.mkdir(path)
else:
print 'path exists:%s' % path
Re: SABnzbd does not support symlinks.
Posted: October 20th, 2008, 3:43 pm
by Balrog
Hi Switch,
I think I did something wrong.
[/share/MD0_DATA/system] # vim test.py
[/share/MD0_DATA/system] # chmod 766 test.py
[/share/MD0_DATA/system] # ./test.py
./test.py: line 1: import: command not found
./test.py: line 2: syntax error near unexpected token `('
./test.py: line 2: `list = '/share/Qdownload/sabnzbd/complete/TV'.split('/')'
Looks like the shell is interpreting it?
Can it have something to do with sabnzbd running in a shroot environment on the QNAP devices? (I am in way over my head here)
Re: SABnzbd does not support symlinks.
Posted: October 20th, 2008, 3:53 pm
by switch
run: python test.py
Re: SABnzbd does not support symlinks.
Posted: October 21st, 2008, 4:17 am
by Balrog
[/share/MD0_DATA/system] # python test.py
python: relocation error: /opt/lib/libpthread.so.0: symbol errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

Re: SABnzbd does not support symlinks.
Posted: October 21st, 2008, 3:56 pm
by geebee
same here
Re: SABnzbd does not support symlinks.
Posted: October 21st, 2008, 6:09 pm
by switch
I'm not sure how sabnzbd is launched from QNAP devices, but could it be a problem if launched using chroot? If so certain directories may not be visible to sabnzbd unless they are specifically set.
Re: SABnzbd does not support symlinks.
Posted: October 22nd, 2008, 3:01 am
by geebee
Re: SABnzbd does not support symlinks.
Posted: October 22nd, 2008, 5:50 am
by shypike
I'm not a registered forum user,. so I cannot read it.