【 TiDB 使用环境】生产环境
【 TiDB 版本】TIKV 6.10
【复现路径】编译cargo build
【遇到的问题:问题现象及影响】
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面
【附件:截图/日志/监控】
[root@localhost tikv-6.1.0]# cargo build
Compiling raft-proto v0.7.0 (GitHub - tikv/raft-rs: Raft distributed consensus algorithm implemented in Rust.)
Compiling kvproto v0.0.2 (GitHub - pingcap/kvproto: Protocol buffer files for TiKV)
Compiling tipb v0.0.1 (GitHub - pingcap/tipb: TiDB protobuf)
Compiling tempfile v3.2.0
error: failed to run custom build command for kvproto v0.0.2 (https://github.com/pingcap/kvproto.git#0e2f26c0)
Caused by:
process didn’t exit successfully: /home/yjf/tikv-6.1.0/target/debug/build/kvproto-6e702559b5f5433a/build-script-build
(exit status: 101)
— stderr
thread ‘main’ panicked at ‘called Option::unwrap()
on a None
value’, /root/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/protobuf-build-0.13.0/src/protobuf_impl.rs:48:71
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish…
error: build failed
感觉像是有的依赖被删了?这种情况怎么避免?