tiflash不能启动,Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled

tiflash启动不了,日志: [2020/05/15 17:05:23.803 +08:00] [INFO] [mod.rs:334] [“starting working thread”] [worker=region-collector-worker] [2020/05/15 17:05:23.805 +08:00] [INFO] [node.rs:349] [“start raft store thread”] [store_id=3005] [2020/05/15 17:05:23.805 +08:00] [INFO] [store.rs:800] [“start store”] [takes=40.717µs] [merge_count=0] [applying_count=0] [tombstone_count=0] [region_count=0] [store_id=3005] [2020/05/15 17:05:23.805 +08:00] [INFO] [store.rs:852] [“cleans up garbage data”] [takes=11.097µs] [garbage_range_count=1] [store_id=3005] [2020/05/15 17:05:23.806 +08:00] [INFO] [mod.rs:334] [“starting working thread”] [worker=split-check] [2020/05/15 17:05:23.807 +08:00] [INFO] [mod.rs:334] [“starting working thread”] [worker=snapshot-worker] [2020/05/15 17:05:23.807 +08:00] [INFO] [mod.rs:334] [“starting working thread”] [worker=raft-gc-worker] [2020/05/15 17:05:23.807 +08:00] [INFO] [mod.rs:334] [“starting working thread”] [worker=compact-worker] [2020/05/15 17:05:23.812 +08:00] [INFO] [future.rs:131] [“starting working thread”] [worker=pd-worker] [2020/05/15 17:05:23.815 +08:00] [INFO] [mod.rs:334] [“starting working thread”] [worker=consistency-check] [2020/05/15 17:05:23.815 +08:00] [INFO] [mod.rs:334] [“starting working thread”] [worker=cleanup-sst] [2020/05/15 17:05:23.815 +08:00] [WARN] [store.rs:1119] [“set thread priority for raftstore failed”] [error=“Os { code: 13, kind: PermissionDenied, message: “Permission denied” }”] [2020/05/15 17:05:23.815 +08:00] [INFO] [node.rs:177] [“put store to PD”] [store=“id: 3005 address: “10.228.131.71:3930” labels { key: “engine” value: “tiflash” } version: “v4.0.0-rc.1” peer_address: “10.228.131.71:20170” status_address: “10.228.131.71:20292” git_hash: “2d30a83ffa9508fd0468a708cdb0579327f788da” start_timestamp: 1589533523”] [2020/05/15 17:05:23.819 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.821 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.823 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.826 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.828 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.830 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.832 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.833 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.836 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.837 +08:00] [ERROR] [util.rs:327] [“request failed”] [err=“Grpc(RpcFailure(RpcStatus { status: 9-FAILED_PRECONDITION, details: Some(“placement rules is disabled”) }))”] [2020/05/15 17:05:23.837 +08:00] [FATAL] [server.rs:295] [“failed to start node: Other(”[src/pd/util.rs:335]: fail to request")"]

通过 pd-ctl 修改一下 placement rules 规则才可以哈

谢谢,已解决。 原因应该在最初配置的时候忘记加这个参数了,后面加上之后tiup reload没起作用,踢掉之前的tiflash节点,重新加入一个tiflash也不行,只能用pd-ctl解决

你好,

可以确认下 edit-config 的配置项是否正确。

image 配置是正确的,只是刚开始初始化tiflash的时候忘记配置了这项,后面加上了,使用reload,但是没有识别,加上之后再扩容一个新的tiflash tiup reload之后 也没有识别,在 @ SUN-PingCAP的解答下 已经解决了这个问题。感谢

:ok_hand: