ejabberd error_logger.
hi!
I execute:
ejabberd status
errors go out:
ib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup, kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.101>,<0.17.0>]},{dictionary,[ {longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_siz e,24},{reductions,506}],[]]}
{error_logger,{{2015,5,26},{15,36,31}},supervisor_report,[{supervisor,{local,net _sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{p id,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[ejabberd,shortn ames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2015,5,26},{15,36,31}},supervisor_report,[{supervisor,{local,ker nel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined },{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permane nt},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2015,5,26},{15,36,31}},std_info,[{application,kernel},{exited,{s hutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kern el,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kerne l,{shutdown,{kernel,start,[normal,[]]}}})
root@jabber:~# ejabberd ?
{error_logger,{{2015,5,26},{15,36,45}},"Protocol: ~p: register error: ~p~n",["in et_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[{file,"inet _tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"}, {line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]}, {net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init, 1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server .erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227 }]}]}]}
{error_logger,{{2015,5,26},{15,36,45}},crash_report,[[{initial_call,{net_kernel, init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{er ror,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_l ib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup, kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.101>,<0.17.0>]},{dictionary,[ {longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_siz e,24},{reductions,506}],[]]}
{error_logger,{{2015,5,26},{15,36,45}},supervisor_report,[{supervisor,{local,net _sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{p id,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[ejabberd,shortn ames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2015,5,26},{15,36,45}},supervisor_report,[{supervisor,{local,ker nel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined },{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permane nt},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2015,5,26},{15,36,45}},std_info,[{application,kernel},{exited,{s hutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kern el,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kerne l,{shutdown,{kernel,start,[normal,[]]}}})
root@jabber:~# ejabberd /?
{error_logger,{{2015,5,26},{15,36,48}},"Protocol: ~p: register error: ~p~n",["in et_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[{file,"inet _tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"}, {line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]}, {net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init, 1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server .erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227 }]}]}]}
{error_logger,{{2015,5,26},{15,36,48}},crash_report,[[{initial_call,{net_kernel, init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{er ror,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_l ib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup, kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.101>,<0.17.0>]},{dictionary,[ {longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_siz e,24},{reductions,506}],[]]}
{error_logger,{{2015,5,26},{15,36,48}},supervisor_report,[{supervisor,{local,net _sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{p id,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[ejabberd,shortn ames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2015,5,26},{15,36,48}},supervisor_report,[{supervisor,{local,ker nel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined },{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permane nt},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2015,5,26},{15,36,48}},std_info,[{application,kernel},{exited,{s hutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kern el,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kerne l,{shutdown,{kernel,start,[normal,[]]}}})
root@jabber:~# clear
root@jabber:~# ejabberd restart
{error_logger,{{2015,5,26},{15,37,19}},"Protocol: ~p: register error: ~p~n",["in et_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[{file,"inet _tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"}, {line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]}, {net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init, 1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server .erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227 }]}]}]}
{error_logger,{{2015,5,26},{15,37,19}},crash_report,[[{initial_call,{net_kernel, init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{er ror,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_l ib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup, kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.101>,<0.17.0>]},{dictionary,[ {longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_siz e,24},{reductions,506}],[]]}
{error_logger,{{2015,5,26},{15,37,19}},supervisor_report,[{supervisor,{local,net _sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{p id,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[ejabberd,shortn ames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2015,5,26},{15,37,19}},supervisor_report,[{supervisor,{local,ker nel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined },{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permane nt},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2015,5,26},{15,37,19}},std_info,[{application,kernel},{exited,{s hutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kern el,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kerne l,{shutdown,{kernel,start,[normal,[]]}}})
root@jabber:~# mc
root@jabber:/var/log/ejabberd# ejabberd status
{error_logger,{{2015,5,26},{15,38,48}},"Protocol: ~p: register error: ~p~n",["in et_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[{file,"inet _tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"}, {line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]}, {net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init, 1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server .erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227 }]}]}]}
{error_logger,{{2015,5,26},{15,38,48}},crash_report,[[{initial_call,{net_kernel, init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{er ror,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_l ib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup, kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.101>,<0.17.0>]},{dictionary,[ {longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_siz e,24},{reductions,506}],[]]}
{error_logger,{{2015,5,26},{15,38,48}},supervisor_report,[{supervisor,{local,net _sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{p id,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[ejabberd,shortn ames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2015,5,26},{15,38,48}},supervisor_report,[{supervisor,{local,ker nel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined },{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permane nt},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2015,5,26},{15,38,48}},std_info,[{application,kernel},{exited,{s hutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kern el,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kerne l,{shutdown,{kernel,start,[normal,[]]}}})
root@jabber:/var/log/ejabberd# ejabberd status
{error_logger,{{2015,5,26},{15,39,19}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[{file,"inet_tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"},{line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]},{net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init,1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}]}
{error_logger,{{2015,5,26},{15,39,19}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.101>,<0.17.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,506}],[]]}
{error_logger,{{2015,5,26},{15,39,19}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[ejabberd,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2015,5,26},{15,39,19}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2015,5,26},{15,39,19}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
root@jabber:/var/log/ejabberd#
root@jabber:~# OA
bash: OA: команда не найдена
root@jabber:/etc/ejabberd# ejabberd status
{error_logger,{{2015,5,26},{15,39,48}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[{file,"inet_tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"},{line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]},{net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init,1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}]}
{error_logger,{{2015,5,26},{15,39,48}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.101>,<0.17.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,506}],[]]}
{error_logger,{{2015,5,26},{15,39,48}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[ejabberd,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2015,5,26},{15,39,48}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2015,5,26},{15,39,48}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
root@jabber:/etc/ejabberd# clear
root@jabber:/etc/ejabberd# ejabberd status
{error_logger,{{2015,5,26},{15,43,41}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[{file,"inet_tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"},{line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]},{net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init,1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}]}
{error_logger,{{2015,5,26},{15,43,41}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.101>,<0.17.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,506}],[]]}
{error_logger,{{2015,5,26},{15,43,41}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[ejabberd,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2015,5,26},{15,43,41}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2015,5,26},{15,43,41}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
root@jabber:/etc/ejabberd#
It means you already have an
It means you already have an ejabberdctl command running (duplicate name). You cannot run them twice in parallel so be careful when using that for scripting operations / cron rules.