ejabberd running but RPC failed

Hi everybody!

Pls excuse my bad english. Maybe you can help me:

I installed ejabberd on Debian sarge. i started ejabberd with /etc/init.d/ejabberd start.
Now I can register Accounts and go Online with a Client (and also login into the webinterface).

BUT: ejabberdctl status says: RPC failed on the node ejabberd@srv: nodedown"
Thats way the init.d script cant work because it cant get status of ejabberd.

Any idea?
Thank You, greets
Mike

1) Firewall on localhost? 2)

1) Firewall on localhost?

2) Erlang cookie issue? From which user did you run ejabberdctl?

3) Some application has bound port 4369 and doesn't allow epmd to listen on it?

4) Some more?

Re: 1) Firewall on localhost?

teo wrote:

1) Firewall on localhost?

No!

teo wrote:

2) Erlang cookie issue? From which user did you run ejabberdctl?

root

teo wrote:

3) Some application has bound port 4369 and doesn't allow epmd to listen on it?

epmd only listens at 127.0.0.1

teo wrote:

4) Some more?

hope so ...

Thx 4 help

In the file ejabberdctl two

Where is the file ejabberdctl which is called when you ask the status of your server ?
In this file (ejabberdctl which is a sh script), two variables are defined : $NODE and $HOST.
When i read you, i think that : NODE=ejabberd and HOST=srv ?!

Maybe the values for these variables are different from the values which are used in your script /etc/init.d/ejabberd ?

Nope, the Node and hostname

Nope, the Node and hostname settings are correct (in /etc/init.d/ejabberd.cfg and /usr/sbin/ejabberdctl)

Thank you, any other ideas?

Wrong hostname in node?

hullo,

please check if the hostname of your node matches the short hostname
(hostname -s). if not please either fix your dns configuration or
/etc/hosts ;-)

c'ya

Hmmm

I have the same problem, and have verified that the -sname matches (the script enforces this) and that the nodename matches $( hostname -s ) (the scripts enforce this as well). Any ideas?

hostname -s ...

I encountered the same problem,
and It seems that the hostname is the key to solve it.

If you start ejabberd with "-sname ejabberd" in the /etc/init.d/ejabberd script,
then the corresponding line should be "NODE=ejabberd@`hostname -s`" in /usr/sbin/ejabberdctl(in my case).

ps.
If the command "hostname -s" returns "Unknow host",
just edit(vi?) the /etc/hosts file.

How can start ejabberd

I use Ubuntu, where and how can get some script to start the ejabberd automatically.

thanks

erlang

/ets/init.d/ejabberd status ????

Did you install corect version of erlang?
I have same trouble a week ago with ejabberd 1.1.4(Fedora7) and it didn't work with erlang 12 - i had to install erlang 11B-5

Re: 1) Firewall on localhost?

SunB wrote:
teo wrote:

2) Erlang cookie issue? From which user did you run ejabberdctl?

root

And what is the user that owns the beam process of ejabberd?

use sudo. solved my problem.

use sudo. solved my problem.

Syndicate content