[rabbitmq-discuss] rabbitmqadmin fails when trying to get message from a queue

Simon MacMullen simon at rabbitmq.com
Mon Jun 16 10:43:56 BST 2014

Please keep rabbitmq-discuss on CC.

On 16/06/2014 10:34AM, Jharna Sharma wrote:
> Thank you so much for replying..
> Can you please specify how it depends on "requeue" parameter..??

If requeue=false the messages will be delivered to rabbitmqadmin and 
acknowledged, so they're gone.

If requeue=true the messages will be delivered to rabbitmqadmin but not 
acknowledged, so they end up requeued afterwards.

> And how many messages can I get using "rabbitmqadmin get queue" command..??
> Basically I need to print all the messages of a queue...

You can specify how many times the API calls basic.get with the 'count' 
parameter. But all the messages will be marshalled in memory before 
delivering the HTTP response, so it's not a great idea to do this with 
very high 'count' parameters.

Cheers, Simon

> Please help...
> -----Original Message-----
> From: Simon MacMullen [mailto:simon at rabbitmq.com]
> Sent: Monday, June 16, 2014 2:59 PM
> To: Discussions about RabbitMQ; Jharna Sharma
> Subject: Re: [rabbitmq-discuss] rabbitmqadmin fails when trying to get message from a queue
> On 16/06/2014 9:24AM, Jharna Sharma wrote:
>> returns this error message
>> *** {u'key_missing': u'encoding'}
>> What is the solution to this problem..??
> That's a bug in ancient versions of rabbitmqadmin. You need to use
> rabbitmqadmin from RabbitMQ 2.8.0 or later.
> If you can't easily upgrade your server, you can get the latest
> rabbitmqadmin from:
> http://hg.rabbitmq.com/rabbitmq-management/raw-file/default/bin/rabbitmqadmin
> Of course you'll need to specify --port 55672 when connecting to 2.x
> servers.
>> And does fetching messages like this will delete them from the queue..??
> Depends on the value of the "requeue" parameter.
> Cheers, Simon
> --
> Simon MacMullen
> RabbitMQ, Pivotal
> "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

Simon MacMullen
RabbitMQ, Pivotal

More information about the rabbitmq-discuss mailing list