TiUP Playground Failed to Start: 'panic: runtime error: invalid memory address or nil pointer dereference'

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’

| username: TiDBer_77DemBHR

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

| username: 长安是只喵 | Original post link

Do these precautions all meet?

| username: 长安是只喵 | Original post link

Refer to the FAQ below. Is it possible that the local hardware configuration cannot run a TiDB cluster?

| username: TiDBer_77DemBHR | Original post link

I was able to run it yesterday, but when I opened it today, it wouldn’t run anymore.

| username: 长安是只喵 | Original post link

This command starts a new cluster each time. It will not be retained.

| username: ShawnYan | Original post link

Delete the data under the /home/srtian/.tiup/data path, log out of the current user, log back in, and then try restarting.

| username: TiDBer_77DemBHR | Original post link

Wow, thank you, thank you!

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.