[rabbitmq-discuss] service rabbitmq-server start stuck due to inet_gethost 4
Nithya Vijayakumar
nithyanirmal at gmail.com
Wed May 9 23:05:46 BST 2012
Thank Alvaro for the tip, will try it out.
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.
Any other suggestions beyond what Alvaro has suggested?
Thanks,
Nithya
On Wed, May 9, 2012 at 4:06 AM, Alvaro Videla <videlalvaro at gmail.com> wrote:
> I had a similar problem perhaps… at least related until I added this line
> to my /etc/hosts on My mac:
>
> 127.0.0.1 alvaro.local
>
> of course adapt it to your environment and see if it helps.
>
>
> On Wed, May 9, 2012 at 12:21 PM, Simon MacMullen <simon at rabbitmq.com>wrote:
>
>> inet_gethost is a process that is started by the Erlang VM - it should
>> always be there; it's not part of startup.
>>
>> It would be useful to know where rabbit is getting stuck on startup -
>> what ends up in the logs?
>>
>> Cheers, Simon
>>
>>
>> On 08/05/12 19:04, Nithya Vijayakumar wrote:
>>
>>>
>>> We are using rabbitmq server 2.7.1 in two node auto clustering
>>> mode.
>>>
>>> Once in a while we are getting complaint that rabbitmq did
>>> not complete the installation. What is happening underneath is
>>> "service rabbitmq-server start" is getting stuck, and
>>> subsequent installation steps also gets stuck going into loop
>>> and many many runs trying to complete. I think "inet_gethost 4"
>>> might be the culprit. Any suggestions on how to fix this?
>>>
>>> ps awfux | more
>>>
>>> root 19848 0.0 0.0 106412 1612 pts/0 S+ 17:03
>>> 0:00 | \_ /bin/sh /sbin/service puppet debug
>>> root 19853 0.0 0.0 106624 1632 pts/0 S+ 17:03
>>> 0:00 | \_ /bin/bash /etc/init.d/puppet debug
>>> root 19858 1.2 3.1 166288 64416 pts/0 S+ 17:03
>>> 0:03 | \_ /usr/bin/ruby /usr/sbin/puppetd
>>> --server=director.ecp-deploy.**com<http://director.ecp-deploy.com>
>>> <http://director.ecp-deploy.**com<http://director.ecp-deploy.com>>
>>> --fqdn amq.ecp-deploy.com
>>> <http://amq.ecp-deploy.com> -o --no-daemonize -v
>>>
>>> root 20390 0.0 0.0 9760 1516 ? Ss 17:03
>>> 0:00 | \_ /bin/sh /sbin/service
>>> rabbitmq-server start
>>> root 20395 0.0 0.0 9500 1276 ? S 17:03
>>> 0:00 | \_ /bin/sh
>>> /etc/init.d/rabbitmq-server start
>>> root 20422 0.0 0.0 9496 1196 ? Ss 17:03
>>> 0:00 | \_ /bin/sh
>>> /usr/sbin/rabbitmq-server
>>> root 20433 0.0 0.0 42512 1384 ? S 17:03
>>> 0:00 | | \_ su rabbitmq -s
>>> /bin/sh -c /usr/lib/rabbitmq/bin/**rabbitmq-server
>>> rabbitmq 20436 0.2 1.6 585140 33536 ? Ssl 17:03
>>> 0:00 | | \_
>>> /usr/lib64/erlang/erts-5.8.5/**bin/beam -W w -K true -A30 -P
>>> 1048576 -- -root /usr/lib64/erlang -progname erl -- -home /var/li
>>> b/rabbitmq -- -noshell -noinput -name
>>> _rabbit at amq.ecp-deploy.com_ -boot
>>> _/opt/cisco/rabbitmq/data/**rabbit at amq.ecp-deploy.com-**
>>> plugins-expand/rabbit_
>>>
>>> -config /etc/rabbitmq/rabbitmq -kernel inet_dist_listen_min
>>> 45001 -kernel inet_dist_li
>>> sten_max 45002 -kernel inet_default_connect_options
>>> [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger
>>> false -rabbit error_logger
>>> {file,"_/opt/cisco/rabbitmq/**log/rabbit at amq.ecp-deploy.com.**
>>> log_"
>>> <_mailto:/opt/cisco/rabbitmq/**log/rabbit at amq.ecp-deploy.com.**
>>> log_>
>>> } -rabbit sasl_error_log
>>> ger
>>> {file,"_/opt/cisco/rabbitmq/**log/rabbit at amq.ecp-deploy.com-**
>>> sasl.log_"
>>> <_mailto:/opt/cisco/rabbitmq/**log/rabbit at amq.ecp-deploy.com-**
>>> sasl.log_>
>>>
>>> } -os_mon start_cpu_sup true -os_mon start_disksup false -os_mon
>>> start_memsup false -mnesia dir
>>> "_/opt/cisco/rabbitmq/data/**rabbit at amq.ecp-deploy.com_"
>>> <_mailto:/opt/cisco/rabbitmq/**data/rabbit at amq.ecp-deploy.**com_>
>>>
>>> rabbitmq 20513 0.0 0.0 10844 496 ? Ss 17:03
>>> 0:00 | | \_ inet_gethost 4
>>> rabbitmq 20514 0.0 0.0 11056 412 ? S 17:03
>>> 0:00 | | \_
>>> inet_gethost 4
>>> root 20423 0.0 0.0 9496 1216 ? S 17:03
>>> 0:00 | \_ /bin/sh
>>> /usr/sbin/rabbitmqctl wait /var/run/rabbitmq/pid
>>> root 20439 0.0 0.0 42512 1384 ? S 17:03
>>> 0:00 | \_ su rabbitmq -s
>>> /bin/sh -c /usr/lib/rabbitmq/bin/**rabbitmqctl "wait"
>>> "/var/run/rabbitmq/pid"
>>> rabbitmq 20442 0.0 0.4 32312 10260 ? Ss 17:03
>>> 0:00 | \_
>>> /usr/lib64/erlang/erts-5.8.5/**bin/beam -- -root
>>> /usr/lib64/erlang
>>> -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/ra
>>> bbitmq/lib/rabbitmq_server-2.**7.1/sbin/../ebin -noshell
>>> -noinput -hidden -name rabbitmqctl20442 -s rabbit_control
>>> -nodename _rabbit at amq.ecp-deploy.com_ -extra wait
>>>
>>> /var/run/rabbitmq/pid
>>> rabbitmq 20468 0.0 0.0 10844 492 ? Ss 17:03
>>> 0:00 | \_ inet_gethost 4
>>> rabbitmq 20469 0.0 0.0 11056 360 ? S 17:03
>>> 0:00 | \_
>>> inet_gethost 4
>>>
>>> Thanks,
>>> Nithya
>>>
>>>
>>>
>>> ______________________________**_________________
>>> rabbitmq-discuss mailing list
>>> rabbitmq-discuss at lists.**rabbitmq.com<rabbitmq-discuss at lists.rabbitmq.com>
>>> https://lists.rabbitmq.com/**cgi-bin/mailman/listinfo/**rabbitmq-discuss<https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>>>
>>
>>
>> --
>> Simon MacMullen
>> RabbitMQ, VMware
>> ______________________________**_________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.**rabbitmq.com<rabbitmq-discuss at lists.rabbitmq.com>
>> https://lists.rabbitmq.com/**cgi-bin/mailman/listinfo/**rabbitmq-discuss<https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120509/b40dc7dc/attachment.htm>
More information about the rabbitmq-discuss
mailing list