Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级3.0.0后无法连接3.0版本的tdengine #29

Open
vagile-cn opened this issue Aug 20, 2022 · 8 comments
Open

升级3.0.0后无法连接3.0版本的tdengine #29

vagile-cn opened this issue Aug 20, 2022 · 8 comments
Assignees

Comments

@vagile-cn
Copy link

库版本 3.0.0
Connect后 句柄返回0
但是客户端taosshell 能正常链接

@xleili xleili self-assigned this Aug 22, 2022
@xleili
Copy link
Contributor

xleili commented Aug 22, 2022

这个是没有成功建立连接,检查一下配置。有报错吗?

@vagile-cn
Copy link
Author

没有报错 哪里能看错误信息吗?

@xleili
Copy link
Contributor

xleili commented Aug 22, 2022

看一下你调用 Connect() 的代码?
你是再windows上还是linux上跑的C#。Windows 看C:\TDengine\log,Linux看 /var/log/taos/taoslog0.0。 这个是taos客户端的日志。看看这里有报错么

@vagile-cn
Copy link
Author

好的 一会我试下。。我都已经装回2.6了= =

@vagile-cn
Copy link
Author

vagile-cn commented Aug 22, 2022

08/20 21:38:06.779000 00001508 QRY catalog update thread started
08/20 21:38:07.827000 00003012 RPC ERROR TSC conn 0000025C277B26E0 failed to connect server:connection timed out
08/20 21:38:08.869000 00003012 RPC ERROR TSC conn 0000025C277B5270 failed to connect server:connection timed out
08/20 21:38:09.914000 00003012 RPC ERROR TSC conn 0000025C277B5270 failed to connect server:connection timed out
08/20 21:38:09.916000 00007420 TSC ERROR 0x2 rsp msg:connect-rsp, code:Unable to establish connection rspLen:0, elapsed time:3127 ms, reqId:0xa7bf9c79a1430001
08/20 21:38:09.919000 00009020 RPC start to close rpc
08/20 21:38:09.920000 00009020 RPC rpc is closed

下面是另一次链接

08/20 21:42:27.711000 00023812 QRY scheduler 0x39354441373133 initizlized, maxJob:1000
08/20 21:42:27.712000 00022816 QRY catalog update thread started
08/20 21:42:36.782000 00022816 QRY CTG:0000026D750BEB60 start to remove db from cache, dbFName:information_schema, dbId:0x0
08/20 21:42:36.783000 00022816 QRY CTG:0000026D750BEB60 db removed from cache, dbFName:information_schema, dbId:0x0
08/20 21:44:41.565000 00000904 TSC ERROR 0x5 error happens, code:-2147473920 - syntax error near, reqId:0xd3a7bc7fa75c005c
08/20 21:44:43.578000 00022816 QRY CTG:0000026D750BEB60 start to remove db from cache, dbFName:information_schema, dbId:0x0
08/20 21:44:43.578000 00022816 QRY CTG:0000026D750BEB60 db removed from cache, dbFName:information_schema, dbId:0x0
08/20 21:47:57.066000 00000904 TSC ERROR 0x7 error happens, code:-2147473898 - Database not specified, reqId:0xd3a7bc82a30900e0
08/20 21:48:11.959000 00022816 QRY CTG:0000026D750BEB60 start to remove db from cache, dbFName:information_schema, dbId:0x0
08/20 21:48:11.959000 00022816 QRY CTG:0000026D750BEB60 db removed from cache, dbFName:information_schema, dbId:0x0
08/20 21:48:21.005000 00022816 QRY CTG:0000026D750BEB60 start to remove db from cache, dbFName:information_schema, dbId:0x0
08/20 21:48:21.005000 00022816 QRY CTG:0000026D750BEB60 db removed from cache, dbFName:information_schema, dbId:0x0

@xleili
Copy link
Contributor

xleili commented Aug 22, 2022

好的 一会我试下。。我都已经装回2.6了= =

用2.6 还有连接不上的问题吗?使用taoshell 可以做正常的查询、插入等操作吗?、
这个日志上又TSC ERROR有一处是语法错误:
08/20 21:44:41.565000 00000904 TSC ERROR 0x5 error happens, code:-2147473920 - syntax error near, reqId:0xd3a7bc7fa75c005c

还有一处是TSC ERROR:
08/20 21:47:57.066000 00000904 TSC ERROR 0x7 error happens, code:-2147473898 - Database not specified, reqId:0xd3a7bc82a30900e0

这两个Error 一般是 调用TDengine.Query() 接口是会报的错。不是建立连接时候爆出来的。配过FQDN吗?

@vagile-cn
Copy link
Author

2.6没问题
3.0版本 taos shell 里也是没问题的 一切正常

@Harbour8643
Copy link
Contributor

Harbour8643 commented Nov 26, 2022

如果是IIS的web,看一下C:\TDengine\log的日志文件的权限用户,删除这个日志文件就好了。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants