-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
error:taos connect failed, reason: Unexpected generic error in RPC. #3010
Comments
您可以查看一下服务器是否配置了 hostname 吗?谢谢 $ hostname |
配置文件在zip文件里有,看了一下,配置好像都是用#号注释了,应该是没有配置hostname |
卸载后重新安装,依然是同样错误,把过程贴上来,看有没有参考价值 [root@redis ~]# rpm -e TDengine Enter FQDN:port (like h1.taosdata.com:6030) of an existing TDengine cluster node to join TDengine is installed successfully! Welcome to the TDengine shell from Linux, Client Version:2.0.0.1 taos connect failed, reason: Unexpected generic error in RPC. [root@redis tdengine]# systemctl start taosd Welcome to the TDengine shell from Linux, Client Version:2.0.0.1 taos connect failed, reason: Unexpected generic error in RPC. |
This comment has been minimized.
This comment has been minimized.
请在 操作系统 shell 中执行下 $ hostname 看是否能取到正确的机器名。 |
能取到机器名:redis |
刚才用 taos -h localhost 试了下,报错变成了: |
今天早上用taos -h localhost ,先是这样: Welcome to the TDengine shell from Linux, Client Version:2.0.0.6 Failed to open file /root/.taos_history 报这个错 quit后再 taos -h localhost 正常了: Welcome to the TDengine shell from Linux, Client Version:2.0.0.6 taos> 直接taos还是一样的错: taos connect failed, reason: Unexpected generic error in RPC. |
基本查明原因了,是因为该虚拟机主机名起名为redis,但在 /etc/hosts 文件中未把redis配置进去,导致直接运行taos时不能把redis解析为127.0.0.1 bug的线索其实也挺明显,就在 /var/log/taos/taosdlog.0文件中: |
抱歉,用得不熟练,bug关了又开的 |
我使用 docker tdengine/tdengine:2.0 遇到了同样的问题: DB error: Unexpected generic error in RPC hostname配置操作如下(taos.cfg 默认): |
Bug Description
运行服务后,在linux控制台,运行taos报错:
taos connect failed, reason: Unexpected generic error in RPC.
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
正常运行
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional Context
上传日志给你们
log.zip
The text was updated successfully, but these errors were encountered: