netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.98k stars 1.17k forks source link

qanything-container-local | 启动后端服务超时 #146

Open gangbanyegeirichuan opened 9 months ago

gangbanyegeirichuan commented 9 months ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

当前行为 | Current Behavior

qanything-container-local | 启动后端服务超时,请检查日志文件 /workspace/qanything_local/logs/debug_logs/sanic_api.log 获取更多信息。

UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)>

期望行为 | Expected Behavior

No response

运行环境 | Environment

- OS:Ubuntu 22.04.1 LTS / Windows 10 WSL2
- NVIDIA Driver:NVIDIA-SMI 530.46
- CUDA:CUDA Version: 12.1
- Docker Compose:Docker Compose version v2.24.3-desktop.1
- NVIDIA GPU Memory:3060 12G

QAnything日志 | QAnything logs

UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_MODEL_NAME = None [2024-02-29 10:51:37 +0800] [161] [INFO] Sanic v23.6.0 INFO:sanic.root:Sanic v23.6.0 [2024-02-29 10:51:37 +0800] [161] [INFO] Goin' Fast @ http://0.0.0.0:8777 INFO:sanic.root:Goin' Fast @ http://0.0.0.0:8777 [2024-02-29 10:51:37 +0800] [161] [INFO] mode: production, w/ 10 workers INFO:sanic.root:mode: production, w/ 10 workers [2024-02-29 10:51:37 +0800] [161] [INFO] server: sanic, HTTP/1.1 INFO:sanic.root:server: sanic, HTTP/1.1 [2024-02-29 10:51:37 +0800] [161] [INFO] python: 3.10.12 INFO:sanic.root:python: 3.10.12 [2024-02-29 10:51:37 +0800] [161] [INFO] platform: Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35 INFO:sanic.root:platform: Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35 [2024-02-29 10:51:37 +0800] [161] [INFO] packages: sanic-routing==23.12.0, sanic-ext==23.6.0 INFO:sanic.root:packages: sanic-routing==23.12.0, sanic-ext==23.6.0 INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_MODEL_NAME = None INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_MODEL_NAME = None INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_MODEL_NAME = None INFO:root:OPENAI_API_MODEL_NAME = None INFO:root:OPENAI_API_MODEL_NAME = None INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_MODEL_NAME = None INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_MODEL_NAME = None INFO:root:OPENAI_API_MODEL_NAME = None INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_MODEL_NAME = None INFO:root:OPENAI_API_BASE = None INFO:root:OPENAI_API_MODEL_NAME = None UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> [2024-02-29 10:52:25 +0800] [617] [INFO] Sanic Extensions: UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> [2024-02-29 10:52:25 +0800] [618] [INFO] Sanic Extensions: UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> [2024-02-29 10:52:25 +0800] [614] [INFO] Sanic Extensions: UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> [2024-02-29 10:52:25 +0800] [621] [INFO] Sanic Extensions: INFO:sanic.root:Sanic Extensions: INFO:sanic.root:Sanic Extensions: INFO:sanic.root:Sanic Extensions: INFO:sanic.root:Sanic Extensions: [2024-02-29 10:52:25 +0800] [617] [INFO] > injection [0 dependencies; 0 constants] [2024-02-29 10:52:25 +0800] [618] [INFO] > injection [0 dependencies; 0 constants] INFO:sanic.root: > injection [0 dependencies; 0 constants] [2024-02-29 10:52:25 +0800] [614] [INFO] > injection [0 dependencies; 0 constants] UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> [2024-02-29 10:52:25 +0800] [619] [INFO] Sanic Extensions: [2024-02-29 10:52:25 +0800] [621] [INFO] > injection [0 dependencies; 0 constants] INFO:sanic.root: > injection [0 dependencies; 0 constants] UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> [2024-02-29 10:52:25 +0800] [616] [INFO] Sanic Extensions: INFO:sanic.root: > injection [0 dependencies; 0 constants] [2024-02-29 10:52:25 +0800] [618] [INFO] > openapi [http://0.0.0.0:8777/docs] INFO:sanic.root: > injection [0 dependencies; 0 constants] INFO:sanic.root:Sanic Extensions: [2024-02-29 10:52:25 +0800] [621] [INFO] > openapi [http://0.0.0.0:8777/docs] INFO:sanic.root:Sanic Extensions: [2024-02-29 10:52:25 +0800] [617] [INFO] > openapi [http://0.0.0.0:8777/docs] INFO:sanic.root: > openapi [http://0.0.0.0:8777/docs] [2024-02-29 10:52:25 +0800] [614] [INFO] > openapi [http://0.0.0.0:8777/docs] UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> [2024-02-29 10:52:25 +0800] [622] [INFO] Sanic Extensions: INFO:sanic.root:Sanic Extensions: [2024-02-29 10:52:25 +0800] [619] [INFO] > injection [0 dependencies; 0 constants] UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> [2024-02-29 10:52:25 +0800] [620] [INFO] Sanic Extensions: INFO:sanic.root: > openapi [http://0.0.0.0:8777/docs] [2024-02-29 10:52:25 +0800] [616] [INFO] > injection [0 dependencies; 0 constants] UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)> [2024-02-29 10:52:25 +0800] [613] [INFO] Sanic Extensions: INFO:sanic.root: > openapi [http://0.0.0.0:8777/docs] [2024-02-29 10:52:25 +0800] [618] [INFO] > http INFO:sanic.root: > openapi [http://0.0.0.0:8777/docs] [2024-02-29 10:52:25 +0800] [622] [INFO] > injection [0 dependencies; 0 constants] INFO:sanic.root: > injection [0 dependencies; 0 constants] INFO:sanic.root: > injection [0 dependencies; 0 constants] INFO:sanic.root:Sanic Extensions: [2024-02-29 10:52:25 +0800] [621] [INFO] > http INFO:sanic.root: > http INFO:sanic.root: > injection [0 dependencies; 0 constants] INFO:sanic.root:Sanic Extensions: [2024-02-29 10:52:25 +0800] [617] [INFO] > http INFO:sanic.root: > http [2024-02-29 10:52:25 +0800] [614] [INFO] > http INFO:sanic.root: > http [2024-02-29 10:52:25 +0800] [622] [INFO] > openapi [http://0.0.0.0:8777/docs] [2024-02-29 10:52:25 +0800] [619] [INFO] > openapi [http://0.0.0.0:8777/docs] [2024-02-29 10:52:25 +0800] [620] [INFO] > injection [0 dependencies; 0 constants] [2024-02-29 10:52:25 +0800] [621] [INFO] > templating [jinja2==3.1.3] [2024-02-29 10:52:25 +0800] [616] [INFO] > openapi [http://0.0.0.0:8777/docs] INFO:sanic.root: > openapi [http://0.0.0.0:8777/docs] [2024-02-29 10:52:25 +0800] [613] [INFO] > injection [0 dependencies; 0 constants] INFO:sanic.root: > http [2024-02-29 10:52:25 +0800] [618] [INFO] > templating [jinja2==3.1.3] [2024-02-29 10:52:25 +0800] [614] [INFO] > templating [jinja2==3.1.3] INFO:sanic.root: > openapi [http://0.0.0.0:8777/docs] INFO:sanic.root: > openapi [http://0.0.0.0:8777/docs] INFO:sanic.root: > injection [0 dependencies; 0 constants] INFO:sanic.root: > templating [jinja2==3.1.3] [2024-02-29 10:52:25 +0800] [616] [INFO] > http INFO:sanic.root: > http INFO:sanic.root: > injection [0 dependencies; 0 constants] [2024-02-29 10:52:25 +0800] [617] [INFO] > templating [jinja2==3.1.3] INFO:sanic.root: > templating [jinja2==3.1.3] INFO:sanic.root: > templating [jinja2==3.1.3] [2024-02-29 10:52:25 +0800] [622] [INFO] > http [2024-02-29 10:52:25 +0800] [619] [INFO] > http [2024-02-29 10:52:25 +0800] [620] [INFO] > openapi [http://0.0.0.0:8777/docs] [2024-02-29 10:52:25 +0800] [616] [INFO] > templating [jinja2==3.1.3] [2024-02-29 10:52:25 +0800] [613] [INFO] > openapi [http://0.0.0.0:8777/docs] INFO:sanic.root: > templating [jinja2==3.1.3] INFO:sanic.root: > http INFO:sanic.root: > http INFO:sanic.root: > openapi [http://0.0.0.0:8777/docs] INFO:sanic.root: > templating [jinja2==3.1.3] INFO:sanic.root: > openapi [http://0.0.0.0:8777/docs] [2024-02-29 10:52:25 +0800] [622] [INFO] > templating [jinja2==3.1.3] [2024-02-29 10:52:25 +0800] [619] [INFO] > templating [jinja2==3.1.3] [2024-02-29 10:52:25 +0800] [620] [INFO] > http [2024-02-29 10:52:25 +0800] [613] [INFO] > http INFO:sanic.root: > templating [jinja2==3.1.3] INFO:sanic.root: > templating [jinja2==3.1.3] INFO:sanic.root: > http INFO:sanic.root: > http [2024-02-29 10:52:25 +0800] [620] [INFO] > templating [jinja2==3.1.3] [2024-02-29 10:52:25 +0800] [613] [INFO] > templating [jinja2==3.1.3] INFO:sanic.root: > templating [jinja2==3.1.3] INFO:sanic.root: > templating [jinja2==3.1.3] [2024-02-29 10:52:30 +0800] [621] [ERROR] 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) [2024-02-29 10:52:30 +0800] [617] [ERROR] 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) [2024-02-29 10:52:30 +0800] [618] [ERROR] 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) ERROR:sanic.error:1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) [2024-02-29 10:52:30 +0800] [619] [ERROR] 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) [2024-02-29 10:52:30 +0800] [614] [ERROR] 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) [2024-02-29 10:52:30 +0800] [622] [ERROR] 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) [2024-02-29 10:52:30 +0800] [620] [ERROR] 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) [2024-02-29 10:52:30 +0800] [616] [ERROR] 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) [2024-02-29 10:52:30 +0800] [613] [ERROR] 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) ERROR:sanic.error:1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) ERROR:sanic.error:1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) ERROR:sanic.error:1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) ERROR:sanic.error:1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) [2024-02-29 10:52:31 +0800] [161] [ERROR] Not all workers acknowledged a successful startup. Shutting down.

One of your worker processes terminated before startup was completed. Please solve any errors experienced during startup. If you do not see an exception traceback in your error logs, try running Sanic in in a single process using --single-process or single_process=True. Once you are confident that the server is able to start without errors you can switch back to multiprocess mode. ERROR:sanic.error:1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) ERROR:sanic.error:1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) ERROR:sanic.error:1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) ERROR:sanic.error:1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 308, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connector.MySQLInterfaceError: Access denied for user 'root'@'172.20.0.6' (using password: YES)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/sanic/worker/serve.py", line 117, in worker_serve return _serve_http_1( File "/usr/local/lib/python3.10/dist-packages/sanic/server/runners.py", line 223, in _serve_http_1 loop.run_until_complete(app._server_event("init", "before")) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1764, in _server_event await self.dispatch( File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 208, in dispatch return await dispatch File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 183, in _dispatch raise e File "/usr/local/lib/python3.10/dist-packages/sanic/signals.py", line 167, in _dispatch retval = await maybe_coroutine File "/usr/local/lib/python3.10/dist-packages/sanic/app.py", line 1315, in _listener await maybe_coro File "/workspace/qanything_local/qanything_kernel/qanything_server/sanic_api.py", line 71, in init_local_doc_qa local_doc_qa.init_cfg(mode=args.mode) File "/workspace/qanything_local/qanything_kernel/core/local_doc_qa.py", line 54, in init_cfg self.milvus_summary = KnowledgeBaseManager(self.mode) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 18, in init self.checkdatabase(host, port, user, password, database) File "/workspace/qanything_local/qanything_kernel/connector/database/mysql/mysql_client.py", line 32, in checkdatabase cnx = mysql.connector.connect( File "/usr/local/lib/python3.10/dist-packages/mysql/connector/pooling.py", line 293, in connect return CMySQLConnection(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 129, in init self.connect(kwargs) File "/usr/local/lib/python3.10/dist-packages/mysql/connector/abstracts.py", line 1237, in connect self._open_connection() File "/usr/local/lib/python3.10/dist-packages/mysql/connector/connection_cext.py", line 313, in _open_connection raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'172.20.0.6' (using password: YES) ERROR:sanic.error:Not all workers acknowledged a successful startup. Shutting down.

One of your worker processes terminated before startup was completed. Please solve any errors experienced during startup. If you do not see an exception traceback in your error logs, try running Sanic in in a single process using --single-process or single_process=True. Once you are confident that the server is able to start without errors you can switch back to multiprocess mode. [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-0-0 [613] INFO:sanic.root:Killing Sanic-Server-0-0 [613] [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-1-0 [614] INFO:sanic.root:Killing Sanic-Server-1-0 [614] [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-2-0 [615] INFO:sanic.root:Killing Sanic-Server-2-0 [615] [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-3-0 [616] INFO:sanic.root:Killing Sanic-Server-3-0 [616] [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-4-0 [617] INFO:sanic.root:Killing Sanic-Server-4-0 [617] [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-5-0 [618] INFO:sanic.root:Killing Sanic-Server-5-0 [618] [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-6-0 [619] INFO:sanic.root:Killing Sanic-Server-6-0 [619] [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-7-0 [620] INFO:sanic.root:Killing Sanic-Server-7-0 [620] [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-8-0 [621] INFO:sanic.root:Killing Sanic-Server-8-0 [621] [2024-02-29 10:52:31 +0800] [161] [INFO] Killing Sanic-Server-9-0 [622] INFO:sanic.root:Killing Sanic-Server-9-0 [622] [2024-02-29 10:52:31 +0800] [161] [INFO] Server Stopped INFO:sanic.root:Server Stopped UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content llm_api_serve_port: 7802 rerank_port: 9001 embed_port: 9001 <Logger debug_logger (INFO)> <Logger qa_logger (INFO)>

复现方法 | Steps To Reproduce

bash ./run.sh -c local -i 0 -b hf -m Yi-6B-Chat -t minichat

备注 | Anything else?

No response

lim0513 commented 9 months ago

遇到同样问题,这时候不要急于停止服务,继续看[sanic_api]日志,大概5~10分钟后会出现Starting worker,这时候关闭程序,然后再次启动。

blueColdSea commented 9 months ago

我也遇到了相同的问题,报错内容大致相同,如果需要,可以提供,现在还没有解决

复现方法 | Steps To Reproduce

bash ./run.sh -c local -i 1 -b hf -m Qwen-7B-QAnything -t qwen-7b-qanything

sqh774-creator commented 9 months ago

遇到同样的问题,这时候不要急于停止服务,继续看[sanic_api]日志,大概5~10分钟后会出现Starting worker,这时候关闭程序,然后再次启动。 这个日志在哪看哇

moosiki commented 9 months ago

我也遇到了相同的问题,报错内容大致相同,如果需要,可以提供,现在还没有解决

复现方法 | Steps To Reproduce

bash ./run.sh -c local -i 1 -b hf -m Qwen-7B-QAnything -t qwen-7b-qanything

可以修改脚本文件run_for_local_option.sh 392行的超时时间,设置长一点就可以了

wj920291253 commented 3 months ago

遇到同样问题,这时候不要急于停止服务,继续看[sanic_api]日志,大概5~10分钟后会出现Starting worker,这时候关闭程序,然后再次启动。

我等了805秒,启动成功了,但是关闭程序再次启动,还是需要805秒

wj920291253 commented 3 months ago

每次启动耗时都锁定为805s,就离谱啊啊= = qanything-container-local | Time elapsed: 805 seconds. qanything-container-local | 已耗时: 805 秒.