python - 为什么马戏团服务器没有启动/停止?

标签 python circusd

我正在使用 circus 服务器将 python 程序作为守护进程运行。但是现在马戏团没有开始或停止,甚至我不知道马戏团的状态。

我试过:

sudo circusctl restart <name_of_repository>
sudo circusctl stop
sudo circusctl start
sudo circusctl status

但是所有的命令都给我以下错误:

Timed out. Try to raise the --timeout value

有人知道这个错误吗?请帮我提前谢谢..

最佳答案

我在用这个命令启动马戏团时遇到了类似的问题:

bin/circusd --daemon

Cirsusd 没有启动 ( ps ax | grep circus ) 没有给出任何信息。但是没有出现错误。和

bin/circusctl status

给我回复

Timed out.
A time out usually happens in one of those cases:
#1 The Circus daemon could not be reached.
#2 The Circus daemon took too long to perform the operation
For #1, make sure you are hitting the right place
by checking your --endpoint option.
For #2, if you are not expecting a result to
come back, increase your timeout option value
(particularly with waiting switches)

这意味着 circusctl 无法与 circus 通信。我很头疼,但后来只是在没有 --daemon 参数的情况下开始了 circusd,就像这样:

bin/circusd

马戏团现在给了我真正的错误:

backports.configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%Y-%m-%d %H:%M:%S'

此错误很快被构建配置文件中的双 % 修复。

所以真正的问题是 circusd 在使用 --daemon 参数启动时没有给出任何错误。

关于python - 为什么马戏团服务器没有启动/停止?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21520811/

相关文章:

python - Get Thin (bundle exec Thin) 与 Circus 一起使用

python - 使用 Python 客户端访问 Google Analytics 自定义报告

python - Python 中 mkdir 和 makedirs 中的 FileExistsError 即使目录不存在

python - 提高单行 Pandas read_csv 的速度

python - 我如何在 Python 中绘制这样的图表?

python - SQLAlchemy 双向关系关联代理

python - 如何找到circusd的pid文件?

python - 为什么 Dramatiq 在 Docker 容器中启动失败?