"Temp" and "watch" folder errors on newly-booted system

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
hanker
Newbie
Newbie
Posts: 27
Joined: December 8th, 2011, 9:25 am

"Temp" and "watch" folder errors on newly-booted system

Post by hanker »

Greetings

I am running sabnzbd 0.6.12 under Debian squeeze on a Seagate Dockstar (plug computer with 1.2 GHz ARM processor, 128 MB RAM).

The Dockstar boots from a usb flash drive. sabnzbd's "temp", "watch", and "completed" folders are on an external usb hard disk that's not mounted until after the machine boots. (The machine won't boot unless the boot flash drive is the only thing hooked up at boot time.)

The sabnzbd folders on the external usb hard disk are as follows:

/media/usb_1/sabnzbd/1_watch
/media/usb_1/sabnzbd/2_temp
/media/usb_1/sabnzbd/3_completed

After the machine has booted and the external usb hard disk has been mounted, sabnzbd shows an error under Status -> Latest Warnings:

Code: Select all

1969-12-31 18:00:30,344	ERROR:	Cannot create directory /media/usb_1/sabnzbd/2_temp
1969-12-31 18:00:30,334	ERROR:	Cannot create directory /media/usb_1/sabnzbd/1_watch
and the location of the "temp" and "watch" folders as shown in Config -> Folders have reverted to their default values. Note that the "completed" folder is *not* lost, though. Not sure why.

To fix this I have to change these two folder locations back to their correct values in Config -> Folders. After I do this, sabnzbd works fine.

BTW, there was nothing in the queue at boot time.

What would be the best way to keep sabnzbd from doing this?

BTW, I previously had this same box running Debian wheezy with sabnzbd 0.6.10, and it didn't experience this folder error at boot time.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: "Temp" and "watch" folder errors on newly-booted system

Post by shypike »

The "complete" folder isn't needed until the first unpack.
The "temp" folder is absolutely essential, SABnzbd cannot work withour it.
The behaviour of the "watched" folder is a bit peculiar and I'll check that,

Overall, you should delay the start of SABnzbd until the "temp" folder is available.
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: "Temp" and "watch" folder errors on newly-booted system

Post by jcfp »

For delaying service startup on Ubuntu or Debian, see this topic.
hanker
Newbie
Newbie
Posts: 27
Joined: December 8th, 2011, 9:25 am

Re: "Temp" and "watch" folder errors on newly-booted system

Post by hanker »

shypike wrote:The "complete" folder isn't needed until the first unpack.
The "temp" folder is absolutely essential, SABnzbd cannot work withour it.
The behaviour of the "watched" folder is a bit peculiar and I'll check that,

Overall, you should delay the start of SABnzbd until the "temp" folder is available.
jcfp wrote:For delaying service startup on Ubuntu or Debian, see this topic.

Got it. Thank you for your help. I got it to work by disabling the sabnzbdplus service:

Code: Select all

# update-rc.d sabnzbdplus disable
This kills autostart at boot time. (This is what I really wanted.)

And now I can boot the machine with the flash drive, manually mount the usb hard disk, and then start sabnzbd:

Code: Select all

# /etc/init.d/sabnzbdplus start
The folders are just fine now.

Then before I shut it down I can do

Code: Select all

# /etc/init.d/sabnzbdplus stop
It's no problem doing all this stuff manually because the Dockstar is rarely rebooted anyway - it's meant as a plug-and-forget Bittorrent-and-nzb appliance.

Thank you again for your help! :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: "Temp" and "watch" folder errors on newly-booted system

Post by shypike »

Watched folder issue is solved in release 0.6.14.
Post Reply