Migrate from Openfire to ejabberd via jabberd14 in PHP

NOTE: This tutorial uses a script that doesn't handle unicode correctly. It's recommended to follow this other tutorial: Migrate from Openfire to ejabberd via jabberd14 in Java

This tutorial will help you to migrate an Openfire database to ejabberd. Since there is no direct way to migrate from Openfire to ejabberd, you first need to migrate from Openfire to jabberd 1.4 XML spool files with a PHP script. Afterwards you can complete the migration process by pointing ejabberd to the directory containing the jabberd 1.4 compatible XML spool files.

Original conversion script and tutorial were written by: T. Ephraim

  1. Install the Import/Export Plugin via the Openfire Webinterface.
  2. Export your database to a file named like your realm. So for a jabber server named xyz@jabber.example.org the file name should be "jabber.example.org.xml".
  3. Download convert2JabberdSpoolDir.phps.
  4. Execute the script with two parameters: the first parameter is the path to the file which you have currently exported. The second parameter is the path to an empty directory in which a jabberd spool directory will be created.
  5. After you created successfully the spool directory, you can have a look at the user xdb-files, to check if all seems to be correct.
  6. Finally, you can import this jabberd spool directory using any of the methods described in the tutorial Migrate from jabberd 1.4 to ejabberd.

I had some problems with special chars in the nicknames of the contacts of my user. Just edit the user xdb-file (it's just a xml) and call ejabberdctl multiple times. It doesn't import, just imported users, multiple times. But it mentions the user xdbfiles which it has had probs with ;)

Related Links

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

thx badlop :) So any other

thx badlop :)
So any other wildfire/openfire user will be able to switch to MUCH more stable jabber server ejabberd.
Once started it runs! In the end I restarted wildfire once a day cause it was at 99% CPU usage!

Ciao Ephraim
PS: I cant register, cause I dont get any mails from jabber.ru, including the mail where the password should be in :( ...

Syndicate content