-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RabbitMQ management api can't connect #1036
Comments
+1 |
Hi, from
to
HTH |
@pinoatrome it's just a variable name change, would you mind sharing how it would fix the problem? (the URL is still the same) |
@marcelolima This is what I got from a debugging session: in class BrokerView(BaseHandler) (views/broker.py:14)
results in a not null value for http_api only if FLOWER_BROKER_API_URL is specified. This avoids to build a api_url using the default pattern in class RabbitMQ(BrokerBase) (utils/broker.py: 41)
if Broker is instantiated with a null http_api argument (not specifying FLOWER_BROKER_API_URL) the default value assigned to http_api is used: 'http://guest:guest@localhost:5672/api//' <-- is not using the 'management' port (15672) but the applicative port (5672)
Then in queues this http_api results in url with port 5672 instead of 15672; when invoked generates a HTTPClientError with message:
Hope this Helps |
thank you, @pinoatrome ! I was passing: |
I think that there is a significant series of inconsistencies with using a dockerized flower.
Can someone point me to a working configuration of django, database, celery, rabbitmq and flower in docker? Flower is looking to be coming out of my stack at this point, having spent a day trying to resolve this one. |
I started seeing all of these issues, since I added a vhost |
Those who're still wondering and running flower with celery flower command directly, ie like
and facing this problem that isn't able to get queues in broker tab of flower, can add a little extra argument, and then it'll work.
So now, full command should be:
Here, if your rabbitmq and flower running on same server, you can build urls with localhost in broker and broker_api parameters. Also, in broker we're passing rabbitmq-server port and in broker_api we're passing rabbitmq management plugins port. |
Thank @JayDarji 🙏 $ celery flower broker-api="http://username:password@rabbitmq-server-name:15672/api/" The correct one should be $ celery flower --broker_api="http://username:password@rabbitmq-server-name:15672/api/vhost" |
wow, you answer really solved my issue. |
@adv27 answer solved it, thank you! |
Describe the bug
When opening the "broker" tab, nothing is shown.
To Reproduce
docker-compose up
Expected behavior
Flower showing rabbitmq management api connection.
Actual behavior
The text was updated successfully, but these errors were encountered: