tikv-importer 启动报错 failed to start memory monitor: Error: descriptor Desc

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:3.0.14
  • 【问题描述】:通过tidb_ansible部署tidb-lightning,启动importer报错 启动脚本sh start_importer.sh,报错如下:[2020/05/18 15:59:44.443 +08:00] [FATAL] [setup.rs:64] [“failed to start memory monitor: Error: descriptor Desc { fq_name: “process_virtual_memory_bytes”, help: “Virtual memory size in bytes.”, const_label_pairs: [], variable_labels: [], id: 1166094170200363441, dim_hash: 18077976125237009095 } already exists with the same fully-qualified name and const label values”]

若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。

{‘tidb_log_dir’: ‘{{ deploy_dir }}/log’, ‘dummy’: None, ‘tidb_port’: 4000, ‘tidb_status_port’: 10080, ‘tidb_cert_dir’: ‘{{ deploy_dir }}/conf/ssl’}

系统信息
+----------------+-----------------------+
|      Host      |        Release        |
+----------------+-----------------------+
| db_tikv_102232 | 3.10.0-957.el7.x86_64 |
| db_tikv_102233 | 3.10.0-957.el7.x86_64 |
| db_tikv_102234 | 3.10.0-957.el7.x86_64 |
+----------------+-----------------------+
TiDB 集群信息
+---------------------+--------------+------+----+------+
|     TiDB_version    | Clu_replicas | TiDB | PD | TiKV |
+---------------------+--------------+------+----+------+
| 5.7.25-TiDB-v3.0.14 |      3       |  1   | 1  |  3   |
+---------------------+--------------+------+----+------+
集群节点信息
+------------+-------------+
|  Node_IP   | Server_info |
+------------+-------------+
| instance_0 |     tikv    |
| instance_1 |     tikv    |
| instance_2 |   tidb+pd   |
| instance_3 |     tikv    |
+------------+-------------+
容量 & region 数量
+---------------------+-----------------+--------------+
| Storage_capacity_GB | Storage_uesd_GB | Region_count |
+---------------------+-----------------+--------------+
|        435.14       |       0.13      |      63      |
+---------------------+-----------------+--------------+
QPS
+---------+----------------+-----------------+
| Clu_QPS | Duration_99_MS | Duration_999_MS |
+---------+----------------+-----------------+
|   0.00  |      7.51      |       7.95      |
+---------+----------------+-----------------+
热点 region 信息
+---------+----------+-----------+
|  Store  | Hot_read | Hot_write |
+---------+----------+-----------+
| store-1 |    0     |     0     |
| store-5 |    0     |     0     |
| store-4 |    0     |     0     |
+---------+----------+-----------+
磁盘延迟信息
+--------+------------+-------------+--------------+
| Device |  Instance  | Read_lat_MS | Write_lat_MS |
+--------+------------+-------------+--------------+
|  dm-0  | instance_0 |     nan     |    22.00     |
|  dm-0  | instance_1 |     nan     |    27.00     |
|  dm-0  | instance_3 |     nan     |    38.75     |
|  dm-1  | instance_0 |     nan     |     nan      |
|  dm-1  | instance_1 |     nan     |     nan      |
|  dm-1  | instance_3 |     nan     |     nan      |
|  dm-2  | instance_0 |     nan     |    17.63     |
|  dm-2  | instance_1 |     nan     |    12.00     |
|  dm-2  | instance_3 |     nan     |    15.05     |
|  sda   | instance_0 |     nan     |    17.88     |
|  sda   | instance_1 |     nan     |    17.00     |
|  sda   | instance_3 |     nan     |    17.71     |
|  sr0   | instance_0 |     nan     |     nan      |
|  sr0   | instance_1 |     nan     |     nan      |
|  sr0   | instance_3 |     nan     |     nan      |
+--------+------------+-------------+--------------+

稍等,会尽快答复,多谢

你好,

抱歉,目前确认为新版本引入问题,请使用 3.0.13 版本看是否可解决这个问题,此问题下个版本修复,https://github.com/tikv/importer/pull/64

这边也可以使用 4.0.0-rc.1 来测试,此版本没有问题。

好的,感谢及时的回复。

:wink:

新的版本也有

这是啥问题。

刚使用4.0.0.RC1是可以的,不过目前TiDB的版本是RC2了

3.0 目前还是 open 状态:https://github.com/tikv/importer/pull/65

4.0 建议使用 rc.1 版本,rc.2 也是有这个问题,ga 以后会好,具体可以看下 pr,感谢反馈。

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