[rabbitmq-discuss] Error code 404 NOT_FOUND when declaring a queue in a clustered server (using .NET client)

Alfonso Pantoja alfonso.pantoja at gmail.com
Wed Mar 9 22:47:18 GMT 2011


Hi Alex,

Sorry, my mistake
You are right. The queues were declared on the offline node.
Due to the way to solve this is to bring back up that node we'll have
decided
that every consumer will point to the server that holds the queues
it needs, so a shutdown on the other node won't affect it .


Thank you


Alfonso Pantoja




2011/2/25 Alexandru Scvorţov <alexandru at rabbitmq.com>

> Hi,
>
> In a cluster, if a there's a durable queue on a down'ed node,
> redeclaring that queue on another node will fail with NOT_FOUND.  The
> only way to solve this is to bring back up the node holding the queue.
>
> This seems to be what you're seeing, but you say all the queues were
> declared on the online node.  Are you sure that's the case?
>
> Does bringing the other node up solve the problem?
>
> Once up, can you delete the queue, redeclare it on SERVER_1, take down
> SERVER_2 again and check if the problem still happens?
>
> BTW, in the next message, you seem to have reversed SERVER_1 and
> SERVER_2.
>
> Cheers,
> Alex
>
> On Fri, Feb 25, 2011 at 11:57:25AM +0100, Alfonso Pantoja wrote:
> > Hi,
> >
> > Today I've got a code=404  NOT_FOUND  error when declaring a queue in a
> > clustered server.
> > We have 2 servers in that cluster. SERVER_1 and SERVER_2.
> > The message reported that the queue the consumer wanted to declare didn't
> > exist which hasn't too much sense...
> >
> > The AMQP operation
> > was interrupted: AMQP close-reason, initiated by Peer, code=404,
> > text="NOT_FOUND - no queue  'alfonsoqueue' in vhost '/'"
> >
> >
> > SERVER_2 was offline and the .NET consumer tried to connect to SERVER1
> (we
> > don't use the array of addresses feature, we point the consumer directly
> to
> > one single server).
> > The queues were created on server SERVER_1 and there were no queues in
> >  webadmin queue listing of SERVER_2.
> >
> > By the way all our queues and exchanges are durable and the first thing
> the
> > consumer do is to a
> > channel.DeclareQueue(name=queue_name, durable=true)
> > In the source code I see this declaration is performed using
> nowait=false,
> > exclusive=false...
> >
> > My
>
> > _______________________________________________
> > rabbitmq-discuss mailing list
> > rabbitmq-discuss at lists.rabbitmq.com
> > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110309/2aacd032/attachment.htm>


More information about the rabbitmq-discuss mailing list