Thank Alvaro for the tip, will try it out.<div><br></div><div>Simon, I don't seem to have the startup_log from when it happened. After I did kill -i on the inet_gethost 4 processes and restarted rabbitmq, it came up fine. The log got overwritten though. Since it is not always reproducible and happens every now and then, I can't recreate now. Will send the log if I see it again.</div>
<div><br></div><div>Any other suggestions beyond what Alvaro has suggested?</div><div><br></div><div>Thanks,</div><div>Nithya</div><br><div class="gmail_quote">On Wed, May 9, 2012 at 4:06 AM, Alvaro Videla <span dir="ltr"><<a href="mailto:videlalvaro@gmail.com" target="_blank">videlalvaro@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I had a similar problem perhaps… at least related until I added this line to my /etc/hosts on My mac:<div><br></div><div>
127.0.0.1 alvaro.local</div><div><br></div><div>of course adapt it to your environment and see if it helps.<div><div class="h5"><br>
<br><div class="gmail_quote">On Wed, May 9, 2012 at 12:21 PM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
inet_gethost is a process that is started by the Erlang VM - it should always be there; it's not part of startup.<br>
<br>
It would be useful to know where rabbit is getting stuck on startup - what ends up in the logs?<br>
<br>
Cheers, Simon<div><br>
<br>
On 08/05/12 19:04, Nithya Vijayakumar wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
We are using rabbitmq server 2.7.1 in two node auto clustering mode.<br>
<br>
Once in a while we are getting complaint that rabbitmq did<br>
not complete the installation. What is happening underneath is<br>
"service rabbitmq-server start" is getting stuck, and<br>
subsequent installation steps also gets stuck going into loop<br>
and many many runs trying to complete. I think "inet_gethost 4"<br>
might be the culprit. Any suggestions on how to fix this?<br>
<br>
ps awfux | more<br>
<br>
root 19848 0.0 0.0 106412 1612 pts/0 S+ 17:03<br>
0:00 | \_ /bin/sh /sbin/service puppet debug<br>
root 19853 0.0 0.0 106624 1632 pts/0 S+ 17:03<br>
0:00 | \_ /bin/bash /etc/init.d/puppet debug<br>
root 19858 1.2 3.1 166288 64416 pts/0 S+ 17:03<br>
0:03 | \_ /usr/bin/ruby /usr/sbin/puppetd<br>
--server=<a href="http://director.ecp-deploy.com" target="_blank">director.ecp-deploy.<u></u>com</a><br></div>
<<a href="http://director.ecp-deploy.com" target="_blank">http://director.ecp-deploy.<u></u>com</a>> --fqdn <a href="http://amq.ecp-deploy.com" target="_blank">amq.ecp-deploy.com</a><br>
<<a href="http://amq.ecp-deploy.com" target="_blank">http://amq.ecp-deploy.com</a>> -o --no-daemonize -v<div><br>
root 20390 0.0 0.0 9760 1516 ? Ss 17:03<br>
0:00 | \_ /bin/sh /sbin/service<br>
rabbitmq-server start<br>
root 20395 0.0 0.0 9500 1276 ? S 17:03<br>
0:00 | \_ /bin/sh<br>
/etc/init.d/rabbitmq-server start<br>
root 20422 0.0 0.0 9496 1196 ? Ss 17:03<br>
0:00 | \_ /bin/sh<br>
/usr/sbin/rabbitmq-server<br>
root 20433 0.0 0.0 42512 1384 ? S 17:03<br>
0:00 | | \_ su rabbitmq -s<br>
/bin/sh -c /usr/lib/rabbitmq/bin/<u></u>rabbitmq-server<br>
rabbitmq 20436 0.2 1.6 585140 33536 ? Ssl 17:03<br>
0:00 | | \_<br>
/usr/lib64/erlang/erts-5.8.5/<u></u>bin/beam -W w -K true -A30 -P<br>
1048576 -- -root /usr/lib64/erlang -progname erl -- -home /var/li<br>
b/rabbitmq -- -noshell -noinput -name<br></div>
_rabbit@amq.ecp-deploy.com_ -boot<br>
_/opt/cisco/rabbitmq/data/<u></u>rabbit@amq.ecp-deploy.com-<u></u>plugins-expand/rabbit_<div><br>
-config /etc/rabbitmq/rabbitmq -kernel inet_dist_listen_min<br>
45001 -kernel inet_dist_li<br>
sten_max 45002 -kernel inet_default_connect_options<br>
[{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger<br>
false -rabbit error_logger<br></div>
{file,"_/opt/cisco/rabbitmq/<u></u>log/<a href="mailto:rabbit@amq.ecp-deploy.com" target="_blank">rabbit@amq.ecp-deploy.com</a>.<u></u>log_"<br>
<_mailto:/opt/cisco/rabbitmq/<u></u>log/<a href="mailto:rabbit@amq.ecp-deploy.com" target="_blank">rabbit@amq.ecp-deploy.com</a>.<u></u>log_><br>
} -rabbit sasl_error_log<br>
ger<br>
{file,"_/opt/cisco/rabbitmq/<u></u>log/rabbit@amq.ecp-deploy.com-<u></u>sasl.log_"<br>
<_mailto:/opt/cisco/rabbitmq/<u></u>log/rabbit@amq.ecp-deploy.com-<u></u>sasl.log_><div><br>
} -os_mon start_cpu_sup true -os_mon start_disksup false -os_mon<br>
start_memsup false -mnesia dir<br></div>
"_/opt/cisco/rabbitmq/data/<u></u>rabbit@amq.ecp-deploy.com_"<br>
<_mailto:/opt/cisco/rabbitmq/<u></u>data/rabbit@amq.ecp-deploy.<u></u>com_><div><br>
rabbitmq 20513 0.0 0.0 10844 496 ? Ss 17:03<br>
0:00 | | \_ inet_gethost 4<br>
rabbitmq 20514 0.0 0.0 11056 412 ? S 17:03<br>
0:00 | | \_<br>
inet_gethost 4<br>
root 20423 0.0 0.0 9496 1216 ? S 17:03<br>
0:00 | \_ /bin/sh<br>
/usr/sbin/rabbitmqctl wait /var/run/rabbitmq/pid<br>
root 20439 0.0 0.0 42512 1384 ? S 17:03<br>
0:00 | \_ su rabbitmq -s<br>
/bin/sh -c /usr/lib/rabbitmq/bin/<u></u>rabbitmqctl "wait"<br>
"/var/run/rabbitmq/pid"<br>
rabbitmq 20442 0.0 0.4 32312 10260 ? Ss 17:03<br>
0:00 | \_<br>
/usr/lib64/erlang/erts-5.8.5/<u></u>bin/beam -- -root /usr/lib64/erlang<br>
-progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/ra<br>
bbitmq/lib/rabbitmq_server-2.<u></u>7.1/sbin/../ebin -noshell<br>
-noinput -hidden -name rabbitmqctl20442 -s rabbit_control<br></div>
-nodename _rabbit@amq.ecp-deploy.com_ -extra wait<div><br>
/var/run/rabbitmq/pid<br>
rabbitmq 20468 0.0 0.0 10844 492 ? Ss 17:03<br>
0:00 | \_ inet_gethost 4<br>
rabbitmq 20469 0.0 0.0 11056 360 ? S 17:03<br>
0:00 | \_<br>
inet_gethost 4<br>
<br>
Thanks,<br>
Nithya<br>
<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><span><font color="#888888"><br>
</font></span></blockquote><span><font color="#888888">
<br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, VMware<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br>