Skip to content
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

Flower as CentOS service with is_persistent flag and db configurations doesn't load dashboard data and can't open worker infor #787

Closed
farhan1988 opened this issue Mar 14, 2018 · 1 comment
Labels

Comments

@farhan1988
Copy link

Hi Team,

I have created a flower service in my local

/etc/systemd/system/flower.service

[Unit]
Description=Flower Celery Service

[Service]
User=vagrant
Group=vagrant
WorkingDirectory=/home/vagrant/
ExecStart=/usr/bin/flower --/var/log/supervisord.log
Restart=on-failure
Type=simple

[Install]
WantedBy=multi-user.target

/home/vagrant/flowerconfig.py

port		=	5000
broker 		=	'redis://:<password>@192.168.100.20:6379/0'
broker_api 	=	'redis://:<password>@192.168.100.20:6379/0'
basic_auth 	=	['sun:flower']
persistent 	=	True
db		=	'/home/vagrant/flower.db'

status of service is Green

[vagrant@node1 ~]$ sudo systemctl status flower
● flower.service - Flower Celery Service
   Loaded: loaded (/etc/systemd/system/flower.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-03-14 10:43:15 UTC; 7min ago
 Main PID: 6578 (flower)
   CGroup: /system.slice/flower.service
           └─6578 /usr/bin/python2 /usr/bin/flower --/var/log/supervisord.log

Mar 14 10:43:18 node1 flower[6578]: [u'celery.accumulate',
Mar 14 10:43:18 node1 flower[6578]: u'celery.backend_cleanup',
Mar 14 10:43:18 node1 flower[6578]: u'celery.chain',
Mar 14 10:43:18 node1 flower[6578]: u'celery.chord',
Mar 14 10:43:18 node1 flower[6578]: u'celery.chord_unlock',
Mar 14 10:43:18 node1 flower[6578]: u'celery.chunks',
Mar 14 10:43:18 node1 flower[6578]: u'celery.group',
Mar 14 10:43:18 node1 flower[6578]: u'celery.map',
Mar 14 10:43:18 node1 flower[6578]: u'celery.starmap']
Mar 14 10:43:18 node1 flower[6578]: [I 180314 10:43:18 mixins:224] Connected to redis://:**@192.168.100.20:6379/0

Everything so far works fine.. Except for two issues

Issue #1 --> Unable to see Dashboard data after the service refresh but /tasks shows list of data from previous executions..

Dashboard
dashboard

Tasks
tasks

Issue #2 --> Unable to open the worker information page (keeps loading)
worker infor

Please let me know if you need more information and kindly guide me on how to extract any further information if there is any required.

Regards,
Farhan

@mher
Copy link
Owner

mher commented Jul 5, 2020

This feature is not supported. Dashboard doesn't save its state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants