Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用Tiup缩容tikv节点时,会连接外网导致失败 #18108

Open
83177752 opened this issue Jun 18, 2020 · 2 comments
Open

使用Tiup缩容tikv节点时,会连接外网导致失败 #18108

83177752 opened this issue Jun 18, 2020 · 2 comments
Assignees
Labels

Comments

@83177752
Copy link

v4版本,使用Tiup缩容tikv节点时,会连接外网导致失败

2020-06-18T08:41:35.841+0800 INFO Execute command finished {"code": 1, "error": "init config failed: 192.101.11.238:4000: fetch /timestamp.json from mirror(https://tiup-mirrors.pingcap.com/) failed: download from https://tiup-mirrors.pingcap.com/timestamp.json failed: Get https://tiup-mirrors.pingcap.com/timestamp.json: dial tcp: lookup tiup-mirrors.pingcap.com on [::1]:53: read udp [::1]:53941->[::1]:53: read: connection refused", "errorVerbose": "Get https://tiup-mirrors.pingcap.com/timestamp.json: dial tcp: lookup tiup-mirrors.pingcap.com on [::1]:53: read udp [::1]:53941->[::1]:53: read: connection refused\ndownload from https://tiup-mirrors.pingcap.com/timestamp.json failed\ngithub.com/pingcap/tiup/pkg/repository.(*httpMirror).download\n\tgithub.com/pingcap/tiup@/pkg/repository/mirror.go:219\ngithub.com/pingcap/tiup/pkg/repository.(*httpMirror).Fetch\n\tgithub.com/pingcap/tiup@/pkg/repository/mirror.go:256\ngithub.com/pingcap/tiup/pkg/repository.(*V1Repository).fetchBase\n\tgithub.com/pingcap/tiup@/pkg/repository/v1_repository.go:527\ngithub.com/pingcap/tiup/pkg/repository.(*V1Repository).fetchManifest\n\tgithub.com/pingcap/tiup@/pkg/repository/v1_repository.go:504\ngithub.com/pingcap/tiup/pkg/repository.(*V1Repository).fetchTimestamp\n\tgithub.com/pingcap/tiup@/pkg/repository/v1_repository.go:462\ngithub.com/pingcap/tiup/pkg/repository.(*V1Repository).updateLocalSnapshot\n\tgithub.com/pingcap/tiup@/pkg/repository/v1_repository.go:234\ngithub.com/pingcap/tiup/pkg/repository.(*V1Repository).ensureManifests\n\tgithub.com/pingcap/tiup@/pkg/repository/v1_repository.go:180\ngithub.com/pingcap/tiup/pkg/repository.(*V1Repository).FetchComponentManifest\n\tgithub.com/pingcap/tiup@/pkg/repository/v1_repository.go:624\ngithub.com/pingcap/tiup/pkg/repository.(*V1Repository).ComponentVersion\n\tgithub.com/pingcap/tiup@/pkg/repository/v1_repository.go:634\ngithub.com/pingcap/tiup/pkg/cluster/clusterutil.(*repositoryT).ComponentBinEntry\n\tgithub.com/pingcap/tiup@/pkg/cluster/clusterutil/cluster.go:91\ngithub.com/pingcap/tiup/pkg/cluster/meta.checkConfig\n\tgithub.com/pingcap/tiup@/pkg/cluster/meta/server_config.go:164\ngithub.com/pingcap/tiup/pkg/cluster/meta.(*TiDBInstance).InitConfig\n\tgithub.com/pingcap/tiup@/pkg/cluster/meta/logic.go:438\ngithub.com/pingcap/tiup/pkg/cluster/task.(*InitConfig).Execute\n\tgithub.com/pingcap/tiup@/pkg/cluster/task/init_config.go:46\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\n\tgithub.com/pingcap/tiup@/pkg/cluster/task/task.go:183\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1\n\tgithub.com/pingcap/tiup@/pkg/cluster/task/task.go:236\nruntime.goexit\n\truntime/asm_amd64.s:1357\nfetch /timestamp.json from mirror(https://tiup-mirrors.pingcap.com/) failed\ninit config failed: 192.101.11.238:4000"}

其实timestamp.json文件存在/home/tidb/tidb-community-server-v4.0.0-linux-amd64下
后来通过export TIUP_MIRRORS=/home/tidb/tidb-community-server-v4.0.0-linux-amd64
再次执行即可

这块希望把bug修复掉 不通过export就可以执行,官网文档就是直接运行

@83177752 83177752 added the type/bug The issue is confirmed as a bug. label Jun 18, 2020
@g1eny0ung
Copy link

/label component/tools

@lucklove
Copy link
Member

lucklove commented Aug 26, 2020

Hi~ what's the tiup version you use?
We have introduce the command tiup mirror set in tiup v1.0.9, you can execute tiup mirror set /home/tidb/tidb-community-server-v4.0.0-linux-amd64 to replace the official mirror and after that you don't need to set the TIUP_MIRRORS again. (to use tiup mirror set, make sure that TIUP_MIRRORS is disabled)
And you can execute the command tiup mirror set https://tiup-mirrors.pingcap.com to set the official mirror if you want in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants