[Linux] download directories dont save

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
benharvey1985
Newbie
Newbie
Posts: 8
Joined: November 26th, 2009, 7:12 pm

[Linux] download directories dont save

Post by benharvey1985 »

hello, and thanks for taking the time to try and help me first things first my setup:

Version: 0.5.0Beta4
OS: Ubuntu Karmic
Install-type: Linux repository


every time i restart my pc the download folders change back to defaults ('/username/.sabnzbd/downloads')
i wish for them to be ('/media/sdc1/')

if i change them in config then restart the server they stay as i have set them, but only revert to defaults if i restart which leads me to believe sabnzbd loads before the drives are mounted correctly.

if anyone knows of a way to rectify this i would be greatful to hear it.

thanks in advance.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [Linux] download directories dont save

Post by shypike »

How do you start SABnzbd?
If you run it in user mode, the administrative files are all in  $HOME/.sabnzbd and
the downloaded files in $HOME/downloads/incomplete (temporary)
and $HOME/downloads/complete (final).
The configuration file sabnzbd.ini is in the $HOME/.sabnzbd folder.
Make sure it's writable.

When you start it as a daemon, look at the package instructions to configure it properly.
We do not create the packages. However the maintainer of the package
has a thread in the General section, top item.
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: [Linux] download directories dont save

Post by jcfp »

benharvey1985 wrote:if i change them in config then restart the server they stay as i have set them, but only revert to defaults if i restart which leads me to believe sabnzbd loads before the drives are mounted correctly.
Logic dictates two possible fixes: mount the partitions timely (by adding them to /etc/fstab - google knows how), or delay the startup of sab until a certain condition is met (like a specific directory being available). The latter can be done as follows:

1. Disable the normal auto-startup:

Code: Select all

sudo update-rc.d sabnzbdplus stop 0 1 2 3 4 5 6 .
2. Create a file with a script like this (obviously, you should place it outside the directory you're testing for):

Code: Select all

while [ ! -d /YOUR/DIR/HERE ]; do sleep 10; done
/etc/init.d/sabnzbdplus start
3. Make things run on startup by adding a line to /etc/rc.local:

Code: Select all

/bin/sh /FULL/PATH/TO/YOUR/SCRIPT &
benharvey1985
Newbie
Newbie
Posts: 8
Joined: November 26th, 2009, 7:12 pm

Re: [Linux] download directories dont save

Post by benharvey1985 »

thanks for the quick replies, i shall try these suggestions and report back.
benharvey1985
Newbie
Newbie
Posts: 8
Joined: November 26th, 2009, 7:12 pm

Re: [Linux] download directories dont save

Post by benharvey1985 »

i had to do a fresh install of 0.4.12 and managed to use a handy tool to mount them using fstab (took about 5 minutes) using "storage device manager" which i added using the command:

Code: Select all

sudo apt-get install pysdm
and then running it from System > Admin  > Storage Device Manager

thank you shypike and jcfp for giving me some more ideas and helping me solve this.
Post Reply