Closed CrazyWood2020 closed 1 month ago
This issue has been marked as stale
, because it has been over 30 days without any activity.
邮件已收到,本回复为自动回复,我将尽快与您取得联系,谢谢!
port looks to hardcoded in .js file.. you can replace all the places in 5000 with your docker port default 8000 (vs code search option)
邮件已收到,本回复为自动回复,我将尽快与您取得联系,谢谢!
This issue has been marked as stale
, because it has been over 30 days without any activity.
邮件已收到,本回复为自动回复,我将尽快与您取得联系,谢谢!
This issue has been marked as stale
, because it has been over 30 days without any activity.
This issue bas been closed, because it has been marked as stale
and there has been no activity for over 7 days.
Search before asking
Operating system information
Windows
Python version information
DB-GPT version
latest release
Related scenes
Installation Information
[ ] Installation From Source
[X] Docker Installation
[ ] Docker Compose Installation
[ ] Cluster Installation
[ ] AutoDL Image
[ ] Other
Device information
GPU count: 1 RTX4080 GPU memory: 16GB
Models information
LLM: vicuna-13b-v1.5 Embedding model:text2vec-large-chinese
What happened
/prompt/list params: chat_scene=None sub_chat_scene=None prompt_type='common' content=None user_name=None sys_code=None prompt_name=None INFO: 172.17.0.1:57044 - "POST /api/v1/chat/mode/params/list?chat_mode=chat_with_db_qa HTTP/1.1" 500 Internal Server Error Loading checkpoint shards: 33%|███▎ | 1/3 [00:37<01:14, 37.46s/it]ERROR: Exception in ASGI application Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 108, in call response = await self.dispatch_func(request, call_next) File "/app/dbgpt/util/tracer/tracer_middleware.py", line 44, in dispatch response = await call_next(request) File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 84, in call_next raise app_exc File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 70, in coro await self.app(scope, receive_or_disconnect, send_no_error) File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 91, in call await self.simple_response(scope, receive, send, request_headers=headers) File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 146, in simple_response await self.app(scope, receive, send) File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 79, in call raise exc File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 68, in call await self.app(scope, receive, sender) File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 20, in call raise e File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 17, in call await self.app(scope, receive, send) File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 718, in call await route.handle(scope, receive, send) File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 276, in handle await self.app(scope, receive, send) File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 66, in app response = await func(request) File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 241, in app raw_response = await run_endpoint_function( File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 167, in run_endpoint_function return await dependant.call(**values) File "/app/dbgpt/app/openapi/api_v1/api_v1.py", line 279, in params_list return Result.succ(get_db_list()) File "/app/dbgpt/app/openapi/api_v1/api_v1.py", line 77, in get_db_list dbs = CFG.LOCAL_DB_MANAGE.get_db_list() AttributeError: 'NoneType' object has no attribute 'get_db_list'
During handling of the above exception, another exception occurred:
+------------------------------------
What you expected to happen
There should be no Request error or Network Error
How to reproduce
LLM: vicuna-13b-v1.5 Embedding model:text2vec-large-chinese
docker run command: docker run --ipc host --gpus all -d -p 5000:5000 -e LOCAL_DB_TYPE=sqlite -e LOCAL_DB_PATH=data/default_sqlite.db -e LLM_MODEL=vicuna-13b-v1.5 -e LANGUAGE=zh -v /d/models:/app/models --name dbgpt eosphorosai/dbgpt
Accessing localhost:5000 would get error on page like:![image](https://github.com/eosphoros-ai/DB-GPT/assets/67550631/34ad8247-f287-45e9-b67d-2bb98d57213a)
While the DB-GPT docker would break down with error report in docker logs:
| File "/app/dbgpt/app/openapi/api_v1/api_v1.py", line 77, in get_db_list | dbs = CFG.LOCAL_DB_MANAGE.get_db_list() | AttributeError: 'NoneType' object has no attribute 'get_db_list'
Additional context
No response
Are you willing to submit PR?