Tidb启动报错

为提高效率,提问时请尽量提供详细背景信息,问题描述清晰可优先响应。以下信息点请尽量提供:

  • 系统版本 & kernel 版本:centos 7.3
  • TiDB 版本:2.1.17
  • 磁盘型号:
  • 集群节点分布:3tidv 2pd 2tidb
  • 数据量 & region 数量 & 副本数:3
  • 集群 QPS、.999-Duration、读写比例:
  • 问题描述(我做了什么):跑命令ansible-playbook start.yml 出现报错

报错文本如下:

Ansible FAILED! => playbook: start.yml; TASK: import grafana dashboards - run import script; message: {“changed”: true, “cmd”: “./grafana-config-copy.py”, “delta”: “0:00:00.471210”, “end”: “2019-09-19 10:24:43.055533”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-09-19 10:24:42.584323”, “stderr”: “Traceback (most recent call last): File “./grafana-config-copy.py”, line 141, in dashboard = fill_dashboard_with_dest_config(dashboard, dest, type_) File “./grafana-config-copy.py”, line 73, in fill_dashboard_with_dest_config for row in dashboard[‘rows’]: KeyError: u’rows’”, “stderr_lines”: [“Traceback (most recent call last):”, " File “./grafana-config-copy.py”, line 141, in “, " dashboard = fill_dashboard_with_dest_config(dashboard, dest, type_)”, " File “./grafana-config-copy.py”, line 73, in fill_dashboard_with_dest_config", " for row in dashboard[‘rows’]:", “KeyError: u’rows’”], “stdout”: “[load] from <node.json>:node [import] <Test-Cluster-Node_exporter> to [Test-Cluster] … success [load] from <binlog.json>:binlog”, “stdout_lines”: ["[load] from <node.json>:node", “[import] <Test-Cluster-Node_exporter> to [Test-Cluster] … success”, “[load] from <binlog.json>:binlog”]}

集群正常启动,grafana也正常启动,但是出现了报错

是否修改过这个文件,另外,python 版本是哪个呢?可以看下日志中是否有其他的异常。

看你贴的日志 “./grafana-config-copy.py” 73行报错了。JSON解析错误

你是不是改了dashboards这个词典?

误操作,把tidb-ansible的配置文件删了,2.1版本的 ,不记得是哪个2.1版本了,所以新下了2.1.17版本的更新覆盖,启动grafana时报了这个错,除了配置文件,我没有改过任何东西。不过现在直接升级到3.0似乎覆盖掉了,没有任何报错,我猜想是不是升级的时候因为原来已经有一个dashboard模板导致同版本,名称相同的导致覆盖失败?但是因为3.0的dashboard似乎改版了,所以直接覆盖了没有任何报错

在2.1升级到3.0的过程中没有出现报错,似乎直接覆盖了。

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。