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.

193 questions
195
votes
23 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
  • 12,197
  • 22
  • 51
  • 70
113
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,289
  • 2
  • 10
  • 6
26
votes
2 answers

why do we need routing key in rabbitmq

I am wondering why do we need routing key to route message from exchange to queue. Can't we use the simply 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…
Naresh
  • 4,223
  • 10
  • 56
  • 115
25
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
  • 16,761
  • 25
  • 77
  • 145
20
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
  • 22,191
  • 36
  • 108
  • 189
18
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
  • 266
  • 1
  • 2
  • 9
16
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
  • 473
  • 1
  • 4
  • 12
13
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
  • 69,398
  • 23
  • 102
  • 115
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,036
  • 1
  • 13
  • 30
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
  • 3,689
  • 1
  • 29
  • 33
8
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
  • 489
  • 1
  • 5
  • 19
8
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
  • 550
  • 1
  • 5
  • 18
8
votes
3 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
  • 677
  • 1
  • 11
  • 29
7
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…
7
votes
1 answer

simultaneously receive logs from Rabbitmq and run your flask app

I have rabbitmq installed and working properly and I know how to receive logs but don't know how to show it to UI with flask. flask_app.py from flask import Flask from threading import Thread app = Flask(__name__) import pika connection =…
kapil matani
  • 147
  • 1
  • 9
1
2 3
12 13