TiKV Error: Connection to Port 20160 Timed Out

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

Original topic: tikv报错连接20160端口超时

| username: TiDBer_x0JaEBMZ

[Test Environment for TiDB] Testing
[TiDB Version] v5.2.0
[Reproduction Path] Restart the cluster
[Encountered Issue: Phenomenon and Impact] Timeout when connecting to tikv port 20160. Error: failed to start tikv: failed to start: 192.168.2.128 tikv-20160.service, please check the instance’s log(/data1/tidb-deploy/tikv-20160/log) for more detail.: timed out waiting for port 20160 to be started after 10m0s
[Resource Configuration] 16C32G*2
[Attachments: Screenshots/Logs/Monitoring]

| username: Billmay表妹 | Original post link

How many TiKV nodes?

| username: TiDBer_x0JaEBMZ | Original post link

Two, one can start up.

| username: 我是咖啡哥 | Original post link

Check if the port is occupied:

netstat -nltp | grep 20160
| username: TiDBer_x0JaEBMZ | Original post link

Checked, it is not occupied.

| username: h5n1 | Original post link

Take a look at the contents of the tikv.log on this TiKV. Is the firewall on this TiKV turned off?

| username: TiDBer_x0JaEBMZ | Original post link

If the TiKV directory is deleted and there are no log files, can I recreate the directory and restart the cluster to generate logs?

| username: TiDBer_x0JaEBMZ | Original post link

The default value of tidb_enable_clustered_index is INT_ONLY, which means that only tables with integer primary keys will use clustered indexes by default.

| username: h5n1 | Original post link

What does deleting the directory mean? Was it deleted after it couldn’t start or before it couldn’t start? This TiKV is already useless and needs to be scaled in to reduce capacity.

| username: TiDBer_x0JaEBMZ | Original post link

It’s already fixed. Just run the startup script once and it will work.

| username: system | Original post link

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