Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ: Verify version of rabbitmq

Tags:

rabbitmq

People also ask

What is the current version of RabbitMQ?

The latest release of RabbitMQ is 3.10. 7. See RabbitMQ support timeline to find out what release series are supported.

Could not determine the version of the RabbitMQ server?

Try to create or delete users with the rabbitmq_user module. This will result in a Could not determine the version of the RabbitMQ server. error. However when you execute rabbitmqctl status on one node you will see the output which also contains the rabbitmq version.

How do I find my RabbitMQ node name?

RabbitMQ nodes are identified by node names. A node name consists of two parts, a prefix (usually rabbit) and hostname. For example, [email protected] is a node name with the prefix of rabbit and hostname of node1.


sudo rabbitmqctl status

and look for line that looks like that:

{rabbit,"RabbitMQ","2.6.1"},


You can simply execute from the command line:

sudo rabbitmqctl status | grep rabbit

If rabbitimq can not start I found the only way to determine version is via installer system.

Eample Debian/Ubuntu:

dpkg -s rabbitmq-server | grep Version

As Marek said on a local server, or, on a remote server (using amqplib):

from amqplib import client_0_8 as amqp
import sys

conn = amqp.Connection(host=sys.argv[1], userid="guest", password="guest", virtual_host="/", insist=False)

for k, v in conn.server_properties.items():
    print k, v

Save as checkVersion.py and run with python checkVersion.py dev.rabbitmq.com:

% python checkVersion.py dev.rabbitmq.com
information Licensed under the MPL.  See http://www.rabbitmq.com/
product RabbitMQ
copyright Copyright (C) 2007-2011 VMware, Inc.
capabilities {}
platform Erlang/OTP
version 2.6.0

If you have no access to rabbitmqctl or rabbitmq-server is not running, on linux do :

ls /usr/lib/rabbitmq/lib/

I got :

rabbitmq_server-3.5.6