SABnzbd does not support symlinks.

Report & discuss bugs found in 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
geebee
Release Testers
Release Testers
Posts: 59
Joined: August 2nd, 2008, 5:58 pm

SABnzbd does not support symlinks.

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

Re: SABnzbd does not support symlinks.

Post by shypike »

It works fine on Ubuntu Linux (ext2 and ext3).
What does QNAP use for a file system?
Do symlinks work at all?
Balrog
Newbie
Newbie
Posts: 5
Joined: October 15th, 2008, 8:17 am

Re: SABnzbd does not support symlinks.

Post 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 :-)
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: SABnzbd does not support symlinks.

Post by switch »

Does this issue still happen if tv sorting is turned off?
Balrog
Newbie
Newbie
Posts: 5
Joined: October 15th, 2008, 8:17 am

Re: SABnzbd does not support symlinks.

Post by Balrog »

Hi Switch,

Thank you for your reply. I'll turn off TV sorting and revert with the result.

brgds
Kenneth
Balrog
Newbie
Newbie
Posts: 5
Joined: October 15th, 2008, 8:17 am

Re: SABnzbd does not support symlinks.

Post 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.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: SABnzbd does not support symlinks.

Post 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
Balrog
Newbie
Newbie
Posts: 5
Joined: October 15th, 2008, 8:17 am

Re: SABnzbd does not support symlinks.

Post 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)
Last edited by Balrog on October 20th, 2008, 3:45 pm, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: SABnzbd does not support symlinks.

Post by switch »

run: python test.py
Balrog
Newbie
Newbie
Posts: 5
Joined: October 15th, 2008, 8:17 am

Re: SABnzbd does not support symlinks.

Post 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

:-[
geebee
Release Testers
Release Testers
Posts: 59
Joined: August 2nd, 2008, 5:58 pm

Re: SABnzbd does not support symlinks.

Post by geebee »

same here
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: SABnzbd does not support symlinks.

Post 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.
geebee
Release Testers
Release Testers
Posts: 59
Joined: August 2nd, 2008, 5:58 pm

Re: SABnzbd does not support symlinks.

Post by geebee »

Have a read of this if you get time:

http://forum.qnap.com/viewtopic.php?f=133&t=8124
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd does not support symlinks.

Post by shypike »

I'm not a registered forum user,. so I cannot read it.
Post Reply