Expanding tidb-server nodes, but encountering a timeout error on port 4000, noting that the port is not occupied and the firewall is disabled

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

Original topic: 扩容tidb-server节点,但是报错4000端口超时,备注端口未被占用,防火墙已关闭

| username: TiDBer_L2O7iA8y

【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】

| username: tidb菜鸟一只 | Original post link

Check the logs.

| username: TiDBer_L2O7iA8y | Original post link

The node log is empty.
The log output on the master machine:

| username: ShawnYan | Original post link

Have you also confirmed that there are no issues with SSH/SELinux?

| username: TiDBer_L2O7iA8y | Original post link

Confirmed, no issues.

| username: ShawnYan | Original post link

You still need to check the logs on the target node. Are all the logs mentioned in the screenshot empty?

| username: TiDBer_L2O7iA8y | Original post link

This is the log on the master node.

| username: tidb菜鸟一只 | Original post link

Execute sudo systemctl start tidb-4000.service on the machine being expanded to see if it can start.

| username: TiDBer_L2O7iA8y | Original post link

It seems like it won’t start.
image

| username: tidb菜鸟一只 | Original post link

Check the status of tidb-4000.service with sudo systemctl status tidb-4000.service

| username: TiDBer_L2O7iA8y | Original post link

| username: tidb菜鸟一只 | Original post link

Is there no log at all under /data/tidb-deploy/tidb-4000/log?
Try manually executing /data/tidb-deploy/tidb-4000/scripts/run_tidb.sh and see.

| username: TiDBer_L2O7iA8y | Original post link

No permission to create tmp directory

| username: ShawnYan | Original post link

Is the owner of the /data path not tidb?

| username: TiDBer_L2O7iA8y | Original post link

No, this part didn’t perform this operation.

| username: TiDBer_L2O7iA8y | Original post link

Resolved, thank you.

| username: ShawnYan | Original post link

The screenshot is for granting passwordless sudo privileges, but mkdir /data/tmp is just a regular operation. Granting chown tidb:tidb /data permissions is sufficient.

| username: TiDBer_L2O7iA8y | Original post link

Resolved, thank you.

| username: ShawnYan | Original post link

Okay, as long as it’s resolved. :+1:

| username: TiDBer_L2O7iA8y | Original post link

Learned something new again.