Hi Alex,<div><br></div><div>Sorry, my mistake </div><div>You are right. The queues were declared on the offline node.</div><div>Due to the way to solve this is to bring back up that node we'll have decided </div><div>that every consumer will point to the server that holds the queues</div>
<div>it needs, so a shutdown on the other node won't affect it .</div><div><br></div><div><br></div><div>Thank you</div><div><br></div><div><br></div><div>Alfonso Pantoja</div><div><br></div><div><br></div><div><br></div>
<div><br></div><div><div class="gmail_quote">2011/2/25 Alexandru Scvorţov <span dir="ltr"><<a href="mailto:alexandru@rabbitmq.com">alexandru@rabbitmq.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
In a cluster, if a there's a durable queue on a down'ed node,<br>
redeclaring that queue on another node will fail with NOT_FOUND. The<br>
only way to solve this is to bring back up the node holding the queue.<br>
<br>
This seems to be what you're seeing, but you say all the queues were<br>
declared on the online node. Are you sure that's the case?<br>
<br>
Does bringing the other node up solve the problem?<br>
<br>
Once up, can you delete the queue, redeclare it on SERVER_1, take down<br>
SERVER_2 again and check if the problem still happens?<br>
<br>
BTW, in the next message, you seem to have reversed SERVER_1 and<br>
SERVER_2.<br>
<br>
Cheers,<br>
Alex<br>
<div><div></div><div class="h5"><br>
On Fri, Feb 25, 2011 at 11:57:25AM +0100, Alfonso Pantoja wrote:<br>
> Hi,<br>
><br>
> Today I've got a code=404 NOT_FOUND error when declaring a queue in a<br>
> clustered server.<br>
> We have 2 servers in that cluster. SERVER_1 and SERVER_2.<br>
> The message reported that the queue the consumer wanted to declare didn't<br>
> exist which hasn't too much sense...<br>
><br>
> The AMQP operation<br>
> was interrupted: AMQP close-reason, initiated by Peer, code=404,<br>
> text="NOT_FOUND - no queue 'alfonsoqueue' in vhost '/'"<br>
><br>
><br>
> SERVER_2 was offline and the .NET consumer tried to connect to SERVER1 (we<br>
> don't use the array of addresses feature, we point the consumer directly to<br>
> one single server).<br>
> The queues were created on server SERVER_1 and there were no queues in<br>
> webadmin queue listing of SERVER_2.<br>
><br>
> By the way all our queues and exchanges are durable and the first thing the<br>
> consumer do is to a<br>
> channel.DeclareQueue(name=queue_name, durable=true)<br>
> In the source code I see this declaration is performed using nowait=false,<br>
> exclusive=false...<br>
><br>
> My<br>
<br>
</div></div>> _______________________________________________<br>
> rabbitmq-discuss mailing list<br>
> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br>
</blockquote></div><br></div>