Error when executing tiup cluster deploy

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 执行tiup cluster deploy 报错

| username: Alan

{“code”: 1, “error”: “download from https://tiup-mirrors.pingcap.com/prometheus-v6.1.1-linux-amd64.tar.gz failed: read tcp 172.16.0.40:42154->122.228.207.55:443: read: connection reset by peer”, “errorVerbose”: “read tcp 172.16.0.40:42154->122.228.207.55:443: read: connection reset by peer\ndownload from https://tiup-mirrors.pingcap.com/prometheus-v6.1.1-linux-amd64.tar.gz failed\ngithub.com/pingcap/tiup/pkg/repository.(*httpMirror).download\n\tgithub.com/pingcap/tiup/pkg/repository/mirror.go:342\ngithub.com/pingcap/tiup/pkg/repository.(*httpMirror).Download.func1\n\tgithub.com/pingcap/tiup/pkg/repository/mirror.go:491\ngithub.com/pingcap/tiup/pkg/utils.Retry\n\tgithub.com/pingcap/tiup/pkg/utils/retry.go:81\ngithub.com/pingcap/tiup/pkg/repository.(*httpMirror).Download\n\tgithub.com/pingcap/tiup/pkg/repository/mirror.go:486\ngithub.com/pingcap/tiup/pkg/repository.(*V1Repository).DownloadComponent\n\tgithub.com/pingcap/tiup/pkg/repository/v1_repository.go:487\ngithub.com/pingcap/tiup/pkg/cluster/clusterutil.(*repositoryT).DownloadComponent\n\tgithub.com/pingcap/tiup/pkg/cluster/clusterutil/cluster.go:65\ngithub.com/pingcap/tiup/pkg/cluster/operation.Download\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/download.go:57\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\ngithub.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:1594”}

| username: Alan | Original post link

Experts, please take a look.

| username: 啦啦啦啦啦 | Original post link

Judging by the error, it seems the download request timed out. Try retrying a few times. If the network is down or really poor, you might consider offline installation.

| username: Kongdom | Original post link

It feels like a network issue. Is the external network smooth?

| username: 裤衩儿飞上天 | Original post link

Is the external network accessible?

| username: forever | Original post link

Try running:

wget https://tiup-mirrors.pingcap.com/prometheus-v6.1.1-linux-amd64.tar.gz
| username: 胡杨树旁 | Original post link

Use offline upgrade. Last time I tried online upgrade, the package didn’t download properly and the upgrade failed.

| username: srstack | Original post link

From the phenomenon, it seems to be a network issue. You can use tiup clone to download the repo locally.

| username: Minorli-PingCAP | Original post link

If online deployment doesn’t work, then try offline deployment.

| username: 我是咖啡哥 | Original post link

The network is not connected. Use offline.