Page 1 of 1

Cleaning Incomplete Folder

Posted: February 5th, 2009, 4:32 pm
by Jonny
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

Re: Cleaning Incomplete Folder

Posted: February 7th, 2009, 4:22 am
by Jonny
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!!!!

Re: Cleaning Incomplete Folder

Posted: February 8th, 2009, 2:29 am
by shypike
The solution is described here:

http://sabnzbd.wikidot.com/unix-permissions

Re: Cleaning Incomplete Folder

Posted: February 8th, 2009, 4:39 am
by Jonny
shypike wrote: The solution is described here:

http://sabnzbd.wikidot.com/unix-permissions
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?

Re: Cleaning Incomplete Folder

Posted: February 8th, 2009, 4:54 am
by Jonny
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 ?????

Re: Cleaning Incomplete Folder

Posted: February 8th, 2009, 5:52 am
by Dipstick
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

Re: Cleaning Incomplete Folder

Posted: February 8th, 2009, 10:40 am
by shypike
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 ?????
No, the idea is that the incomplete data is private.
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))
to

Code: Select all

    #os.umask(prev and int('077',8))
Make sure that your "umask" has the right value.