Experts, please help check the error when starting the cluster after it has been created

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

Original topic: 大佬们帮忙看看集群创建好后启动集群的报错

| username: TiDBer_KdCQmgVV

[TiDB Usage Environment] Production Environment
[TiDB Version] 6.3.0
[Reproduction Path] Destroy the cluster, recreate the cluster, and start the cluster again, but the same error occurs.
[Encountered Problem: Problem Phenomenon and Impact] After creating the cluster and starting the cluster, an error is reported: Error: failed to start pd: failed to start:, checking the log pd-2379/log shows the error: [FATAL] [main.go:117] [“run server failed”] [error=“[PD:etcd:ErrStartEtcd]cannot access data directory: mkdir /data/ucsp-data/tidb : permission denied: cannot access data directory: mkdir /data/ucsp-data/tidb : permission denied”] [stack=“main.main\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/pd/cmd/pd-server/main.go:117\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250”], due to this error, the cluster failed to start.
[Resource Configuration] 16C/128G/1T
[Attachments: Screenshots/Logs/Monitoring]


Attached log:
pd.log (653.0 KB)

| username: Jiawei | Original post link

It looks like you don’t have the operation permissions for that disk. Are you using the tidb user to start it? Check if this user’s folder permissions are set correctly.

| username: TiDBer_KdCQmgVV | Original post link

I started it using the tidb user, and this user has the necessary folder permissions. I tried changing the permissions to 777, but it still reports the same error.

| username: songxuecheng | Original post link

Check permission issues.

| username: Jiawei | Original post link

Try switching to the TiDB user and execute that command to see if it really works.

| username: tidb狂热爱好者 | Original post link

Permission error. You should grant 777 permissions to that directory.

| username: tidb狂热爱好者 | Original post link

Or after creating the directory, use chown -R tidb:tidb /data.

| username: TiDBer_KdCQmgVV | Original post link

Thank you, it has been resolved.

| username: system | Original post link

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