Page 1 of 2
Downloading to NAS
Posted: May 6th, 2015, 8:20 am
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.
Re: Downloading to NAS
Posted: May 6th, 2015, 3:07 pm
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?
Re: Downloading to NAS
Posted: May 7th, 2015, 5:25 am
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.
Re: Downloading to NAS
Posted: May 7th, 2015, 5:33 am
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
Re: Downloading to NAS
Posted: May 7th, 2015, 8:19 am
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
Re: Downloading to NAS
Posted: May 7th, 2015, 8:44 am
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:
Re: Downloading to NAS
Posted: May 7th, 2015, 11:06 am
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:
Not entirerly with you, but.....
pi@raspberrypi ~ $ sudo touch /media/MBL/test.txt
pi@raspberrypi ~ $
Nothing much happened. Was it supposed to?
Cheers,
Keith.
Re: Downloading to NAS
Posted: May 7th, 2015, 11:28 am
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
Re: Downloading to NAS
Posted: May 7th, 2015, 11:46 am
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.
Re: Downloading to NAS
Posted: May 7th, 2015, 1:07 pm
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)
Re: Downloading to NAS
Posted: May 7th, 2015, 2:10 pm
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.
Re: Downloading to NAS
Posted: May 7th, 2015, 3:01 pm
by sander
Auto start on boot ... ok, so how did you configure that?
Re: Downloading to NAS
Posted: May 8th, 2015, 3:36 am
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.
Re: Downloading to NAS
Posted: May 8th, 2015, 6:13 am
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
Re: Downloading to NAS
Posted: May 8th, 2015, 10:16 am
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.