2016-11-14 1 views
0

저는 redis를 백엔드로 사용하고 있으며 각각 자체 셀러리 작업자와 함께 2 개의 가상 env를 가지고 있습니다.2 virtual env + celery + supervisor unix : ///var/run/supervisor.sock 해당 파일이 없습니다.

두 번째 가상 환경의 셀러리 감독관 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

내가 무엇을 찾을 수 있습니다

unix:///var/run/supervisor.sock no such file 

이것은 supervisord의 conf 파일은 다음과 같습니다

내가 다시로드 supervisord 후지고있어 오류입니다 이것을 일으켰다.

무엇이 잘못되었는지 알고 계십니까?

답변

0

시간이 지남에 따라 로그 파일이 누락되었다는 것이 밝혀졌습니다. 필요한 로그 파일을 만들었고 이제는 완벽하게 작동합니다.

다른 사람에게 도움이 될 수 있습니다.