RabbitMQ
Endpoints
System Errors
Troubleshooting
Network Connectivity

RabbitMQ "None of the specified endpoints were reachable": causes and fixes

Codemia Knowledge Hub ·

"None of the specified endpoints were reachable" means the RabbitMQ client could not connect to any of the servers in its connection string or configuration. The usual causes are a network or firewall problem, a server that is down, wrong credentials or virtual host, a TLS misconfiguration, or connection limits on the server.

What the client is trying to connect to

RabbitMQ clients connect over protocols such as AMQP, MQTT or STOMP, most commonly AMQP. The connection string or configuration supplies the hostname, port, username, password and virtual host:

 
amqp://username:password@hostname:port/vhost

The client parses this string and opens a TCP connection to that host and port, then authenticates with the given credentials and virtual host. If that fails for every endpoint, you get this error.

Common causes

  1. Network issues: no connectivity between the client and the RabbitMQ server.
  2. Incorrect credentials: wrong username, password or virtual host.
  3. Firewall restrictions: a firewall blocks RabbitMQ's ports (the default AMQP port is 5672).
  4. Server downtime: the server is down for maintenance or after a failure.
  5. SSL/TLS issues: TLS settings are misconfigured when a secure connection is required.
  6. Resource limits: connection or channel limits set by the server configuration or hosting environment have been reached.

Diagnosing the error step by step

  1. Check network connectivity: confirm the client can reach the server, for example with ping or telnet:
bash
   ping hostname
   telnet hostname port
  1. Validate credentials: make sure the username, password and virtual host match what is configured on the server.
  2. Review firewall settings: confirm no rule blocks the required ports.
  3. Inspect the RabbitMQ logs: look for warnings or errors that explain why connections are refused.
  4. Check TLS configuration: if you connect over SSL/TLS, make sure the certificates are installed and valid and that client and server settings match.
  5. Monitor resource usage: high CPU or memory use on the server can stop it accepting new connections.
IssueDiagnostic Tool/Approach
Network IssuesPing, Telnet
Incorrect CredentialsCheck Connection String
Firewall RestrictionsCheck Firewall Rules
RabbitMQ Server DowntimeRabbitMQ Server Logs
SSL/TLS IssuesCertificate and Configuration Verification
Resource LimitsSystem Monitoring Tools

Example connection with Python's pika

python
1import pika
2
3credentials = pika.PlainCredentials('username', 'password')
4parameters = pika.ConnectionParameters('hostname',
5                                       5672,
6                                       'vhost',
7                                       credentials)
8connection = pika.BlockingConnection(parameters)
9channel = connection.channel()

Replace 'username', 'password', 'hostname' and 'vhost' with your actual values.


Course
Beginner
27 lessons
10 hours
System Design Fundamentals

Build a strong foundation in designing scalable, reliable distributed systems.

View the course
System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design