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

[Bug] [Module Name] delete database failed #2302

Open
2 of 15 tasks
LuWei6896 opened this issue Jan 14, 2025 · 0 comments
Open
2 of 15 tasks

[Bug] [Module Name] delete database failed #2302

LuWei6896 opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working Waiting for reply

Comments

@LuWei6896
Copy link

LuWei6896 commented Jan 14, 2025

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Windows

Python version information

=3.11

DB-GPT version

main

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

Device information

windows 11 家庭版

Models information

ollama

TuGraph config

TUGRAPH_HOST=192.168.3.X
TUGRAPH_PORT=7687
TUGRAPH_USERNAME=admin
TUGRAPH_PASSWORD=73@TuGraph
TUGRAPH_VERTEX_TYPE=entity
TUGRAPH_EDGE_TYPE=relation
TUGRAPH_PLUGIN_NAMES=leiden

What happened

2025-01-14 09:30:25 wendell dbgpt.serve.rag.connector[76776] INFO VectorStore:<class 'dbgpt.storage.vector_store.chroma_store.ChromaStore'>
2025-01-14 09:30:25 wendell dbgpt.serve.rag.connector[76776] INFO VectorStore:<class 'dbgpt.storage.vector_store.chroma_store.ChromaStore'>
2025-01-14 09:30:25 wendell dbgpt.storage.vector_store.chroma_store[76776] INFO Check persist_dir: d:\project\db-gpt\pilot\data\case_1_student_manager_profile.vectordb
2025-01-14 09:30:25 wendell dbgpt.storage.vector_store.chroma_store[76776] INFO chroma vector_name:case_1_student_manager_profile begin delete...
2025-01-14 09:30:25 wendell dbgpt.serve.rag.connector[76776] ERROR delete vector name case_1_student_manager_profile failed: Collection langchain does not exist.
2025-01-14 09:30:25 wendell dbgpt.serve.core.schemas[76776] ERROR common_exception_handler catch Exception: success=False err_code='E0003' err_msg='delete name case_1_student_manager_profile failed' data=None
INFO: 127.0.0.1:55626 - "POST /api/v1/chat/db/delete?db_name=case_1_student_manager HTTP/1.1" 400 Bad Request
ERROR: Exception in ASGI application

  • Exception Group Traceback (most recent call last):
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_utils.py", line 77, in collapse_excgroups
    | yield
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\base.py", line 186, in call
    | async with anyio.create_task_group() as task_group:
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\anyio_backends_asyncio.py", line 767, in aexit
    | raise BaseExceptionGroup(
    | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 409, in run_asgi
    | result = await app( # type: ignore[func-returns-value]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
    | return await self.app(scope, receive, send)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\cors.py", line 93, in call
    | await self.simple_response(scope, receive, send, request_headers=headers)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\cors.py", line 144, in simple_response
    | await self.app(scope, receive, send)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\fastapi\applications.py", line 1054, in call
    | await super().call(scope, receive, send)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\applications.py", line 113, in call
    | await self.middleware_stack(scope, receive, send)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\errors.py", line 187, in call
    | raise exc
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\errors.py", line 165, in call
    | await self.app(scope, receive, _send)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\base.py", line 185, in call
    | with collapse_excgroups():
    | File "D:\librarys\envs\db-gpt\Lib\contextlib.py", line 158, in exit
    | self.gen.throw(typ, value, traceback)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_utils.py", line 83, in collapse_excgroups
    | raise exc
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\base.py", line 187, in call
    | response = await self.dispatch_func(request, call_next)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | File "d:\project\db-gpt\dbgpt\util\tracer\tracer_middleware.py", line 49, in dispatch
    | response = await call_next(request)
    | ^^^^^^^^^^^^^^^^^^^^^^^^
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\base.py", line 163, in call_next
    | raise app_exc
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\base.py", line 149, in coro
    | await self.app(scope, receive_or_disconnect, send_no_error)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
    | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app
    | raise exc
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app
    | await app(scope, receive, sender)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 715, in call
    | await self.middleware_stack(scope, receive, send)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 735, in app
    | await route.handle(scope, receive, send)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 288, in handle
    | await self.app(scope, receive, send)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 76, in app
    | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app
    | raise exc
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app
    | await app(scope, receive, sender)
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 73, in app
    | response = await f(request)
    | ^^^^^^^^^^^^^^^^
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\fastapi\routing.py", line 301, in app
    | raw_response = await run_endpoint_function(
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | File "D:\librarys\envs\db-gpt\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    | return await dependant.call(**values)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | File "d:\project\db-gpt\dbgpt\app\openapi\api_v1\api_v1.py", line 217, in db_connect_delete
    | CFG.local_db_manager.db_summary_client.delete_db_profile(db_name)
    | File "d:\project\db-gpt\dbgpt\rag\summary\db_summary_client.py", line 147, in delete_db_profile
    | table_vector_connector.delete_vector_name(table_vector_store_name)
    | File "d:\project\db-gpt\dbgpt\serve\rag\connector.py", line 230, in delete_vector_name
    | raise Exception(f"delete name {vector_name} failed")
    | Exception: delete name case_1_student_manager_profile failed
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\librarys\envs\db-gpt\Lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 409, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\librarys\envs\db-gpt\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\cors.py", line 93, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\cors.py", line 144, in simple_response
await self.app(scope, receive, send)
File "D:\librarys\envs\db-gpt\Lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, _send)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\base.py", line 185, in call
with collapse_excgroups():
File "D:\librarys\envs\db-gpt\Lib\contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_utils.py", line 83, in collapse_excgroups
raise exc
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\base.py", line 187, in call
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\project\db-gpt\dbgpt\util\tracer\tracer_middleware.py", line 49, in dispatch
response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\base.py", line 163, in call_next
raise app_exc
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\base.py", line 149, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app
raise exc
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app
await app(scope, receive, sender)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 735, in app
await route.handle(scope, receive, send)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app
raise exc
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app
await app(scope, receive, sender)
File "D:\librarys\envs\db-gpt\Lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\librarys\envs\db-gpt\Lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\librarys\envs\db-gpt\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\project\db-gpt\dbgpt\app\openapi\api_v1\api_v1.py", line 217, in db_connect_delete
CFG.local_db_manager.db_summary_client.delete_db_profile(db_name)
File "d:\project\db-gpt\dbgpt\rag\summary\db_summary_client.py", line 147, in delete_db_profile
table_vector_connector.delete_vector_name(table_vector_store_name)
File "d:\project\db-gpt\dbgpt\serve\rag\connector.py", line 230, in delete_vector_name
raise Exception(f"delete name {vector_name} failed")
Exception: delete name case_1_student_manager_profile failed

What you expected to happen

image

How to reproduce

image

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@LuWei6896 LuWei6896 added bug Something isn't working Waiting for reply labels Jan 14, 2025
@LuWei6896 LuWei6896 changed the title [Bug] [Module Name] Bug title delete database failed [Bug] [Module Name] delete database failed Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply
Projects
None yet
Development

No branches or pull requests

1 participant