Questions tagged [rabbitmqctl]

command line tool for managing a RabbitMQ broker

RabbitMQ is an implementation of AMQP, the emerging standard for high performance enterprise messaging. The RabbitMQ server is a robust and scalable implementation of an AMQP broker.

rabbitmqctl is a command line tool for managing a RabbitMQ broker. It performs all actions by connecting to one of the broker's nodes. See the man page for further details

Diagnostic information is displayed if the broker was not running, could not be reached, or rejected the connection due to mismatching Erlang cookies.

224 questions
222
votes
27 answers

Delete all the queues from RabbitMQ?

I installed rabbitmqadmin and was able to list all the exchanges and queues. How can I use rabbitmqadmin or rabbitmqctl to delete all the queues.
Cory
  • 14,865
  • 24
  • 57
  • 72
138
votes
6 answers

Is it possible to view RabbitMQ message contents directly from the command line?

Is it possible to view RabbitMQ message contents directly from the command line? sudo rabbitmqctl list_queues lists the queues. Is there any command like sudo rabbitmqctl list_queue_messages ?
Shears
  • 1,539
  • 2
  • 11
  • 6
31
votes
2 answers

Why do we need routing key in RabbitMQ?

Why do we need routing key to route messages from exchange to queue? Can't we simply use the queue name to route the message? Also, in case of publishing to multiple queues, we can use multiple queue names. Can anyone point out the scenario where we…
Naresh
  • 5,073
  • 12
  • 67
  • 124
27
votes
5 answers

Define RabbitMQ policies in configuration file

I'd like to define mirroring for all my queues by default. I currently have to use rabbitmqctl once the node is up: rabbitmqctl set_policy ha-all "" '{"ha-mode":"all"}' If one of my nodes fail, I'd have to remember to re-execute that code on…
Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196
27
votes
3 answers

RabbitMQ Declare Exchange from Terminal - Access refused: /api/exchanges/

I'm using rabbitmq to handle messages between my databases for an enterprise application I work on. As part of the process, I'm trying to help automate the setup of the servers (e.g. script it). In this process, I've tried to use rabbitmqadmin to…
James Oravec
  • 19,579
  • 27
  • 94
  • 160
22
votes
8 answers

epmd error for host myhost: address (cannot connect to host/port) on windows 10

I am trying to install rabbitmq. The installation of both erlang i.e OTP 18.1 file was done successfulyl and also rabbitmq installation completed successfully. But when I try to connect rabbitmq, I get the following error: C:\Program Files…
Antarjot
  • 306
  • 1
  • 2
  • 9
17
votes
4 answers

rabbitmqctl Error: unable to connect to node rabbit@myserver nodedown

I am running RabbitMQ v3.3.5 with Erlang OTP 17.1 on Windows 2008 R2. My Dev and QA environments are stand-alone. My staging and production environments are clustered. I am finding this one problem happening often where the RabbitMQ service is…
Alf47
  • 563
  • 1
  • 5
  • 12
17
votes
5 answers

How to use rabbitmqctl to connect to the rabbitmqserver in the docker container?

I've used docker to start my rabbitmqserver. How can I use rabbitmqctl to connect to the rabbitmqserver in the docker container? Port 5672 has been exposed and map to the 5672 port of my host. But I still get the following error: Status of node…
waitingkuo
  • 89,478
  • 28
  • 112
  • 118
10
votes
1 answer

Rabbitmq reload/refresh new certificates without restart

I am using self signed certificates in my Rabbitmq server and the broker is started successfully with SSL port. I am now trying to renew / use new SSL certificates, SSL key and truststore but I do not want to restart the running rabbitmq server as…
10
votes
1 answer

Create vHost on Windows RabbitMQ node using command line

I have a RabbitMQ node on windows operating system. I want to create vhost on that node from command line of using a script with minimal pre-requisites. EDIT: I tried to use the rabbitmqctl add_vhost but I always get an error.
Ebeid ElSayed
  • 1,126
  • 2
  • 15
  • 32
9
votes
4 answers

How to copy messages to another queue on RabbitMQ?

Using RabbitMQ as broker, I would like to copy all the messages from one queue to another queue for test/debug purpose. What's the simplest way via RabbitMQ web management console / cli? P.S. Under web console for specified queue, I could only Move…
northtree
  • 8,569
  • 11
  • 61
  • 80
9
votes
2 answers

Rabbitmq File Descriptor Limit

Rabbitmq documentation says that we need to do some configuration before we use it on production. One of the configuration is about maximum open file number (which is an OS parameter). Rabbitmq server we use is running on Ubuntu 16.04 and according…
faruk.kuscan
  • 499
  • 1
  • 6
  • 19
9
votes
1 answer

Why does celery.control.inspect report fewer queued tasks than rabbitmqctl?

rabbitmqctl correctly reports thousands of queued tasks: $ sudo rabbitmqctl -q list_queues name messages messages_ready messages_unacknowledged default 13142 13126 16 Yet celery reports: >>>…
DrMeers
  • 4,117
  • 2
  • 36
  • 38
9
votes
4 answers

RabbitMQ Error: unable to connect to nodes : nodedown

I am trying to do clustering using two Rhel instances. I am able to ping each other and even when i am trying to use command empd -names, i get it is up and running on 4369.When i am use the command as sudo rabbitmqctl join_cluster…
Dileephell
  • 620
  • 2
  • 7
  • 18
9
votes
4 answers

Reproduce RabbitMQ network partition scenario

I would like to reproduce the network partition scenario with all the three modes - ignore, autoheal and pause_minority. How can I achieve this? I tried stopping(/sbin/service reboot) one of the nodes of the cluster but this didn't cause any…
user2340345
  • 793
  • 4
  • 16
  • 38
1
2 3
14 15