tidb从v6.1.2升级到6.5.0 tidb节点提示端口4000失败["unexpected error"] [error="TiKV version must greater than or equal to 6.2.0-alpha"]

tidb.log 贴一个

tiup ctl:v6.5.0 pd -u http://:2379 store 看看是否有store 的版本不是v6.5的

“count”: 4,
“stores”: [
{
“store”: {
“id”: 1,
“address”: “10.125.79.221:20160”,
“version”: “6.5.0”,
“peer_address”: “10.125.79.221:20160”,
“status_address”: “10.125.79.221:20180”,
“git_hash”: “47b81680f75adc4b7200480cea5dbe46ae07c4b5”,
“start_timestamp”: 1676006874,
“deploy_path”: “/data/tidb-deploy/tikv-20160/bin”,
“last_heartbeat”: 1676012695142619481,
“state_name”: “Up”
},
“status”: {
“capacity”: “299.8GiB”,
“available”: “273.7GiB”,
“used_size”: “7.254GiB”,
“leader_count”: 216,
“leader_weight”: 1,
“leader_score”: 216,
“leader_size”: 9890,
“region_count”: 660,
“region_weight”: 1,
“region_score”: 60872.44971182702,
“region_size”: 30371,
“witness_count”: 0,
“slow_score”: 1,
“start_ts”: “2023-02-10T13:27:54+08:00”,
“last_heartbeat_ts”: “2023-02-10T15:04:55.142619481+08:00”,
“uptime”: “1h37m1.142619481s”
}
},
{
“store”: {
“id”: 2,
“address”: “10.125.77.97:20160”,
“version”: “6.1.0”,
“status_address”: “10.125.77.97:20180”,
“git_hash”: “080d086832ae5ce2495352dccaf8df5d40f30687”,
“start_timestamp”: 1672990741,
“deploy_path”: “/data/tidb-deploy/tikv-20160/bin”,
“last_heartbeat”: 1672990714201399469,
“state_name”: “Offline”
},
“status”: {
“capacity”: “0B”,
“available”: “0B”,
“used_size”: “0B”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 2,
“region_weight”: 1,
“region_score”: 56,
“region_size”: 56,
“witness_count”: 0,
“slow_score”: 0,
“start_ts”: “2023-01-06T15:39:01+08:00”,
“last_heartbeat_ts”: “2023-01-06T15:38:34.201399469+08:00”
}
},
{
“store”: {
“id”: 7,
“address”: “10.125.72.101:20160”,
“version”: “6.5.0”,
“peer_address”: “10.125.72.101:20160”,
“status_address”: “10.125.72.101:20180”,
“git_hash”: “47b81680f75adc4b7200480cea5dbe46ae07c4b5”,
“start_timestamp”: 1676006873,
“deploy_path”: “/data/tidb-deploy/tikv-20160/bin”,
“last_heartbeat”: 1676012694317844300,
“state_name”: “Up”
},
“status”: {
“capacity”: “299.8GiB”,
“available”: “278.6GiB”,
“used_size”: “7.211GiB”,
“leader_count”: 218,
“leader_weight”: 1,
“leader_score”: 218,
“leader_size”: 10465,
“region_count”: 660,
“region_weight”: 1,
“region_score”: 60549.28582054809,
“region_size”: 30371,
“witness_count”: 0,
“slow_score”: 1,
“start_ts”: “2023-02-10T13:27:53+08:00”,
“last_heartbeat_ts”: “2023-02-10T15:04:54.3178443+08:00”,
“uptime”: “1h37m1.3178443s”
}
},
{
“store”: {
“id”: 22001,
“address”: “10.125.76.252:20160”,
“version”: “6.5.0”,
“peer_address”: “10.125.76.252:20160”,
“status_address”: “10.125.76.252:20180”,
“git_hash”: “47b81680f75adc4b7200480cea5dbe46ae07c4b5”,
“start_timestamp”: 1676006871,
“deploy_path”: “/data/tidb-deploy/tikv-20160/bin”,
“last_heartbeat”: 1676012692190305897,
“state_name”: “Up”
},
“status”: {
“capacity”: “199.9GiB”,
“available”: “163.3GiB”,
“used_size”: “2.95GiB”,
“leader_count”: 226,
“leader_weight”: 1,
“leader_score”: 226,
“leader_size”: 10016,
“region_count”: 660,
“region_weight”: 1,
“region_score”: 81139.07259520589,
“region_size”: 30371,
“witness_count”: 0,
“slow_score”: 1,
“start_ts”: “2023-02-10T13:27:51+08:00”,
“last_heartbeat_ts”: “2023-02-10T15:04:52.190305897+08:00”,
“uptime”: “1h37m1.190305897s”
}
}
]
}

就是这个offline 的store 2 它的版本是 v6.10
“store”: {
“id”: 2,
“address”: “10.125.77.97:20160”,
“version”: “6.1.0”,
“status_address”: “10.125.77.97:20180”,
“git_hash”: “080d086832ae5ce2495352dccaf8df5d40f30687”,
“start_timestamp”: 1672990741,
“deploy_path”: “/data/tidb-deploy/tikv-20160/bin”,
“last_heartbeat”: 1672990714201399469,
“state_name”: “Offline”
},
“status”: {
“capacity”: “0B”,
“available”: “0B”,
“used_size”: “0B”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 2,
“region_weight”: 1,
“region_score”: 56,
“region_size”: 56,
“witness_count”: 0,
“slow_score”: 0,
“start_ts”: “2023-01-06T15:39:01+08:00”,
“last_heartbeat_ts”: “2023-01-06T15:38:34.201399469+08:00”
}
},

这么好像不太好搞,我重新搭建一个集群试试

是测试环境吗? 如果是测试环境,可以用命令把这个offline 的store 清除了。
https://docs.pingcap.com/zh/tidb/stable/pd-control

unsafe remove-failed-stores [store-ids | show]

1 个赞

已经按照大佬的说法解决了,噩梦终于结束了

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