主管始终在WebFaction中返回退出状态127 [英] supervisord always returns exit status 127 at WebFaction

查看:386
本文介绍了主管始终在WebFaction中返回退出状态127的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在拖尾日志时,我不断从webFaction的主管那里收到以下错误:

I keep getting the following errors from supervisord at webFaction when tailing the log:

INFO exited: my_app (exit status 127; not expected)
INFO gave up: my_app entered FATAL state, too many start retries too quickly

这是我的supervisor.conf:

Here's my 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

我要从supervisor.conf所在的目录开始supervisor:

I'm starting supervisord from the same directory as supervisord.conf:

$ supervisord -c ./supervisord.conf

但是我似乎找不到正确的设置组合.我需要能够做三件事:

but I can't seem to find the right combination of settings. I need to be able to do three things:

  1. 在后台启动我的芹菜工人并保持他们的运转.
  2. 当我部署代码时,请停止芹菜工作者.
  3. 部署完成后重新启动celery worker.

但是,在解决错误之前,我无法执行任何操作.我在做什么错了?

But, I can't do any of that until I resolve the error. What am I doing wrong?

推荐答案

退出代码127表示未找到命令":

Exit code 127 means "command not found":

http://www.tldp.org/LDP/abs/html/exitcodes.html

尝试将完整路径传递给celery命令:

Try passing the full path to the celery command:

command=/home/something/bin/celery worker -A my_app --concurrency=3 --loglevel=debug

此外,尝试在[program:x]部分中设置redirect_stderrstdout_logfile选项,以捕获错误消息并简化调试.

Also, try setting the redirect_stderr and stdout_logfile options in your [program:x] section to capture the error message and make debugging easier.

这篇关于主管始终在WebFaction中返回退出状态127的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆