Sabnzb on Synology CS407
Accessed with Mac os 10.5
Guys.
I am trying empty the incomplete downloads folder but have a small problem.
It is stored on a share on the same Synology cs407 as SABNZBD is installed on.
The incomplete folder is in volume1/Newzbin along with the complete folder, system folder (for logs).
When viewing these folder in the OS X finder the icons have the little icon on with the red circle with line through. This means i cannot open the folder as i dont have permissions to do so.
In Sabnzbd i have the permissions set to 0777.
You can see this by looking here >>>>> www.jonspeed.com/grab.tiff
you can change the permissions using chmod from terminal and the incomplete folder is opened but any files that get put in it become unavailable with the same issues.
i have reinstalled sabnzbd but no luck
I can access the folders if i ssh into the synology and i see files in there but it wont work in the finder.
can you help.
I need to do this so i can manually clean up incomplete downloads.
thanks
jon
Cleaning Incomplete Folder
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.
Re: Cleaning Incomplete Folder
After a little further investigation i have noticed that if i connect via SMB rather than AFP i can get access to the folders.
However the folders still display as empty.
If i SSH into the folder the contents are
CubeStation> dir
drwx------ 6 root root 4096 Feb 7 09:23 .
drwxrwxrwx 8 root root 4096 Feb 7 09:18 ..
drwx------ 2 root root 4096 Feb 5 21:46 [snip]
drwx------ 2 root root 4096 Feb 5 21:46 [snip]
drwx------ 2 root root 4096 Feb 7 09:26 [snip]
drwx------ 2 root root 4096 Feb 5 21:30 [snip]
If i go in via the i see nothing and the folder size is zero KB
I know little about the permissions displayed here but my guess is the permisions on theses files is wrong. But SABNZBD is creating them this way....what can i do?
Please can you help, this is really annoying me now!!!!
However the folders still display as empty.
If i SSH into the folder the contents are
CubeStation> dir
drwx------ 6 root root 4096 Feb 7 09:23 .
drwxrwxrwx 8 root root 4096 Feb 7 09:18 ..
drwx------ 2 root root 4096 Feb 5 21:46 [snip]
drwx------ 2 root root 4096 Feb 5 21:46 [snip]
drwx------ 2 root root 4096 Feb 7 09:26 [snip]
drwx------ 2 root root 4096 Feb 5 21:30 [snip]
If i go in via the i see nothing and the folder size is zero KB
I know little about the permissions displayed here but my guess is the permisions on theses files is wrong. But SABNZBD is creating them this way....what can i do?
Please can you help, this is really annoying me now!!!!
Last edited by Anonymous on February 8th, 2009, 1:02 pm, edited 1 time in total.
Re: Cleaning Incomplete Folder
Shypike, thanks for taking the time to reply...i had given up on anyone offering any help with this one.
Unfortunately that is not the solution. If you take a look at the screen grab i posted i already have the permissions set to 0777 which should be all i need to do. Except this does not work.If i connect via SMB instead of my usually AFP the folders become 'open' however there are no files visible inside even though they are there and visible via the command line.
You can see this issue by looking at this new screen grab.
[Picture removed for breaking the forum rules.]
I also have no access to these folders via ftp. If i try this protocol i get 'no such file or directory' .... what is going on?
Last edited by Anonymous on February 8th, 2009, 1:01 pm, edited 1 time in total.
Re: Cleaning Incomplete Folder
OK. I think i have this just about solved now.
SABNZBD (in my newbie terms) runs and stores folders under the Admin user on the server.
When i am connecting to the server i am doing so under the user 'Jon'
If i connect in the finder by the Admin account all is well.
NOW question....... Can SABNZBD be made to apply the same 0777 permissions to the Incomplete and Sytem folders the way it does on the Complete folder ??
SABNZBD (in my newbie terms) runs and stores folders under the Admin user on the server.
When i am connecting to the server i am doing so under the user 'Jon'
If i connect in the finder by the Admin account all is well.
NOW question....... Can SABNZBD be made to apply the same 0777 permissions to the Incomplete and Sytem folders the way it does on the Complete folder ??
Re: Cleaning Incomplete Folder
Hi Jonny,
Hopefully someone will correct me if I'm wrong, but can you add the group that Jon belongs to into the admin group and set the SGID bit on the folder.
Read 3) in the last post here!
http://www.linuxquestions.org/questions ... id-258719/
and here is a good example...
http://www.library.yale.edu/wsg/docs/pe ... s/sgid.htm
The SGID bit can be set using octet notation which is the 777 644 thing which you are using now so you maybe able to do it from SABnzbd ? (If not use the command line)
Hope this helps
Cheers Dipstick
Hopefully someone will correct me if I'm wrong, but can you add the group that Jon belongs to into the admin group and set the SGID bit on the folder.
Read 3) in the last post here!
http://www.linuxquestions.org/questions ... id-258719/
and here is a good example...
http://www.library.yale.edu/wsg/docs/pe ... s/sgid.htm
The SGID bit can be set using octet notation which is the 777 644 thing which you are using now so you maybe able to do it from SABnzbd ? (If not use the command line)
Hope this helps
Cheers Dipstick
Re: Cleaning Incomplete Folder
No, the idea is that the incomplete data is private.Jonny wrote: NOW question....... Can SABNZBD be made to apply the same 0777 permissions to the Incomplete and Sytem folders the way it does on the Complete folder ??
If you insist on making this private data public, you will need to
patch the file SABnzbd.py.
Change line 172:
Code: Select all
os.umask(prev and int('077',8))
Code: Select all
#os.umask(prev and int('077',8))