supervisord配置rq队列时报错FATAL Exited too quickly

本文共有655个字,关键词:

问题:使用supervisord管理rq队列进程时,启动不起来,报FATAL      Exited too quickly (process log may have details)的错误
解决:配置文件出错
方法:
一、在配置文件中添加redirect_stderr=true,将错误信息重定向到日志文件中
二、此时会发现报错RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment.等等信息,这是因为使用python3的原因,导致编码出现问题
在配置文件中添加environment=LC_ALL="C.UTF-8",LANG="C.UTF-8"

下面是我的最终配置文件
[program:rq]
user=qingcheng
command=/alidata/www/dongman/website/.venv/bin/rqworker --path /alidata/www/dongman/website/jobs
redirect_stderr=true
stdout_logfile=/alidata/www/dongman/website/logs/rq_stdout.log
environment=LC_ALL="C.UTF-8",LANG="C.UTF-8"

版权声明:本文为作者原创,如需转载须联系作者本人同意,未经作者本人同意不得擅自转载。
添加新评论
暂无评论