ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: Failed to resolve 'es01'

Open lichaorong opened this issue 11 months ago • 21 comments

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.

lichaorong avatar Feb 11 '25 06:02 lichaorong

Image

lichaorong avatar Feb 11 '25 07:02 lichaorong

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 avatar Feb 11 '25 07:02 JinHai-CN

跟这位兄弟的问题类似, @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.

xiaohangguo avatar Feb 11 '25 07:02 xiaohangguo

跟这位兄弟的问题类似, @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.

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 avatar Feb 11 '25 10:02 Nyx1197

@Nyx1197 @xiaohangguo 看一下你们的镜像和docker容器运行情况。 使用docker images和docker ps -a 有尝试按照 $ cd ragflow/docker $ docker compose -f docker-compose.yml up -d 这样执行吗?

lichaorong avatar Feb 12 '25 01:02 lichaorong

docker logs -f ragflow-es-01

KevinHuSh avatar Feb 12 '25 02:02 KevinHuSh

请问大佬们的问题解决了嘛,我遇到了同样的问题

yyx002 avatar Feb 12 '25 05:02 yyx002

请问大佬们的问题解决了嘛,我遇到了同样的问题

解决了。 $ cd ragflow/docker $ docker compose -f docker-compose.yml up -d

lichaorong avatar Feb 12 '25 07:02 lichaorong

@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

xiaohangguo avatar Feb 12 '25 07:02 xiaohangguo

@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

lichaorong avatar Feb 12 '25 07:02 lichaorong

按照官网的操作, cd ragflow docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d

yangras avatar Feb 12 '25 10:02 yangras

按照官网的操作, cd ragflow docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d

对,这就是我总结表达的意思

lichaorong avatar Feb 13 '25 00:02 lichaorong

@Nyx1197 @xiaohangguo 看一下你们的镜像和docker容器运行情况。 使用docker images和docker ps -a 有尝试按照 $ cd ragflow/docker $ docker compose -f docker-compose.yml up -d 这样执行吗?

===================== 可以先看看es有没有下载下来,并且运行成功

Image

Image

Image

用华为云镜像,按照这位兄弟的方式cd ragflow/docker 之后执行 docker compose -f docker-compose.yml up -d ,才能成功

wangchaoqi avatar Feb 14 '25 08:02 wangchaoqi

按照官网的操作, 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

DolphinSh avatar Feb 15 '25 06:02 DolphinSh

按照官网的操作, cd ragflow docker compose -f docker/docker-compose.yml up -d 会导致es或infinity容器不启动。 必须如下操作 cd ragflow/docker docker compose -f docker-compose.yml up -d

按照这个试了一下可以了

lfandrh avatar Feb 18 '25 01:02 lfandrh

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.(XContentProvider.java:95) at org.elasticsearch.xcontent.spi.XContentProvider.provider(XContentProvider.java:76) at org.elasticsearch.xcontent.yaml.YamlXContent.(YamlXContent.java:22) at org.elasticsearch.xcontent.XContentType$3.xContent(XContentType.java:93) at org.elasticsearch.xcontent.XContentFactory.xContent(XContentFactory.java:127) at org.elasticsearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1239) at org.elasticsearch.node.InternalSettingsPreparer.loadConfigWithSubstitutions(InternalSettingsPreparer.java:126) at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:52) at org.elasticsearch.common.cli.EnvironmentAwareCommand.createEnv(EnvironmentAwareCommand.java:110) at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85) at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:94) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85) at org.elasticsearch.cli.Command.main(Command.java:50) at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64) Caused by: java.lang.ClassFormatError: Incompatible magic value 0 in class file jdk/nio/zipfs/ZipFileSystemProvider at java.base/java.lang.ClassLoader.defineClass2(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1118) at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:182) at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:821) at java.base/jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(BuiltinClassLoader.java:741) at java.base/jdk.internal.loader.BuiltinClassLoader.findClass(BuiltinClassLoader.java:621) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:638) at java.base/java.lang.Class.forName(Class.java:625) at java.base/java.lang.Class.forName(Class.java:600) at java.base/java.util.ServiceLoader.loadProvider(ServiceLoader.java:859) ... 32 more 2025-02-18 10:37:54,389 main ERROR Could not reconfigure JMX java.lang.NoClassDefFoundError: Could not initialize class java.lang.management.ManagementFactory$PlatformMBeanFinder at java.management/java.lang.management.ManagementFactory.platformComponents(ManagementFactory.java:920) at java.management/java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:488) at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:140) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:632) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:285) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:209) at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:244) at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:220) at org.elasticsearch.common.logging.LogConfigurator.configureStatusLogger(LogConfigurator.java:323) at org.elasticsearch.common.logging.LogConfigurator.configureWithoutConfig(LogConfigurator.java:105) at org.elasticsearch.launcher.CliToolLauncher.configureLoggingWithoutConfig(CliToolLauncher.java:114) at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:55) Caused by: java.lang.ExceptionInInitializerError: Exception java.util.ServiceConfigurationError: sun.management.spi.PlatformMBeanProvider: Unable to load jdk.management.jfr.internal.FlightRecorderMXBeanProvider [in thread "main"] 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.management/java.lang.management.ManagementFactory$PlatformMBeanFinder$1.run(ManagementFactory.java:934) at java.management/java.lang.management.ManagementFactory$PlatformMBeanFinder$1.run(ManagementFactory.java:930) at java.base/java.security.AccessController.doPrivileged(AccessController.java:400) at java.base/java.security.AccessController.doPrivileged(AccessController.java:461) at java.management/java.lang.management.ManagementFactory$PlatformMBeanFinder.(ManagementFactory.java:929) at java.management/java.lang.management.ManagementFactory.getPlatformMXBean(ManagementFactory.java:689) at java.management/java.lang.management.ManagementFactory.getRuntimeMXBean(ManagementFactory.java:367) at org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup.(JmxRuntimeInputArgumentsLookup.java:36) at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method) at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160) at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300) at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor(MethodHandleAccessorFactory.java:103) at java.base/jdk.internal.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:200) at java.base/java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:549) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) at org.apache.logging.log4j.core.util.ReflectionUtil.instantiate(ReflectionUtil.java:189) at org.apache.logging.log4j.core.lookup.Interpolator.(Interpolator.java:86) at org.apache.logging.log4j.core.lookup.Interpolator.(Interpolator.java:105) at org.apache.logging.log4j.core.config.AbstractConfiguration.(AbstractConfiguration.java:135) at org.apache.logging.log4j.core.config.builder.impl.BuiltConfiguration.(BuiltConfiguration.java:55) at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) at org.apache.logging.log4j.core.config.builder.impl.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:192) at org.apache.logging.log4j.core.config.builder.impl.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:181) at org.apache.logging.log4j.core.config.builder.impl.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:70) ... 4 more

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.(XContentProvider.java:95) at org.elasticsearch.xcontent.spi.XContentProvider.provider(XContentProvider.java:76) at org.elasticsearch.xcontent.yaml.YamlXContent.(YamlXContent.java:22) at org.elasticsearch.xcontent.XContentType$3.xContent(XContentType.java:93) at org.elasticsearch.xcontent.XContentFactory.xContent(XContentFactory.java:127) at org.elasticsearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1239) at org.elasticsearch.node.InternalSettingsPreparer.loadConfigWithSubstitutions(InternalSettingsPreparer.java:126) at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:52) at org.elasticsearch.common.cli.EnvironmentAwareCommand.createEnv(EnvironmentAwareCommand.java:110) at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85) at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:94) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85) at org.elasticsearch.cli.Command.main(Command.java:50) at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64) Caused by: java.lang.ClassFormatError: Incompatible magic value 0 in class file jdk/nio/zipfs/ZipFileSystemProvider at java.base/java.lang.ClassLoader.defineClass2(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1118) at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:182) at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:821) at java.base/jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(BuiltinClassLoader.java:741) at java.base/jdk.internal.loader.BuiltinClassLoader.findClass(BuiltinClassLoader.java:621) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:638) at java.base/java.lang.Class.forName(Class.java:625) at java.base/java.lang.Class.forName(Class.java:600) at java.base/java.util.ServiceLoader.loadProvider(ServiceLoader.java:859) ... 32 more

JavaFaith avatar Feb 18 '25 02:02 JavaFaith

按照官网的操作, 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

我也遇到了这个问题,我试试这个解法

qiufeihong2018 avatar Feb 18 '25 08:02 qiufeihong2018

按照官网的操作, 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 文件的相对路径引用不正确。

qiufeihong2018 avatar Feb 18 '25 08:02 qiufeihong2018

我是本地build的image,也是这个问题,咋解决啊,各位大佬

9527andy avatar Feb 20 '25 10:02 9527andy

我是本地build的image,也是这个问题,咋解决啊,各位大佬

看点赞最多的那个,主要是es按照官方的启动命令是起不来这个服务的

coderLinJ5945 avatar Feb 25 '25 10:02 coderLinJ5945

确实,使用官方命令下载不了es的docker,必须进去docker compose 才行。

junfhu avatar Mar 02 '25 08:03 junfhu

按照官网的操作, 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 文件的相对路径引用不正确。

lichaorong avatar Mar 03 '25 08:03 lichaorong

我是本地build的image,也是这个问题,咋解决啊,各位大佬 目前官方文档已更新,没有当前这个bug问题了,按照官网操作。

lichaorong avatar Mar 03 '25 08:03 lichaorong

ragflow-server | Traceback (most recent call last): ragflow-server | File "/ragflow/api/ragflow_server.py", line 89, in ragflow-server | settings.init_settings() ragflow-server | File "/ragflow/api/settings.py", line 137, in init_settings ragflow-server | docStoreConn = rag.utils.es_conn.ESConnection() ragflow-server | File "/ragflow/rag/utils/init.py", line 31, in _singleton ragflow-server | instances[key] = cls(*args, **kw) ragflow-server | File "/ragflow/rag/utils/es_conn.py", line 63, in init ragflow-server | raise Exception(msg) ragflow-server | Exception: Elasticsearch http://es01:9200 is unhealthy in 120s. ragflow-server | 2025-04-27 11:44:29,468 INFO 37 HEAD http://es01:9200/ [status:N/A duration:130.155s] ragflow-server | 2025-04-27 11:44:29,468 WARNING 37 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout ragflow-server | 2025-04-27 11:44:29,469 ERROR 37 Elasticsearch http://es01:9200 is unhealthy in 120s. ragflow-server | Traceback (most recent call last): ragflow-server | File "/ragflow/rag/svr/task_executor.py", line 740, in ragflow-server | trio.run(main) ragflow-server | File "/ragflow/.venv/lib/python3.10/site-packages/trio/_core/_run.py", line 2423, in run ragflow-server | raise runner.main_task_outcome.error ragflow-server | File "/ragflow/rag/svr/task_executor.py", line 716, in main ragflow-server | settings.init_settings() ragflow-server | File "/ragflow/api/settings.py", line 137, in init_settings ragflow-server | docStoreConn = rag.utils.es_conn.ESConnection() ragflow-server | File "/ragflow/rag/utils/init.py", line 31, in _singleton ragflow-server | instances[key] = cls(*args, **kw) ragflow-server | File "/ragflow/rag/utils/es_conn.py", line 63, in init ragflow-server | raise Exception(msg) ragflow-server | Exception: Elasticsearch http://es01:9200 is unhealthy in 120s. ragflow-server exited with code 0

使用新命令也不行

rosehe1029 avatar Apr 27 '25 03:04 rosehe1029

能解决这个问题不?大佬们

alsojin0806 avatar Sep 10 '25 15:09 alsojin0806

能解决这个问题不?大佬们

目前官方文档已更新,没有当前这个bug问题了,按照官网[README]操作即可。

lichaorong avatar Sep 11 '25 00:09 lichaorong

能解决这个问题不?大佬们

目前官方文档已更新,没有当前这个bug问题了,按照官网[README]操作即可。

你什么环境,ubuntn 哪个版本,我目前测试22.04也不行

alsojin0806 avatar Sep 14 '25 01:09 alsojin0806