Help: playground_attach_4001 Startup Error

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

Original topic: 求助:playground_attach_4001 启动报错

| username: wangqing

start arguments: playground_attach_4001 – --path=127.0.0.1:2379 --store=tikv --status=10081 -P 4001

error:
[2022/10/26 16:36:05.970 +08:00] [WARN] [base_client.go:252] [“[pd] failed to get cluster id”] [url=http://127.0.0.1:2379] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused” target:127.0.0.1:2379 status:TRANSIENT_FAILURE: error:rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused” target:127.0.0.1:2379 status:TRANSIENT_FAILURE”]

| username: xfworld | Original post link

Check if the port is being occupied.

| username: wangqing | Original post link

Hello, using lsof -i:2379, I checked that it is not being used;
Starting with the default 4000 works directly, but it doesn’t work when I change the parameters and start it again.

| username: xfworld | Original post link

The playground is just a trial version with limited functionality.

If you need to change some parameters, it’s better to install a cluster version for a better experience.

| username: wangqing | Original post link

I am already using it officially and am interested in the source code, so I want to take a look;
Write and run unit tests - TiDB Development Guide This document is a bit outdated;
I plan to first look at 【源码类学习资源大放送】TiDB、TiKV、TiFlash、Chaos Mesh 等源码解读补给站 - TiDB 的问答社区
Do you have any good suggestions?

| username: xfworld | Original post link

Directly go here and systematically learn the knowledge. It’s better than figuring it out on your own.

| username: wangqing | Original post link

Okay, thank you.

| username: system | Original post link

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