cmu-sei / Polar

Polar is a secure and scalable knowledge graph framework, designed to address the challenges posed by building big data systems in highly regulated environments, and improve observability for DevSecOps Organizations.
Other
9 stars 1 forks source link

attempting to connect to RabbitMQ using the provided URL (amqps://rabbitmq:5671/%2f?auth_mechanism=external), but encountering the UnexpectedEof error. #9

Open RajikaJain opened 3 months ago

RajikaJain commented 3 months ago

Reproduction Steps: Run last stage - source env_setup.sh file, run ./observer_entrypoint Error Message - connecting to: amqps://rabbitmq:5671/%2f?auth_mechanism=external thread 'main' panicked at /home/rajika/Polar/Polar4/Polar/src/agents/gitlab/common/src/lib.rs:154:116: Connection error: IOError(Kind(UnexpectedEof)), Rabbit MQ is working on localhost://15672 and neo4j is up and running on localhost://7474

env_setup.sh file looks like - export GRAPH_ENDPOINT="neo4j://neo4j:7687" export BROKER_ENDPOINT="amqps://rabbitmq:5671/%2f?auth_mechanism=external"

sei-dshepard commented 3 months ago

Hello.

Looking at the error text and the source location, I'd guess that either you're not able to correct resolve "rabbitmq" or your RabbitMQ instance isn't running. From a shell, try running a:

ping rabbitmq

If it doesn't at least give you an IP that it is attempting to connect to then name resolution is failing. (Did you perform our hosts file configuration?) If you do at least see an IP and it doesn't connect, then you might have a firewall issue. I note that 5671 is the rabbitmq port, not 15672. 15672 is the UI interface for rabbitmq management, Polar doesn't use this port.

In either case, we should do better to output a more friendly error message on connection failure and exit gracefully, instead of panicking.