【问题标题】:Why circus server is not getting start/stop?为什么马戏团服务器没有启动/停止?
【发布时间】:2014-02-26 13:15:44
【问题描述】:

我正在使用 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

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

【问题讨论】:

  • 你能提供你的 circus.ini 文件的样本吗?

标签: python circusd


【解决方案1】:

我在使用这个命令启动 circus 时遇到了类似的问题:

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'

这个错误在构建配置文件中通过 double % 快速修复。

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

【讨论】:

    猜你喜欢
    • 2014-12-16
    • 1970-01-01
    • 1970-01-01
    • 2015-02-17
    • 1970-01-01
    • 2019-08-19
    • 2020-03-02
    • 1970-01-01
    • 2019-09-18
    相关资源
    最近更新 更多