python - django-supervisor connection refused -
i using supervisor run celery django 1.8.8. setup. using django-supervisor==0.3.4 supervisor==3.2.0
but when restart proecsses, get
unix:///tmp/supervisor.sock refused connection
not able restart processes,
python manage.py supervisor --config-file=setting/staging_supervisor.conf --settings=setting.staging_settings restart
supervisor config file
[supervisord] logfile_maxbytes=10mb ; maximum size of logfile before rotation logfile_backups=3 ; number of backed logfiles loglevel=warn ; info, debug, warn, trace nodaemon=false ; run supervisord daemon minfds=1024 ; number of startup file descriptors minprocs=200 ; number of process descriptors childlogdir=/logs/ ; child log files live [program:celeryd_staging] environment=path="{{ project_dir }}/../../bin" command={{ python }} {{ project_dir }}/manage.py celeryd -l info -c 1 --logfile=/logs/staging-celeryd.log --settings=setting.staging_celery_settings redirect_stderr=false [program:celerybeat_staging] environment=path="{{ project_dir }}/../../bin" command=/{{ python }} {{ project_dir }}/manage.py celerybeat --loglevel=info --logfile=/logs/staging-celerybeat.log --settings=setting.staging_celery_settings redirect_stderr=false [group:tasks] environment=path="{{ project_dir}}/../../bin" programs=celeryd_staging,celerybeat_staging [program:autoreload] exclude=true [program:runserver] exclude=true
got solution. supervisor process not reloaded supervisord in virtual enve ma using django-supervisor package.
once reloaded supervisor process, refused connection error went away.
Comments
Post a Comment