Sab puts Downloaded files in /usr/local/.../complete dir

Get help with all aspects of 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
James88
Newbie
Newbie
Posts: 6
Joined: March 28th, 2016, 3:11 am

Sab puts Downloaded files in /usr/local/.../complete dir

Post by James88 »

Hey Guys,

Im Running sab on a synology ds214 nas. I installed it and granted sab via ssh admin Permissions.

First sab wasnt able to create the folder /volume1/Downloads/incomplete ... So i fixed that by changing permissions of the directory. So far so good. Unfortunately it is not able to put my Downloads in the dir /volume1/Downloads/complete (Or incomplete) folder. It is just putting them in this dir /usr/local/sabnzbd/var/complete

Everytime im changing this by editing it in sab-Settings (Folders), it just Changes it back from /volume1/.... To /usr/local/sabnzbd/var/...

How can i fix this?
Btw sorry for my english

Regards
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sab puts Downloaded files in /usr/local/.../complete dir

Post by shypike »

Not easy to diagnose with limited info.
SABnzbd uses user-defined folders, when it has write-access to them.
If not, it will fall back to default values.
Now, I'm not sure what the default values are in your case,
because package creators may change those.
On UNIX systems, ownership is a determining factor.
Do you know under which user account SABnzbd runs and whether
that matches the ownership of the folders you use?
James88
Newbie
Newbie
Posts: 6
Joined: March 28th, 2016, 3:11 am

Re: Sab puts Downloaded files in /usr/local/.../complete dir

Post by James88 »

Okay i will give you information ;-).
i have created the shared folders movies , Series and Download.
the download folder has these permissions:
sabnzbd read /write

i have also edited the passwd file of the linux system of the nas to give sabnzbd admin rights (changed the UID to 1051). Because of this, sabnzbd is listed as user an has rights to read and write in the folder download.

in sabnzbd (app config itself) you can give sab the location of the temporary download folder and the complete download folder. After my topic, i was able to change them like this:

temporary: /volume1/downloads
complete: /volume1/downloads

If sab want to download sth. i get the warning

Failed making (/volume1/downloads/(name of the download file ;))

i think its an issue with the permissions to write sth. in the download folder. but i already granted sab the permissions like i said before?? i dont get it....
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sab puts Downloaded files in /usr/local/.../complete dir

Post by shypike »

Please don't set the temp folder and the final folder equal, this can lead to other problems.
Creating a temp folder in the final folder is ok.
Is the /volume1/downloads folder owned by SABnzbd?
Or is it publicly writable?
James88
Newbie
Newbie
Posts: 6
Joined: March 28th, 2016, 3:11 am

Re: Sab puts Downloaded files in /usr/local/.../complete dir

Post by James88 »

thank you so much!
it works.
i have created a new shared folder named incomplete for temporary downloaded files.
now it works :D! so the problem was the equal folder for temp and final.

thanks again!
James88
Newbie
Newbie
Posts: 6
Joined: March 28th, 2016, 3:11 am

Re: Sab puts Downloaded files in /usr/local/.../complete dir

Post by James88 »

but i wonder why it worked before...

i have erased my hdd and had to installed it all new....

before i had these folders :
/volume1/downloads/complete
/volume1/downloads/incomplete


it worked with the configuration above....now that i installed all new, it wasnt working like that....

thanks again for helping.
James88
Newbie
Newbie
Posts: 6
Joined: March 28th, 2016, 3:11 am

Re: Sab puts Downloaded files in /usr/local/.../complete dir

Post by James88 »

damn -_-...new issue....

sab finishes the download and has isssues with post processing..:
Failed making (/volume1/downloads/downloaded file.mkv)
Post Processing Failed for downloaded file.mkv (Cannot create final folder /volume1/downloads/downloaded file)

so...it can manage to download but can not save the file..it has to be a permission issue right?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sab puts Downloaded files in /usr/local/.../complete dir

Post by shypike »

Do you have ssh access?
Can you do an "ls -l" at the /volume1/downloads level and show that here (or with a PM)?
SABnzbd hasn't changed regarding access rights between 0.7.20 and 1.0.0, but maybe the package creator made changes.
James88
Newbie
Newbie
Posts: 6
Joined: March 28th, 2016, 3:11 am

Re: Sab puts Downloaded files in /usr/local/.../complete dir

Post by James88 »

problem solved!

I deleted Sab. I reinstalled it and changed the UID of Sab in the file passwd (/etc/passwd) fom 100 to 1051. After that i changed the permissions of the folders downloads series an movies again and now it is working just fine...

I dont know why it wasn't working before.

Thanks for your help!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sab puts Downloaded files in /usr/local/.../complete dir

Post by shypike »

Good that works now.
May have been settings from the packages.
Packages are outside our control.
Post Reply