netease-youdao / QAnything

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

2.0通过mac安装,一直启动失败。 #496

Open newsyh opened 2 months ago

newsyh commented 2 months ago

设备:mac 芯片:M2 启动失败,一直提示 2024-09-06 11:23:20 Waiting for the backend service to start... 2024-09-06 11:23:20 等待启动后端服务 最终启动失败: [2024-09-06 03:23:52 +0000] [291] [INFO] Sanic Extensions: 2024-09-06 11:26:16 [2024-09-06 03:23:52 +0000] [291] [INFO] > injection [0 dependencies; 0 constants] 2024-09-06 11:26:16 [2024-09-06 03:23:52 +0000] [291] [INFO] > openapi [http://0.0.0.0:8777/docs] 2024-09-06 11:26:16 [2024-09-06 03:23:52 +0000] [291] [INFO] > http 2024-09-06 11:26:16 [2024-09-06 03:23:52 +0000] [291] [INFO] > templating [jinja2==3.1.4] 2024-09-06 11:26:16 [2024-09-06 03:23:55 +0000] [291] [ERROR] Connection error caused by: ConnectionError(Connection error caused by: ProtocolError(('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))) 2024-09-06 11:26:16 Traceback (most recent call last): 2024-09-06 11:26:16 File "/usr/local/lib/python3.10/site-packages/sanic/worker/serve.py", line 117, in worker_serve 2024-09-06 11:26:16 return _serve_http_1( 2024-09-06 11:26:16 File "/usr/local/lib/python3.10/site-packages/sanic/server/runners.py", line 223, in _serve_http_1 2024-09-06 11:26:16 loop.run_until_complete(app._server_event("init", "before")) 2024-09-06 11:26:16 -- 2024-09-06 11:26:16 meta, resp_body = self.transport.perform_request( 2024-09-06 11:26:16 File "/usr/local/lib/python3.10/site-packages/elastic_transport/_transport.py", line 342, in perform_request 2024-09-06 11:26:16 resp = node.perform_request( 2024-09-06 11:26:16 File "/usr/local/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request 2024-09-06 11:26:16 raise err from None 2024-09-06 11:26:16 elastic_transport.ConnectionError: Connection error caused by: ConnectionError(Connection error caused by: ProtocolError(('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))) 2024-09-06 11:26:16 [2024-09-06 03:23:55 +0000] [13] [ERROR] Not all workers acknowledged a successful startup. Shutting down. 2024-09-06 11:26:16 2024-09-06 11:26:16 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-09-06 11:26:16 [2024-09-06 03:23:55 +0000] [13] [INFO] Killing Sanic-Server-0-0 [291] 2024-09-06 11:26:16 [2024-09-06 03:23:55 +0000] [13] [INFO] Server Stopped 2024-09-06 11:26:16 检测到错误信息,请查看上面的输出。

请问是什么原因

image

WX20240906-115548@2x

sun-kaiming commented 2 months ago

同问

sunguangran commented 2 months ago

+1

whiletrue2009 commented 1 month ago

+1 设备:macbook pro 芯片:M1

下面的三个条件都满足了

image image
liang-xian commented 2 weeks ago

设备:macbook pro 芯片:M1 把 docker-compose-mac.yaml 中的host.docker.internal 改成172.17.0.1 可以启动起来了 image