安装集群报错

一个好的问题描述有利于社区小伙伴更快帮你定位到问题,高效解决你的问题

【TiDB 使用环境】测试环境
【TiDB 版本】v8
【部署方式】机器部署
【操作系统/CPU 架构/芯片详情】red 7.9
【机器部署详情】CPU大小/内存大小/磁盘大小
【集群数据量】
【集群节点数】1
大佬我这个部署报下面错误是啥问题
{“code”: 1, “error”: “download from https://tiup-mirrors.pingcap.com/tikv-v8
.5.0-linux-amd64.tar.gz failed: read tcp 192.168.0.233:56040->112.48.244.195:443: read: connection reset by peer”, “errorVerbose”: “read tcp 192.168
.0.233:56040->112.48.244.195:443: read: connection reset by peer\ndownload from https://tiup-mirrors.pingcap.com/tikv-v8.5.0-linux-amd64.tar.gz fail
ed\ngithub.com/pingcap/tiup/pkg/repository.(*httpMirror).downloadFile\n\tgithub.com/pingcap/tiup/pkg/repository/mirror.go:421\ngithub.com/pingcap/ti
up/pkg/repository.(*httpMirror).Download\n\tgithub.com/pingcap/tiup/pkg/repository/mirror.go:574\ngithub.com/pingcap/tiup/pkg/repository.(*V1Reposit
ory).DownloadComponent\n\tgithub.com/pingcap/tiup/pkg/repository/v1_repository.go:505\ngithub.com/pingcap/tiup/pkg/cluster/clusterutil.(*repositoryT
).DownloadComponent\n\tgithub.com/pingcap/tiup/pkg/cluster/clusterutil/cluster.go:53\ngithub.com/pingcap/tiup/pkg/cluster/operation.Download\n\tgith
ub.com/pingcap/tiup/pkg/cluster/operation/download.go:51\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Downloader).Execute\n\tgithub.com/pingcap/tiup/
pkg/cluster/task/download.go:58\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:86\n
github.com/pingcap/tiup/pkg/cluster/task.(*StepDisplay).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/step.go:111\ngithub.com/pingcap/tiup/pkg
/cluster/task.(*Parallel).Execute.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:144\nruntime.goexit\n\truntime/asm_amd64.s:1693”}

网络断了吧。

2026-07-24T11:02:00.563+0800 DEBUG retry error {“error”: “operation timed out after 2m0s”}
2026-07-24T11:02:00.563+0800 DEBUG TaskFinish {“task”: “StartCluster”, “error”: “failed to start tikv: failed to start: 192.168.0.233 tikv-20161.service, please check the instance’s log(/tidb/soft/tikv-20161/log) for more detail.: timed out waiting for port 20161 to be started after 2m0s”, “errorVerbose”: “timed out waiting for port 20161 to be started after 2m0s\ngithub.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/module/wait_for.go:92\ngithub.com/pingcap/tiup/pkg/cluster/spec.PortStarted\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:140\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*BaseInstance).Ready\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:178\ngithub.com/pingcap/tiup/pkg/cluster/operation.startInstance\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:404\ngithub.com/pingcap/tiup/pkg/cluster/operation.StartComponent.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:531\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.19.0/errgroup/errgroup.go:93\nruntime.goexit\n\truntime/asm_amd64.s:1693\nfailed to start: 192.168.0.233 tikv-20161.service, please check the instance’s log(/tidb/soft/tikv-20161/log) for more detail.\nfailed to start tikv”}
启动报这个错误

可以把你的所有的步骤都贴出来,先保证你的部署是成功的。

bin/tikv-server: /lib64/libc.so.6: version GLIBC_2.28' not found (required by bin/tikv-server) bin/tikv-server: /lib64/libc.so.6: version GLIBC_2.25’ not found (required by bin/tikv-server)

[root@mgr-01 build]# tiup cluster start mjj-cluster
Checking updates for component cluster… Timedout (after 2s)
Starting cluster mjj-cluster…

  • [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/mjj-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/mjj-cluster/ssh/id_rsa.pub
  • [Parallel] - UserSSH: user=tidb, host=192.168.0.233
  • [Parallel] - UserSSH: user=tidb, host=192.168.0.233
  • [Parallel] - UserSSH: user=tidb, host=192.168.0.233
  • [Parallel] - UserSSH: user=tidb, host=192.168.0.233
  • [Parallel] - UserSSH: user=tidb, host=192.168.0.233
  • [Parallel] - UserSSH: user=tidb, host=192.168.0.233
  • [ Serial ] - StartCluster
    Starting component pd
    Starting instance 192.168.0.233:2379

Error: failed to start pd: failed to start: 192.168.0.233 pd-2379.service, please check the instance’s log(/tidb/soft/pd-2379/log) for more detail.: timed out waiting for port 2379 to be started after 2m0s

Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2026-07-24-11-39-29.log.
[root@mgr-01 build]# more /tidb/soft/pd-2379/log

*** /tidb/soft/pd-2379/log: directory ***

你得服务器配置是啥,是不是太低了?

connection reset by peer = 对方服务器主动断开了你的 TCP 连接,tiup 从官方镜像下载 tikv-v8.5.0 压缩包中途被掐断,下载失败。 IP:112.48.244.195 是 平凯星辰 国内镜像节点,常见诱因:网络不稳、防火墙 / 安全策略限流、公司出口 QOS、HTTPS 握手超时、下载文件较大长时间传输被网关断连

这个看上去像网络问题

错误信息 connection reset by peer 表明你的服务器在从官方镜像站 tiup-mirrors.pingcap.com 下载 tikv 组件时,网络连接被对方服务器或中间的某个网络设备强制中断了。

看这个报错是tiup下载安装包时网络连接被重置了,典型网络问题。建议先检查网络连通性:

  1. 测试能否访问镜像源:
curl -I https://tiup-mirrors.pingcap.com
  1. 如果超时或失败,尝试配置代理或换源:
  • 设置代理:export http_proxy=http://your-proxy:port
  • 或使用国内镜像:tiup mirror set https://tiup-mirrors.pingcap.com
  1. 也可以手动下载tikv包放到本地,用tiup install离线安装。

大概率是服务器防火墙或DNS解析问题,先排查网络环境。

不行下个离线包部署吧

read tcp 192.168.0.233:56040->112.48.244.195:443: read: connection reset by peer
download from https://tiup-mirrors.pingcap.com/tikv-v8.5.0-linux-amd64.tar.gz failed