flower icon indicating copy to clipboard operation
flower copied to clipboard

Flower web interface empty

Open pepijndevos opened this issue 12 years ago • 16 comments

I'm trying to run Flower to monitor a Celery cluster on Heroku, and a Redis instance in development.

Neither of them shows anything at all. Just tabs with nothing much at all.

I start flower with

flower --port=55957 --broker=amqp://user:[email protected]:10647/uovBHtQdqEkP --broker_api=https://user:[email protected]/management/22282/api/ --basic_auth=pepijn:blabla`

No errors are produced. Just a message that i's connected.and some time-drift warnings.

I start my workers like so:

celery worker --app=spider.config.app --autoscale=500,10 --pool=gevent --events

After adding the --event the "Tasks" tab started showing stuff. However, the other tabs are still completely empty.

screenshot - 010914 - 13 49 08

pepijndevos avatar Jan 09 '14 12:01 pepijndevos

I sometimes have the same problem.

thedrow avatar Jan 09 '14 16:01 thedrow

I'm also having this issue with flower 0.6, running celery 3.1.7, and redis on Ubuntu 12.04 LTS. I get a "Connected to redis://localhost:6379/0" on start, but all tabs are empty. No errors are currently showing up. Various startup commands I've tried:

celery flower --broker=redis://
celery flower --broker=redis://localhost:6379/0
celery flower --broker=redis://localhost:6379/0 --broker_api=redis://localhost:6379/0

masonhugus avatar Jan 09 '14 21:01 masonhugus

I too am getting this issue on celery 3.1.8 and flower 0.6. It appears to connect just fine but no data is displayed on the ui.

scott-coates avatar Jan 19 '14 01:01 scott-coates

Can you provide the debug log? celery flower --debug

mher avatar Jan 19 '14 14:01 mher

Sure thing:

[D 140119 13:14:03 state:79] Inspecting workers...
[I 140119 13:14:06 mixins:225] Connected to redis://[email protected]:123/0
[D 140119 13:14:08 events:110] Enabling events
[D 140119 13:14:13 events:110] Enabling events
[D 140119 13:14:13 state:81] Stats: None
[D 140119 13:14:15 state:83] Registered: None
[D 140119 13:14:17 state:85] Scheduled: None
[D 140119 13:14:18 events:110] Enabling events
[D 140119 13:14:20 state:87] Active: None
[D 140119 13:14:22 state:89] Reserved: None
[D 140119 13:14:23 events:110] Enabling events
[D 140119 13:14:25 state:91] Revoked: None
[D 140119 13:14:28 events:110] Enabling events
[D 140119 13:14:28 state:93] Ping: None
[D 140119 13:14:31 state:95] Active queues: None
[D 140119 13:14:33 events:110] Enabling events
[D 140119 13:14:33 state:98] Conf: None
[D 140119 13:14:33 state:105] Broker queues: []
[D 140119 13:14:33 state:79] Inspecting workers...
[D 140119 13:14:36 state:81] Stats: None
[D 140119 13:14:38 events:110] Enabling events
[D 140119 13:14:41 state:83] Registered: None
[D 140119 13:14:43 events:110] Enabling events
[D 140119 13:14:43 state:85] Scheduled: None
[D 140119 13:14:46 state:87] Active: None
[D 140119 13:14:48 events:110] Enabling events
[D 140119 13:14:49 state:89] Reserved: None
[D 140119 13:14:52 state:91] Revoked: None
[D 140119 13:14:53 events:110] Enabling events
[D 140119 13:14:54 state:93] Ping: None
[D 140119 13:14:57 state:95] Active queues: None
[D 140119 13:14:58 events:110] Enabling events
[D 140119 13:15:00 state:98] Conf: None
[D 140119 13:15:00 state:105] Broker queues: []
[D 140119 13:15:00 state:79] Inspecting workers...
[D 140119 13:15:00 state:149] Resuming inspecting workers...

scott-coates avatar Jan 19 '14 18:01 scott-coates

I am no longer receiving this issue. It was a misunderstanding on my part.

scott-coates avatar Jan 20 '14 23:01 scott-coates

I am still having this issue.

The worker tab sometimes has stuff in it, but oftentimes none or stale info. The tasks tab seems to work fine. The Broker tab shows one broker, this is okay it seems. The Monitor tab is empty.

I installed Flower mostly for the Monitor tab, so this is pretty useless.

The top graph shows the(stale) workers and time slices, but no data. screenshot - 012714 - 14 28 02

The broker graph shows something, but it's not very useful. screenshot - 012714 - 14 28 33

@scoarescoare can you share what you did to resolve it?

pepijndevos avatar Jan 27 '14 13:01 pepijndevos

Well my initial issue was that I could not see much data in the worker tabs as well. My misunderstanding was in how flower received data from the workers.

I didn't spend much time looking in the codebase, but I believe (looking for confirmation here) the way flower receives its data from the workers is by sending out messages asking for updates to the broker (rabbit in my case) and all of the workers will then consume this message.

When they receive this message, they'll send back messages to the broker and flower will finally hear back from all of the workers.

If you're workers are busy, they will not process this request from flower for a while, and you will therefore see stale data.

I didn't really have to fix anything, just wait a bit for my workers to send back updates.

scott-coates avatar Jan 27 '14 13:01 scott-coates

That might be the case here as well. Though I've waited for quite some time and still nothing.

I ran with --debug for a while in case it helps

http://sprunge.us/UIIY

pepijndevos avatar Jan 27 '14 13:01 pepijndevos

@pepijndevos as I can understand from the log workers reply to flower requests very slowly (3 seconds for each request). I'd suggest to increase the inspect interval with --inspect_interval option and open monitor page using updateInterval param ( http://localhost:5555/monitor?updateInterval=15000, the default value is 3 seconds).

mher avatar Jan 27 '14 14:01 mher

I increased the inspect_interval to 10000, but I had to krank the updateinterval to 30000 before anything showed. Kind of not so nice. But hey, it does something! It still only shows tasks from one worker though.

Can I set the updateinterval default value somewhere?

Why does this work so slowely? Because my workers are overloaded?

pepijndevos avatar Jan 28 '14 12:01 pepijndevos

I am having same issue. flower 0.6.0, celery 3.1.9, rabbitmq 3.2.4, mac 10.9.2. First page shows the worker, online/offline as it should, but no info about currently running tasks or completed tasks. Under Workers -> limits i see all my tasks. Aside from that, no info whatsoever.

I tried running with --broker_api=http://guest:guest@localhost:15672/api/, but ,although i can access that point via browser, i get [E 140318 15:31:41 state:108] Failed to inspect the broker: 401 Client Error: Unauthorized. When i run same with --debug this is what i see:

[D 140318 15:33:09 state:109] 401 Client Error: Unauthorized
    Traceback (most recent call last):
      File "/Users/anatr/Projects/FanWaze/ArenaWaze/lib/python2.7/site-packages/flower/state.py", line 102, in run
        broker_queues = broker.queues(self.active_queue_names)
      File "/Users/anatr/Projects/FanWaze/ArenaWaze/lib/python2.7/site-packages/flower/utils/broker.py", line 70, in queues
        r.raise_for_status()
      File "/Users/anatr/Projects/FanWaze/ArenaWaze/lib/python2.7/site-packages/requests/models.py", line 773, in raise_for_status
        raise HTTPError(http_error_msg, response=self)
    HTTPError: 401 Client Error: Unauthorized

neara avatar Mar 18 '14 13:03 neara

I had the same problem. Turns out I have another application running under port 5555. The solution was to use a different port number and --address=127.0.0.1.

cdesales avatar Mar 26 '14 13:03 cdesales

I have the same problem, everything works well except no data in web page. The flower version as follows: flower --version 0.7.0 3.1.11 (Cipater) flower -> 0.7.0 software -> celery:3.1.11 (Cipater) kombu:3.0.18 py:3.4.0 billiard:3.3.0.17 py-amqp:1.4.5 platform -> system:Linux arch:64bit, ELF imp:CPython loader -> celery.loaders.default.Loader settings -> transport:amqp results:disabled

Redis version is 2.8.9, MongoDB version is 2.6.1.

jaggerwang avatar Jun 07 '14 03:06 jaggerwang

The new dashboard should resolve all those issues. It doesn't use celery inspect commands. Please try the master version.

mher avatar Sep 06 '14 16:09 mher

@mher However, the version 0.9.2 still has this problem.

pinple avatar Jun 14 '18 07:06 pinple