Page 1 of 1
Restoring queue after format?
Posted: June 18th, 2009, 7:28 pm
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
Re: Restoring queue after format?
Posted: June 19th, 2009, 5:05 am
by mbkn
Thanks, I will try that as soon as I get home

Re: Restoring queue after format?
Posted: June 19th, 2009, 4:37 pm
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?
Re: Restoring queue after format?
Posted: June 20th, 2009, 4:35 am
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
Re: Restoring queue after format?
Posted: June 20th, 2009, 5:43 am
by mbkn
Oki. So it's not enough if I point the cache_dir in the *.ini to the location of the cache directory?
Re: Restoring queue after format?
Posted: June 20th, 2009, 5:55 am
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.
Re: Restoring queue after format?
Posted: June 20th, 2009, 4:05 pm
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?
Re: Restoring queue after format?
Posted: June 21st, 2009, 7:15 am
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?
Re: Restoring queue after format?
Posted: June 21st, 2009, 9:39 am
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.
Re: Restoring queue after format?
Posted: September 8th, 2009, 2:07 am
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... ?
Re: Restoring queue after format?
Posted: September 8th, 2009, 8:39 am
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.
Re: Restoring queue after format?
Posted: September 8th, 2009, 1:00 pm
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
Re: Restoring queue after format?
Posted: September 8th, 2009, 1:20 pm
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"
Re: Restoring queue after format?
Posted: September 8th, 2009, 3:15 pm
by shypike
Can you use the backed-up NZB files (assuming you have that feature on).
Re: Restoring queue after format?
Posted: September 8th, 2009, 3:29 pm
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