eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.64k stars 1.82k forks source link

[Bug] [Module Name]server start no validator found #1090

Closed shuracwf closed 7 months ago

shuracwf commented 9 months ago

Search before asking

Operating system information

Linux

Python version information

=3.11

DB-GPT version

latest release

Related scenes

Installation Information

Device information

4090

Models information

LLM_MODEL=vicuna-13b-v1.5

What happened

启动时报错,日志如下: (base) root@yons-MS-7E06:/home/yons/yunli/DB-GPT# python dbgpt/app/dbgpt_server.py

=========================== WebServerParameters ===========================

host: 0.0.0.0 port: 5000 daemon: False controller_addr: None model_name: vicuna-13b-v1.5 share: False remote_embedding: False log_level: INFO light: False log_file: dbgpt_webserver.log tracer_file: dbgpt_webserver_tracer.jsonl tracer_storage_cls: None disable_alembic_upgrade: False awel_dirs: None

======================================================================

2024-01-19 14:13:26 yons-MS-7E06 dbgpt.app.base[58773] INFO Database dbgpt already exists 2024-01-19 14:13:26 yons-MS-7E06 dbgpt.component[58773] INFO Register component with name dbgpt_unified_metadata_db_manager_factory and instance: <dbgpt.storage.metadata.db_factory.UnifiedDBManagerFactory object at 0x7f8c1978e890> 2024-01-19 14:13:26 yons-MS-7E06 numexpr.utils[58773] INFO Note: NumExpr detected 32 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. 2024-01-19 14:13:26 yons-MS-7E06 numexpr.utils[58773] INFO NumExpr defaulting to 8 threads. /root/anaconda3/lib/python3.11/site-packages/pydantic/_internal/_fields.py:149: UserWarning: Field "modelname" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( /root/anaconda3/lib/python3.11/site-packages/pydantic/_internal/_fields.py:149: UserWarning: Field "modelkwargs" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( Traceback (most recent call last): File "/home/yons/yunli/DB-GPT/dbgpt/app/dbgpt_server.py", line 245, in run_webserver() File "/home/yons/yunli/DB-GPT/dbgpt/app/dbgpt_server.py", line 240, in run_webserver param = initialize_app(param) ^^^^^^^^^^^^^^^^^^^^^ File "/home/yons/yunli/DB-GPT/dbgpt/app/dbgpt_server.py", line 162, in initialize_app mount_routers(app) File "/home/yons/yunli/DB-GPT/dbgpt/app/dbgpt_server.py", line 92, in mount_routers from dbgpt.app.knowledge.api import router as knowledge_router File "/home/yons/scripts/DBGPT/dbgpt/app/knowledge/api.py", line 14, in from dbgpt.app.openapi.api_v1.api_v1 import no_stream_generator, stream_generator File "/home/yons/scripts/DBGPT/dbgpt/app/openapi/api_v1/api_v1.py", line 31, in from dbgpt.app.knowledge.service import KnowledgeService File "/home/yons/scripts/DBGPT/dbgpt/app/knowledge/service.py", line 36, in from dbgpt.app.knowledge.space_db import ( File "/home/yons/scripts/DBGPT/dbgpt/app/knowledge/space_db.py", line 7, in from dbgpt.app.knowledge.request.request import KnowledgeSpaceRequest File "/home/yons/scripts/DBGPT/dbgpt/app/knowledge/request/request.py", line 83, in class KnowledgeSyncRequest(BaseModel): File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/main.py", line 197, in new fields[ann_name] = ModelField.infer( ^^^^^^^^^^^^^^^^^ File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/fields.py", line 506, in infer return cls( ^^^^ File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/fields.py", line 436, in init self.prepare() File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/fields.py", line 557, in prepare self.populate_validators() File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/fields.py", line 831, in populate_validators *(get_validators() if get_validators else list(findvalidators(self.type, self.model_config))), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/validators.py", line 765, in findvalidators raise RuntimeError(f'no validator found for {type}, see arbitrary_types_allowed in Config') RuntimeError: no validator found for <class 'dbgpt.rag.chunk_manager.ChunkParameters'>, see arbitrary_types_allowed in Config

What you expected to happen

thanks

How to reproduce

thanks

Additional context

No response

Are you willing to submit PR?

github-actions[bot] commented 7 months ago

This issue has been marked as stale, because it has been over 30 days without any activity.

github-actions[bot] commented 7 months ago

This issue bas been closed, because it has been marked as stale and there has been no activity for over 7 days.

lxwkobe24 commented 6 months ago

Search before asking

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

Operating system information

Linux

Python version information

=3.11

DB-GPT version

latest release

Related scenes

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

Installation Information

Device information

4090

Models information

LLM_MODEL=vicuna-13b-v1.5

What happened

启动时报错,日志如下: (base) root@yons-MS-7E06:/home/yons/yunli/DB-GPT# python dbgpt/app/dbgpt_server.py

=========================== WebServerParameters ===========================

host: 0.0.0.0 port: 5000 daemon: False controller_addr: None model_name: vicuna-13b-v1.5 share: False remote_embedding: False log_level: INFO light: False log_file: dbgpt_webserver.log tracer_file: dbgpt_webserver_tracer.jsonl tracer_storage_cls: None disable_alembic_upgrade: False awel_dirs: None

======================================================================

2024-01-19 14:13:26 yons-MS-7E06 dbgpt.app.base[58773] INFO Database dbgpt already exists 2024-01-19 14:13:26 yons-MS-7E06 dbgpt.component[58773] INFO Register component with name dbgpt_unified_metadata_db_manager_factory and instance: <dbgpt.storage.metadata.db_factory.UnifiedDBManagerFactory object at 0x7f8c1978e890> 2024-01-19 14:13:26 yons-MS-7E06 numexpr.utils[58773] INFO Note: NumExpr detected 32 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. 2024-01-19 14:13:26 yons-MS-7E06 numexpr.utils[58773] INFO NumExpr defaulting to 8 threads. /root/anaconda3/lib/python3.11/site-packages/pydantic/_internal/_fields.py:149: UserWarning: Field "modelname" has conflict with protected namespace "model".

You may be able to resolve this warning by setting . warnings.warn( /root/anaconda3/lib/python3.11/site-packages/pydantic/_internal/_fields.py:149: UserWarning: Field "modelkwargs" has conflict with protected namespace "model".model_config['protected_namespaces'] = ()

You may be able to resolve this warning by setting . warnings.warn( Traceback (most recent call last): File "/home/yons/yunli/DB-GPT/dbgpt/app/dbgpt_server.py", line 245, in run_webserver() File "/home/yons/yunli/DB-GPT/dbgpt/app/dbgpt_server.py", line 240, in run_webserver param = initialize_app(param) ^^^^^^^^^^^^^^^^^^^^^ File "/home/yons/yunli/DB-GPT/dbgpt/app/dbgpt_server.py", line 162, in initialize_app mount_routers(app) File "/home/yons/yunli/DB-GPT/dbgpt/app/dbgpt_server.py", line 92, in mount_routers from dbgpt.app.knowledge.api import router as knowledge_router File "/home/yons/scripts/DBGPT/dbgpt/app/knowledge/api.py", line 14, in from dbgpt.app.openapi.api_v1.api_v1 import no_stream_generator, stream_generator File "/home/yons/scripts/DBGPT/dbgpt/app/openapi/api_v1/api_v1.py", line 31, in from dbgpt.app.knowledge.service import KnowledgeService File "/home/yons/scripts/DBGPT/dbgpt/app/knowledge/service.py", line 36, in from dbgpt.app.knowledge.space_db import ( File "/home/yons/scripts/DBGPT/dbgpt/app/knowledge/space_db.py", line 7, in from dbgpt.app.knowledge.request.request import KnowledgeSpaceRequest File "/home/yons/scripts/DBGPT/dbgpt/app/knowledge/request/request.py", line 83, in class KnowledgeSyncRequest(BaseModel): File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/main.py", line 197, in new fields[ann_name] = ModelField.infer( ^^^^^^^^^^^^^^^^^ File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/fields.py", line 506, in infer return cls( ^^^^ File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/fields.py", line 436, in init self.prepare() File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/fields.py", line 557, in prepare self.populate_validators() File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/fields.py", line 831, in populate_validators *(get_validators() if get_validators else list(findvalidators(self.type, self.model_config))), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/anaconda3/lib/python3.11/site-packages/pydantic/v1/validators.py", line 765, in findvalidators raise RuntimeError(f'no validator found for {type}, see in Config') RuntimeError: no validator found for <class 'dbgpt.rag.chunk_manager.ChunkParameters'>, see in Configmodel_config['protected_namespaces'] = ()``arbitrary_types_allowed``arbitrary_types_allowed

What you expected to happen

thanks

How to reproduce

thanks

Additional context

No response

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

请问你解决了这个问题了吗