我使用redis作为后端,我有2个虚拟env,每个都有自己的芹菜工人。
当我添加第二个虚拟环境的芹菜supervisord conf时,我有一个奇怪的问题。
这是重新加载supervisord后我遇到的错误:
unix:///var/run/supervisor.sock no such file
这是supervisord conf文件:
[program:shopify-celery]
command=dir/bin/celery worker --app=app -l warning -Q queue -n worker -P eventlet -c 3
directory=/dir
user=user
group=webapps
numprocs=1
stdout_logfile=/dir/logs/celery-worker.log
stderr_logfile=/dir/logs/celery-worker.log
autostart=true
autorestart=true
startsecs=10
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600pip freez
; When resorting to send SIGKILL to the program to terminate it
; send SIGKILL to its whole process group instead,
; taking care of its children as well.
;killasgroup=true
; if rabbitmq is supervised, set its priority higher
; so it starts first
;priority=998

我无法找到可能导致此问题的原因。
你知道出了什么问题吗?
答案 0 :(得分:0)
经过几个小时的努力,结果证明丢失的日志文件完成了所有这些。 我创建了所需的日志文件,现在工作正常。
这可能会帮助别人。