Tiup playground unable to start tiproxy

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

Original topic: tiup playground 无法拉起 tiproxy

| username: ShawnYan

As per the topic,

[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

You need to specify the version number to start it up. Here, a new parameter is introduced,

[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

However, this is not very “tiup-like”. It is recommended to use the previous method, not specifying the version number, and automatically selecting the latest version.

| username: ShawnYan | Original post link

tiproxy does not use nightly by default, but should it use the latest by default?

| username: WalterWj | Original post link

It looks like the default has been changed to “”, previously it was nightly. Add parameters.

| username: ShawnYan | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.