为什么马戏团服务器没有开始/停止?

时间:2014-02-03 06:10:27

标签: 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

任何人都应该知道这个错误。请提前帮助我..

1 个答案:

答案 0 :(得分:1)

使用此命令启动马戏时我遇到了类似的问题:

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)

这意味着马戏团无法与马戏团交流。我有很多头疼的问题,但之后只是在没有--daemon参数的情况下开始马戏团,就像这样:

bin/circusd

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

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

这个错误很快被buildout配置文件中的双倍修复。

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