Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tiup playground启动失败 ‘panic: runtime error: invalid memory address or nil pointer dereference’
To improve efficiency, please provide the following information. A clear problem description can be resolved more quickly:
【TiDB Environment】Testing and research, single machine deployment
【TiDB Version】v6.1.0
【Encountered Problem】
After installing tiup and executing source ${your_shell_profile}, an error occurs when running tiup playground:
tiup is checking updates for component playground ...
Starting component `playground`: /home/srtian/.tiup/components/playground/v1.10.2/tiup-playground
Using the version v6.1.0 for version constraint "".
If you'd like to use a TiDB version other than v6.1.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
Playground Bootstrapping...
Start pd instance:v6.1.0
Start tikv instance:v6.1.0
Start tidb instance:v6.1.0
Waiting for tidb instances ready
127.0.0.1:4000 ... Done
Force prometheus(762385) to quit...
prometheus quit
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xe640c4]
goroutine 1 [running]:
main.(*Playground).terminate(0xc000390000, 0x9)
github.com/pingcap/tiup/components/playground/playground.go:990 +0x364
main.execute.func3(0xc0004f4000?, {0x1981f20, 0x0, 0x0?})
github.com/pingcap/tiup/components/playground/main.go:291 +0x912
github.com/spf13/cobra.(*Command).execute(0xc0004f4000, {0xc00003a240, 0x0, 0x0})
github.com/spf13/cobra@v1.4.0/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc0004f4000)
github.com/spf13/cobra@v1.4.0/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.4.0/command.go:902
main.execute()
github.com/pingcap/tiup/components/playground/main.go:352 +0x1032
main.main()
github.com/pingcap/tiup/components/playground/main.go:629 +0x3f
Does anyone know the reason? qwq