Downloading to NAS

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.
01342
Newbie
Newbie
Posts: 16
Joined: May 4th, 2015, 3:03 am

Downloading to NAS

Post by 01342 »

Hi,

After some help please. I'm running SABnzbd on my Raspberry Pi but I'm trying to configure SABnzbd to download to my Western Digital MyBookLive NAS.
I have mounted the NAS onto the Pi, confirmed as it is visible both using df -h and in the directory tree when looking at the Pi's desktop.
When I try to direct SABnzbd to use the folders on the NAS, by configuring general, whatever I try fails. SABnzbd just sets up a new folder under /home/pi.
For instance, in Temporary Download Folder I have tried :-
\//192.168.1.18/Public /media/MBL/shares/SABnzbd/downloading
//192.168.1.18/Public /media/MBL/shares/SABnzbd/downloading
192.168.1.18/Public /media/MBL/shares/SABnzbd/downloading

Al I get is a new file, /home/pi/192.168.1.18/Public /media/MBL/shares/SABnzbd/downloading etc etc.

How can I tell SABnzbd to use the folders on the NAS?????

Cheers,

Keith.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Downloading to NAS

Post by sander »

Use the path that is visible in your "df -h". That is probably something like /mnt/blabla/blabla/.../.

Do not use the //192.168.1.18/ stuff in SABnzbd running on a Linux/Unix.


Does that work for you?
01342
Newbie
Newbie
Posts: 16
Joined: May 4th, 2015, 3:03 am

Re: Downloading to NAS

Post by 01342 »

sander wrote:Use the path that is visible in your "df -h". That is probably something like /mnt/blabla/blabla/.../.

Do not use the //192.168.1.18/ stuff in SABnzbd running on a Linux/Unix.


Does that work for you?
Nope :(

df -h gives me //192.168.1.18/Public 2.8T 930G 1.9T 34% /media/MBL


Trying to configure SABnzbd in General to download to //192.168.1.18/Public/media/MBL tells me that "Incorrect parameter" "Cannot create download_dir folder //192.168.1.18/Public/media/MBL"

Help!!

Cheers,

Keith.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Downloading to NAS

Post by sander »

On the Raspi, what is the output of:

Code: Select all

ls -al /media/MBL
touch /media/MBL/test.txt
Post it here
01342
Newbie
Newbie
Posts: 16
Joined: May 4th, 2015, 3:03 am

Re: Downloading to NAS

Post by 01342 »

sander wrote:On the Raspi, what is the output of:

Code: Select all

ls -al /media/MBL
touch /media/MBL/test.txt
Post it here
ls -al /media/MBL.............

pi@raspberrypi ~ $ ls -al /media/MBL
total 3076
drwxr-xr-x 2 root root 0 May 3 11:51 .
drwxr-xr-x 3 root root 4096 May 5 18:20 ..
drwxr-xr-x 2 root root 0 Apr 14 20:18 backup
-rwxr-xr-x 1 root root 15364 Apr 19 2014 .DS_Store
-rwxr-xr-x 1 root root 80 Dec 9 2013 .e2settings.pkl
drwxr-xr-x 2 root root 0 Apr 14 20:18 imagebackups
drwxr-xr-x 2 root root 0 Mar 9 04:01 logs
drwxr-xr-x 2 root root 0 Apr 5 10:13 Network Trash Folder
drwxr-xr-x 2 root root 0 Apr 14 20:19 Shared Music
drwxr-xr-x 2 root root 0 Apr 14 20:19 Shared Pictures
drwxr-xr-x 2 root root 0 Apr 14 20:19 Shared Videos
drwxr-xr-x 2 root root 0 May 5 19:13 Shares
drwxr-xr-x 2 root root 0 Apr 14 20:19 Software
drwxr-xr-x 2 root root 0 May 6 21:34 solo
drwxr-xr-x 2 root root 0 Apr 14 20:19 Temporary Items
-rwxr-xr-x 1 root root 0 Apr 19 2013 .tickle
drwxr-xr-x 2 root root 0 May 6 22:12 .Trash
-rwxr-xr-x 1 root root 860 Oct 11 2012 .vftTestData.xml
pi@raspberrypi ~ $

AND.... touch /media/MBL/test.txt

pi@raspberrypi ~ $ touch /media/MBL/test.txt
touch: cannot touch `/media/MBL/test.txt': Permission denied


Hope this helps.

Cheers,

Keith
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Downloading to NAS

Post by sander »

01342 wrote:
sander wrote:On the Raspi, what is the output of:

Code: Select all

ls -al /media/MBL
touch /media/MBL/test.txt
Post it here

pi@raspberrypi ~ $ touch /media/MBL/test.txt
touch: cannot touch `/media/MBL/test.txt': Permission denied
Ouch. Not good: rights problems with your NAS.



Long shot: output of:

Code: Select all

sudo touch /media/MBL/test.txt
01342
Newbie
Newbie
Posts: 16
Joined: May 4th, 2015, 3:03 am

Re: Downloading to NAS

Post by 01342 »

sander wrote:
01342 wrote:
sander wrote:On the Raspi, what is the output of:

Code: Select all

ls -al /media/MBL
touch /media/MBL/test.txt
Post it here

pi@raspberrypi ~ $ touch /media/MBL/test.txt
touch: cannot touch `/media/MBL/test.txt': Permission denied
Ouch. Not good: rights problems with your NAS.



Long shot: output of:

Code: Select all

sudo touch /media/MBL/test.txt
Not entirerly with you, but.....

pi@raspberrypi ~ $ sudo touch /media/MBL/test.txt
pi@raspberrypi ~ $

Nothing much happened. Was it supposed to?

Cheers,

Keith.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Downloading to NAS

Post by sander »

01342 wrote: Not entirerly with you, but.....

pi@raspberrypi ~ $ sudo touch /media/MBL/test.txt
pi@raspberrypi ~ $

Nothing much happened. Was it supposed to?

Cheers,

Keith.
The command with sudo (so: as superuser aka root) does NOT give an error message, so superuser aka root apparently has write rights to your NAS /media/MBL/. That is good.

So, options:
- if you run SABnzbd as root, you can SABnzbd let save to /media/MBL/. Problem solved
- if you don't run SABnzbd as root, you must make sure the non-root user has write rights to /media/MBL/. That is not a SABnzbd thing, but a SMB / CIFS / Linux mount thing (probably controllable via /etc/fstab). I have no knowledge of SMB and /etc/fstab, so I can't help your very much. Probably more help in the Raspi / Raspbian forum

HTH
01342
Newbie
Newbie
Posts: 16
Joined: May 4th, 2015, 3:03 am

Re: Downloading to NAS

Post by 01342 »

sander wrote:
So, options:
- if you run SABnzbd as root, you can SABnzbd let save to /media/MBL/. Problem solved


HTH
I like that option :)

How do I do it?

Cheers,

Keith.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Downloading to NAS

Post by sander »

How do you run on SABnzbd now? From the command line (if so: as which user are you logged on?), or as a daemon (and auto-start at boot)?

EDIT:
You realize that running SABnzbd with all drives on a NAS is slow? If you want to *save* to a NAS, it's better to use the NAS only as destination drive ("Complete" or with a post-processing script)
01342
Newbie
Newbie
Posts: 16
Joined: May 4th, 2015, 3:03 am

Re: Downloading to NAS

Post by 01342 »

sander wrote:How do you run on SABnzbd now? From the command line (if so: as which user are you logged on?), or as a daemon (and auto-start at boot)?

EDIT:
You realize that running SABnzbd with all drives on a NAS is slow? If you want to *save* to a NAS, it's better to use the NAS only as destination drive ("Complete" or with a post-processing script)
It runs auto start on boot. Thanks for the tip, I don't mind having only the final destination completed folder being on the nas, suits me fine.
I'm using a 16GB SD card which should suffice for the downloading bit.

Cheers,

Keith.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Downloading to NAS

Post by sander »

Auto start on boot ... ok, so how did you configure that?
01342
Newbie
Newbie
Posts: 16
Joined: May 4th, 2015, 3:03 am

Re: Downloading to NAS

Post by 01342 »

sander wrote:Auto start on boot ... ok, so how did you configure that?
I just followed these instructions......

The only thing you have to do is edit the SABnzbd /etc/default/ file to indicate which user you want the daemon to run under.
In order to do so, type the following command in the terminal to open up nano and the SABnzbd configuration file:
sudo nano /etc/default/sabnzbdplus
The only variable you need to edit is USER=; insert the username of the account you wish to run the daemon under. We used the default user account (and the one we installed SABnzbd under) “pi”. Press CTRL+X to exit and save your edit.


Cheers,

Keith.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Downloading to NAS

Post by sander »

OK, so you filled out "USER=pi".

I would do this:
1) stop SABnzbd and remove the user setting from the auto-startup
2) log in as root. Start SABnzbd. You will get the SABnzbd wizard. Fill it out. Make sure SABnzbd is running and working and downloading (all under root account)
3) Then fill out as "Completed Download Folder" something like "/media/MBL/Download/Complete. Test it again that it works, including downloading and acceptable speed
4) If that all works, change the setting to "USER=root", and check for other settings
5) restart your Raspi and make sure SABnzbd works as root and saves to your NAS
01342
Newbie
Newbie
Posts: 16
Joined: May 4th, 2015, 3:03 am

Re: Downloading to NAS

Post by 01342 »

sander wrote:OK, so you filled out "USER=pi".

I would do this:
1) stop SABnzbd and remove the user setting from the auto-startup
2) log in as root. Start SABnzbd. You will get the SABnzbd wizard. Fill it out. Make sure SABnzbd is running and working and downloading (all under root account)
3) Then fill out as "Completed Download Folder" something like "/media/MBL/Download/Complete. Test it again that it works, including downloading and acceptable speed
4) If that all works, change the setting to "USER=root", and check for other settings
5) restart your Raspi and make sure SABnzbd works as root and saves to your NAS

So, that was a bit beyond me :-[
I couldn't get it to stop/start under root so I did a complete new install on the Pi. Just before installing SABnzbd I logged in as root and from root did the complete SABnzbd install. I did the autostart as root and pretty soon was downloading straight to the NAS :)
The download folder is now /media/MBL/Download/Complete and the download appeared on the NAS in folder "Complete", which is in folder "Download"..... Well, you get the picture.
At first it wouldn't download at all, error message about the memory card being too small so I just set up the downloading folder on the NAS too, /media/MBL/Download/downloading.

I think that the Watched, Post-processing and .nzb Folders are still on the SD card, not sure but I assume they can stay there.

Bottom line is - it all seems to do what I wanted now. THANK YOU.

Cheers,

Keith.
Post Reply