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

1,926 views
Skip to first unread message

Soner

unread,
Mar 12, 2012, 6:38:31 AM3/12/12
to rabbitmq...@lists.rabbitmq.com
Hi,

I am running a rabbit-mq (version 2.7.1) cluster with three nodes. On
this cluster I have created a mirrored and durable queue called 'foo'
by using the browser based management console. I also have created the
related exchange and binding. When I tried to connect with my consumer
and publisher I was getting following error:
404, "NOT_FOUND - no queue 'foo' in vhost '/'"

I couldn't find any solution so I have deleted the queue and created
it again with the same setup as before. Then started the consumers
again and it worked. Somehow strange for me that recreating the queue
has helped.
It would be problematic in an production environment to recerate the
queue everytime so my question is if anybody has experienced the same
and what could be the reason?


Thanks in advance.
Soner
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq...@lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Simon MacMullen

unread,
Mar 12, 2012, 6:47:06 AM3/12/12
to Soner, rabbitmq...@lists.rabbitmq.com
On 12/03/12 10:38, Soner wrote:
> I am running a rabbit-mq (version 2.7.1) cluster with three nodes. On
> this cluster I have created a mirrored and durable queue called 'foo'
> by using the browser based management console. I also have created the
> related exchange and binding. When I tried to connect with my consumer
> and publisher I was getting following error:
> 404, "NOT_FOUND - no queue 'foo' in vhost '/'"

If you are a seeing a 404 then either:

a) if you are getting that in response to a basic.consume you have not
created it with the name you think you have *or*
b) if you are getting that in response to a queue.declare then you
created a non-mirrored queue on a host which is down.

> I couldn't find any solution so I have deleted the queue and created
> it again with the same setup as before. Then started the consumers
> again and it worked. Somehow strange for me that recreating the queue
> has helped.

This suggests problem a).

Cheers, Simon

--
Simon MacMullen
RabbitMQ, VMware

Soner

unread,
Mar 12, 2012, 10:23:44 AM3/12/12
to rabbitmq...@googlegroups.com, Soner, rabbitmq...@lists.rabbitmq.com

Hi Simon,

thanks for your quick answer.

Before recreating the queue I checked the management tool and saw that
my queue was synchronised to all nodes (the number of synchronised mirrors was 2).
So all hosts were up and running.

And I also copied the name from the management tool before deleting and recreating the queue.

I will keep an eye on this and see if a similar situation occures again.

Cheers,
Soner

rabbitmq-discuss@lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Reply all
Reply to author
Forward
0 new messages