Python-client report error: login disconnected, login again
######## The code ######## class TDHelper(object): @staticmethod def connection(): ''' Warning: must close connection manually :return: ''' return taos.connect(host=settings.TDENGINE_CONFIG['HOST'], user=settings.TDENGINE_CONFIG['USER'], password=settings.TDENGINE_CONFIG['PASSWORD'], port=settings.TDENGINE_CONFIG['PORT'], database=settings.TDENGINE_CONFIG['NAME'])
@staticmethod
def select(sql):
conn = TDHelper.connection()
try:
cursor = conn.cursor()
cursor.execute(sql)
return cursor.fetchall()
except Exception as e:
if e.msg == 'invalid table':
return tuple()
logger.info(e)
raise(e)
finally:
conn.close()
####### DEBUG message ######## taos.error.ProgrammingError: login disconnected, login again
请问直接在python 的命令行里,import taos; conn = taos_connect() 这样可以连上数据库吗?如果不行的话,可以将日志(/var/log/taos/下面, C:TDengine\log/下面) 清空,在/etc/taos/taos.cfg 或者(C:TDengine\etc\taos\taos.cfg) 里面加上debugflag 135, 然后重启服务端,再跑一次python 程序,失败后后将日志压缩打包后发给我吗?
I also encountered whit this problem, i check the taoslog0.0 file. the error is : the 2-th number of server version:1.6.4.3 not matched with client version:1.6.3.1, close connection. I uninstall taos 1.6.3.1 and install 1.6.4.3 yestoday, also i uninstall the python connector with "pip uninstall taos", and reinstall the new version of python connector with "pip install python3/", but this problem still exsist. so ,how can i do more to reinstall python connector to make connector run success?
btw, the taos connect version is 1.4.15, is the right version?
btw, the taos connect version is 1.4.15, is the right version?
it is the python driver version and doesn't matter.
I also encountered whit this problem, i check the taoslog0.0 file. the error is : the 2-th number of server version:1.6.4.3 not matched with client version:1.6.3.1, close connection. I uninstall taos 1.6.3.1 and install 1.6.4.3 yestoday, also i uninstall the python connector with "pip uninstall taos", and reinstall the new version of python connector with "pip install python3/", but this problem still exsist. so ,how can i do more to reinstall python connector to make connector run success?
where did you install the tdengine server and client? have you make sure that all clients are upgraded, especially on the machine where you run your python code?
I also encountered whit this problem, i check the taoslog0.0 file. the error is : the 2-th number of server version:1.6.4.3 not matched with client version:1.6.3.1, close connection. I uninstall taos 1.6.3.1 and install 1.6.4.3 yestoday, also i uninstall the python connector with "pip uninstall taos", and reinstall the new version of python connector with "pip install python3/", but this problem still exsist. so ,how can i do more to reinstall python connector to make connector run success?
where did you install the tdengine server and client? have you make sure that all clients are upgraded?
- I install the server and client in the same machine, and use the package "TDengine-1.6.4.3.tar.gz".
- i uninstalled the old version with remove.sh, and install the new version taos server with instal.sh.
- then i uninstalled the connector with "pip uninstall taos" and install the new connector with "pip install python3/".
I also encountered whit this problem, i check the taoslog0.0 file. the error is : the 2-th number of server version:1.6.4.3 not matched with client version:1.6.3.1, close connection. I uninstall taos 1.6.3.1 and install 1.6.4.3 yestoday, also i uninstall the python connector with "pip uninstall taos", and reinstall the new version of python connector with "pip install python3/", but this problem still exsist. so ,how can i do more to reinstall python connector to make connector run success?
where did you install the tdengine server and client? have you make sure that all clients are upgraded?
- I install the server and client in the same machine, and use the package "TDengine-1.6.4.3.tar.gz".
- i uninstalled the old version with remove.sh, and install the new version taos server with instal.sh.
- then i uninstalled the connector with "pip uninstall taos" and install the new connector with "pip install python3/".
could you try 'rmtaos' command and then install the new version again? Then execute 'll /usr/lib/libtaos.so*' and show me the result?
lrwxrwxrwx 1 root root 21 12月 20 12:05 libtaos.so -> /usr/lib/libtaos.so.1 lrwxrwxrwx 1 root root 41 12月 20 12:05 libtaos.so.1 -> /usr/local/taos/driver/libtaos.so.1.6.4.3
I also encountered whit this problem, i check the taoslog0.0 file. the error is : the 2-th number of server version:1.6.4.3 not matched with client version:1.6.3.1, close connection. I uninstall taos 1.6.3.1 and install 1.6.4.3 yestoday, also i uninstall the python connector with "pip uninstall taos", and reinstall the new version of python connector with "pip install python3/", but this problem still exsist. so ,how can i do more to reinstall python connector to make connector run success?
where did you install the tdengine server and client? have you make sure that all clients are upgraded?
- I install the server and client in the same machine, and use the package "TDengine-1.6.4.3.tar.gz".
- i uninstalled the old version with remove.sh, and install the new version taos server with instal.sh.
- then i uninstalled the connector with "pip uninstall taos" and install the new connector with "pip install python3/".
could you try 'rmtaos' command and then install the new version again? Then execute 'll /usr/lib/libtaos.so*' and show me the result?
lrwxrwxrwx 1 root root 21 12月 20 12:05 libtaos.so -> /usr/lib/libtaos.so.1 lrwxrwxrwx 1 root root 41 12月 20 12:05 libtaos.so.1 -> /usr/local/taos/driver/libtaos.so.1.6.4.3
I also encountered whit this problem, i check the taoslog0.0 file. the error is : the 2-th number of server version:1.6.4.3 not matched with client version:1.6.3.1, close connection. I uninstall taos 1.6.3.1 and install 1.6.4.3 yestoday, also i uninstall the python connector with "pip uninstall taos", and reinstall the new version of python connector with "pip install python3/", but this problem still exsist. so ,how can i do more to reinstall python connector to make connector run success?
where did you install the tdengine server and client? have you make sure that all clients are upgraded?
- I install the server and client in the same machine, and use the package "TDengine-1.6.4.3.tar.gz".
- i uninstalled the old version with remove.sh, and install the new version taos server with instal.sh.
- then i uninstalled the connector with "pip uninstall taos" and install the new connector with "pip install python3/".
could you try 'rmtaos' command and then install the new version again? Then execute 'll /usr/lib/libtaos.so*' and show me the result?
lrwxrwxrwx 1 root root 21 12月 20 12:05 libtaos.so -> /usr/lib/libtaos.so.1 lrwxrwxrwx 1 root root 41 12月 20 12:05 libtaos.so.1 -> /usr/local/taos/driver/libtaos.so.1.6.4.3
Is there any way that I can remotely work on your computer and figure out the problems? If so, you can send the method to [email protected].
The reason has been found:Database doesn't exists!