查看日志:
docker logs archery -f --tail=500
发现日志报错:
if result_set[“rows”] > 1000:
TypeError: ‘>’ not supported between instances of ‘NoneType’ and ‘int’
以下是修复方案:
第一步:执行命令切换到archery用户,docker exec -it archery bash
[root@ssshfdsf ~]# docker exec -it archery bash
[root@f360d1a615b2 archery]#
第二步:找到oracle.py
vi /opt/archery/sql/engines/oracle.py
第三步:设置行号
:set nu
第四步:找到 “result_set[“rows”] > 1000“这行代码,应该在865行、836行左右,修改成以下代码
if result_set["rows"] is not None and result_set["rows"] > 1000
第五步:保存退出
:wq
第六步:退出archery用户
exit
第七步:重启
docker restart archery