[rabbitmq-discuss] 404, "NOT_FOUND - no queue 'foo' in vhost '/'"

Matt Pietrek mpietrek at skytap.com
Tue Dec 20 22:44:10 GMT 2011

Some additional information I've learned since posting the original, below.

After shutting down the primary node, the queue causing the 404 error has
actually vanished from the broker. Keeping an eye on the Management Web UI,
I literally see it disappear.

In addition, in the rabbit@<nodename>.log, I see a whole bunch of spew,
including many instances of this:

=WARNING REPORT==== 20-Dec-2011::14:09:17 ===
Non-AMQP exit reason '{{{function_clause,

Again, this is a stock 2.7.0 install.

From:  Matt Pietrek <mpietrek at skytap.com>
Date:  Tue, 20 Dec 2011 13:04:50 -0800
To:  <rabbitmq-discuss at lists.rabbitmq.com>
Cc:  Matt Pietrek <mpietrek at skytap.com>
Subject:  404, "NOT_FOUND - no queue 'foo' in vhost '/'"

I'm encountering a strange situation that I don't think has been covered by
other threads.

I'm running RabbitMQ 2.7.0 on Ubuntu 10.04 LTS with the stock PIKA 0.9.5
client, and taking advantage of mirrored queues.

My scenario:
* I have two apps that ping-pong messages to each other using two queues (a
pseudo-RPC type of thing.)
* The apps talk to RabbitMQ via a keepalived monitored Virtual IP.
* Before starting the apps, I predeclare both queues.
* In the RabbitMQ management Web UI, I see both nodes and the Queues tab
shows both queues as "HA D", so I believe they're mirrored.
* Start up the two ping-ponging apps, let run for few seconds. Note messages
flowing back and forth.
* Stop the primary node (rabbitmqctl stop)
* Keepalived fails over the Virtual IP
* After a few seconds I see one of the apps resume processing messages as
* Shortly thereafter the other app gets an exception from
channel.basic_get(), which is the 404 "no queue found" exception.
* I don't believe it's a connection error, as during my queue reads, my
logic catches AMQPConnectionErrors exceptions and retries after a short
I've looked at my code carefully, and there's no calls to queue_declare
other than the original creation (item 3, above.)

Any thoughts on what could be wrong?

Thanks much,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111220/b90fc2e5/attachment.htm>

More information about the rabbitmq-discuss mailing list