Queue and Incomplete Downloads got lost

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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.
Locked
Ringwraith
Newbie
Newbie
Posts: 4
Joined: June 25th, 2008, 11:48 am

Queue and Incomplete Downloads got lost

Post by Ringwraith »

Hi. First of all, thanks for this awesome program. ;D

Now to my problem:

- Hardy Heron crashed and i had to reboot.
- When the system started, the hdd - where the configured sabnzbd-directories(queue, cache, logs, backup, incomplete) are stored - had not been mounted.
- On startup sabnzbd started
- sabnzbd created the configured directories in the directory of the mount-point (/media/sdx/....)
- Now the queue(in the WebGui) was empty
- I mounted the hdd
- Queue still empty
- i restarted sabnzbd
- queue still empty :(

So. I can only guess what happend here because I don't really know how sabnzbd works and stores various information. :-\
I think on restart of sabnzbd (shutdown and start) the files for the queue and other information have been replaced with "empty" files.

Is it possible to restore the state of sabnzbd(queue and incomplete downloads) before the "accident"? ::)

Still... awesome program. Keep up the good work.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Queue and Incomplete Downloads got lost

Post by shypike »

Several problems at the same time.
One SABnzbd is not 100% crash-resistant. Only when you set the option "Enable periodic Save" on Config->Switches, your chances of crash survival become better, but not 100%.
Problem is that an important part of the admin is in memory (periodically saved), but some important (large) parts are always on disk.
The disadvantage of this is that a crash can make the memory and the disk part inconsistant.

I don't know if all folders were on the mounted drive.
An essential one is the cache and also incomplete.
If both are on the same drive, then stopping SABnzbd, remount and restart SABnzbd should make it pick up where it left, unless the cache folder is truly corrupted. If cache was available and incomplete not, I'm not sure what will happen, but I'm pessimistic.
Ringwraith
Newbie
Newbie
Posts: 4
Joined: June 25th, 2008, 11:48 am

Re: Queue and Incomplete Downloads got lost

Post by Ringwraith »

Thanks for the quick reply.

My problem is that sabnzbd was still running when I mounted the drive with the sabnzbd folders. After that i restarted sabnzbd and then all information has been overwritten. The cached articles and the incomplete folder are available now. But sabnzbd isn't picking up something.

I didn't have too much in the queue. I can probably add the nzb files again. But sabnzbd had already downloaded 37GB for one job (44GB).
Can this work:
- Adding the nzb file
- Waiting for sabnzbd to start downloading
- Shutting down sabnzbd
- Overwriting the new incomplete folder with the old incomplete folder (37GB)
- Starting sabnzbd
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Queue and Incomplete Downloads got lost

Post by shypike »

This is manual work.
Move all downloaded files to a safe location.
Set SABnzbd in pause mode.
Load the NZB file again.
Set the job to "no post-processing".
Use the queue browser to remove all files that were already downloaded.
Start downloading.
After SABnzbd has completed and moved the files to "complete", add the
saved files.
Verify the files (par2) and unpack them.

One day we will make this better too, but the whishlist is sooo long.
Ringwraith
Newbie
Newbie
Posts: 4
Joined: June 25th, 2008, 11:48 am

Re: Queue and Incomplete Downloads got lost

Post by Ringwraith »

Thank you very much. Worked like a charm.
Didn't know about that queue browser.
Locked