我正在运行cherokee,使用uwsgi为django应用提供服务。自从升级到Cherokee1.2.x之后,我就有了一些奇怪的行为。
在Cheroke1.2.x之前,设置运行良好,而且我没有更改任何配置。
现在的问题是,当uwsgi没有运行并且我试图加载django应用程序站点时,我首先得到一个503错误。随后的请求工作正常。查看日志,我发现cherokee正在生成多个uwsgi实例,这似乎就是问题所在。
我已经发布了cherokee.error日志这里
cherokee似乎正在产生多个uwsgi实例:
probably another instance of uWSGI is running on the same address.我对uwsgi的信任是:
<pidfile>/home/my_home/my_project/uwsgi.pid</pidfile>
<vacuum />
<processes>4</processes>
<harakiri>30</harakiri>
<master />问题的另一个症状是,在503之后,然后成功地启动了uwsgi,我没有PID文件。这是因为uwsgi的其他实例启动后失败,在退出时删除PID文件:
binding on TCP port: 45611
probably another instance of uWSGI is running on the same address.
bind(): Address already in use [socket.c line 341]
VACUUM: pidfile removed.因此,总的来说,问题是:
谷歌对probably another instance of uWSGI is running on the same address的搜索只与uwsgi源代码相匹配,所以我似乎是唯一一个经历过这种情况的人。
我在具有相同设置的多台计算机上经历了相同的问题。
有什么想法吗?
软件版本:
发布于 2011-03-16 13:04:47
看起来这是一个cherokee虫修复在后备箱:
http://svn.cherokee-project.com/listing.php?repname=Cherokee&peg=6382&rev=6380
我从SVN下载了主干,我不再遇到这个问题。
https://stackoverflow.com/questions/5322395
复制相似问题