Bra*_*don 4 python webfaction celery supervisord
在拖尾日志时,我不断从webFaction的supervisord获得以下错误:
INFO exited: my_app (exit status 127; not expected)
INFO gave up: my_app entered FATAL state, too many start retries too quickly
Run Code Online (Sandbox Code Playgroud)
这是我的supervisord.conf:
[unix_http_server]
file=/home/btaylordesign/tmp/supervisord.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///home/btaylordesign/tmp/supervisord.sock
[supervisord]
logfile=/home/btaylordesign/tmp/supervisord.log
logfile_maxbytes=50MB
logfile_backups=5
loglevel=info
nodaemon=false
pidfile=/home/btaylordesign/tmp/supervisord.pid supervisord.pid
[program:my_app]
directory=/home/btaylordesign/webapps/my_app/my_app
command=celery worker -A my_app --concurrency=3 --loglevel=debug
Run Code Online (Sandbox Code Playgroud)
我从supervisord.conf的同一目录开始监督:
$ supervisord -c ./supervisord.conf
Run Code Online (Sandbox Code Playgroud)
但我似乎无法找到正确的设置组合.我需要做三件事:
但是,在解决错误之前,我无法做任何事情.我究竟做错了什么?
Ste*_*lla 12
退出代码127表示"未找到命令":
http://www.tldp.org/LDP/abs/html/exitcodes.html
尝试传递celery命令的完整路径:
command=/home/something/bin/celery worker -A my_app --concurrency=3 --loglevel=debug
Run Code Online (Sandbox Code Playgroud)
此外,尝试在您的部分中设置redirect_stderr和stdout_logfile选项[program:x]以捕获错误消息并使调试更容易.