[rabbitmq-discuss] service rabbitmq-server start stuck due to inet_gethost 4

Nithya Vijayakumar nithyanirmal at gmail.com
Tue May 8 19:04:07 BST 2012


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 --fqdn 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</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</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</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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120508/cae7b55b/attachment.htm>


More information about the rabbitmq-discuss mailing list