Page 1 of 1

Unable to save downloads to a network share

Posted: September 17th, 2016, 11:02 pm
by deejay01
I have successfully installed SABnzbd on a Raspberry PI running OPENELEC, but I haven't been able to configure SABnzbd to save downloads to a network share - which is a USB hard disk drive plugged into the router / gateway of my home network. It sounds easy (and perhaps it *is* easy) but I haven't found or figured out a solution. There are good reasons for using the network share including performance and the fact that it functions as a DLNA Server without requiring a setup procedure.

Ideally, the SABnzbd user interface (Config -> Folders -> Completed Download Folder) would allow me to browse to the location of my preferred completed download folder on the network share but it doesn't seem to allow it. I have entered the full path (or what I *think* is the correct full path) but SABnzbd displays an error message at the end of a download.

The full path I have entered is: //<ip address>/usbdisk/<USB HDD volume name>/<completed download folder>
The error message is: Post processing was aborted (Cannot create final folder //<ip address>/usbdisk/<USB HDD volume name>/<completed download folder>/<downloaded filename>)

The folder <completed download folder> already exists (because I created it).

I'm guessing (please correct me if I'm wrong) that "usbdisk" is a name created by the router's firmware to "point to" the USB ports (of which there are 2). The Windows Explorer path of my desired completed download folder is \\<ip address>\usbdisk\<USB HDD volume name>\<completed download folder>

Obviously it doesn't solve this problem (although it might provide a clue) I have been able to use the Kodi user interface to create an OPENELEC "Source" which points to my desired completed download folder. I had to configure a Samba share including credentials (the gateway's username / password combination).

I have followed the instructions here http://wiki.openelec.tv/index.php/Mount ... ork_shares without success. The only result (which was unintended) I have achieved by mounting a storage location is to save a download to the local USB (a USB flash drive plugged into the PI) - which of course isn't a solution because I want to save downloads to the network share.

I'm thinking it might be a security / credentials problem (entering the full path) or it might be that I haven't correctly followed the instructions to mount a network share (despite several attempts).

Thanks in advance. My apologies if this has been discussed / resolved elsewhere. If so could someone kindly refer me to the solution.

Re: Unable to save downloads to a network share

Posted: September 18th, 2016, 3:20 am
by deejay01
Solved

1) Create a mount point
mkdir /storage/<subfolder>

2) Add this code to /storage/.config/autostart.sh
(sleep 30;
mount -t cifs -o username=<username>,password=<password>,rw //<ip address>/usbdisk/<USB HDD volume name>/<completed download folder> /storage/<subfolder>;
)&

3) Open a browser and go to the Raspberry PI OPENELEC SABnzbd user interface (eg 192.168.1.10:8081)

4) Navigate to Config -> Folders -> Completed Download Folder

5) Change the location by browsing to /storage/<subfolder>

6) Save Changes