So, I've tried to use this: http://www.ejabberd.im/migrate-host and successfully converted nodes. My old node was "ejabberd@server" and current node maybe "ejabberd@VPS7074.saverabbits.com". Here is my hostname:
[root@VPS7074 tmp]# hostname
VPS7074.saverabbits.com
Here is my hosts:
[root@VPS7074 tmp]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1 server
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
78.47.76.4 vps7074.saverabbits.com
# Auto-generated hostname. Please do not remove this comment.
111.90.147.148 VPS7074.saverabbits.com VPS7074
And the error is:
=ERROR REPORT==== 2012-01-10 08:35:09 ===
E(<0.39.0>:ejabberd_config:551) : Error reading Mnesia database spool files:
The Mnesia database couldn't read the spool file for the table 'config'.
ejabberd needs read and write access in the directory:
/var/lib/ejabberd/spool
Maybe the problem is a change in the computer hostname,
or a change in the Erlang node name, which is currently:
'ejabberd@VPS7074.saverabbits.com'
Check the ejabberd guide for details about changing the
computer hostname or Erlang node name.
=INFO REPORT==== 2012-01-10 08:35:09 === application: ejabberd exited: {bad_return,{{ejabberd_app,start,[normal,[]]}, {'EXIT',"Error reading Mnesia database"}}} type: temporary
But spool dir is readable and writable to ejabberd. Hostname as I think are ok too, so can you explain me please what is the problem?