Anope IRC Services

Anope Support => 2.0.x/1.9.x Support => Topic started by: czar on December 05, 2009, 11:54:45 AM

Title: Anope 1.9.1, "FATAL: DB Nick.db is too old"
Post by: czar on December 05, 2009, 11:54:45 AM
Good day,

My anope suddently quit working w/ the following message when running
Code: [Select]
./services -debug -nofork
Code: [Select]
[Dec 05 06:52:34.448451 2009] [hs_request] Succesfully loaded database
[Dec 05 06:52:34.448464 2009] debug: hs_request Adding 21 texts for language 0
[Dec 05 06:52:34.448478 2009] debug: hs_request Adding 21 texts for language 12
[Dec 05 06:52:34.448495 2009] debug: hs_request Adding 21 texts for language 5
[Dec 05 06:52:34.448509 2009] debug: hs_request Adding 21 texts for language 13
[Dec 05 06:52:34.448524 2009] debug: hs_request Adding 21 texts for language 8
[Dec 05 06:52:34.448539 2009] Module hs_request compiled against current version of Anope 2558
[Dec 05 06:52:34.448598 2009] Error reading version number on nick.db: End of file detected
[Dec 05 06:52:34.448615 2009] FATAL: DB nick.db is too old
[Dec 05 06:52:34.448627 2009] debug: Cleaning out Module run time directory (/home/czar/bin/anope/data/modules/runtime) - this may take a moment please wait
[Dec 05 06:52:34.449435 2009] debug: Module run time directory has been cleaned out

Notes; I did not upgrade anope and it was working just fine for a few weeks then this... Tried to reinstall and that did not help either.
Title: Re: Anope 1.9.1, "FATAL: DB Nick.db is too old"
Post by: Naram Qashat on December 05, 2009, 03:52:24 PM
Then your nick.db probably got corrupted somewhere along the way.  Restore a backup.

And before you start complaining about that, keep in mind that 1.9.x is developmental, there has never been and will never been any guarantee that it will work flawlessly.
Title: Re: Anope 1.9.1, "FATAL: DB Nick.db is too old"
Post by: czar on December 05, 2009, 03:55:33 PM
Then your nick.db probably got corrupted somewhere along the way.  Restore a backup.

And before you start complaining about that, keep in mind that 1.9.x is developmental, there has never been and will never been any guarantee that it will work flawlessly.

I don't have a backup, can I just delete nick.db and start over?  anything special I gotta do to recreate it?

Yes, I know it's developmental and why would you assume I'd complain?  I'm just testing it out and atm I'm the only one that even registered my nick, so no big deal....  Shessh.

Anything I can submit to aid in the resolve of this 'corruption'?   
Title: Re: Anope 1.9.1, "FATAL: DB Nick.db is too old"
Post by: Jan Milants on December 05, 2009, 03:58:19 PM
not really because the entire current database system will be removed and redone..
and most people complain if something breaks, even though they know it s devel, that s why he assumed that...

just remove the .db files and anope ll create new ones..
btw anope automatically creates backups every 24hrs in the backups dir.
Title: Re: Anope 1.9.1, "FATAL: DB Nick.db is too old"
Post by: Naram Qashat on December 05, 2009, 03:58:28 PM
Only way I could think of is if we could get a copy of your corrupted nick.db, but first, you could check the file size.  If it's something like 0, then somehow it got cleared out.  You could delete it and start over with no nicks and that'll be fine.

I was only being preemptive when I mentioned the complaining, I wasn't assuming you were going to complain, but there are people out there who probably would've done so, even though it is the dev branch.
Title: Re: Anope 1.9.1, "FATAL: DB Nick.db is too old"
Post by: czar on December 05, 2009, 04:04:22 PM
btw anope automatically creates backups every 24hrs in the backups dir.

Perfect, found the back-ups.  Thank you.

Only way I could think of is if we could get a copy of your corrupted nick.db, but first, you could check the file size.  If it's something like 0, then somehow it got cleared out.  You could delete it and start over with no nicks and that'll be fine.

Your right, everything has been cleared out. 

Code: [Select]
czar@kremlin:~/bin/anope/data/backups$ ls -lah ../*.db
-rw-rw---- 1 czar czar    0 2009-12-03 02:18 ../bot.db
-rw-rw---- 1 czar czar    0 2009-12-03 02:18 ../chan.db
-rw-rw---- 1 czar czar    0 2009-12-03 02:18 ../exception.db
-rw-rw---- 1 czar czar    0 2009-12-03 02:18 ../hosts.db
-rw-rw---- 1 czar czar    0 2009-12-03 02:18 ../hs_request.db
-rw-rw---- 1 czar czar    0 2009-12-03 02:18 ../news.db
-rw-r----- 1 czar czar     0 2009-12-05 11:02 ../nick.db
-rw-rw---- 1 czar czar    0 2009-12-03 02:18 ../oper.db
-rw-rw---- 1 czar czar    0 2009-12-03 02:18 ../os_info.db