Python中文
首页
教程
问答
标签
搜索
登录
注册
Gunicorn worker定期崩溃:“套接字未注册”
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>有时(几小时一次)gunicorn worker因以下错误而失败:</p> <pre><code>[2014-10-29 10:21:54 +0000] [4902] [INFO] Booting worker with pid: 4902 [2014-10-29 13:15:24 +0000] [4902] [ERROR] Exception in worker process: Traceback (most recent call last): File "/opt/test/env/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker worker.init_process() File "/opt/test/env/local/lib/python2.7/site-packages/gunicorn/workers/gthread.py", line 109, in init_process super(ThreadWorker, self).init_process() File "/opt/test/env/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 120, in init_process self.run() File "/opt/test/env/local/lib/python2.7/site-packages/gunicorn/workers/gthread.py", line 177, in run self.murder_keepalived() File "/opt/test/env/local/lib/python2.7/site-packages/gunicorn/workers/gthread.py", line 149, in murder_keepalived self.poller.unregister(conn.sock) File "/opt/test/env/local/lib/python2.7/site-packages/trollius/selectors.py", line 408, in unregister key = super(EpollSelector, self).unregister(fileobj) File "/opt/test/env/local/lib/python2.7/site-packages/trollius/selectors.py", line 243, in unregister raise KeyError("{0!r} is not registered".format(fileobj)) KeyError: '<socket._socketobject object at 0x7f823f454d70> is not registered' ... ... [2014-10-29 13:15:24 +0000] [4902] [INFO] Worker exiting (pid: 4902) [2014-10-29 13:15:24 +0000] [5809] [INFO] Booting worker with pid: 5809 ... </code></pre> <p>配置:</p> ^{pr2}$ <p>我用的是:</p> <pre><code>Python 2.7.6 gunicorn==19.1.1 trollius==1.0.2 futures==2.2.0 </code></pre> <p>有什么想法吗?原因是什么?怎么解决?在</p> <p>谢谢!在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>我在大约一年前报告了一个gunicorn错误,修复应该在gunicorn 19.6.0及更高版本中:<a href="https://github.com/benoitc/gunicorn/issues/1258" rel="nofollow noreferrer">https://github.com/benoitc/gunicorn/issues/1258</a></p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在Excel中读取公式并将其转换为Python中的计算?
8 回答
如何在excel中读取嵌入的excel,并将嵌入文件中的信息存储在主excel文件中?
6 回答
如何在Excel中返回未知列长度的非空顶行列值?
1 回答
如何在excel中选择数据列?
6 回答
如何在Excel中通过脚本自动为一列中的所有单元格创建公共别名
9 回答
如何在excel中高效格式化范围AttributeError:“tuple”对象没有属性“fill”
7 回答
如何在excel单元格中编写python函数
6 回答
如何在excel单元格中自动执行此python代码?
6 回答
如何在excel工作表中创建具有相应值的新列
7 回答
如何在Excel工作表中复制条件为单元格颜色的python数据框?
6 回答
如何在Excel工作表中循环
7 回答
如何在excel工作表中打印嵌套词典?
2 回答
如何在excel工作表中绘制所有类的继承树?
7 回答
如何在Excel工作表中自动调整列宽?
8 回答
如何在excel工作表中追加并进一步处理
7 回答
如何在excel工作表之间进行更改?
2 回答
如何在excel或csv上获取selenium数据?
5 回答
如何在Excel或Python中将正确的值赋给正确的列
10 回答
如何在excel或python中提取单词周围的文本?
4 回答
如何在excel或python中转换来自Jira的3w 1d 4h的fromat数据?
4 回答