Error Starting TiKV After Single-Node Deployment

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

Original topic: 单机部署后,启动tikv报错

| username: cf_data

[TiDB Usage Environment] Testing CentOS
[TiDB Version] 7.4.0
[Attachment: Screenshot/Log/Monitoring]


TiDB single-node offline deployment was successful, but the following error occurred after startup
image

| username: Billmay表妹 | Original post link

What version of CentOS?

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

Has PD started? If TiKV hasn’t started, check the TiKV logs to see what errors are reported.

| username: TiDBer_小阿飞 | Original post link

Check if the port number is occupied.

| username: 像风一样的男子 | Original post link

Check the logs to see what error is reported.

| username: ShawnYan | Original post link

It is best to post the complete log in text form.

| username: zhanggame1 | Original post link

Check if PD is up, netstat -na | grep 20160

| username: cf_data | Original post link

This should be counted, right?

| username: cf_data | Original post link

This should be counted, right?

| username: cf_data | Original post link

No, it doesn’t seem to be working.

| username: cf_data | Original post link

The image is not visible. Please provide the text you need translated.

| username: dbaspace | Original post link

You can specify the startup timeout and set it to a larger value during the operation. --wait-timeout

| username: TiDBer_小阿飞 | Original post link

lsof -i:port
lsof -i:2379

| username: dbaspace | Original post link

This situation has been encountered many times, showing a timeout. Upon observing the actual node, it is possible that the service is already running…

| username: Life_Box | Original post link

When I first started deploying, I often encountered this issue. After confirmation, it was mostly caused by not granting sudo permissions to the tidb user. Execute visudo as root, add tidb ALL=(ALL) NOPASSWD: ALL at the bottom of the file, and then try restarting. If it still doesn’t work, remove everything and check the setup again.

| username: cf_data | Original post link

lsof -i:2379

| username: zhanggame1 | Original post link

There are no problems installing anything with the root user.

| username: cf_data | Original post link

Do you give root access in the production environment? :sweat_smile:

| username: zhanggame1 | Original post link

Root is only used for installation, and after that, it is no longer needed.
Additionally, the permissions given to the tidb user are almost the same as root,
like this: tidb ALL=(ALL) NOPASSWD: ALL

| username: ShawnYan | Original post link

Where are the PD logs? Is there more information?

By the way, is everything running on IPv6?