Skip to content

[Question]: http://es01:1200 is unhealthy for MacOS/M4 #5038

Open
@moo-nin

Description

@moo-nin

Describe your problem

I'm using MacOS ,M4 chip. following:https://github.com/infiniflow/ragflow/blob/main/docs/guides/develop/build_docker_image.mdx to build.
I can successfully access to 127.0.0.1, however it reports error 502 when i try to sign in and sign up.

Log in ragflow-server repeat as follow:

2025-02-17 14:55:23 2025-02-17 14:55:23,509 INFO 21 RAGFlow version: v0.16.0-47-g754d5ea3 full
2025-02-17 14:55:23 2025-02-17 14:55:23,514 INFO 21 project base: /ragflow
2025-02-17 14:55:23 2025-02-17 14:55:23,521 INFO 21 Current configs, from /ragflow/conf/service_conf.yaml:
2025-02-17 14:55:23 ragflow: {'host': '0.0.0.0', 'http_port': 9380}
2025-02-17 14:55:23 mysql: {'name': 'rag_flow', 'user': 'root', 'password': '', 'host': 'mysql', 'port': 5455, 'max_connections': 100, 'stale_timeout': 30}
2025-02-17 14:55:23 minio: {'user': 'rag_flow', 'password': '
', 'host': 'minio:9000'}
2025-02-17 14:55:23 es: {'hosts': 'http://es01:1200', 'username': 'elastic', 'password': ''}
2025-02-17 14:55:23 infinity: {'uri': 'infinity:23817', 'db_name': 'default_db'}
2025-02-17 14:55:23 redis: {'db': 1, 'password': '
', 'host': 'redis:6379'}
2025-02-17 14:55:23 2025-02-17 14:55:23,527 INFO 21 Use Elasticsearch http://es01:1200 as the doc engine.
2025-02-17 14:55:23 2025-02-17 14:55:23,533 INFO 21 GET http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:23 2025-02-17 14:55:23,534 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 1 times in a row, putting on 1 second timeout
2025-02-17 14:55:23 2025-02-17 14:55:23,544 WARNING 21 Retrying request after failure (attempt 0 of 3)
2025-02-17 14:55:23 Traceback (most recent call last):
2025-02-17 14:55:23 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
2025-02-17 14:55:23 meta, raw_data = node.perform_request(
2025-02-17 14:55:23 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
2025-02-17 14:55:23 raise err from None
2025-02-17 14:55:23 elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff68a90>: Failed to establish a new connection: [Errno 111] Connection refused)
2025-02-17 14:55:23 2025-02-17 14:55:23,554 INFO 21 GET http://es01:1200/ [status:N/A duration:0.003s]
2025-02-17 14:55:23 2025-02-17 14:55:23,555 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 2 times in a row, putting on 2 second timeout
2025-02-17 14:55:23 2025-02-17 14:55:23,555 WARNING 21 Retrying request after failure (attempt 1 of 3)
2025-02-17 14:55:23 Traceback (most recent call last):
2025-02-17 14:55:23 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
2025-02-17 14:55:23 meta, raw_data = node.perform_request(
2025-02-17 14:55:23 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
2025-02-17 14:55:23 raise err from None
2025-02-17 14:55:23 elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff69660>: Failed to establish a new connection: [Errno 111] Connection refused)
2025-02-17 14:55:23 2025-02-17 14:55:23,558 INFO 21 GET http://es01:1200/ [status:N/A duration:0.002s]
2025-02-17 14:55:23 2025-02-17 14:55:23,558 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 3 times in a row, putting on 4 second timeout
2025-02-17 14:55:23 2025-02-17 14:55:23,558 WARNING 21 Retrying request after failure (attempt 2 of 3)
2025-02-17 14:55:23 Traceback (most recent call last):
2025-02-17 14:55:23 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
2025-02-17 14:55:23 meta, raw_data = node.perform_request(
2025-02-17 14:55:23 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
2025-02-17 14:55:23 raise err from None
2025-02-17 14:55:23 elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff6b250>: Failed to establish a new connection: [Errno 111] Connection refused)
2025-02-17 14:55:23 2025-02-17 14:55:23,560 INFO 21 GET http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:23 2025-02-17 14:55:23,560 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 4 times in a row, putting on 8 second timeout
2025-02-17 14:55:23 2025-02-17 14:55:23,561 WARNING 21 Connection error caused by: ConnectionError(Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff68a90>: Failed to establish a new connection: [Errno 111] Connection refused)). Waiting Elasticsearch http://es01:1200 to be healthy.
2025-02-17 14:55:28 2025-02-17 14:55:28,569 INFO 21 GET http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:28 2025-02-17 14:55:28,570 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 1 times in a row, putting on 1 second timeout
2025-02-17 14:55:28 2025-02-17 14:55:28,570 WARNING 21 Retrying request after failure (attempt 0 of 3)
2025-02-17 14:55:28 Traceback (most recent call last):
2025-02-17 14:55:28 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
2025-02-17 14:55:28 meta, raw_data = node.perform_request(
2025-02-17 14:55:28 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
2025-02-17 14:55:28 raise err from None
2025-02-17 14:55:28 elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff69b40>: Failed to establish a new connection: [Errno 111] Connection refused)
2025-02-17 14:55:28 2025-02-17 14:55:28,571 INFO 21 GET http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:28 2025-02-17 14:55:28,571 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 2 times in a row, putting on 2 second timeout
2025-02-17 14:55:28 2025-02-17 14:55:28,572 WARNING 21 Retrying request after failure (attempt 1 of 3)
2025-02-17 14:55:28 Traceback (most recent call last):
2025-02-17 14:55:28 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
2025-02-17 14:55:28 meta, raw_data = node.perform_request(
2025-02-17 14:55:28 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
2025-02-17 14:55:28 raise err from None
2025-02-17 14:55:28 elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff699c0>: Failed to establish a new connection: [Errno 111] Connection refused)
2025-02-17 14:55:28 2025-02-17 14:55:28,573 INFO 21 GET http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:28 2025-02-17 14:55:28,573 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 3 times in a row, putting on 4 second timeout
2025-02-17 14:55:28 2025-02-17 14:55:28,574 WARNING 21 Retrying request after failure (attempt 2 of 3)
2025-02-17 14:55:28 Traceback (most recent call last):
2025-02-17 14:55:28 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
2025-02-17 14:55:28 meta, raw_data = node.perform_request(
2025-02-17 14:55:28 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
2025-02-17 14:55:28 raise err from None
2025-02-17 14:55:28 elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff68ca0>: Failed to establish a new connection: [Errno 111] Connection refused)
2025-02-17 14:55:28 2025-02-17 14:55:28,575 INFO 21 GET http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:28 2025-02-17 14:55:28,575 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 4 times in a row, putting on 8 second timeout
2025-02-17 14:55:28 2025-02-17 14:55:28,576 WARNING 21 Connection error caused by: ConnectionError(Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff69b40>: Failed to establish a new connection: [Errno 111] Connection refused)). Waiting Elasticsearch http://es01:1200 to be healthy.
2025-02-17 14:55:29 ./entrypoint.sh: line 19: 71 Illegal instruction $PY rag/svr/task_executor.py $1
2025-02-17 14:55:33 2025-02-17 14:55:33,582 INFO 21 Resurrected node <Urllib3HttpNode(http://es01:1200)> (force=False)
2025-02-17 14:55:33 2025-02-17 14:55:33,583 INFO 21 HEAD http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:33 2025-02-17 14:55:33,583 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 5 times in a row, putting on 16 second timeout
2025-02-17 14:55:33 2025-02-17 14:55:33,584 WARNING 21 Retrying request after failure (attempt 0 of 3)
2025-02-17 14:55:33 Traceback (most recent call last):
2025-02-17 14:55:33 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
2025-02-17 14:55:33 meta, raw_data = node.perform_request(
2025-02-17 14:55:33 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
2025-02-17 14:55:33 raise err from None
2025-02-17 14:55:33 elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff6aad0>: Failed to establish a new connection: [Errno 111] Connection refused)
2025-02-17 14:55:33 2025-02-17 14:55:33,584 INFO 21 Resurrected node <Urllib3HttpNode(http://es01:1200)> (force=False)
2025-02-17 14:55:33 2025-02-17 14:55:33,585 INFO 21 HEAD http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:33 2025-02-17 14:55:33,585 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 6 times in a row, putting on 30 second timeout
2025-02-17 14:55:33 2025-02-17 14:55:33,586 WARNING 21 Retrying request after failure (attempt 1 of 3)
2025-02-17 14:55:33 Traceback (most recent call last):
2025-02-17 14:55:33 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
2025-02-17 14:55:33 meta, raw_data = node.perform_request(
2025-02-17 14:55:33 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
2025-02-17 14:55:33 raise err from None
2025-02-17 14:55:33 elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff1ff69cc0>: Failed to establish a new connection: [Errno 111] Connection refused)
2025-02-17 14:55:33 2025-02-17 14:55:33,586 INFO 21 Resurrected node <Urllib3HttpNode(http://es01:1200)> (force=False)
2025-02-17 14:55:33 2025-02-17 14:55:33,587 INFO 21 HEAD http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:33 2025-02-17 14:55:33,587 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 7 times in a row, putting on 30 second timeout
2025-02-17 14:55:33 2025-02-17 14:55:33,588 WARNING 21 Retrying request after failure (attempt 2 of 3)
2025-02-17 14:55:33 Traceback (most recent call last):
2025-02-17 14:55:33 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
2025-02-17 14:55:33 meta, raw_data = node.perform_request(
2025-02-17 14:55:33 File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
2025-02-17 14:55:33 raise err from None
2025-02-17 14:55:33 elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xffff21c8fa60>: Failed to establish a new connection: [Errno 111] Connection refused)
2025-02-17 14:55:33 2025-02-17 14:55:33,589 INFO 21 HEAD http://es01:1200/ [status:N/A duration:0.001s]
2025-02-17 14:55:33 2025-02-17 14:55:33,589 WARNING 21 Node <Urllib3HttpNode(http://es01:1200)> has failed for 8 times in a row, putting on 30 second timeout
2025-02-17 14:55:33 2025-02-17 14:55:33,590 ERROR 21 Elasticsearch http://es01:1200 is unhealthy in 120s.
2025-02-17 14:55:33 Traceback (most recent call last):
2025-02-17 14:55:33 File "/ragflow/api/ragflow_server.py", line 71, in
2025-02-17 14:55:33 settings.init_settings()
2025-02-17 14:55:33 File "/ragflow/api/settings.py", line 168, in init_settings
2025-02-17 14:55:33 docStoreConn = rag.utils.es_conn.ESConnection()
2025-02-17 14:55:33 File "/ragflow/rag/utils/init.py", line 28, in _singleton
2025-02-17 14:55:33 instances[key] = cls(*args, **kw)
2025-02-17 14:55:33 File "/ragflow/rag/utils/es_conn.py", line 63, in init
2025-02-17 14:55:33 raise Exception(msg)
2025-02-17 14:55:33 Exception: Elasticsearch http://es01:1200 is unhealthy in 120s.
2025-02-17 14:55:35 2025-02-17 14:55:35,355 INFO 119 ragflow_server log path: /ragflow/logs/ragflow_server.log, log levels: {'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}
2025-02-17 14:55:37 ./entrypoint.sh: line 19: 95 Illegal instruction $PY rag/svr/task_executor.py $1
2025-02-17 14:55:38 2025-02-17 14:55:38,359 INFO 119 init database on cluster mode successfully

and docker ps show as follow:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3405657f3e38 docker-ragflow "./entrypoint.sh" 2 hours ago Up 2 hours 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:9380->9380/tcp ragflow-server
e2d2ed15247e mysql:8.0.39 "docker-entrypoint.s…" 2 hours ago Up About an hour (healthy) 3306/tcp, 33060/tcp, 0.0.0.0:5455->5455/tcp ragflow-mysql
db37d831eebc valkey/valkey:8 "docker-entrypoint.s…" 2 hours ago Up About an hour 0.0.0.0:6379->6379/tcp ragflow-redis
cdcda98b44ca elasticsearch:8.11.3 "/bin/tini -- /usr/l…" 2 hours ago Up 2 hours (healthy) 9300/tcp, 0.0.0.0:1200->9200/tcp ragflow-es-01
3f65b7d848a7 quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z "/usr/bin/docker-ent…" 2 hours ago Up About an hour 0.0.0.0:9000-9001->9000-9001/tcp

All configurations setting ports and hosts are set as default.
Tried to use default settings to compose docker but no matching manifest for linux/arm64/v8 in the manifest list entries.
Tried to access http://localhost:1200/ ,it reports as follow:

{
"name": "es01",
"cluster_name": "docker-cluster",
"cluster_uuid": "rKZsaYQtQDa4v-aD1D3nNw",
"version": {
"number": "8.11.3",
"build_flavor": "default",
"build_type": "docker",
"build_hash": "64cf052f3b56b1fd4449f5454cb88aca7e739d9a",
"build_date": "2023-12-08T11:33:53.634979452Z",
"build_snapshot": false,
"lucene_version": "9.8.0",
"minimum_wire_compatibility_version": "7.17.0",
"minimum_index_compatibility_version": "7.0.0"
},
"tagline": "You Know, for Search"
}

Tried to delete all container,volumn,image and rebuild, this question still exists.
How to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions