在拖尾日志时,我一直在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
这是我的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
我从supervisord.conf与
相同的目录中启动supervisord$ supervisord -c ./supervisord.conf
但我似乎无法找到正确的设置组合。我需要做三件事:
但是,在解决错误之前,我无法做任何事情。我做错了什么?
答案 0 :(得分: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
另外,请尝试在redirect_stderr
部分设置stdout_logfile
和[program:x]
选项,以捕获错误消息并简化调试。