Open scorpp opened 7 months ago
Facing same error with RabbitMQ as broker when visiting Broker page
Facing the same issue with Redis on Redis Cloud
Ensure that the broker_api is set accordingly to your config: example:
--broker="amqp://guest:guest@127.0.0.1:5672/
and
--broker-api="http://127.0.0.1:15672/api/
Note that the port change, as well as the auth isn't present in the settings (if you have one)
i'm not using AMQP. my broker is Redis
Same problem here using Flower flower==2.0.1
with Sentinel+Redis as broker
[E 240723 14:46:33 web:1875] Uncaught exception GET /flower/broker (1.2.3.4)
HTTPServerRequest(protocol='http', host='flower.example.com', method='GET', uri='/flower/broker', version='HTTP/1.1', remote_ip='1.2.3.4')
Traceback (most recent call last):
File "/home/vocalo/.venv/lib/python3.10/site-packages/tornado/web.py", line 1790, in _execute
result = await result
File "/home/vocalo/.venv/lib/python3.10/site-packages/flower/views/broker.py", line 35, in get
queues=queues)
UnboundLocalError: local variable 'queues' referenced before assignment
Quick update: I've also found logs like this:
Unable to get queues: 'unsupported operand type(s) for +: 'NoneType' and 'str''
I was able to fix the issue by setting global_keyprefix = ''
I guess global_keyprefix
is set to None
by default and it makes Broker page fail.
Describe the bug Flower is deployed on Heroku and makes use of Heroku Redis as broker.
Heroku Redis uses self-signed certificates (hence the
broker_use_ssl = {"ssl_cert_reqs": "none"}
part in config below). And Workers / Tasks tabs work fine. Just the broker part is broken.To Reproduce Steps to reproduce the behavior:
Expected behavior Broker info is shown
Screenshots
System information
Command line
floweconfig.py