2
我正在我的机器上运行RabbitMQ服务器实例。但在大楼停电后,我无法让兔子开始。RabbitMQ在电源故障后不会启动
没有其他服务在同一个TCP端口上运行,我试图重新安装兔子和erlang,但似乎没有任何工作。
我运行:
- CentOS版本5.4(最终)
- 兔的RabbitMQ服务器-2.8.2-1.noarch
- 二郎-R14B-03.3.el5.x86_64
的startup_error日志是空的,但startup_log包含:
{
error_logger,
{
{2012,5,10},
{9,35,43}
},
"Protocol: ~p: register error: ~p~n",
[
"inet_tcp",
{
{
badmatch,
{
error,
econnrefused
}
},
[
{
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,5,10},
{9,35,43}
},
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
},
{
proc_lib,
init_p_do_apply,
3
}
]
}
},
{
ancestors,
[
net_sup,
kernel_sup,
<0.9.0>
]
},
{
messages,
[
]
},
{
links,
[
#Port<0.90>,
<0.17.0>
]
},
{
dictionary,
[
{
longnames,
false
}
]
},
{
trap_exit,
true
},
{
status,
running
},
{
heap_size,
610
},
{
stack_size,
24
},
{
reductions,
509
}
],
[
]
]
}{
error_logger,
{
{2012,5,10},
{9,35,43}
},
supervisor_report,
[
{
supervisor,
{
local,
net_sup
}
},
{
errorContext,
start_error
},
{
reason,
{
'EXIT',
nodistribution
}
},
{
offender,
[
{
pid,
undefined
},
{
name,
net_kernel
},
{
mfargs,
{
net_kernel,
start_link,
[
[
rabbitmqprelaunch4868,
shortnames
]
]
}
},
{
restart_type,
permanent
},
{
shutdown,
2000
},
{
child_type,
worker
}
]
}
]
}{
error_logger,
{
{
2012,
5,
10
},
{
9,
35,
43
}
},
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,
{
{
2012,
5,
10
},
{
9,
35,
43
}
},
std_info,
[
{
application,
kernel
},
{
exited,
{
shutdown,
{
kernel,
start,
[
normal,
[
]
]
}
}
},
{
type,
permanent
}
]
}{
"Kernel pid terminated",
application_controller,
"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"
}
任何人都有想法?
你是否检查过它的一部分是否已经运行。尝试一下ps,看看是否开始阻止它开始完全启动。 – robthewolf
检查epmd是否正在运行,如果是这样,就杀了它 – allenhwkim
我完全忘了这个问题。是的,问题在于某些东西使用了相同的端口。在解决问题后我再次得到了错误,如果我没有弄错,那是仍在运行的epmd。正如@ bighostkim所评论的那样。 – Carl