[Bug]: Failed to resolve 'es01'
Is there an existing issue for the same bug?
- [x] I have checked the existing issues.
RAGFlow workspace code commit ID
fe9e9a6
RAGFlow image version
v0.16.0
Other environment information
centos7.9
Actual behavior
"$ cd ragflow $ docker compose -f docker/docker-compose.yml up -d" When you operate according to the following document, the ragflow-server will report an error :"Failed to resolve 'es01'" You need to do this to avoid errors and successfully download the Elasticsearch image and deploy it :
$ cd ragflow/docker $ docker compose -f docker-compose.yml up -d
Because the file 'ragflow/docker/docker-compose.yml' indicates "include: - ./docker-compose-base.yml", this file contains the configuration for deploying Elasticsearch and this address is a relative path. So if you deploy according to the document command, it will cause an error "Failed to resolve 'es01'", which is actually due to the fact that the service was not deployed before the error occurred.
Expected behavior
No response
Steps to reproduce
"$ cd ragflow
$ docker compose -f docker/docker-compose.yml up -d"
be careful! The above command is an incorrect operation
Additional information
No response
Actually, my problem was solved before it was raised, and there are my ideas and commands for solving it in the article.
Would you please provide more information on the issue? Docker version, docker compose version? What is the log of elasticsearch container?
Lots of reasons will lead to this fault.
跟这位兄弟的问题类似, @JinHai-CN 麻烦大佬看一下
[root@c04 ragflow-main]# uname -a
Linux c04 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@c04 ragflow-main]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.9.2009 (Core)
Release: 7.9.2009
Codename: Core
[root@c04 ragflow-main]# docker --version
Docker version 26.1.4, build 5650f9b
docker compose version
Docker Compose version v2.27.1
详细的报错如下: 会产生一堆重复的信息,一直不断输出
elastic_transport.ConnectionError: Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f7e37d9f880>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:15,180 INFO 23838 GET http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:15,180 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout
2025-02-11 15:33:15,181 WARNING 23838 Retrying request after failure (attempt 1 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 0x7f7e37d9e1a0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:15,191 INFO 23838 GET http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:15,191 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 3 times in a row, putting on 4 second timeout
2025-02-11 15:33:15,191 WARNING 23838 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 0x7f7e37d9f4c0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:15,201 INFO 23838 GET http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:15,201 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 4 times in a row, putting on 8 second timeout
2025-02-11 15:33:15,201 WARNING 23838 Connection error caused by: ConnectionError(Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f7e37d9f880>: Failed to resolve 'es01' ([Errno -2] Name or service not known))). Waiting Elasticsearch http://es01:9200 to be healthy.
2025-02-11 15:33:15,858 INFO 23968 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-02-11 15:33:15,868 INFO 23968 HEAD http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:15,868 WARNING 23968 Node <Urllib3HttpNode(http://es01:9200)> has failed for 5 times in a row, putting on 16 second timeout
2025-02-11 15:33:15,869 WARNING 23968 Retrying request after failure (attempt 0 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 0x7fb2283cfac0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:15,869 INFO 23968 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-02-11 15:33:15,880 INFO 23968 HEAD http://es01:9200/ [status:N/A duration:0.011s]
2025-02-11 15:33:15,880 WARNING 23968 Node <Urllib3HttpNode(http://es01:9200)> has failed for 6 times in a row, putting on 30 second timeout
2025-02-11 15:33:15,880 WARNING 23968 Retrying request after failure (attempt 1 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 0x7fb2283cfb20>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:15,881 INFO 23968 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-02-11 15:33:15,890 INFO 23968 HEAD http://es01:9200/ [status:N/A duration:0.009s]
2025-02-11 15:33:15,890 WARNING 23968 Node <Urllib3HttpNode(http://es01:9200)> has failed for 7 times in a row, putting on 30 second timeout
2025-02-11 15:33:15,890 WARNING 23968 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 0x7fb2283cfd90>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:15,901 INFO 23968 HEAD http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:15,901 WARNING 23968 Node <Urllib3HttpNode(http://es01:9200)> has failed for 8 times in a row, putting on 30 second timeout
2025-02-11 15:33:15,901 ERROR 23968 Elasticsearch http://es01:9200 is unhealthy in 120s.
Traceback (most recent call last):
File "/ragflow/api/ragflow_server.py", line 71, in <module>
settings.init_settings()
File "/ragflow/api/settings.py", line 168, in init_settings
docStoreConn = rag.utils.es_conn.ESConnection()
File "/ragflow/rag/utils/__init__.py", line 28, 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.
2025-02-11 15:33:19,494 INFO 24358 ragflow_server log path: /ragflow/logs/ragflow_server.log, log levels: {'ragflow.es_conn': 'DEBUG', 'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}
2025-02-11 15:33:20,207 INFO 23838 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-02-11 15:33:20,218 INFO 23838 HEAD http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:20,218 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 5 times in a row, putting on 16 second timeout
2025-02-11 15:33:20,218 WARNING 23838 Retrying request after failure (attempt 0 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 0x7f7e37d9db40>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:20,219 INFO 23838 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-02-11 15:33:20,228 INFO 23838 HEAD http://es01:9200/ [status:N/A duration:0.009s]
2025-02-11 15:33:20,228 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 6 times in a row, putting on 30 second timeout
2025-02-11 15:33:20,228 WARNING 23838 Retrying request after failure (attempt 1 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 0x7f7e37d9d2a0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:20,228 INFO 23838 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-02-11 15:33:20,237 INFO 23838 HEAD http://es01:9200/ [status:N/A duration:0.009s]
2025-02-11 15:33:20,238 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 7 times in a row, putting on 30 second timeout
2025-02-11 15:33:20,238 WARNING 23838 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 0x7f7e37d9d780>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:20,247 INFO 23838 HEAD http://es01:9200/ [status:N/A duration:0.009s]
2025-02-11 15:33:20,247 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 8 times in a row, putting on 30 second timeout
2025-02-11 15:33:20,247 ERROR 23838 Elasticsearch http://es01:9200 is unhealthy in 120s.
Traceback (most recent call last):
File "/ragflow/rag/svr/task_executor.py", line 737, in <module>
main()
File "/ragflow/rag/svr/task_executor.py", line 713, in main
settings.init_settings()
File "/ragflow/api/settings.py", line 168, in init_settings
docStoreConn = rag.utils.es_conn.ESConnection()
File "/ragflow/rag/utils/__init__.py", line 28, 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.
2025-02-11 15:33:25,210 INFO 24358 init database on cluster mode successfully
2025-02-11 15:33:36,267 INFO 24358
____ ___ ______ ______ __
/ __ \ / | / ____// ____// /____ _ __
/ /_/ // /| | / / __ / /_ / // __ \| | /| / /
/ _, _// ___ |/ /_/ // __/ / // /_/ /| |/ |/ /
/_/ |_|/_/ |_|\____//_/ /_/ \____/ |__/|__/
2025-02-11 15:33:36,267 INFO 24358 RAGFlow version: v0.16.0-20-g0d3ed37b full
2025-02-11 15:33:36,267 INFO 24358 project base: /ragflow
2025-02-11 15:33:36,268 INFO 24358 Current configs, from /ragflow/conf/service_conf.yaml:
ragflow: {'host': '0.0.0.0', 'http_port': 9380}
mysql: {'name': 'rag_flow', 'user': 'root', 'password': '********', 'host': 'mysql', 'port': 3306, 'max_connections': 100, 'stale_timeout': 30}
minio: {'user': 'rag_flow', 'password': '********', 'host': 'minio:9000'}
es: {'hosts': 'http://es01:9200', 'username': 'elastic', 'password': '********'}
infinity: {'uri': 'infinity:23817', 'db_name': 'default_db'}
redis: {'db': 1, 'password': '********', 'host': 'redis:6379'}
2025-02-11 15:33:36,268 INFO 24358 Use Elasticsearch http://es01:9200 as the doc engine.
2025-02-11 15:33:36,278 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.009s]
2025-02-11 15:33:36,278 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout
2025-02-11 15:33:36,278 WARNING 24358 Retrying request after failure (attempt 0 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 0x7f808d07d6c0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:36,289 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:36,289 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout
2025-02-11 15:33:36,289 WARNING 24358 Retrying request after failure (attempt 1 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 0x7f808d07d6f0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:36,300 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:36,300 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 3 times in a row, putting on 4 second timeout
2025-02-11 15:33:36,300 WARNING 24358 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 0x7f808d07c310>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:36,311 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.011s]
2025-02-11 15:33:36,311 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 4 times in a row, putting on 8 second timeout
2025-02-11 15:33:36,311 WARNING 24358 Connection error caused by: ConnectionError(Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f808d07d6c0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))). Waiting Elasticsearch http://es01:9200 to be healthy.
2025-02-11 15:33:41,023 INFO 24488 task_executor_0 log path: /ragflow/logs/task_executor_0.log, log levels: {'ragflow.es_conn': 'DEBUG', 'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}
2025-02-11 15:33:41,328 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.011s]
2025-02-11 15:33:41,328 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout
2025-02-11 15:33:41,328 WARNING 24358 Retrying request after failure (attempt 0 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 0x7f808d07cc10>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:41,338 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.009s]
2025-02-11 15:33:41,338 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout
2025-02-11 15:33:41,338 WARNING 24358 Retrying request after failure (attempt 1 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 0x7f808d07c7c0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:41,349 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.011s]
2025-02-11 15:33:41,349 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 3 times in a row, putting on 4 second timeout
2025-02-11 15:33:41,350 WARNING 24358 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 0x7f808d07ffa0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:41,352 INFO 24488 init database on cluster mode successfully
2025-02-11 15:33:41,360 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:41,360 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 4 times in a row, putting on 8 second timeout
2025-02-11 15:33:41,360 WARNING 24358 Connection error caused by: ConnectionError(Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f808d07cc10>: Failed to resolve 'es01' ([Errno -2] Name or service not known))). Waiting Elasticsearch http://es01:9200 to be healthy.
2025-02-11 15:33:46,365 INFO 24358 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-02-11 15:33:46,377 INFO 24358 HEAD http://es01:9200/ [status:N/A duration:0.011s]
2025-02-11 15:33:46,377 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 5 times in a row, putting on 16 second timeout
2025-02-11 15:33:46,377 WARNING 24358 Retrying request after failure (attempt 0 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 0x7f808e77bf10>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:46,378 INFO 24358 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-02-11 15:33:46,387 INFO 24358 HEAD http://es01:9200/ [status:N/A duration:0.009s]
2025-02-11 15:33:46,387 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 6 times in a row, putting on 30 second timeout
2025-02-11 15:33:46,387 WARNING 24358 Retrying request after failure (attempt 1 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 0x7f808e778d60>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:46,387 INFO 24358 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-02-11 15:33:46,399 INFO 24358 HEAD http://es01:9200/ [status:N/A duration:0.011s]
2025-02-11 15:33:46,399 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 7 times in a row, putting on 30 second timeout
2025-02-11 15:33:46,399 WARNING 24358 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 0x7f808e7783a0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:46,408 INFO 24358 HEAD http://es01:9200/ [status:N/A duration:0.009s]
2025-02-11 15:33:46,408 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 8 times in a row, putting on 30 second timeout
2025-02-11 15:33:46,409 ERROR 24358 Elasticsearch http://es01:9200 is unhealthy in 120s.
Traceback (most recent call last):
File "/ragflow/api/ragflow_server.py", line 71, in <module>
settings.init_settings()
File "/ragflow/api/settings.py", line 168, in init_settings
docStoreConn = rag.utils.es_conn.ESConnection()
File "/ragflow/rag/utils/__init__.py", line 28, 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.
2025-02-11 15:33:48,997 INFO 24624 ragflow_server log path: /ragflow/logs/ragflow_server.log, log levels: {'ragflow.es_conn': 'DEBUG', 'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}
2025-02-11 15:33:49,116 INFO 24488 TextRecognizer det uses CPU
2025-02-11 15:33:49,218 INFO 24488 TextRecognizer rec uses CPU
2025-02-11 15:33:49,244 INFO 24488
______ __ ______ __
/_ __/___ ______/ /__ / ____/ _____ _______ __/ /_____ _____
/ / / __ `/ ___/ //_/ / __/ | |/_/ _ \/ ___/ / / / __/ __ \/ ___/
/ / / /_/ (__ ) ,< / /____> </ __/ /__/ /_/ / /_/ /_/ / /
/_/ \__,_/____/_/|_| /_____/_/|_|\___/\___/\__,_/\__/\____/_/
2025-02-11 15:33:49,245 INFO 24488 TaskExecutor: RAGFlow version: v0.16.0-20-g0d3ed37b full
2025-02-11 15:33:49,245 INFO 24488 Use Elasticsearch http://es01:9200 as the doc engine.
2025-02-11 15:33:49,258 INFO 24488 GET http://es01:9200/ [status:N/A duration:0.011s]
2025-02-11 15:33:49,258 WARNING 24488 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout
2025-02-11 15:33:49,258 WARNING 24488 Retrying request after failure (attempt 0 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 0x7f9e37b13f10>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:49,269 INFO 24488 GET http://es01:9200/ [status:N/A duration:0.009s]
2025-02-11 15:33:49,269 WARNING 24488 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout
2025-02-11 15:33:49,269 WARNING 24488 Retrying request after failure (attempt 1 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 0x7f9e37b100d0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:49,279 INFO 24488 GET http://es01:9200/ [status:N/A duration:0.010s]
2025-02-11 15:33:49,279 WARNING 24488 Node <Urllib3HttpNode(http://es01:9200)> has failed for 3 times in a row, putting on 4 second timeout
2025-02-11 15:33:49,279 WARNING 24488 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 0x7f9e37b10340>: Failed to resolve 'es01' ([Errno -2] Name or service not known))
2025-02-11 15:33:49,287 INFO 24488 GET http://es01:9200/ [status:N/A duration:0.008s]
2025-02-11 15:33:49,287 WARNING 24488 Node <Urllib3HttpNode(http://es01:9200)> has failed for 4 times in a row, putting on 8 second timeout
2025-02-11 15:33:49,287 WARNING 24488 Connection error caused by: ConnectionError(Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f9e37b13f10>: Failed to resolve 'es01' ([Errno -2] Name or service not known))). Waiting Elasticsearch http://es01:9200 to be healthy.
跟这位兄弟的问题类似, @JinHai-CN 麻烦大佬看一下
[root@c04 ragflow-main]# uname -a Linux c04 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux[root@c04 ragflow-main]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.9.2009 (Core) Release: 7.9.2009 Codename: Core[root@c04 ragflow-main]# docker --version Docker version 26.1.4, build 5650f9bdocker compose version Docker Compose version v2.27.1详细的报错如下: 会产生一堆重复的信息,一直不断输出
elastic_transport.ConnectionError: Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f7e37d9f880>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:15,180 INFO 23838 GET http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:15,180 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout 2025-02-11 15:33:15,181 WARNING 23838 Retrying request after failure (attempt 1 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 0x7f7e37d9e1a0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:15,191 INFO 23838 GET http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:15,191 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 3 times in a row, putting on 4 second timeout 2025-02-11 15:33:15,191 WARNING 23838 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 0x7f7e37d9f4c0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:15,201 INFO 23838 GET http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:15,201 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 4 times in a row, putting on 8 second timeout 2025-02-11 15:33:15,201 WARNING 23838 Connection error caused by: ConnectionError(Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f7e37d9f880>: Failed to resolve 'es01' ([Errno -2] Name or service not known))). Waiting Elasticsearch http://es01:9200 to be healthy. 2025-02-11 15:33:15,858 INFO 23968 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False) 2025-02-11 15:33:15,868 INFO 23968 HEAD http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:15,868 WARNING 23968 Node <Urllib3HttpNode(http://es01:9200)> has failed for 5 times in a row, putting on 16 second timeout 2025-02-11 15:33:15,869 WARNING 23968 Retrying request after failure (attempt 0 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 0x7fb2283cfac0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:15,869 INFO 23968 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False) 2025-02-11 15:33:15,880 INFO 23968 HEAD http://es01:9200/ [status:N/A duration:0.011s] 2025-02-11 15:33:15,880 WARNING 23968 Node <Urllib3HttpNode(http://es01:9200)> has failed for 6 times in a row, putting on 30 second timeout 2025-02-11 15:33:15,880 WARNING 23968 Retrying request after failure (attempt 1 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 0x7fb2283cfb20>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:15,881 INFO 23968 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False) 2025-02-11 15:33:15,890 INFO 23968 HEAD http://es01:9200/ [status:N/A duration:0.009s] 2025-02-11 15:33:15,890 WARNING 23968 Node <Urllib3HttpNode(http://es01:9200)> has failed for 7 times in a row, putting on 30 second timeout 2025-02-11 15:33:15,890 WARNING 23968 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 0x7fb2283cfd90>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:15,901 INFO 23968 HEAD http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:15,901 WARNING 23968 Node <Urllib3HttpNode(http://es01:9200)> has failed for 8 times in a row, putting on 30 second timeout 2025-02-11 15:33:15,901 ERROR 23968 Elasticsearch http://es01:9200 is unhealthy in 120s. Traceback (most recent call last): File "/ragflow/api/ragflow_server.py", line 71, in <module> settings.init_settings() File "/ragflow/api/settings.py", line 168, in init_settings docStoreConn = rag.utils.es_conn.ESConnection() File "/ragflow/rag/utils/__init__.py", line 28, 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. 2025-02-11 15:33:19,494 INFO 24358 ragflow_server log path: /ragflow/logs/ragflow_server.log, log levels: {'ragflow.es_conn': 'DEBUG', 'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'} 2025-02-11 15:33:20,207 INFO 23838 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False) 2025-02-11 15:33:20,218 INFO 23838 HEAD http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:20,218 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 5 times in a row, putting on 16 second timeout 2025-02-11 15:33:20,218 WARNING 23838 Retrying request after failure (attempt 0 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 0x7f7e37d9db40>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:20,219 INFO 23838 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False) 2025-02-11 15:33:20,228 INFO 23838 HEAD http://es01:9200/ [status:N/A duration:0.009s] 2025-02-11 15:33:20,228 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 6 times in a row, putting on 30 second timeout 2025-02-11 15:33:20,228 WARNING 23838 Retrying request after failure (attempt 1 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 0x7f7e37d9d2a0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:20,228 INFO 23838 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False) 2025-02-11 15:33:20,237 INFO 23838 HEAD http://es01:9200/ [status:N/A duration:0.009s] 2025-02-11 15:33:20,238 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 7 times in a row, putting on 30 second timeout 2025-02-11 15:33:20,238 WARNING 23838 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 0x7f7e37d9d780>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:20,247 INFO 23838 HEAD http://es01:9200/ [status:N/A duration:0.009s] 2025-02-11 15:33:20,247 WARNING 23838 Node <Urllib3HttpNode(http://es01:9200)> has failed for 8 times in a row, putting on 30 second timeout 2025-02-11 15:33:20,247 ERROR 23838 Elasticsearch http://es01:9200 is unhealthy in 120s. Traceback (most recent call last): File "/ragflow/rag/svr/task_executor.py", line 737, in <module> main() File "/ragflow/rag/svr/task_executor.py", line 713, in main settings.init_settings() File "/ragflow/api/settings.py", line 168, in init_settings docStoreConn = rag.utils.es_conn.ESConnection() File "/ragflow/rag/utils/__init__.py", line 28, 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. 2025-02-11 15:33:25,210 INFO 24358 init database on cluster mode successfully 2025-02-11 15:33:36,267 INFO 24358 ____ ___ ______ ______ __ / __ \ / | / ____// ____// /____ _ __ / /_/ // /| | / / __ / /_ / // __ \| | /| / / / _, _// ___ |/ /_/ // __/ / // /_/ /| |/ |/ / /_/ |_|/_/ |_|\____//_/ /_/ \____/ |__/|__/ 2025-02-11 15:33:36,267 INFO 24358 RAGFlow version: v0.16.0-20-g0d3ed37b full 2025-02-11 15:33:36,267 INFO 24358 project base: /ragflow 2025-02-11 15:33:36,268 INFO 24358 Current configs, from /ragflow/conf/service_conf.yaml: ragflow: {'host': '0.0.0.0', 'http_port': 9380} mysql: {'name': 'rag_flow', 'user': 'root', 'password': '********', 'host': 'mysql', 'port': 3306, 'max_connections': 100, 'stale_timeout': 30} minio: {'user': 'rag_flow', 'password': '********', 'host': 'minio:9000'} es: {'hosts': 'http://es01:9200', 'username': 'elastic', 'password': '********'} infinity: {'uri': 'infinity:23817', 'db_name': 'default_db'} redis: {'db': 1, 'password': '********', 'host': 'redis:6379'} 2025-02-11 15:33:36,268 INFO 24358 Use Elasticsearch http://es01:9200 as the doc engine. 2025-02-11 15:33:36,278 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.009s] 2025-02-11 15:33:36,278 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout 2025-02-11 15:33:36,278 WARNING 24358 Retrying request after failure (attempt 0 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 0x7f808d07d6c0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:36,289 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:36,289 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout 2025-02-11 15:33:36,289 WARNING 24358 Retrying request after failure (attempt 1 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 0x7f808d07d6f0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:36,300 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:36,300 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 3 times in a row, putting on 4 second timeout 2025-02-11 15:33:36,300 WARNING 24358 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 0x7f808d07c310>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:36,311 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.011s] 2025-02-11 15:33:36,311 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 4 times in a row, putting on 8 second timeout 2025-02-11 15:33:36,311 WARNING 24358 Connection error caused by: ConnectionError(Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f808d07d6c0>: Failed to resolve 'es01' ([Errno -2] Name or service not known))). Waiting Elasticsearch http://es01:9200 to be healthy. 2025-02-11 15:33:41,023 INFO 24488 task_executor_0 log path: /ragflow/logs/task_executor_0.log, log levels: {'ragflow.es_conn': 'DEBUG', 'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'} 2025-02-11 15:33:41,328 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.011s] 2025-02-11 15:33:41,328 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout 2025-02-11 15:33:41,328 WARNING 24358 Retrying request after failure (attempt 0 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 0x7f808d07cc10>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:41,338 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.009s] 2025-02-11 15:33:41,338 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout 2025-02-11 15:33:41,338 WARNING 24358 Retrying request after failure (attempt 1 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 0x7f808d07c7c0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:41,349 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.011s] 2025-02-11 15:33:41,349 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 3 times in a row, putting on 4 second timeout 2025-02-11 15:33:41,350 WARNING 24358 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 0x7f808d07ffa0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:41,352 INFO 24488 init database on cluster mode successfully 2025-02-11 15:33:41,360 INFO 24358 GET http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:41,360 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 4 times in a row, putting on 8 second timeout 2025-02-11 15:33:41,360 WARNING 24358 Connection error caused by: ConnectionError(Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f808d07cc10>: Failed to resolve 'es01' ([Errno -2] Name or service not known))). Waiting Elasticsearch http://es01:9200 to be healthy. 2025-02-11 15:33:46,365 INFO 24358 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False) 2025-02-11 15:33:46,377 INFO 24358 HEAD http://es01:9200/ [status:N/A duration:0.011s] 2025-02-11 15:33:46,377 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 5 times in a row, putting on 16 second timeout 2025-02-11 15:33:46,377 WARNING 24358 Retrying request after failure (attempt 0 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 0x7f808e77bf10>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:46,378 INFO 24358 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False) 2025-02-11 15:33:46,387 INFO 24358 HEAD http://es01:9200/ [status:N/A duration:0.009s] 2025-02-11 15:33:46,387 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 6 times in a row, putting on 30 second timeout 2025-02-11 15:33:46,387 WARNING 24358 Retrying request after failure (attempt 1 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 0x7f808e778d60>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:46,387 INFO 24358 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False) 2025-02-11 15:33:46,399 INFO 24358 HEAD http://es01:9200/ [status:N/A duration:0.011s] 2025-02-11 15:33:46,399 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 7 times in a row, putting on 30 second timeout 2025-02-11 15:33:46,399 WARNING 24358 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 0x7f808e7783a0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:46,408 INFO 24358 HEAD http://es01:9200/ [status:N/A duration:0.009s] 2025-02-11 15:33:46,408 WARNING 24358 Node <Urllib3HttpNode(http://es01:9200)> has failed for 8 times in a row, putting on 30 second timeout 2025-02-11 15:33:46,409 ERROR 24358 Elasticsearch http://es01:9200 is unhealthy in 120s. Traceback (most recent call last): File "/ragflow/api/ragflow_server.py", line 71, in <module> settings.init_settings() File "/ragflow/api/settings.py", line 168, in init_settings docStoreConn = rag.utils.es_conn.ESConnection() File "/ragflow/rag/utils/__init__.py", line 28, 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. 2025-02-11 15:33:48,997 INFO 24624 ragflow_server log path: /ragflow/logs/ragflow_server.log, log levels: {'ragflow.es_conn': 'DEBUG', 'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'} 2025-02-11 15:33:49,116 INFO 24488 TextRecognizer det uses CPU 2025-02-11 15:33:49,218 INFO 24488 TextRecognizer rec uses CPU 2025-02-11 15:33:49,244 INFO 24488 ______ __ ______ __ /_ __/___ ______/ /__ / ____/ _____ _______ __/ /_____ _____ / / / __ `/ ___/ //_/ / __/ | |/_/ _ \/ ___/ / / / __/ __ \/ ___/ / / / /_/ (__ ) ,< / /____> </ __/ /__/ /_/ / /_/ /_/ / / /_/ \__,_/____/_/|_| /_____/_/|_|\___/\___/\__,_/\__/\____/_/ 2025-02-11 15:33:49,245 INFO 24488 TaskExecutor: RAGFlow version: v0.16.0-20-g0d3ed37b full 2025-02-11 15:33:49,245 INFO 24488 Use Elasticsearch http://es01:9200 as the doc engine. 2025-02-11 15:33:49,258 INFO 24488 GET http://es01:9200/ [status:N/A duration:0.011s] 2025-02-11 15:33:49,258 WARNING 24488 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout 2025-02-11 15:33:49,258 WARNING 24488 Retrying request after failure (attempt 0 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 0x7f9e37b13f10>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:49,269 INFO 24488 GET http://es01:9200/ [status:N/A duration:0.009s] 2025-02-11 15:33:49,269 WARNING 24488 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout 2025-02-11 15:33:49,269 WARNING 24488 Retrying request after failure (attempt 1 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 0x7f9e37b100d0>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:49,279 INFO 24488 GET http://es01:9200/ [status:N/A duration:0.010s] 2025-02-11 15:33:49,279 WARNING 24488 Node <Urllib3HttpNode(http://es01:9200)> has failed for 3 times in a row, putting on 4 second timeout 2025-02-11 15:33:49,279 WARNING 24488 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 0x7f9e37b10340>: Failed to resolve 'es01' ([Errno -2] Name or service not known)) 2025-02-11 15:33:49,287 INFO 24488 GET http://es01:9200/ [status:N/A duration:0.008s] 2025-02-11 15:33:49,287 WARNING 24488 Node <Urllib3HttpNode(http://es01:9200)> has failed for 4 times in a row, putting on 8 second timeout 2025-02-11 15:33:49,287 WARNING 24488 Connection error caused by: ConnectionError(Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7f9e37b13f10>: Failed to resolve 'es01' ([Errno -2] Name or service not known))). Waiting Elasticsearch http://es01:9200 to be healthy.
elasticsearch 是否启动成功? 我之前遇到elasticsearch无法启动成功是elasticsearch没有写入文件的权限 检查 /usr/share/elasticsearch/data 挂载的目录的权限, 在我机器上显示如下:
root@docker:/mnt/zfs_pool/m2-raidz1/docker_data/ragflow/esdata01 # ll
总计 13K
-rw-rw-r-- 1 1000 root 0 2月11日 03:32 node.lock
-rw-rw-r-- 1 1000 root 115 2月11日 03:32 nodes
drwxrwxr-x 2 1000 root 4 2月11日 03:34 snapshot_cache
drwxrwxr-x 3 1000 root 3 2月11日 03:52 indices
drwxrwxr-x 2 1000 root 12 2月11日 07:10 _state
@Nyx1197 @xiaohangguo 看一下你们的镜像和docker容器运行情况。 使用docker images和docker ps -a 有尝试按照 $ cd ragflow/docker $ docker compose -f docker-compose.yml up -d 这样执行吗?
docker logs -f ragflow-es-01
请问大佬们的问题解决了嘛,我遇到了同样的问题
请问大佬们的问题解决了嘛,我遇到了同样的问题
解决了。 $ cd ragflow/docker $ docker compose -f docker-compose.yml up -d
@Nyx1197 @xiaohangguo 看一下你们的镜像和docker容器运行情况。 使用docker images和docker ps -a 有尝试按照 $ cd ragflow/docker $ docker compose -f docker-compose.yml up -d 这样执行吗?
我解决了,我是
cd ragflow/docker
docker compose up
@Nyx1197 @xiaohangguo 看一下你们的镜像和docker容器运行情况。 使用docker images和docker ps -a 有尝试按照 $ cd ragflow/docker $ docker compose -f docker-compose.yml up -d 这样执行吗?
我解决了,我是
cd ragflow/docker docker compose up
docker compose up 等同于docker compose -f docker-compose.yml up -d
按照官网的操作, cd ragflow docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d
按照官网的操作, cd ragflow docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d
对,这就是我总结表达的意思
@Nyx1197 @xiaohangguo 看一下你们的镜像和docker容器运行情况。 使用docker images和docker ps -a 有尝试按照 $ cd ragflow/docker $ docker compose -f docker-compose.yml up -d 这样执行吗?
===================== 可以先看看es有没有下载下来,并且运行成功
用华为云镜像,按照这位兄弟的方式cd ragflow/docker 之后执行 docker compose -f docker-compose.yml up -d ,才能成功
按照官网的操作, cd ragflow docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d
对,这就是我总结表达的意思
是的,我就奇怪怎么启动不了es 或者 infinity。我就单独启动了一个es 或者infintiy。
docker compose -f docker/docker-compose.yml --profile infinity up -d
按照官网的操作, cd ragflow docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d
按照这个试了一下可以了
docker logs -f ragflow-es-01@KevinHuSh I have a same question, but I have already use cd ragflow docker compose -f docker/docker-compose.yml up -d
but it does not work.
My logs
Exception in thread "main" java.util.ServiceConfigurationError: java.nio.file.spi.FileSystemProvider: Unable to load jdk.nio.zipfs.ZipFileSystemProvider
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
at java.base/java.util.ServiceLoader.loadProvider(ServiceLoader.java:861)
at java.base/java.util.ServiceLoader$ModuleServicesLookupIterator.hasNext(ServiceLoader.java:1084)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
at java.base/java.nio.file.spi.FileSystemProvider.loadInstalledProviders(FileSystemProvider.java:156)
at java.base/java.nio.file.spi.FileSystemProvider$1.run(FileSystemProvider.java:207)
at java.base/java.nio.file.spi.FileSystemProvider$1.run(FileSystemProvider.java:204)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at java.base/java.nio.file.spi.FileSystemProvider.installedProviders(FileSystemProvider.java:204)
at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:336)
at org.elasticsearch.core.internal.provider.EmbeddedImplClassLoader.embeddedJarPath(EmbeddedImplClassLoader.java:334)
at org.elasticsearch.core.internal.provider.EmbeddedImplClassLoader.getProviderPrefixes(EmbeddedImplClassLoader.java:451)
at org.elasticsearch.core.internal.provider.EmbeddedImplClassLoader.lambda$getInstance$0(EmbeddedImplClassLoader.java:98)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at org.elasticsearch.core.internal.provider.EmbeddedImplClassLoader.getInstance(EmbeddedImplClassLoader.java:99)
at org.elasticsearch.core.internal.provider.ProviderLocator.load(ProviderLocator.java:103)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
at org.elasticsearch.core.internal.provider.ProviderLocator.get(ProviderLocator.java:96)
at org.elasticsearch.xcontent.spi.XContentProvider$Holder.
Exception in thread "main" java.util.ServiceConfigurationError: java.nio.file.spi.FileSystemProvider: Unable to load jdk.nio.zipfs.ZipFileSystemProvider
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
at java.base/java.util.ServiceLoader.loadProvider(ServiceLoader.java:861)
at java.base/java.util.ServiceLoader$ModuleServicesLookupIterator.hasNext(ServiceLoader.java:1084)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
at java.base/java.nio.file.spi.FileSystemProvider.loadInstalledProviders(FileSystemProvider.java:156)
at java.base/java.nio.file.spi.FileSystemProvider$1.run(FileSystemProvider.java:207)
at java.base/java.nio.file.spi.FileSystemProvider$1.run(FileSystemProvider.java:204)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at java.base/java.nio.file.spi.FileSystemProvider.installedProviders(FileSystemProvider.java:204)
at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:336)
at org.elasticsearch.core.internal.provider.EmbeddedImplClassLoader.embeddedJarPath(EmbeddedImplClassLoader.java:334)
at org.elasticsearch.core.internal.provider.EmbeddedImplClassLoader.getProviderPrefixes(EmbeddedImplClassLoader.java:451)
at org.elasticsearch.core.internal.provider.EmbeddedImplClassLoader.lambda$getInstance$0(EmbeddedImplClassLoader.java:98)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at org.elasticsearch.core.internal.provider.EmbeddedImplClassLoader.getInstance(EmbeddedImplClassLoader.java:99)
at org.elasticsearch.core.internal.provider.ProviderLocator.load(ProviderLocator.java:103)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
at org.elasticsearch.core.internal.provider.ProviderLocator.get(ProviderLocator.java:96)
at org.elasticsearch.xcontent.spi.XContentProvider$Holder.
按照官网的操作, cd ragflow CD Ragflow 公司 docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d
我也遇到了这个问题,我试试这个解法
按照官网的操作, cd ragflow CD Ragflow 公司 docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d按照官网的作, cd ragflow CD Ragflow 公司 docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。必须如下作 cd ragflow/docker docker compose -f docker-compose.yml up -d
我也遇到了这个问题,我试试这个解法
在docker里面执行命令后,就解决了问题。应该是Docker Compose 文件的相对路径引用不正确。
我是本地build的image,也是这个问题,咋解决啊,各位大佬
我是本地build的image,也是这个问题,咋解决啊,各位大佬
看点赞最多的那个,主要是es按照官方的启动命令是起不来这个服务的
确实,使用官方命令下载不了es的docker,必须进去docker compose 才行。
按照官网的操作, cd ragflow CD Ragflow 公司 docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d按照官网的作, cd ragflow CD Ragflow 公司 docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。必须如下作 cd ragflow/docker docker compose -f docker-compose.yml up -d
我也遇到了这个问题,我试试这个解法
在docker里面执行命令后,就解决了问题。应该是Docker Compose 文件的相对路径引用不正确。
是的,确认是Compose 文件的相对路径引用不正确。
我是本地build的image,也是这个问题,咋解决啊,各位大佬 目前官方文档已更新,没有当前这个bug问题了,按照官网操作。
ragflow-server | Traceback (most recent call last):
ragflow-server | File "/ragflow/api/ragflow_server.py", line 89, in
使用新命令也不行
能解决这个问题不?大佬们
能解决这个问题不?大佬们
目前官方文档已更新,没有当前这个bug问题了,按照官网[README]操作即可。
能解决这个问题不?大佬们
目前官方文档已更新,没有当前这个bug问题了,按照官网[README]操作即可。
你什么环境,ubuntn 哪个版本,我目前测试22.04也不行