2024-07-05 14:19:39 gptai dbgpt.datasource.manages.connect_config_db[3070178] INFO Result: <sqlalchemy.engine.cursor.CursorResult object at 0x7f3e718a5cc0>
2024-07-05 14:19:39 gptai dbgpt.storage.vector_store.connector[3070178] INFO VectorStore:<class 'dbgpt.storage.vector_store.chroma_store.ChromaStore'>
2024-07-05 14:19:39 gptai chromadb.api.segment[3070178] INFO Collection langchain is not created.
2024-07-05 14:19:39 gptai dbgpt.storage.vector_store.chroma_store[3070178] INFO Check persist_dir: /media/data/xgp/repo/DB-GPT/pilot/data/copilot_profile.vectordb
2024-07-05 14:19:39 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO Vector store name copilot_profile exist
2024-07-05 14:19:39 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO initialize db summary profile success...
2024-07-05 14:19:39 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO db summary embedding success
2024-07-05 14:19:39 gptai dbgpt.datasource.manages.connect_config_db[3070178] INFO Result: <sqlalchemy.engine.cursor.CursorResult object at 0x7f3e718a7e20>
2024-07-05 14:19:47 gptai dbgpt.storage.vector_store.connector[3070178] INFO VectorStore:<class 'dbgpt.storage.vector_store.chroma_store.ChromaStore'>
2024-07-05 14:19:47 gptai chromadb.api.segment[3070178] INFO Collection langchain is not created.
2024-07-05 14:19:47 gptai dbgpt.storage.vector_store.chroma_store[3070178] INFO Check persist_dir: /media/data/xgp/repo/DB-GPT/pilot/data/sx_adc_f2_profile.vectordb
2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO Vector store name sx_adc_f2_profile exist
2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO initialize db summary profile success...
2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO db summary embedding success
2024-07-05 14:19:47 gptai dbgpt.datasource.manages.connect_config_db[3070178] INFO Result: <sqlalchemy.engine.cursor.CursorResult object at 0x7f3e47f74220>
/media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py:87: SAWarning: Did not recognize type 'DATE' of column 'discovery_date'
self._metadata.reflect(bind=self._engine)
/media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py:87: SAWarning: Did not recognize type 'VARCHAR' of column 'technology'
self._metadata.reflect(bind=self._engine)
2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] WARNING adc, mysql summary error!NullType() takes no arguments, detail: Traceback (most recent call last):
File "/media/data/xgp/repo/DB-GPT/dbgpt/rag/summary/db_summary_client.py", line 75, in init_db_summary
self.db_summary_embedding(item["db_name"], item["db_type"])
File "/media/data/xgp/repo/DB-GPT/dbgpt/rag/summary/db_summary_client.py", line 43, in db_summary_embedding
db_summary_client = self.create_summary_client(dbname, db_type)
File "/media/data/xgp/repo/DB-GPT/dbgpt/rag/summary/db_summary_client.py", line 139, in create_summary_client
return RdbmsSummary(dbname, db_type)
File "/media/data/xgp/repo/DB-GPT/dbgpt/rag/summary/rdbms_db_summary.py", line 38, in init
self.db = db_manager.get_connector(name)
File "/media/data/xgp/repo/DB-GPT/dbgpt/datasource/manages/connector_manager.py", line 126, in get_connector
return connect_instance.from_uri_db( # type: ignore
File "/media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py", line 133, in from_uri_db
return cls.from_uri(db_url, engine_args, kwargs)
File "/media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py", line 141, in from_uri
return cls(create_engine(database_uri, _engine_args), kwargs)
File "/media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py", line 87, in init
self._metadata.reflect(bind=self._engine)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", line 5831, in reflect
_reflect_info = insp._get_reflection_info(
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 2006, in _get_reflection_info
columns=run(
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 1992, in run
res = meth(filter_names=_fn, kw)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 921, in get_multi_columns
table_col_defs = dict(
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 1101, in _default_multi_reflect
single_tbl_method(
File "", line 2, in get_columns
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 97, in cache
ret = fn(self, con, *args, kw)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/base.py", line 2964, in get_columns
parsed_state = self._parsed_state_or_create(
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/base.py", line 3224, in _parsed_state_or_create
return self._setup_parser(
File "", line 2, in _setup_parser
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 97, in cache
ret = fn(self, con, args, kw)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/base.py", line 3260, in _setup_parser
return parser.parse(sql, charset)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 48, in parse
self._parse_column(line, state)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 284, in _parse_column
type_instance = col_type(type_args, type_kw)
TypeError: NullType() takes no arguments**
Search before asking
Operating system information
Linux
Python version information
DB-GPT version
main
Related scenes
Installation Information
[X] Installation From Source
[ ] Docker Installation
[ ] Docker Compose Installation
[ ] Cluster Installation
[ ] AutoDL Image
[ ] Other
Device information
GPU: 2*A100,80G
Models information
tongyiproxyllm bge-large
What happened
运行时报错:python ./dbgpt/app/dbgpt_server.py --host 0.0.0.0 --port 6006
2024-07-05 14:19:39 gptai dbgpt.datasource.manages.connect_config_db[3070178] INFO Result: <sqlalchemy.engine.cursor.CursorResult object at 0x7f3e718a5cc0> 2024-07-05 14:19:39 gptai dbgpt.storage.vector_store.connector[3070178] INFO VectorStore:<class 'dbgpt.storage.vector_store.chroma_store.ChromaStore'> 2024-07-05 14:19:39 gptai chromadb.api.segment[3070178] INFO Collection langchain is not created. 2024-07-05 14:19:39 gptai dbgpt.storage.vector_store.chroma_store[3070178] INFO Check persist_dir: /media/data/xgp/repo/DB-GPT/pilot/data/copilot_profile.vectordb 2024-07-05 14:19:39 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO Vector store name copilot_profile exist 2024-07-05 14:19:39 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO initialize db summary profile success... 2024-07-05 14:19:39 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO db summary embedding success 2024-07-05 14:19:39 gptai dbgpt.datasource.manages.connect_config_db[3070178] INFO Result: <sqlalchemy.engine.cursor.CursorResult object at 0x7f3e718a7e20> 2024-07-05 14:19:47 gptai dbgpt.storage.vector_store.connector[3070178] INFO VectorStore:<class 'dbgpt.storage.vector_store.chroma_store.ChromaStore'> 2024-07-05 14:19:47 gptai chromadb.api.segment[3070178] INFO Collection langchain is not created. 2024-07-05 14:19:47 gptai dbgpt.storage.vector_store.chroma_store[3070178] INFO Check persist_dir: /media/data/xgp/repo/DB-GPT/pilot/data/sx_adc_f2_profile.vectordb 2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO Vector store name sx_adc_f2_profile exist 2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO initialize db summary profile success... 2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO db summary embedding success 2024-07-05 14:19:47 gptai dbgpt.datasource.manages.connect_config_db[3070178] INFO Result: <sqlalchemy.engine.cursor.CursorResult object at 0x7f3e47f74220> /media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py:87: SAWarning: Did not recognize type 'DATE' of column 'discovery_date' self._metadata.reflect(bind=self._engine) /media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py:87: SAWarning: Did not recognize type 'VARCHAR' of column 'technology' self._metadata.reflect(bind=self._engine) 2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] WARNING adc, mysql summary error!NullType() takes no arguments, detail: Traceback (most recent call last): File "/media/data/xgp/repo/DB-GPT/dbgpt/rag/summary/db_summary_client.py", line 75, in init_db_summary self.db_summary_embedding(item["db_name"], item["db_type"]) File "/media/data/xgp/repo/DB-GPT/dbgpt/rag/summary/db_summary_client.py", line 43, in db_summary_embedding db_summary_client = self.create_summary_client(dbname, db_type) File "/media/data/xgp/repo/DB-GPT/dbgpt/rag/summary/db_summary_client.py", line 139, in create_summary_client return RdbmsSummary(dbname, db_type) File "/media/data/xgp/repo/DB-GPT/dbgpt/rag/summary/rdbms_db_summary.py", line 38, in init self.db = db_manager.get_connector(name) File "/media/data/xgp/repo/DB-GPT/dbgpt/datasource/manages/connector_manager.py", line 126, in get_connector return connect_instance.from_uri_db( # type: ignore File "/media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py", line 133, in from_uri_db return cls.from_uri(db_url, engine_args, kwargs) File "/media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py", line 141, in from_uri return cls(create_engine(database_uri, _engine_args), kwargs) File "/media/data/xgp/repo/DB-GPT/dbgpt/datasource/rdbms/base.py", line 87, in init self._metadata.reflect(bind=self._engine) File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", line 5831, in reflect _reflect_info = insp._get_reflection_info( File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 2006, in _get_reflection_info columns=run( File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 1992, in run res = meth(filter_names=_fn, kw) File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 921, in get_multi_columns table_col_defs = dict( File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 1101, in _default_multi_reflect single_tbl_method( File "", line 2, in get_columns
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 97, in cache
ret = fn(self, con, *args, kw)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/base.py", line 2964, in get_columns
parsed_state = self._parsed_state_or_create(
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/base.py", line 3224, in _parsed_state_or_create
return self._setup_parser(
File "", line 2, in _setup_parser
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 97, in cache
ret = fn(self, con, args, kw)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/base.py", line 3260, in _setup_parser
return parser.parse(sql, charset)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 48, in parse
self._parse_column(line, state)
File "/root/anaconda3/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 284, in _parse_column
type_instance = col_type(type_args, type_kw)
TypeError: NullType() takes no arguments**
What you expected to happen
不知道是什么错误,如果是解析解析数据库错误,希望直到如何纠正?
How to reproduce
无
Additional context
No response
Are you willing to submit PR?