tidb初次安装报错tikv链接失败

[root@sselyp tidb]# curl --proto ‘=https’ --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5150k 100 5150k 0 0 796k 0 0:00:06 0:00:06 --:–:-- 1208k
Successfully set mirror to https://tiup-mirrors.pingcap.com
Detected shell: bash
Shell profile: /root/.bash_profile
Installed path: /root/.tiup/bin/tiup

Have a try: tiup playground

[root@sselyp tidb]# cd /root/.tiup/bin/tiup
-bash: cd: /root/.tiup/bin/tiup: Not a directory
[root@sselyp tidb]# source /root/.bash_profile
[root@sselyp tidb]# tiup playground
Checking updates for component playground… Timedout (after 2s)

Note: Version constraint is resolved to v8.5.0. If you’d like to use other versions:

Use exact version:      tiup playground v7.1.0
Use version range:      tiup playground ^5
Use nightly:            tiup playground nightly

Start pd instance: v8.5.0
Start tikv instance: v8.5.0
Start tidb instance: v8.5.0
Waiting for tidb instances ready
127.0.0.1:4000 … Done
Start tiflash instance: v8.5.0
Waiting for tiflash instances ready
127.0.0.1:3930 … ⠸
tikv quit: signal: killed
[2024/12/26 12:54:39.743 +08:00] [WARN] [peer.rs:744] [“[region 62] 63 handle 3 peer messages ("Tick", 3), detail: None”] [takes=1710] [thread_id=100]
[2024/12/26 12:54:50.379 +08:00] [ERROR] [util.rs:721] [“connect failed”] [error=“Grpc(RpcFailure(RpcStatus { code: 4-DEADLINE_EXCEEDED, message: "Deadline Exceeded", details: }))”] [endpoints=http://127.0.0.1:2379] [thread_id=12]
[2024/12/26 12:55:08.848 +08:00] [WARN] [peer.rs:744] [“[region 2] 3 handle 2 peer messages ("Tick", 2), detail: None”] [takes=1853] [thread_id=101]
[2024/12/26 12:55:21.232 +08:00] [WARN] [peer.rs:744] [“[region 116] 117 handle 2 peer messages ("Tick", 2), detail: None”] [takes=1120] [thread_id=100]
[2024/12/26 12:55:41.005 +08:00] [WARN] [peer.rs:744] [“[region 118] 119 handle 2 peer messages ("Tick", 2), detail: None”] [takes=1292] [thread_id=101]
[2024/12/26 12:56:01.312 +08:00] [ERROR] [pd.rs:1352] [“store heartbeat failed”] [err=“Grpc(RpcFailure(RpcStatus { code: 4-DEADLINE_EXCEEDED, message: "Deadline Exceeded", details: }))”] [thread_id=30]
[2024/12/26 12:56:17.713 +08:00] [WARN] [store.rs:1216] [“[store 1] handle 22 pending peers include 0 ready, 0 entries, 0 messages and 0 snapshots”] [takes=144148] [thread_id=100]
[2024/12/26 12:56:34.485 +08:00] [WARN] [client.rs:155] [“failed to update PD client”] [error=“Other("[components/pd_client/src/util.rs:727]: failed to connect to [name: \"pd-0\" member_id: 3474484975246189105 peer_urls: \"http://127.0.0.1:2380\" client_urls: \"http://127.0.0.1:2379\"]")”] [thread_id=12]
[2024/12/26 12:56:45.224 +08:00] [WARN] [peer.rs:744] [“[region 86] 87 handle 3 peer messages ("Tick", 3), detail: None”] [takes=4750] [thread_id=101]
[2024/12/26 12:57:01.022 +08:00] [WARN] [peer.rs:744] [“[region 16] 17 handle 2 peer messages ("Tick", 2), detail: None”] [takes=1143] [thread_id=100]
Waiting for tiflash instances ready
127.0.0.1:3930 … Error

:tada: TiDB Playground Cluster is started, enjoy!

Connect TiDB: mysql --comments --host 127.0.0.1 --port 4000 -u root
TiDB Dashboard: http://127.0.0.1:2379/dashboard
Grafana: http://127.0.0.1:3000

有没有路过的老师帮忙瞅一眼,是我哪里ip没设置对吗?

这个应该提示启动成功了吧,连接不上么?

嗯。mysql,页面什么的,都登录不上

服务器资源怎么样?
kv pd flash 看着都有问题。

自己电脑的虚拟机,4c,3g

tiup playground v8.5.0 --host 0.0.0.0 --tag tidb-xxx --without-monitor --tiflash 0
再试下,配置低了,组件多了起不来

1 个赞

感谢,我也怀疑是资源低导致的。重新按您的命令成功了

08374BAA
08374BAA

tikv quit: signal: killed 通常是因为内存不足

  • 检查系统内存和 CPU 使用情况。
  • 尝试减少 TiKV 和 TiFlash 的实例数量,或者增加系统资源