Anope IRC Services

Anope Support => 2.0.x/1.9.x Support => Topic started by: Kaj on April 16, 2014, 06:19:40 PM

Title: Database migration
Post by: Kaj on April 16, 2014, 06:19:40 PM
Hello,


I am running Anope version 1.8 and I want to migrate to 2.0.

Currently, my database is not encrypted. So i tried to follow the following steps:


1. Put de .db files from my old anope database in the data/ folder of the anope2.0 services directory
2. Enabled db_old (with hash set on 'plain') and db_flatfile
3. Enabled enc_none and enc_sha1.
4. Start the server

5.After this, I disable the db_old and the enc_none parameters.

But if I want to log in now, it says the password is incorrect, except if I logged in on this account between steps 4 and 5. So it looks like it only encrypts the passwords of accounts being used during that period (4->5). How can I make it encrypt all the passwords at once?


Grtz,

Kaj

Title: Re: Database migration
Post by: Andromeda on April 16, 2014, 06:23:49 PM
If I'm mistaken the migration cannot convert the encryption on passwords and such, so if you used plain previously, I believe you're stuck with it... I'm not 100% on this though, but it's what I figured when I tried to do the same from sha1 to sha256... perhaps there is an encryption tool as well? I never actually checked.
Title: Re: Database migration
Post by: Adam on April 16, 2014, 08:41:40 PM
Do not disable enc_none. Read the comments in example.conf near the encryption modules for an explanation of how they work.
Title: Re: Database migration
Post by: Kaj on April 17, 2014, 01:54:41 AM
Okay thanks, got it working now (leaving both enc_none and enc_sha1 enabled).

Thanks
Title: Re: Database migration
Post by: Seroczynski on April 17, 2014, 11:28:24 AM
I can't get it to work. I am trying to do the same, upgrade from 1.8.x to 2.0 but for some reason my .db files aren't being read. I placed them in the same directory as OP, but think I got them setup wrong in the configuration file. What would be the correct way of including them?

Edit: Nevermind, it was really stupid. I should have looked at my config file better.