使用 TiUP Playground 和 --host参数启动集群报错

操作系统:CentOS 7.8

报错信息:


[root@localhost ~]# tiup playground --host 0.0.0.0

Starting component `playground`: /root/.tiup/components/playground/v1.3.1/tiup-playground --host 0.0.0.0

Use the latest stable version: v4.0.9

    Specify version manually:   tiup playground <version>

    The stable version:         tiup playground v4.0.0

    The nightly version:        tiup playground nightly

Playground Bootstrapping...

Start pd instance

Start tikv instance

Start tidb instance

Waiting for tidb instances ready

192.168.18.112:4000 ... Done

Start tiflash instance

Waiting for tiflash instances ready

0.0.0.0:3930 ... ⠸ 

tiflash quit: exit status 1

Logging debug to /root/.tiup/data/SL20wfq/tiflash-0/log/tiflash.log

Logging errors to /root/.tiup/data/SL20wfq/tiflash-0/log/tiflash_error.log

Waiting for tiflash instances ready

0.0.0.0:3930 ... Error

CLUSTER START SUCCESSFULLY, Enjoy it ^-^

To connect TiDB: mysql --host 192.168.18.112 --port 4000 -u root

To view the dashboard: http://192.168.18.112:2379/dashboard

To view the Prometheus: http://0.0.0.0:9090

To view the Grafana: http://0.0.0.0:3000

日志文件 tiflash_error.log 是空的,没有报错信息。

可以看下 tiflash 其他的日志中有无报错信息,以及核实下操作系统有无发生 OOM 等问题。

查看 `tiflash_tikv.log’ 日志,有报错信息:

[2021/01/04 14:30:48.397 +08:00] [INFO] [lib.rs:31] ["Welcome To TiFlash Raft Proxy"]
[2021/01/04 14:30:48.397 +08:00] [INFO] [lib.rs:33] ["Git Commit Hash:   2d32433471a838e01d79c924b0ccac42d0f3005f"]
[2021/01/04 14:30:48.397 +08:00] [INFO] [lib.rs:33] ["Git Commit Branch: HEAD"]
[2021/01/04 14:30:48.397 +08:00] [INFO] [lib.rs:33] ["UTC Build Time:    2020-12-19 05:24:44"]
[2021/01/04 14:30:48.397 +08:00] [INFO] [lib.rs:33] ["Rust Version:      rustc 1.42.0-nightly (0de96d37f 2019-12-19)"]
[2021/01/04 14:30:48.397 +08:00] [INFO] [lib.rs:33] ["Profile:           release"]
[2021/01/04 14:30:48.397 +08:00] [INFO] [mod.rs:57] ["memory limit in bytes: 3953971200, cpu cores quota: 2"]
[2021/01/04 14:30:48.397 +08:00] [WARN] [lib.rs:529] ["environment variable `TZ` is missing, using `/etc/localtime`"]
[2021/01/04 14:30:48.397 +08:00] [INFO] [config.rs:572] ["kernel parameters"] [value=32768] [param=net.core.somaxconn]
[2021/01/04 14:30:48.397 +08:00] [INFO] [config.rs:572] ["kernel parameters"] [value=0] [param=net.ipv4.tcp_syncookies]
[2021/01/04 14:30:48.397 +08:00] [INFO] [config.rs:572] ["kernel parameters"] [value=0] [param=vm.swappiness]
[2021/01/04 14:30:48.399 +08:00] [INFO] [util.rs:419] ["connecting to PD endpoint"] [endpoints=192.168.18.112:2379]
[2021/01/04 14:30:48.399 +08:00] [INFO] [<unknown>] ["New connected subchannel at 0x7f92f2c3a150 for subchannel 0x7f92f56251c0"]
[2021/01/04 14:30:48.401 +08:00] [INFO] [util.rs:419] ["connecting to PD endpoint"] [endpoints=http://192.168.18.112:2379]
[2021/01/04 14:30:48.401 +08:00] [INFO] [<unknown>] ["New connected subchannel at 0x7f92f2c3a1e0 for subchannel 0x7f92f56251c0"]
[2021/01/04 14:30:48.402 +08:00] [INFO] [util.rs:419] ["connecting to PD endpoint"] [endpoints=http://192.168.18.112:2379]
[2021/01/04 14:30:48.402 +08:00] [INFO] [<unknown>] ["New connected subchannel at 0x7f92f2c3a270 for subchannel 0x7f92f56251c0"]
[2021/01/04 14:30:48.403 +08:00] [INFO] [util.rs:484] ["connected to PD leader"] [endpoints=http://192.168.18.112:2379]
[2021/01/04 14:30:48.403 +08:00] [INFO] [util.rs:407] ["all PD endpoints are consistent"] [endpoints="[\"192.168.18.112:2379\"]"]
[2021/01/04 14:30:48.404 +08:00] [INFO] [server.rs:296] ["connect to PD cluster"] [cluster_id=6913788576154547166]
[2021/01/04 14:30:48.404 +08:00] [INFO] [config.rs:1746] ["readpool.storage.use-unified-pool is not set, set to false by default"]
[2021/01/04 14:30:48.404 +08:00] [INFO] [config.rs:1789] ["readpool.coprocessor.use-unified-pool is not set, set to true by default"]
[2021/01/04 14:30:48.404 +08:00] [FATAL] [setup.rs:254] ["invalid configuration: [src/server/config.rs:204]: invalid advertise-addr: \"0.0.0.0:20170\""]

不是一个正确的地址,选择 ip a 对应的地址或者不填写,

改成服务器地址后不报错了,谢谢。

我是根据 TiDB 数据库快速上手指南 添加的参数--host 0.0.0.0,这个文档是不是该更新一下?

嗯,我们完善下

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