本地部署报错:
Traceback (most recent call last):
File "/home/ec2-user/workdir/DB-GPT/dbgpt/serve/agent/db/gpts_app.py", line 1233, in init_native_apps
gpts_dao.remove_native_app(chat_excel_app.app_code)
File "/home/ec2-user/workdir/DB-GPT/dbgpt/serve/agent/db/gpts_app.py", line 834, in remove_native_app
app_qry.delete()
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 3161, in delete
result: CursorResult[Any] = self.session.execute(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2306, in execute
return self._execute_internal(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2191, in _execute_internal
result: Result[Any] = compile_state_cls.orm_execute_statement(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/bulk_persistence.py", line 1946, in orm_execute_statement
return super().orm_execute_statement(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/context.py", line 293, in orm_execute_statement
result = conn.execute(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1421, in execute
return meth(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 514, in _execute_on_connection
return connection._execute_clauseelement(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1643, in _execute_clauseelement
ret = self._execute_context(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1849, in _execute_context
return self._exec_single_context(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1989, in _exec_single_context
self._handle_dbapi_exception(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2356, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1970, in _exec_single_context
self.dialect.do_execute(
File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 924, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: gpts_app
[SQL: DELETE FROM gpts_app WHERE gpts_app.team_mode = ? AND gpts_app.app_code = ?]
[parameters: ('native_app', 'chat_excel')]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
2024-11-28 08:47:07 ip-172-31-32-169.ec2.internal dbgpt.app.initialization.embedding_component[10507] INFO Register local LocalEmbeddingFactory
2024-11-28 08:47:07 ip-172-31-32-169.ec2.internal dbgpt.model.adapter.embeddings_loader[10507] INFO [EmbeddingsModelWorker] Parameters of device is None, use cuda
2024-11-28 08:47:07 ip-172-31-32-169.ec2.internal dbgpt.app.initialization.embedding_component[10507] INFO
Search before asking
Operating system information
Linux
Python version information
3.10
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 Count:1 24G
Models information
LLM_MODEL=glm-4-9b-chat
What happened
本地部署报错: Traceback (most recent call last): File "/home/ec2-user/workdir/DB-GPT/dbgpt/serve/agent/db/gpts_app.py", line 1233, in init_native_apps gpts_dao.remove_native_app(chat_excel_app.app_code) File "/home/ec2-user/workdir/DB-GPT/dbgpt/serve/agent/db/gpts_app.py", line 834, in remove_native_app app_qry.delete() File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 3161, in delete result: CursorResult[Any] = self.session.execute( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2306, in execute return self._execute_internal( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2191, in _execute_internal result: Result[Any] = compile_state_cls.orm_execute_statement( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/bulk_persistence.py", line 1946, in orm_execute_statement return super().orm_execute_statement( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/orm/context.py", line 293, in orm_execute_statement result = conn.execute( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1421, in execute return meth( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 514, in _execute_on_connection return connection._execute_clauseelement( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1643, in _execute_clauseelement ret = self._execute_context( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1849, in _execute_context return self._exec_single_context( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1989, in _exec_single_context self._handle_dbapi_exception( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2356, in _handle_dbapi_exception raise sqlalchemy_exception.with_traceback(exc_info[2]) from e File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1970, in _exec_single_context self.dialect.do_execute( File "/opt/conda/envs/dbgpt_env/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 924, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: gpts_app [SQL: DELETE FROM gpts_app WHERE gpts_app.team_mode = ? AND gpts_app.app_code = ?] [parameters: ('native_app', 'chat_excel')] (Background on this error at: https://sqlalche.me/e/20/e3q8) 2024-11-28 08:47:07 ip-172-31-32-169.ec2.internal dbgpt.app.initialization.embedding_component[10507] INFO Register local LocalEmbeddingFactory 2024-11-28 08:47:07 ip-172-31-32-169.ec2.internal dbgpt.model.adapter.embeddings_loader[10507] INFO [EmbeddingsModelWorker] Parameters of device is None, use cuda 2024-11-28 08:47:07 ip-172-31-32-169.ec2.internal dbgpt.app.initialization.embedding_component[10507] INFO
What you expected to happen
success
How to reproduce
http://docs.dbgpt.cn/docs/quickstart/ 按照文档顺序执行,sqlite3数据库
Additional context
No response
Are you willing to submit PR?