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

when using a dnode, conn throws an exception #120

Open
ak82091157 opened this issue Jan 2, 2023 · 5 comments
Open

when using a dnode, conn throws an exception #120

ak82091157 opened this issue Jan 2, 2023 · 5 comments

Comments

@ak82091157
Copy link

ak82091157 commented Jan 2, 2023

When using a dnode, create a connect like this: taos.connect(host=self.host, port=self.port, user=self.user, password=self.pwd, database=self.db, timezone=self.tz).When I use this connect object to query sql twice,it throws an exception:[0x000b]: Unable to establish connection
QQ截图20221230143047
But, When I create a connect like this: taos.connect(user=self.user, password=self.pwd, database=self.db, timezone=self.tz), it's all ok.In addition, the passing host and port are displayed with multiple dnodes without error too.
QQ截图20221230143227

system info:

QQ截图20230102214528

@sangshuduo
Copy link
Contributor

What version of TDengine you are using? Please check if the taosd daemon is still working or had been restarted?

@ak82091157
Copy link
Author

@sangshuduo Hi
TDengine version: 3.0.2.2
taospy version: 2.2.1
I'm sure the taosd daemon didn't restart.
I try again, like this:
QQ截图20230103101741
QQ截图20230103101655

@sangshuduo
Copy link
Contributor

taospy version is pretty old. Please use latest taospy with pip install -U taospy. And please upgrade your python to 3.7 or up since the taospy 2.4.0+ requests a newer Python.

@ak82091157
Copy link
Author

ak82091157 commented Jan 4, 2023

Today I tried the latest version of taos,but the problem still persists.
taospy version: 2.6.10
python version: 3.7.14
QQ截图20230104145849
QQ截图20230104145735

@sangshuduo
Copy link
Contributor

Could you please reproduce the problem then upload the taosdlog from the machine taosd running and taoslog here? It's better to clean old log first. The default log file path is /var/log/taos. Thanks.

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

2 participants