rabbitmq / discussions

Please use RabbitMQ mailing list for questions. Issues that are questions, discussions or lack details necessary to investigate them are moved to this repository.
3 stars 4 forks source link

Management API behind AWS ALB responded with a 502 #82

Closed riteshsoni10 closed 4 years ago

riteshsoni10 commented 4 years ago

I am new to RabbitMQ . Just have configured RabbitMQ cluster with HA with traffic being directed using AWS Application Load Balancer

RabbitMQ version : 3.8.3 Erlang version : 22.3

RabbitMQ plugin information via rabbitmq-plugins list

Listing plugins with pattern "." ... Configured: E = explicitly enabled; e = implicitly enabled | Status: = running on rabbit@beta_rabbitmq_node2 |/ [ ] rabbitmq_amqp1_0 3.8.3 [ ] rabbitmq_auth_backend_cache 3.8.3 [ ] rabbitmq_auth_backend_http 3.8.3 [ ] rabbitmq_auth_backend_ldap 3.8.3 [ ] rabbitmq_auth_backend_oauth2 3.8.3 [ ] rabbitmq_auth_mechanism_ssl 3.8.3 [ ] rabbitmq_consistent_hash_exchange 3.8.3 [ ] rabbitmq_event_exchange 3.8.3 [ ] rabbitmq_federation 3.8.3 [ ] rabbitmq_federation_management 3.8.3 [ ] rabbitmq_jms_topic_exchange 3.8.3 [E] rabbitmq_management 3.8.3 [e] rabbitmq_management_agent 3.8.3 [ ] rabbitmq_mqtt 3.8.3 [ ] rabbitmq_peer_discovery_aws 3.8.3 [ ] rabbitmq_peer_discovery_common 3.8.3 [ ] rabbitmq_peer_discovery_consul 3.8.3 [ ] rabbitmq_peer_discovery_etcd 3.8.3 [ ] rabbitmq_peer_discovery_k8s 3.8.3 [ ] rabbitmq_prometheus 3.8.3 [ ] rabbitmq_random_exchange 3.8.3 [ ] rabbitmq_recent_history_exchange 3.8.3 [ ] rabbitmq_sharding 3.8.3 [ ] rabbitmq_shovel 3.8.3 [ ] rabbitmq_shovel_management 3.8.3 [ ] rabbitmq_stomp 3.8.3 [ ] rabbitmq_top 3.8.3 [ ] rabbitmq_tracing 3.8.3 [ ] rabbitmq_trust_store 3.8.3 [e*] rabbitmq_web_dispatch 3.8.3 [ ] rabbitmq_web_mqtt 3.8.3 [ ] rabbitmq_web_mqtt_examples 3.8.3 [ ] rabbitmq_web_stomp 3.8.3 [ ] rabbitmq_web_stomp_examples 3.8.3

Operating system, : Centos 7.6

Using Application Load Balancer to direct traffic from domain to management Port 15672.

Getting Management API returned status code 502 as shown in Screenshot. Screenshot from 2020-03-26 17-13-04

michaelklishin commented 4 years ago

Thank you for your time.

Team RabbitMQ uses GitHub issues for specific actionable items engineers can work on. GitHub issues are not used for questions, investigations, root cause analysis, discussions of potential issues, etc (as defined by this team).

We get at least a dozen of questions through various venues every single day, often light on details. At that rate GitHub issues can very quickly turn into a something impossible to navigate and make sense of even for our team. Because GitHub is a tool our team uses heavily nearly every day, the signal/noise ratio of issues is something we care about a lot.

Please post this to rabbitmq-users.

Thank you.

michaelklishin commented 4 years ago

502 is a response returned by the load balancer (or a proxy, or any other intermediate), not RabbitMQ HTTP API. Management UI displays it regardless since it has no idea if there is an intermediary involved or not.

You can enable HTTP API request logging to observe what requests your nodes actually have received.