I wanted to install latest ejabberd from https://github.com/processone/ejabberd. For this, Erlang/OTP 18 is required. That too, i have manually installed from https://github.com/erlang/otp. Then, i need to start ejabberd server with command ejabberdctl start
. But there is some error in that.
My mnesia node name is akash@akash-Latitude-3450
and ejabberd nodename is akash@localhost
. Due to this, server is not getting started. How to resolve this conflict ?
Log ->
2016-01-07 18:38:20.410 [critical] <0.39.0>@ejabberd_app:db_init:125 Node name mismatch: I'm [ejabberd@localhost], the database is owned by ['ejabberd@akash-Latitude-3450']
2016-01-07 18:38:20.410 [critical] <0.39.0>@ejabberd_app:db_init:127 Either set ERLANG_NODE in ejabberdctl.cfg or change node name in Mnesia
2016-01-07 18:38:20.410 [error] <0.38.0> CRASH REPORT Process <0.38.0> with 0 neighbours exited with reason: node_name_mismatch in ejabberd_app:db_init/0 line 129 in application_master:init/4 line 134
You have two options:
ERLANG_NODE
in ejabberdctl.cfg
.