tiup playground 无法拉起 tiproxy

如题,

[tidb@shawnyan ~ 13:42:36]$ tiup -v
1.14.0 tiup
Go Version: go1.21.5
Git Ref: v1.14.1
GitHash: 23f7b0f0f3a0ad29e90a7b12b1097e8d4074cb3e

[tidb@shawnyan ~ 13:42:25]$ tiup playground v8.0.0 --tag v8.0.0 --tiproxy 1
tiup is checking updates for component playground ...
Starting component `playground`: /home/tidb/.tiup/components/playground/v1.14.1/tiup-playground v8.0.0 --tag v8.0.0 --tiproxy 1
Start pd instance:v8.0.0
Start tikv instance:v8.0.0
Start tidb instance:v8.0.0
Force tidb(52012) to quit...
tidb quit
Force tikv(52007) to quit...
tikv quit
Force pd(52001) to quit...
pd quit
Error: Playground bootstrapping failed: version v8.0.0 on linux/amd64 for component tiproxy not found: unknown version

需要指定版本号才能拉起,这里引入了一个新参数,

[tidb@shawnyan ~/.tiup/manifests 13:52:25]$ tiup playground latest --tag v7.6.0 --tiproxy 1 --tiproxy.version latest --without-monitor
tiup is checking updates for component playground ...
Starting component `playground`: /home/tidb/.tiup/components/playground/v1.14.1/tiup-playground latest --tag v7.6.0 --tiproxy 1 --tiproxy.version latest --without-monitor
Using the version v8.0.0 for version constraint "latest".

If you'd like to use a TiDB version other than v8.0.0, cancel and retry with the following arguments:
	Specify version manually:   tiup playground <version>
	Specify version range:      tiup playground ^5
	The nightly version:        tiup playground nightly

Start pd instance:v8.0.0
Start tikv instance:v8.0.0
Start tidb instance:v8.0.0
Start tiproxy instance:v1.0.0
The component `tiproxy` version v1.0.0 is not installed; downloading from repository.
download https://tiup-mirrors.pingcap.com/tiproxy-v1.0.0-linux-amd64.tar.gz 28.33 MiB / 28.33 MiB 100.00% 11.45 MiB/s                                                                                                                                                         
Waiting for tidb and tiproxy instances ready
127.0.0.1:4000 ... Done
127.0.0.1:6000 ... Done
Start tiflash instance:v8.0.0
userConfig map[flash:map[proxy:map[config:/home/tidb/.tiup/data/v7.6.0/tiflash-0/tiflash_proxy.toml]] logger:map[level:debug]]
The component `tiflash` version v8.0.0 is not installed; downloading from repository.
download https://tiup-mirrors.pingcap.com/tiflash-v8.0.0-linux-amd64.tar.gz 251.36 MiB / 251.36 MiB 100.00% 11.01 MiB/s                                                                                                                                                       
Waiting for tiflash instances ready
127.0.0.1:3930 ... Done

🎉 TiDB Playground Cluster is started, enjoy!

Connect TiDB:    mysql --comments --host 127.0.0.1 --port 4000 -u root
Connect TiProxy: mysql --comments --host 127.0.0.1 --port 6000 -u root
TiDB Dashboard:  http://127.0.0.1:2379/dashboard

但是这样很不tiup,建议用之前的方式,不指定版本号,自动选择latest版本。

1 个赞

https://github.com/pingcap/tiup/pull/2305

tiproxy not use nightly by default,but should use latest by default?

看起来 default 改为 “” ,之前是 nightly。加参数吧。