Restoring queue after format?

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
mbkn
Newbie
Newbie
Posts: 6
Joined: June 18th, 2009, 7:22 pm

Restoring queue after format?

Post by mbkn »

Hi

After format I can't the queue back up as it was? I have taken backup of the inifile, cache- and logsfolders?
It's only the C-drive that's formatted, which leaves the incomplete/complete folders as they were before.
Any suggestions would be appreciated.

mbkn
mbkn
Newbie
Newbie
Posts: 6
Joined: June 18th, 2009, 7:22 pm

Re: Restoring queue after format?

Post by mbkn »

Thanks, I will try that as soon as I get home  :)
mbkn
Newbie
Newbie
Posts: 6
Joined: June 18th, 2009, 7:22 pm

Re: Restoring queue after format?

Post by mbkn »

That didn't work unfortunately. I've installed Sabnzbd, without starting the program. I put the *.ini file in C:\Users\\AppData\Local\sabnzbd\ and edit the file so that they point to my complete/incomplete, logs and cache - but when starting the program, there's no queue? And no errors either...

Is there other ways to restore the queue or are my files corrupt? If not, is there anyway to get information about what was in the queue - so I can restore it manually?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Restoring queue after format?

Post by shypike »

You need to restore also the content of the folder cache , that's where all the bookkeeping is done.
C:\Users\\AppData\Local\sabnzbd\cache
mbkn
Newbie
Newbie
Posts: 6
Joined: June 18th, 2009, 7:22 pm

Re: Restoring queue after format?

Post by mbkn »

Oki. So it's not enough if I point the cache_dir in the *.ini to the location of the cache directory?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Restoring queue after format?

Post by shypike »

The essential bit is that the files in the cache folder are still present.
If so, setting the cache path in the INI file is the next step.
You can choose between using an absolute path and relative to the location of the INI file.
mbkn
Newbie
Newbie
Posts: 6
Joined: June 18th, 2009, 7:22 pm

Re: Restoring queue after format?

Post by mbkn »

There are plenty of files in the cache folder, it's about 700 mb and I've set the cache_dir in ini to I:\SABnzbd\cache\ (where the files are placed). Also tried to put it in C:\users\\AppData\Local\sannzbd\cache with the ini just set to cache - but still no luck.
Is it a specific file in the folder that generates the queue or is the queue generated from all the files in the folder?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Restoring queue after format?

Post by shypike »

The queue is a mixed set. The bigger files are all saved articles.
The smaller files are the indexes.
The key file is queue7.sab
If that is missing, you're out of luck.

Is there really still so much in the queue that it's worthwhile recovering it?
mbkn
Newbie
Newbie
Posts: 6
Joined: June 18th, 2009, 7:22 pm

Re: Restoring queue after format?

Post by mbkn »

Ok. That's what I thought. I think it's my queue7.sab that's overwritten by a new "blank" one.
I will restore manually :)
Thanks for your help and explanations.
User avatar
E71
Newbie
Newbie
Posts: 42
Joined: January 13th, 2009, 10:08 pm

Re: Restoring queue after format?

Post by E71 »

Sorry for piggy-backing this thread but I have a similar problem (except my OS is CentOS Linux).

Basically, I had to backup SABnzbd's files so I could upgrade storage on my server but unfortunately once I got it running again, my queue appears to be empty.

I've checked the sabnzbd.ini file and it is pointing correctly to the cache directory and I see the queue7.sab file and it isn't blank.

Tried chown/chmod to make sure it's all accessible but no luck.

Any idea what could be preventing SABnzbd from using the original cache? (There's over 1.4GB of cache files in the cache folder)

Version: 0.4.9
OS: CentOS Linux 5.3 64bit
Install-type: python source
Firewall Software: iptables
Are you using IPV6? no
Is the issue reproducible? i guess so... ?
Last edited by E71 on September 8th, 2009, 2:11 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Restoring queue after format?

Post by shypike »

Are you sure there was content in the queue?
1.4G of cache is probably due to leaks in our cleanup code and aborted downloads.
Normally there shouldn't be more than about 100M in the cache,
depending on the size of the files in the NZBs.
1.4G is definitely too much .
Future releases will do a better job of cleaning up the cache.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Restoring queue after format?

Post by switch »

Are you speficying the correct location of sabnzbd.ini when launching using the -f tag?

Such as python SABnzbd.py -f ~/.sabnzbd/sabnzbd.ini -d
User avatar
E71
Newbie
Newbie
Posts: 42
Joined: January 13th, 2009, 10:08 pm

Re: Restoring queue after format?

Post by E71 »

shypike wrote: Are you sure there was content in the queue?
Yes, I'm afraid there was content in the queue... almost 3TB worth of data waiting to be downloaded!

I just took a closer look inside the queue7.sab file all I see appears to be history data.  :'(
switch wrote: Are you speficying the correct location of sabnzbd.ini when launching using the -f tag?

Such as python SABnzbd.py -f ~/.sabnzbd/sabnzbd.ini -d
Yup, still using the old launcher shell script:
PATH=/usr/local/bin:$PATH
export PATH
cd /opt/sabnzbd/
python SABnzbd.py --server localhost:6666 -d --config-file "/home/sab/.sabnzbd/sabnzbd.ini"
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Restoring queue after format?

Post by shypike »

Can you use the backed-up NZB files (assuming you have that feature on).
User avatar
E71
Newbie
Newbie
Posts: 42
Joined: January 13th, 2009, 10:08 pm

Re: Restoring queue after format?

Post by E71 »

shypike wrote: Can you use the backed-up NZB files (assuming you have that feature on).
I guess I have no choice! :)

Only problem is there's around 2000 NZBs in my NZB-backup folder but there were around ~330 items in the queue, have to manually check which ones haven't been downloaded.

You know, I think maybe I'll put in a feature request just in case this happens again. ;)

http://forums.sabnzbd.org/index.php?topic=2575.0
Last edited by E71 on September 8th, 2009, 3:35 pm, edited 1 time in total.
Post Reply