Hi! I have a centos 5.8 final server with fresh ejabberd-2.1.11-6.el5.i386 package installed by yum.
I am logged onto root
ejabberdctl gives me:
Failed RPC connection to the node ejabberd@mail: nodedown
my hostname is mail.mtc-polska.pl with alias "mail"
my ejabberd.cfg, i changed only this lines with hostname
%%%. ================
%%%' SERVED HOSTNAMES
%%
%% hosts: Domains served by ejabberd.
%% You can define one or several, for example:
%% {hosts, ["example.net", "example.com", "example.org"]}.
%%
{hosts, ["mail", "localhost", "mail.mtc-polska.pl"]}.
my erl_crash dump
ejabberdctl live gives me:
{error_logger,{{2012,12,10},{11,34,5}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}
{error_logger,{{2012,12,10},{11,34,5}},crash_report,[[{pid,<0.20.0>},{registered_name,net_kernel},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{initial_call,{net_kernel,init,['Argument__1']}},{ancestors,[net_sup,kernel_sup,<0.8.0>]},{messages,[]},{links,[#Port<0.93>,<0.17.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,23},{reductions,479}],[]]}
{error_logger,{{2012,12,10},{11,34,5}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[['ejabberd@mail',shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2012,12,10},{11,34,5}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2012,12,10},{11,34,5}},crash_report,[[{pid,<0.7.0>},{registered_name,[]},{error_info,{exit,{shutdown,{kernel,start,[normal,[]]}},[{application_master,init,4},{proc_lib,init_p_do_apply,3}]}},{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{ancestors,[<0.6.0>]},{messages,[{'EXIT',<0.8.0>,normal}]},{links,[<0.6.0>,<0.5.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,233},{stack_size,23},{reductions,123}],[]]}
{error_logger,{{2012,12,10},{11,34,5}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
I red all topics related to this error and nothing helps.
ejabberd tells you -
ejabberd tells you - "duplicate_name" which could mean you have tcp port already opened by another instance or other daemon. Check twice ejabberd's process is not already running when you start it.
fk_ wrote: ejabberd tells you
ejabberd tells you - "duplicate_name" which could mean you have tcp port already opened by another instance or other daemon. Check twice ejabberd's process is not already running when you start it.
ps aux | grep ejabberd
ejabberd 1190 0.0 0.0 1956 476 ? S 13:12 0:00 /usr/lib/erlang/erts-5.6.5/bin/epmd -daemon
ejabberd 1222 1.9 1.3 98376 28028 ? Sl 13:12 0:00 /usr/lib/erlang/erts-5.6.5/bin/beam.smp -K true -P 250000 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd/spool -sname ejabberd@mail -noshell -noinput -noshell -noinput -pa /usr/lib/ejabberd/ebin -mnesia dir "/var/lib/ejabberd/spool" -s ejabberd -sasl sasl_error_logger {file,"/var/log/ejabberd/erlang.log"} -smp auto start
ejabberd 1234 0.0 0.0 1952 400 ? Ss 13:12 0:00 inet_gethost 4
ejabberd 1235 0.0 0.0 2000 508 ? S 13:12 0:00 inet_gethost 4
when i kill all this processes and restart ejabberd it still gives me this error RPC connection failed to node, nodedown.
derobert wrote: fk_
ejabberd tells you - "duplicate_name" which could mean you have tcp port already opened by another instance or other daemon. Check twice ejabberd's process is not already running when you start it.
ps aux | grep ejabberd
ejabberd 1190 0.0 0.0 1956 476 ? S 13:12 0:00 /usr/lib/erlang/erts-5.6.5/bin/epmd -daemon
ejabberd 1222 1.9 1.3 98376 28028 ? Sl 13:12 0:00 /usr/lib/erlang/erts-5.6.5/bin/beam.smp -K true -P 250000 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd/spool -sname ejabberd@mail -noshell -noinput -noshell -noinput -pa /usr/lib/ejabberd/ebin -mnesia dir "/var/lib/ejabberd/spool" -s ejabberd -sasl sasl_error_logger {file,"/var/log/ejabberd/erlang.log"} -smp auto start
ejabberd 1234 0.0 0.0 1952 400 ? Ss 13:12 0:00 inet_gethost 4
ejabberd 1235 0.0 0.0 2000 508 ? S 13:12 0:00 inet_gethost 4
when i kill all this processes and restart ejabberd it still gives me this error RPC connection failed to node, nodedown.
please use netstat -pln in order to determine if one of ejabberd's used ports is used by another process which might not be ejabberd itself but some other daemon
ok, AFAIR the other cause of this could be wrong ejabberd's node name (/etc/default/ejabberd IIRC in Ubuntu) or broken hostname record
refer to documentation for your distribution on how to correctly set these params