初体验-Tiup部署5.0.0出现tiflash错误tiflash quit: exit status 70

tiup playground v5.0.0 --db 2 --pd 3 --kv 3 --monitor
tiup is checking updates for component playground …
Starting component playground: /root/.tiup/components/playground/v1.9.4/tiup-playground /root/.tiup/components/playground/v1.9.4/tiup-playground v5.0.0 --db 2 --pd 3 --kv 3 --monitor
Flag --monitor has been deprecated, Please use --without-monitor to control whether to disable monitor.
Playground Bootstrapping…
Start pd instance:v5.0.0
Start pd instance:v5.0.0
Start pd instance:v5.0.0
Start tikv instance:v5.0.0
Start tikv instance:v5.0.0
Start tikv instance:v5.0.0
Start tidb instance:v5.0.0
Start tidb instance:v5.0.0
Waiting for tidb instances ready
127.0.0.1:4000 … Done
127.0.0.1:4001 … Done
Start tiflash instance:v5.0.0
The component tiflash version v5.0.0 is not installed; downloading from repository.
download https://tiup-mirrors.pingcap.com/tiflash-v5.0.0-linux-amd64.tar.gz 407.93 MiB / 407.93 MiB 100.00% 2.42 MiB/s
Waiting for tiflash instances ready
127.0.0.1:3930 … ⠏
tikv quit: signal: killed
[2022/04/18 17:21:14.377 +08:00] [INFO] [peer.rs:780] [“begin to destroy”] [peer_id=17] [region_id=16]
[2022/04/18 17:21:14.377 +08:00] [INFO] [region.rs:517] [“delete data in range because of stale”] [end_key=7A7480000000000000FF2F00000000000000F8] [start_key=7A7480000000000000FF2D00000000000000F8] [region_id=48]
[2022/04/18 17:21:14.377 +08:00] [INFO] [peer_storage.rs:1517] [“finish clear peer meta”] [takes=11.65µs] [raft_key=1] [apply_key=1] [meta_key=1] [region_id=16]
[2022/04/18 17:21:14.377 +08:00] [INFO] [pd.rs:937] [“remove peer statistic record in pd”] [region_id=16]
[2022/04/18 17:21:14.378 +08:00] [INFO] [peer.rs:820] [“peer destroy itself”] [takes=1.037568ms] [peer_id=17] [region_id=16]
[2022/04/18 17:21:14.378 +08:00] [INFO] [router.rs:271] ["[region 16] shutdown mailbox"]
[2022/04/18 17:21:14.378 +08:00] [INFO] [region.rs:485] [“register deleting data in range”] [end_key=7A7480000000000000FF0F00000000000000F8] [start_key=7A7480000000000000FF0D00000000000000F8] [region_id=16]
[2022/04/18 17:21:14.378 +08:00] [INFO] [region.rs:517] [“delete data in range because of stale”] [end_key=7A7480000000000000FF0F00000000000000F8] [start_key=7A7480000000000000FF0D00000000000000F8] [region_id=16]
[2022/04/18 17:24:09.611 +08:00] [WARN] [store.rs:691] ["[store 1] handle 2 pending peers include 0 ready, 0 entries, 0 messages and 0 snapshots"] [takes=1020]
[2022/04/18 17:24:12.262 +08:00] [WARN] [store.rs:691] ["[store 1] handle 2 pending peers include 0 ready, 0 entries, 0 messages and 0 snapshots"] [takes=1410]
Waiting for tiflash instances ready
127.0.0.1:3930 … ⠧
tiflash quit: exit status 70
Logging debug to /root/.tiup/data/T3LY41s/tiflash-0/log/tiflash.log
Logging errors to /root/.tiup/data/T3LY41s/tiflash-0/log/tiflash_error.log
Waiting for tiflash instances ready
127.0.0.1:3930 … Error
CLUSTER START SUCCESSFULLY, Enjoy it ^-^
To connect TiDB: mysql --comments --host 127.0.0.1 --port 4001 -u root -p (no password)
To connect TiDB: mysql --comments --host 127.0.0.1 --port 4000 -u root -p (no password)
To view the dashboard: http://127.0.0.1:2379/dashboard
PD client endpoints: [127.0.0.1:2379 127.0.0.1:2382 127.0.0.1:2384]
To view the Prometheus: http://127.0.0.1:9090
To view the Grafana: http://127.0.0.1:3000

[root@localhost ~]# more /root/.tiup/data/T3LY41s/tiflash-0/log/tiflash_error.log
2022.04.18 17:24:14.693850 [ 1 ] Application: The configuration “path” is deprecated. Check [storage] section for new style.
2022.04.18 17:24:15.079996 [ 1 ] pingcap.pd: failed to get cluster id by :http://127.0.0.1:2379
2022.04.18 17:24:15.084488 [ 1 ] pingcap.pd: failed to get cluster id by :http://127.0.0.1:2382
2022.04.18 17:24:15.087114 [ 1 ] pingcap.pd: failed to get cluster id by :http://127.0.0.1:2384
2022.04.18 17:24:15.474333 [ 1 ] Application: Exception: failed to update leader

没看懂这几个端口干什么用的,毕竟初学者,发帖记录一下。

是不是配置文件中配置的存储位置冲突了?
The configuration “path” is deprecated. Check [storage] section for new style.

刚动手测试这个,就用了 curl --proto ‘=https’ --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh 把tiup组件拉下下来,我放root根目录了,然后声明了变量,然后就用tiup playground v5.0.0 --db 2 --pd 3 --kv 3 --monitor
测试一下,然后就出现这个问题了,path中只添加了tiup这个命名,还没学到配置文件的设置。
看看后续学习可不可以学到解决办法。。。主要是我不熟,先发帖记录一下。。

1 Like

看的是快速上手么?如果是个人电脑的话,不要启动多个实例,硬件跑不起来。

只有个人电脑。只是学习和练习,试试吧。。

生产的要求就有点高,个人电脑就看看

1 Like