openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #11739
Re: AMQP server on localhost:5672 is unreachable: IOError Socket closed.
Hi Shashi,
1. check for the below..
root@openstack:/# cat /etc/rabbitmq/rabbitmq.conf
[
{rabbit, [
{tcp_listeners, [{"0.0.0.0",5672}]}
]}
]
2. restart rabbitmq service & check below
root@openstack:/# service rabbitmq-server status
Status of node rabbit@openstack ...
[{pid,26880},
{running_applications,[{rabbit,"RabbitMQ","2.5.0"},
{os_mon,"CPO CXC 138 46","2.2.5"},
{sasl,"SASL CXC 138 11","2.1.9.3"},
{mnesia,"MNESIA CXC 138 12","4.4.17"},
{stdlib,"ERTS CXC 138 10","1.17.3"},
{kernel,"ERTS CXC 138 10","2.14.3"}]},
{os,{unix,linux}},
{erlang_version,"Erlang R14B02 (erts-5.8.3) [source] [64-bit] [smp:8:8] [rq:8] [async-threads:30] [kernel-poll:true]\n"},
{memory,[{total,24810216},
{processes,9821528},
{processes_used,9807032},
{system,14988688},
{atom,1108281},
{atom_used,1096662},
{binary,128184},
{code,10829429},
{ets,693600}]}]
...done.
3. root@openstack:/# lsof +M -i4
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpcbind 951 root 6u IPv4 2018 0t0 UDP *:sunrpc[portmapper]
rpcbind 951 root 7u IPv4 2021 0t0 UDP *:695
rpcbind 951 root 8u IPv4 2022 0t0 TCP *:sunrpc[portmapper] (LISTEN)
tgtd 1149 root 4u IPv4 478 0t0 TCP *:3260 (LISTEN)
tgtd 1162 root 4u IPv4 478 0t0 TCP *:3260 (LISTEN)
rpc.statd 1209 statd 5r IPv4 11631 0t0 UDP *:961
rpc.statd 1209 statd 8u IPv4 11636 0t0 UDP *:49976[status]
rpc.statd 1209 statd 9u IPv4 11639 0t0 TCP *:59630[status] (LISTEN)
libvirtd 1322 root 12u IPv4 6765 0t0 TCP *:16514 (LISTEN)
python 1467 ajaxterm 5u IPv4 568 0t0 TCP localhost:8022 (LISTEN)
apt-cache 1498 apt-cacher-ng 5u IPv4 13673 0t0 TCP *:3142 (LISTEN)
epmd 1647 rabbitmq 3u IPv4 9534 0t0 TCP *:epmd (LISTEN)
epmd 1647 rabbitmq 5u IPv4 2677682264 0t0 TCP localhost:epmd->localhost:43894 (ESTABLISHED)
apache2 2993 root 3u IPv4 2666216358 0t0 TCP *:www (LISTEN)
apache2 3005 www-data 3u IPv4 2666216358 0t0 TCP *:www (LISTEN)
apache2 3006 www-data 3u IPv4 2666216358 0t0 TCP *:www (LISTEN)
glance-ap 18946 glance 4u IPv4 247572803 0t0 TCP *:9292 (LISTEN)
mysqld 19999 mysql 10u IPv4 248299715 0t0 TCP *:mysql (LISTEN)
glance-re 22691 glance 5u IPv4 247573527 0t0 TCP *:9191 (LISTEN)
beam.smp 26880 rabbitmq 8u IPv4 2653102073 0t0 TCP *:60924 (LISTEN)
beam.smp 26880 rabbitmq 9u IPv4 2653102075 0t0 TCP localhost:43894->localhost:epmd (ESTABLISHED)
4. root@openstack:/# netstat -anp | grep 5672
tcp6 0 0 :::5672 :::* LISTEN 26880/beam.smp
This should solve the issue.
Meena Raja
Consultant
__________________________________________
WIPRO TECHNOLOGIES
No 53/1 Ganapa Towers ,Near Madivala Police Station , Hosur Main Road ,Bangalore-560068
Hand Phone : +91-9880549725 | Desk : +91-80-39912554 |Fax No: +91-80-25502160
Email : raja.meena@xxxxxxxxx | Website : www.wipro.com
________________________________
From: openstack-bounces+raja.meena=wipro.com@xxxxxxxxxxxxxxxxxxx [openstack-bounces+raja.meena=wipro.com@xxxxxxxxxxxxxxxxxxx] on behalf of Bilel Msekni [skible@xxxxxxxxxx]
Sent: Tuesday, May 15, 2012 3:08 PM
To: openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] AMQP server on localhost:5672 is unreachable: IOError Socket closed.
Le 15/05/2012 11:14, Shashi Kanth Boddula a écrit :
Essex on Ubuntu 12.04.
I am seeing these messages in noa-api.log file, and the nova is not functional in dashboard. I believe the problem is with rabbitmq, but i don't know how to solve this situation.
2012-05-15 14:20:11 ERROR nova.rpc.common [req-1d70ea22-fb6e-4be8-84f5-54cfd78698ac 0c1bd987f8b84088983e17645067c225 488ef90f59fd4bf68fc78f7086556af2] AMQP server on localhost:5672 is unreachable: Socket closed. Trying again in 30 seconds.
2012-05-15 14:20:11 TRACE nova.rpc.common Traceback (most recent call last):
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 446, in reconnect
2012-05-15 14:20:11 TRACE nova.rpc.common self._connect()
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 423, in _connect
2012-05-15 14:20:11 TRACE nova.rpc.common self.connection.connect()
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 154, in connect
2012-05-15 14:20:11 TRACE nova.rpc.common return self.connection
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 560, in connection
2012-05-15 14:20:11 TRACE nova.rpc.common self._connection = self._establish_connection()
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 521, in _establish_connection
2012-05-15 14:20:11 TRACE nova.rpc.common conn = self.transport.establish_connection()
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 255, in establish_connection
2012-05-15 14:20:11 TRACE nova.rpc.common connect_timeout=conninfo.connect_timeout)
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 52, in __init__
2012-05-15 14:20:11 TRACE nova.rpc.common super(Connection, self).__init__(*args, **kwargs)
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/connection.py", line 144, in __init__
2012-05-15 14:20:11 TRACE nova.rpc.common (10, 30), # tune
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py", line 95, in wait
2012-05-15 14:20:11 TRACE nova.rpc.common self.channel_id, allowed_methods)
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/connection.py", line 202, in _wait_method
2012-05-15 14:20:11 TRACE nova.rpc.common self.method_reader.read_method()
2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/method_framing.py", line 221, in read_method
2012-05-15 14:20:11 TRACE nova.rpc.common raise m
2012-05-15 14:20:11 TRACE nova.rpc.common IOError: Socket closed
2012-05-15 14:20:11 TRACE nova.rpc.common
# service rabbitmq-server status
Status of node rabbit@openstack ...
[{pid,2137},
{running_applications,[{rabbit,"RabbitMQ","2.7.1"},
{os_mon,"CPO CXC 138 46","2.2.7"},
{sasl,"SASL CXC 138 11","2.1.10"},
{mnesia,"MNESIA CXC 138 12","4.5"},
{stdlib,"ERTS CXC 138 10","1.17.5"},
{kernel,"ERTS CXC 138 10","2.14.5"}]},
{os,{unix,linux}},
{erlang_version,"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:24:24] [rq:24] [async-threads:30] [kernel-poll:true]\n"},
{memory,[{total,26413240},
{processes,10154960},
{processes_used,10134760},
{system,16258280},
{atom,1124441},
{atom_used,1120341},
{binary,69304},
{code,11134417},
{ets,742384}]},
{vm_memory_high_watermark,0.39999999997628105},
{vm_memory_limit,13491309772}]
...done.
--
Thanks & Regards,
Shashi Kanth
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
Nova connects to RabbitMQ through the defaults values ( localhost:5672) and credentials (guest)
Check for the address of your rabbitMQ in the config file (/etc/rabbitmq/rabbitMQ.config)
and do this
nano /etc/rabbitmq/rabbitmq.config
[{rabbit, [{tcp_listeners, [{"127.0.0.1",5672}] }] } ]. #Paste this line
#Exit and SAVE
service start rabbitmq-server
This certainly will make your rabbitMQ talk to Nova. otherwise there is something wrong with your nova
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
References