Hi,
I'm trying to move from 2.1.11 (Ubuntu 14.04 repository) to 15.07. However all my attempts to import backups or users have failed so far. All I want is to keep the users and their contacts, I'm fine with reconfiguring the rest.
ejabberd@h1653995:~/ejabberd-15.07$ bin/ejabberdctl restore /home/ejabberd/ejabberd3.backup
Can't restore backup from "/home/ejabberd/ejabberd3.backup" at node ejabberd@localhost: Table config does not exist.
ejabberd@h1653995:~/ejabberd-15.07$ bin/ejabberdctl import-piefxis 20150828-213506_mydomain_net.xml
Error: enoent
The only thing I've noticed that might be a problem is that the name of the node in 2.1.11 is ejabberd@h1653995 while the name of the node in 15.07 is ejabberd@localhost. I have no idea on how to change that though.
Can anyone help me out?
Hi, I have the exact same
Hi,
I have the exact same problem when upgrading from ejabberd 2.1.10 to 14.07.
I want to move ejabberd to a new host running debian jessie with ejabberd 14.07. I followed this document for the database migration: https://www.ejabberd.im/migrate-host
However, when I try to restore the database on the new host, I get the following error message:
varda ejabberd # ejabberdctl --node ejabberd@varda restore /tmp/ejabberd2.backup
Can't restore backup from "/tmp/ejabberd2.backup" at node ejabberd@varda: Table config does not exist.
I would appreciate any hints on how to do the database migration.
Thanks, Sven.
Don't restore or import a
Don't restore or import a backup of an old database into a new ejabberd, do that only with similar ejabberd versions.
When moving from old to new ejabberd, let ejabberd use your old database.
This way:
1. Stop the old ejabberd 2.1.11
2. Copy the Mnesia spool dir (read in the Guide to know what this is) from old ejabberd to new ejabberd directory.
3. Start the new ejabberd (with the old database)
4. The new ejabberd will detect that the database has the old format, and will update it:
5. Now login some user to check all is correct, or login to WebAdmin.