taosdata / TDengine

High-performance, scalable time-series database designed for Industrial IoT (IIoT) scenarios
https://tdengine.com
GNU Affero General Public License v3.0
23.29k stars 4.85k forks source link

DB error: Unable to establish connection #4413

Closed ljw0903 closed 2 years ago

ljw0903 commented 3 years ago

版本: 2.0.8.2 客户端服务端版本一致,连接正常,可显示服务端版本号,输入命令报错。

Welcome to the TDengine shell from Linux, Client Version:2.0.8.2 Copyright (c) 2017 by TAOS Data, Inc. All rights reserved. taos> show databases; DB error: Unable to establish connection (0.001000s)

客户端服务端配置都为默认配置,服务端安装方式为源码安装。 客户端报错日志如下:

            new log file                      

================================================== 12/02 17:06:36.239000 0x0001086c UTL localEp is: LIJIAWEI-PC:6030 12/02 17:06:36.239000 0x0001086c UTL timezone not configured, use default 12/02 17:06:36.256000 0x0001086c UTL locale not configured, set to default:Chinese_China.936 12/02 17:06:36.256000 0x0001086c UTL charset not configured, set to default:cp936 12/02 17:06:36.256000 0x0001086c UTL taos config & system info: 12/02 17:06:36.256000 0x0001086c UTL ================================== 12/02 17:06:36.256000 0x0001086c UTL firstEp: DELL-PC:6030 12/02 17:06:36.256000 0x0001086c UTL secondEp: DELL-PC:6030 12/02 17:06:36.256000 0x0001086c UTL fqdn: DELL-PC 12/02 17:06:36.256000 0x0001086c UTL serverPort: 6030 12/02 17:06:36.256000 0x0001086c UTL configDir: C:/TDengine/cfg 12/02 17:06:36.256000 0x0001086c UTL logDir: C:/TDengine/log 12/02 17:06:36.256000 0x0001086c UTL scriptDir: C:/TDengine/script 12/02 17:06:36.256000 0x0001086c UTL arbitrator:
12/02 17:06:36.256000 0x0001086c UTL numOfThreadsPerCore: 1.000000 12/02 17:06:36.256000 0x0001086c UTL rpcTimer: 1000(ms) 12/02 17:06:36.256000 0x0001086c UTL rpcMaxTime: 600(s) 12/02 17:06:36.256000 0x0001086c UTL shellActivityTimer: 3(s) 12/02 17:06:36.256000 0x0001086c UTL tableMetaKeepTimer: 7200(s) 12/02 17:06:36.256000 0x0001086c UTL compressMsgSize: -1 12/02 17:06:36.256000 0x0001086c UTL maxSQLLength: 65480(byte) 12/02 17:06:36.256000 0x0001086c UTL maxNumOfOrderedRes: 100000 12/02 17:06:36.256000 0x0001086c UTL timezone: not configured 12/02 17:06:36.256000 0x0001086c UTL locale: Chinese_China.936 12/02 17:06:36.256000 0x0001086c UTL charset: cp936 12/02 17:06:36.256000 0x0001086c UTL numOfLogLines: 10000000 12/02 17:06:36.256000 0x0001086c UTL logKeepDays: 0 12/02 17:06:36.256000 0x0001086c UTL asyncLog: 1 12/02 17:06:36.256000 0x0001086c UTL debugFlag: 0 12/02 17:06:36.256000 0x0001086c UTL rpcDebugFlag: 131 12/02 17:06:36.256000 0x0001086c UTL tmrDebugFlag: 131 12/02 17:06:36.256000 0x0001086c UTL cDebugFlag: 131 12/02 17:06:36.256000 0x0001086c UTL jniDebugFlag: 131 12/02 17:06:36.256000 0x0001086c UTL odbcDebugFlag: 131 12/02 17:06:36.256000 0x0001086c UTL uDebugFlag: 131 12/02 17:06:36.256000 0x0001086c UTL qDebugFlag: 131 12/02 17:06:36.256000 0x0001086c UTL tsdbDebugFlag: 131 12/02 17:06:36.256000 0x0001086c UTL gitinfo: community 12/02 17:06:36.256000 0x0001086c UTL gitinfoOfInternal: internal 12/02 17:06:36.256000 0x0001086c UTL buildinfo: Built at 2020-11-30 17:49:53 12/02 17:06:36.256000 0x0001086c UTL version: 2.0.8.2 12/02 17:06:36.256000 0x0001086c UTL maxBinaryDisplayWidth: 30 12/02 17:06:36.256000 0x0001086c UTL tempDir: C:\Users\DELl\AppData\Local\Temp 12/02 17:06:37.762000 0x0000c758 RPC ERROR TSC 000001588346C330 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:38.767000 0x0000c758 RPC ERROR TSC 000001588346C330 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:39.509000 0x00013a48 RPC ERROR TSC failed to malloc client FdObj(Bad file descriptor) 12/02 17:06:39.509000 0x00013a48 RPC ERROR failed to connect to:0x0:6030 12/02 17:06:39.510000 0x00013a48 RPC ERROR TSC 000001588376CAA0, failed to set up connection(Unable to establish connection) 12/02 17:06:39.773000 0x0000c758 RPC ERROR TSC 000001588346C330 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:40.777000 0x0000c758 RPC ERROR TSC 000001588346C330 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:43.288000 0x0000c758 RPC ERROR TSC 000001588346C620 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:44.293000 0x0000c758 RPC ERROR TSC 000001588346C620 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:45.298000 0x0000c758 RPC ERROR TSC 000001588346C620 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:46.303000 0x0000c758 RPC ERROR TSC 000001588346C620 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:48.812000 0x0000c758 RPC ERROR TSC 000001588346C798 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:49.818000 0x0000c758 RPC ERROR TSC 000001588346C798 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:50.823000 0x0000c758 RPC ERROR TSC 000001588346C798 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:51.827000 0x0000c758 RPC ERROR TSC 000001588346C798 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:54.338000 0x0000c758 RPC ERROR TSC 000001588346C910 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:55.342000 0x0000c758 RPC ERROR TSC 000001588346C910 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:56.348000 0x0000c758 RPC ERROR TSC 000001588346C910 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:57.352000 0x0000c758 RPC ERROR TSC 000001588346C910 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:06:59.863000 0x0000c758 RPC ERROR TSC 000001588346CA88 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:00.867000 0x0000c758 RPC ERROR TSC 000001588346CA88 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:01.873000 0x0000c758 RPC ERROR TSC 000001588346CA88 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:02.877000 0x0000c758 RPC ERROR TSC 000001588346CA88 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:05.387000 0x0000c758 RPC ERROR TSC 000001588346CC00 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:06.393000 0x0000c758 RPC ERROR TSC 000001588346CC00 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:07.398000 0x0000c758 RPC ERROR TSC 000001588346CC00 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:08.402000 0x0000c758 RPC ERROR TSC 000001588346CC00 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:10.913000 0x0000c758 RPC ERROR TSC 000001588346CD78 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:11.918000 0x0000c758 RPC ERROR TSC 000001588346CD78 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:12.923000 0x0000c758 RPC ERROR TSC 000001588346CD78 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:13.927000 0x0000c758 RPC ERROR TSC 000001588346CD78 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:16.438000 0x0000c758 RPC ERROR TSC 000001588346CEF0 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:17.443000 0x0000c758 RPC ERROR TSC 000001588346CEF0 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:18.447000 0x0000c758 RPC ERROR TSC 000001588346CEF0 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:19.453000 0x0000c758 RPC ERROR TSC 000001588346CEF0 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:21.962000 0x0000c758 RPC ERROR TSC 000001588346D068 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:22.968000 0x0000c758 RPC ERROR TSC 000001588346D068 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:23.093000 0x00013a48 RPC ERROR TSC failed to malloc client FdObj(Bad file descriptor) 12/02 17:07:23.093000 0x00013a48 RPC ERROR failed to connect to:0x0:6030 12/02 17:07:23.093000 0x00013a48 RPC ERROR TSC 0000015883775250, failed to set up connection(Unable to establish connection) 12/02 17:07:23.413000 0x00013a48 RPC ERROR TSC failed to malloc client FdObj(Bad file descriptor) 12/02 17:07:23.413000 0x00013a48 RPC ERROR failed to connect to:0x0:6030 12/02 17:07:23.413000 0x00013a48 RPC ERROR TSC 0000015883774A40, failed to set up connection(Unable to establish connection) 12/02 17:07:23.669000 0x00013a48 RPC ERROR TSC failed to malloc client FdObj(Bad file descriptor) 12/02 17:07:23.669000 0x00013a48 RPC ERROR failed to connect to:0x0:6030 12/02 17:07:23.669000 0x00013a48 RPC ERROR TSC 0000015883774A40, failed to set up connection(Unable to establish connection) 12/02 17:07:23.973000 0x0000c758 RPC ERROR TSC 000001588346D068 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:24.229000 0x00013a48 RPC ERROR TSC failed to malloc client FdObj(Bad file descriptor) 12/02 17:07:24.229000 0x00013a48 RPC ERROR failed to connect to:0x0:6030 12/02 17:07:24.229000 0x00013a48 RPC ERROR TSC 0000015883774A40, failed to set up connection(Unable to establish connection) 12/02 17:07:24.977000 0x0000c758 RPC ERROR TSC 000001588346D068 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:27.487000 0x0000c758 RPC ERROR TSC 000001588346D7C0 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:28.493000 0x0000c758 RPC ERROR TSC 000001588346D7C0 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error 12/02 17:07:29.497000 0x0000c758 RPC ERROR TSC 000001588346D7C0 0000015883736530, failed to send, msgLen:136 written:-1, reason:No error

Aries-Lee1991 commented 3 years ago

看一下FAQ第五条:https://www.taosdata.com/cn/documentation/faq/是否能解决。 @ljw0903

zyyang90 commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.