ejabberd is not running in that node

Hello all, I'm hoping someone can help me with this "roadblock" I've come across on setting up an ejabberd server on Ubuntu 14.10. Everything was fine until I attempted to register a user in one of the domains I created in the config file. I first edited the /etc/hosts file like so:

127.0.0.1 localhost localhost
127.0.0.2 public.localhost public
127.0.0.3 private.localhost private

I then stopped the server:

/etc/init.d/ejabberd stop

I then updated the ejabberd config file at: /etc/ejabberd/ejabberd.cfg like so under the hosts directive:

{hosts, ["localhost", "private.localhost", "public.localhost"]}.

I then started the server:

/etc/init.d/ejabberd start

I then attempted to add a user to one of the domains with the following command:

sudo ejabberdctl register newuser private.localhost

I get the following error repeatably:

The node ejabberd@localhost is started with status: started
ejabberd is not running in that node
Check for error messages: ejabberd.log
or other files in that directory.

The ejabberd.log file has the following error message:

=ERROR REPORT==== 2015-02-13 12:05:59 ===
** Connection attempt from disallowed node ejabberdctl@localhost **

Any ideas?

Syndicate content