Tiup playground running prompt 127.0.0.1:4000 ... Error

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

Original topic: tiup playground 运行提示127.0.0.1:4000 … Error

| username: TiDBer_6bLwZ2TU

[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachments: Screenshots / Logs / Monitoring]
tiup playground running prompts 127.0.0.1:4000 … Error
mysql -h 127.0.0.1 -P 4000 -uroot, able to log in to the database
Logs:
[ERROR] [advancer.go:272] [“listen task meet error, would reopen.”] [error=EOF]
[ERROR] [tso_dispatcher.go:453] [“[tso] getTS error”] [dc-location=global] [stream-addr=http://127.0.0.1:2379] [error=“[PD:client:ErrClientGetTSO]rpc error: code = Unknown desc = [PD:tso:ErrGenerateTimestamp]generate timestamp failed, requested pd is not leader of cluster: rpc error: code = Unknown desc = [PD:tso:ErrGenerateTimestamp]generate timestamp failed, requested pd is not leader of cluster”]

| username: 考试没答案 | Original post link

Could you provide the complete command?

| username: 考试没答案 | Original post link

Did you close that command window? I remember it shouldn’t be closed, right?

| username: TiDBer_6bLwZ2TU | Original post link

Just run: tiup playground. No other parameters. What are the resource requirements?

| username: 考试没答案 | Original post link

Execute this and take a look.

| username: 考试没答案 | Original post link

Then send out all the error messages from the interface for us to check.

| username: TiDBer_6bLwZ2TU | Original post link

Using the command: nohup tiup playground &. In the nohup.log file, 2023/04/10 08:38:51 http: panic serving 127.0.0.1:41800: runtime error: invalid memory address or nil pointer dereference

| username: 考试没答案 | Original post link

What about removing nohup??? Can’t use nohup, don’t let it run in the background.

| username: TiDBer_6bLwZ2TU | Original post link

Other colleagues are trying it. I’ll give it a try later.