[Question]: http://es01:1200 is unhealthy for MacOS/M4
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
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?
If you are deploying using Docker compose,just set the ES_HOST/MYSQL_HOST/MINIO_HOST/REDIS_HOST in docker/.env to 127.0.0.1
M4 seems rich of problems. Let's figure it out.
If you are deploying using Docker compose,just set the
ES_HOST/MYSQL_HOST/MINIO_HOST/REDIS_HOSTin docker/.env to127.0.0.1
That problem still exists . Nothing changed except for the host:
Waiting Elasticsearch http://127.0.0.1:1200 to be healthy.
docker ps show as follow: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES aa0f69f7a1c7 docker-ragflow "./entrypoint.sh" 8 minutes ago Up 8 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:9380->9380/tcp ragflow-server ee845a3080ec mysql:8.0.39 "docker-entrypoint.s…" 8 minutes ago Up 8 minutes (healthy) 3306/tcp, 33060/tcp, 0.0.0.0:5455->5455/tcp ragflow-mysql d802c44c66bc valkey/valkey:8 "docker-entrypoint.s…" 8 minutes ago Up 8 minutes 0.0.0.0:6379->6379/tcp ragflow-redis d5b626dc68de quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z "/usr/bin/docker-ent…" 8 minutes ago Up 8 minutes 0.0.0.0:9000-9001->9000-9001/tcp ragflow-minio 2978190c8ef1 elasticsearch:8.11.3 "/bin/tini -- /usr/l…" 8 minutes ago Up 8 minutes (healthy) 9300/tcp, 0.0.0.0:1200->9200/tcp
any idea how to fix?
adding these 3 lines to .env file solves all mac m4 problems:
- _JAVA_OPTIONS=-XX:UseSVE=0
- OPENBLAS_CORETYPE=generic
- NUMBA_DISABLE_JIT=1
M4 seems rich of problems. Let's figure it out.
add to: .env file under docker directory
- _JAVA_OPTIONS=-XX:UseSVE=0
- OPENBLAS_CORETYPE=generic
- NUMBA_DISABLE_JIT=1
M4 seems rich of problems. Let's figure it out.
add to: .env file under docker directory
- _JAVA_OPTIONS=-XX:UseSVE=0
- OPENBLAS_CORETYPE=generic
- NUMBA_DISABLE_JIT=1
This approach worked for me. Thanks! @B1tMaster
M4 seems rich of problems. Let's figure it out.
add to: .env file under docker directory
- _JAVA_OPTIONS=-XX:UseSVE=0
- OPENBLAS_CORETYPE=generic
- NUMBA_DISABLE_JIT=1
I was able to open the interface under macos m4, but I couldn't register and log in, so I solved the problem with this solution, which is very good!
pretty weird
2025-06-06 00:13:40,712 WARNING 25 Retrying request after failure (attempt 2 of 3) Traceback (most recent call last): File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request meta, raw_data = node.perform_request( File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request raise err from None elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0xfffec8d9e890>: Failed to establish a new connection: [Errno 111] Connection refused) 2025-06-06 00:13:40,714 INFO 25 HEAD http://es01:1200/ [status:N/A duration:0.002s] 2025-06-06 00:13:40,715 WARNING 25 Node <Urllib3HttpNode(http://es01:1200)> has failed for 8 times in a row, putting on 30 second timeout 2025-06-06 00:13:40,715 ERROR 25 Elasticsearch http://es01:1200 is unhealthy in 120s.
need help.
Yeah I cant connect to this on Mac either right now:
{"@timestamp":"2025-06-08T06:37:24.629Z", "log.level": "INFO", "current.health":"GREEN","message":"Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[.security-7][0]]]).","previous.health":"RED","reason":"shards started [[.security-7][0]]" , "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[es01][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.routing.allocation.AllocationService","elasticsearch.cluster.uuid":"b_kn5qcBQTid82tdDnaq4w","elasticsearch.node.id":"13zq8LSpQeqGNJJu-FshNA","elasticsearch.node.name":"es01","elasticsearch.cluster.name":"docker-cluster"}
elastic_transport.ConnectionError: Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0xfffef25620e0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-06-08 14:45:05,628 INFO 21 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-06-08 14:45:05,641 INFO 21 HEAD http://es01:9200/ [status:N/A duration:0.013s]
2025-06-08 14:45:05,642 WARNING 21 Node <Urllib3HttpNode(http://es01:9200)> has failed for 7 times in a row, putting on 30 second timeout
2025-06-08 14:45:05,642 WARNING 21 Retrying request after failure (attempt 2 of 3)
Traceback (most recent call last):
File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_transport.py", line 328, in perform_request
meta, raw_data = node.perform_request(
File "/ragflow/.venv/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request
raise err from None
elastic_transport.ConnectionError: Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0xfffef2563910>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-06-08 14:45:05,654 INFO 21 HEAD http://es01:9200/ [status:N/A duration:0.012s]
2025-06-08 14:45:05,654 WARNING 21 Node <Urllib3HttpNode(http://es01:9200)> has failed for 8 times in a row, putting on 30 second timeout
2025-06-08 14:45:05,655 ERROR 21 Elasticsearch http://es01:9200 is unhealthy in 120s.
Traceback (most recent call last):
File "/ragflow/api/ragflow_server.py", line 90, in <module>
settings.init_settings()
File "/ragflow/api/settings.py", line 143, in init_settings
docStoreConn = rag.utils.es_conn.ESConnection()
File "/ragflow/rag/utils/__init__.py", line 31, in _singleton
instances[key] = cls(*args, **kw)
File "/ragflow/rag/utils/es_conn.py", line 63, in __init__
raise Exception(msg)
Exception: Elasticsearch http://es01:9200 is unhealthy in 120s.
Elasticsearch shows as up and running. but ragflow-server cant reach it!
- If you've done custom development and built the Docker image, make sure the ES port in
ragflow/docker/service_conf.yaml.templateis set back to 9200(same as MySQL PORT to 3306, but you need to delete the original MySQL vol created by your last run). For local development, the official developer guide tells you to change it to 1200 (to match default.env), but it won’t remind you to switch it back after building the image. You don’t need to rebuild — just updateservice_conf.yamland restart/recreate the service.
...
mysql:
name: '${MYSQL_DBNAME:-rag_flow}'
user: '${MYSQL_USER:-root}'
password: '${MYSQL_PASSWORD:-infini_rag_flow}'
host: '${MYSQL_HOST:-mysql}'
port: **3306**
max_connections: 900
stale_timeout: 300
es:
hosts: 'http://${ES_HOST:-es01}:**9200**'
username: '${ES_USER:-elastic}'
password: '${ELASTIC_PASSWORD:-infini_rag_flow}'
docker compose -f docker/docker-compose-macos.yml restart
# or just delete and recreate
# docker compose -f docker/docker-compose-macos.yml down -v
# docker compose -f docker/docker-compose-macos.yml up -d
If not, it is recommended to check whether the port for ES is consistent across docker-compose, .env, and service_conf.yml, as this issue is likely caused by a mismatch — and the service is probably working fine otherwise.
2. If you haven’t done custom development, ensure vm.max_map_count ≥ 262144. This is a common issue that can prevent Elasticsearch from working properly, even if the service seems accessible on port 1200.
@voycey @moo-nin @chuanmingliu @9527andy