[rabbitmq-discuss] Script/Connection not getting terminated.

tluck tilak.chauhan at ymail.com
Fri Jun 7 09:18:57 BST 2013


Hi,

I've multiple consumer servers which are responsible for picking up messages
from the queues and consuming/processing them. I've RMQ 3.1.0 installed on
all servers along with RMQ clustering configured. I'm using PHP RMQ library
to process all this. For past few days I have been getting some issues
related to the connection and processes. When I start a consumer script to
process messages then after few minutes/hours consumer stops to consume
messages from the queue and when I go to see all the running processes on
sever (using ps or htop command) then I can still see the consumer process
is running on the server. And, when I check connection status then I can
also see that in in running status. If the consumer process is still running
and the connection is also active/running then why consumer is not
processing messages ?

When I did some investigation on the server log then I found following
message in RMQ log file :

=ERROR REPORT==== 7-Jun-2013::08:10:08 ===
connection <0.5495.89>, channel 1 - soft error:
{amqp_error,precondition_failed,"unknown delivery tag 0",'basic.reject'}

=WARNING REPORT==== 7-Jun-2013::08:10:09 ===
closing AMQP connection <0.5495.89> (11.11.11.111:60528 ->
11.11.11.111:5672):
connection_closed_abruptly

=INFO REPORT==== 7-Jun-2013::08:10:10 ===
accepting AMQP connection <0.5509.89> (11.11.11.111:60530 ->
11.11.11.111:5672)

=ERROR REPORT==== 7-Jun-2013::08:10:10 ===
connection <0.5509.89>, channel 1 - soft error:
{amqp_error,precondition_failed,"unknown delivery tag 0",'basic.reject'}

=WARNING REPORT==== 7-Jun-2013::08:10:11 ===
closing AMQP connection <0.5509.89> (11.11.11.111:60530 ->
11.11.11.111:5672):
connection_closed_abruptly

=INFO REPORT==== 7-Jun-2013::08:10:12 ===
accepting AMQP connection <0.5523.89> (11.11.11.111:60532 ->
11.11.11.111:5672)

=ERROR REPORT==== 7-Jun-2013::08:10:12 ===
connection <0.5523.89>, channel 1 - soft error:
{amqp_error,precondition_failed,"unknown delivery tag 0",'basic.reject'}

=WARNING REPORT==== 7-Jun-2013::08:10:13 ===
closing AMQP connection <0.5523.89> (11.11.11.111:60532 ->
11.11.11.111:5672):
connection_closed_abruptly

=INFO REPORT==== 7-Jun-2013::08:10:14 ===
accepting AMQP connection <0.5537.89> (11.11.11.111:60534 ->
11.11.11.111:5672)

=ERROR REPORT==== 7-Jun-2013::08:10:14 ===
connection <0.5537.89>, channel 1 - soft error:
{amqp_error,precondition_failed,"unknown delivery tag 0",'basic.reject'}

=WARNING REPORT==== 7-Jun-2013::08:10:15 ===
closing AMQP connection <0.5537.89> (11.11.11.111:60534 ->
11.11.11.111:5672):
connection_closed_abruptly

Can anybody please give me an idea to get rid of this problem .. If a
connection is being closed automatically then why script is not getting
terminated (it is supposed to do so). Is there any way I can check whether
connection is active or closed ?


Thanks
T.luck 








 

 



--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/Script-Connection-not-getting-terminated-tp27265.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


More information about the rabbitmq-discuss mailing list