circus web console 依赖tornado>3.2 无法访问的bug
circus web console 是一个很不错的web 监控circus 工具,但是对于高版本一直存在一个bug
信息如下
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1369, in _stack_context_handle_exception
raise_exc_info((type, value, traceback))
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 314, in wrapped
ret = fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1581, in future_complete
f.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 215, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 230, in wrapper
yielded = next(result)
File "/usr/local/lib/python2.7/dist-packages/circusweb/circushttpd.py", line 164, in post
endpoints = self.get_arguments('endpoint_list', [])
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 398, in get_arguments
assert isinstance(strip, bool)
AssertionError
解决方法
使用固定版本tornado=3.2.2
对应dockerfile 的修改
FROM python:2.7-slim-stretch
LABEL AUTHOR="dalongrong"
LABEL EMAIL="1141591465@qq.com"
RUN apt-get update && apt-get install -y --reinstall build-essential \
&& pip install circus circus-web chaussette \
&& pip uninstall -y tornado \
&& pip install tornado==3.2.2 \
&& apt-get remove -y --purge build-essential \
&& rm -rf /var/lib/apt/lists/*
使用
- 参考代码
https://github.com/rongfengliang/circus-batch-worker-docker-compose
- web 效果
说明
对应docker 镜像我也已经push docker hub 了,可以直接使用 dalongrong/circus:2.7-slim-stretch
参考资料
https://github.com/rongfengliang/circus-batch-worker-docker-compose
https://github.com/circus-tent/circus
https://github.com/circus-tent/circus-web/issues/59
https://github.com/rongfengliang/circus-docker
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
2017-06-10 一款直接时空处理分析的开源数据库---geomesa
2017-06-10 nginx php 配置
2017-06-10 Apache Accumulo
2017-06-10 Kubernetes Helm
2017-06-10 Helm Charts