Anope IRC Services

Anope Support => 2.0.x/1.9.x Support => Topic started by: King Pin on March 24, 2009, 08:31:55 PM

Title: Convert from 1.8
Post by: King Pin on March 24, 2009, 08:31:55 PM
I just checked out latest trunk, compiled and hooked up to inspircd (also latest svn), the services start up and respond fine but are not loading the nick/channel etc db's. I found the db-convert binary and ran it, it went thru the motions and finished, still services wont recognize old channels etc. any ideas would be appreciated. thanx.
Title: Re: Convert from 1.8
Post by: Jobe on March 24, 2009, 11:43:17 PM
You'll need to restore your DB's from backups while Anope is NOT running before running the convector.
I believe the problem you experienced was because you had already run Anope, causing it to overwrite the existing DB's with it's own data (nothing.)
Title: Re: Convert from 1.8
Post by: King Pin on March 24, 2009, 11:56:39 PM
I restored a backup I made a few minutes before updating. I ran converter, started anope and still nothing. its connected since all bots are responding fine. I redid it all but captures output to text and t showed

Code: [Select]
^[[1;34mAnope 1.8.x -> 1.9.x database converter^[[m

You selected plain
Trying to merge nicks...
Wrote account for user passlen 12
Writing: User's nick: User
Trying to merge channels...
iteration 0
iteration 1
iteration 2
iteration 3
iteration 4
iteration 5
iteration 6
iteration 7
iteration 8
iteration 9
iteration 10
Read #somechannel founder User
.......
Merging is now done. I give NO guarantee for your DBs.

if I understand correctly (i shortened the log posted above in order to not clutter) it found all the users I had and all the channels I had but when I started it none of the bots joined and none of the chans show up as regged.
Title: Re: Convert from 1.8
Post by: Naram Qashat on March 25, 2009, 04:05:53 PM
db-convert is incomplete and meant for Anope 1.9.2 when we change the database format from a binary format to a plain-text format.  In order to upgrade to 1.9.x currently, you have to just copy your 1.8 .db files to the services directory of an installed 1.9 while it's not running, then when you run 1.9, it'll properly read the files.
Title: Re: Convert from 1.8
Post by: King Pin on March 25, 2009, 06:21:11 PM
had to put them in the data dir! in the conf it said relative to the executable so I kept putting them in the bin....

thanx :)
Title: Re: Convert from 1.8
Post by: Naram Qashat on March 25, 2009, 06:34:16 PM
Ah, right.  Amanda was working on cleaning up the documentation of the configuration, we still need to update that.