Suddenly Unable to Connect to the Database

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

Original topic: 突然不能链接数据库

| username: TiDBer_aZrsY0ca

Today, I suddenly couldn’t access the database. The log shows: grpc: Server.processUnaryRPC failed to write status connection error: desc = "transport is closing


What could be the reason?

| username: ShawnYan | Original post link

First, check the cluster status:

tiup cluster display xxx
| username: 小龙虾爱大龙虾 | Original post link

What error does it report when it can’t connect to the client?

| username: TiDBer_小阿飞 | Original post link

Check the network status first.

| username: TiDBer_aZrsY0ca | Original post link

The cluster means this device is offline.

| username: TiDBer_aZrsY0ca | Original post link

The network SSH connection is not working, and it takes about 20 minutes to log in. After logging in, the cluster responds.

| username: oceanzhang | Original post link

gRPC communication error

| username: oceanzhang | Original post link

Take a look at the logs for node 34, and use display to check the status of node 34.

| username: zhanggame1 | Original post link

The gRPC issue is generally due to network disconnection or a service crash. First, check the cluster status with the display command.

| username: Kongdom | Original post link

:thinking: Can’t connect to SSH? Did the server restart?

| username: dba远航 | Original post link

Check the network connection.

| username: heiwandou | Original post link

Check the cluster status and network.

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

SSH cannot connect. Either the network is down, or the memory is exhausted. Please check.

| username: 连连看db | Original post link

Before asking questions, make sure to follow the troubleshooting process yourself, check each step, and keep evidence. Otherwise, it will be difficult for others to help you pinpoint the issue.

| username: 有猫万事足 | Original post link

If it was working fine and suddenly went offline, it’s most likely an OOM (Out of Memory) issue.

| username: ShawnYan | Original post link

Authentication system issue? DNS, LDAP, IPA?

| username: TiDBer_小阿飞 | Original post link

Check the network status and the maximum number of connections, and take a look at the local network settings.

| username: dba远航 | Original post link

Haven’t found the reason yet?

| username: TIDB-Learner | Original post link

Happy New Year.

| username: 烂番薯0 | Original post link

:wave: :wave: :wave: