rabbitmqadmin get queue=q_z1 complaining *** [{key_missing, ackmode}]

927 views
Skip to first unread message

ravi katta

unread,
Mar 14, 2018, 10:49:30 AM3/14/18
to rabbitmq-users

Hello, I have been trying to GET msgs using rabbitmqadmin from command line on the server as below:

python /usr/local/bin/rabbitmqadmin get queue=q_z1

*** [{key_missing,ackmode}]

 

I have also tried with 

--ackmode=reject_requeue_true

ackmode=reject_requeue_true

--ackMode=reject_requeue_true

ackMode=reject_requeue_true

 

I'm able to successfully purge the msgs using API from remote server:

curl -v -u z1:z1 -X DELETE http://abc.server.net:15672/api/queues/%2fvhost_z1/q_z1/contents"

Luke Bakken

unread,
Mar 14, 2018, 11:24:42 AM3/14/18
to rabbitmq-users
Hello Ravi,

What version of RabbitMQ are you using? How did you download rabbitmqadmin? I'm curious what version you're using.

The following works fine on my machine using RabbitMQ 3.7.4 and the rabbitmqadmin that ships with it -

$ rabbitmqadmin declare queue name=test1234
queue declared

$ rabbitmqadmin publish routing_key=test1234
HELLO
Message published

$ rabbitmqadmin get queue=test1234
+-------------+----------+---------------+---------+---------------+------------------+------------+-------------+
| routing_key | exchange | message_count | payload | payload_bytes | payload_encoding | properties | redelivered |
+-------------+----------+---------------+---------+---------------+------------------+------------+-------------+
| test1234    |          | 0             | HELLO   | 6             | string           |            | False       |
+-------------+----------+---------------+---------+---------------+------------------+------------+-------------+

$ rabbitmqadmin --version
rabbitmqadmin 3.7.4

Thanks,

Luke

Michael Klishin

unread,
Mar 14, 2018, 11:26:43 AM3/14/18
to rabbitm...@googlegroups.com
The ackmode parameter is new in 3.7.0:

It is a rare breaking HTTP API change that clients (including rabbitmqadmin) had to be adapted for.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

ravi katta

unread,
Mar 14, 2018, 11:59:41 AM3/14/18
to rabbitmq-users
Thank you Luke and Michael, I thought that used the rabbitmqadmin that came with the rabbitmq software, apparently not and is the reason rabbitmqadmin version was showint as "rabbitmqadmin %%VSN%%". So i updated with the one that is available within rabbit mq and its working cool!

curl -S http://localhost:15672/cli/rabbitmqadmin > /usr/local/bin/rabbitmqadmin
python /usr/local/bin/rabbitmqadmin --version
rabbitmqadmin 3.7.3
Reply all
Reply to author
Forward
0 new messages