Skip to content

[Bug]: ragflow-server can't connect to es01 #6186

Open
@LIUyizheSDU

Description

@LIUyizheSDU

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

RAGFlow workspace code commit ID

d0eda83

RAGFlow image version

v0.17.2

Other environment information

Actual behavior

The ragflow-server cant connect to es01。

ragflow-server logs:

`2025-03-17 20:40:26,733 INFO 19 ragflow_server log path: /ragflow/logs/ragflow_server.log, log levels: {'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}
2025-03-17 20:40:34,396 INFO 19 init database on cluster mode successfully
2025-03-17 20:40:47,892 INFO 19
____ ___ ______ ______ __
/ __ \ / | / // // / _ __
/ /
/ // /| | / / __ / /
/ // __ | | /| / /
/ , // ___ |/ // // __/ / // // /| |/ |/ /
/
/ |
|// ||_/// // _/ |/|__/

2025-03-17 20:40:47,892 INFO 19 RAGFlow version: v0.17.2 full
2025-03-17 20:40:47,892 INFO 19 project base: /ragflow
2025-03-17 20:40:47,893 INFO 19 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-03-17 20:40:47,893 INFO 19 Use Elasticsearch http://es01:9200 as the doc engine.
2025-03-17 20:42:58,620 INFO 19 GET http://es01:9200/ [status:N/A duration:130.725s]
2025-03-17 20:42:58,620 WARNING 19 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout
2025-03-17 20:42:58,620 WARNING 19 Connection timed out. Waiting Elasticsearch http://es01:9200 to be healthy.
2025-03-17 20:43:56,648 INFO 16 ragflow_server log path: /ragflow/logs/ragflow_server.log, log levels: {'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}`

task_executor logs:
`2025-03-17 20:41:02,483 INFO 34 task_consumer_0 log path: /ragflow/logs/task_consumer_0.log, log levels: {'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}
2025-03-17 20:41:02,484 INFO 34


/_ /_ / / / / _____ _______ / / _____
/ / / __ `/ / /// / __/ | |// _ / / / / / __/ __ / /
/ / / /
/ ( ) ,< / /
> </ / // /
/ / /
/ /
/ / /
/
/ _
,///|| /_____//||_/_/_,/_/___//

2025-03-17 20:41:02,485 INFO 34 TaskExecutor: RAGFlow version: v0.17.2 full
2025-03-17 20:41:02,485 INFO 34 Use Elasticsearch http://es01:9200 as the doc engine.
2025-03-17 20:43:12,955 INFO 34 GET http://es01:9200/ [status:N/A duration:130.469s]
2025-03-17 20:43:12,956 WARNING 34 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout
2025-03-17 20:43:12,956 WARNING 34 Connection timed out. Waiting Elasticsearch http://es01:9200 to be healthy.
2025-03-17 20:44:35,868 INFO 29 task_consumer_0 log path: /ragflow/logs/task_consumer_0.log, log levels: {'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}
2025-03-17 20:44:35,869 INFO 29


/_ /_ / / / / _____ _______ / / _____
/ / / __ `/ / /// / __/ | |// _ / / / / / __/ __ / /
/ / / /
/ ( ) ,< / /
> </ / // /
/ / /
/ /
/ / /
/
/ _
,///|| /_____//||_/_/_,/_/___//

2025-03-17 20:44:35,869 INFO 29 TaskExecutor: RAGFlow version: v0.17.2 full
2025-03-17 20:44:35,870 INFO 29 Use Elasticsearch http://es01:9200 as the doc engine.
2025-03-17 20:46:45,948 INFO 29 GET http://es01:9200/ [status:N/A duration:130.077s]
2025-03-17 20:46:45,948 WARNING 29 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout
2025-03-17 20:46:45,948 WARNING 29 Connection timed out. Waiting Elasticsearch http://es01:9200 to be healthy.
2025-03-17 20:49:01,116 INFO 29 GET http://es01:9200/ [status:N/A duration:130.161s]
2025-03-17 20:49:01,116 WARNING 29 Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout
2025-03-17 20:49:01,116 WARNING 29 Connection timed out. Waiting Elasticsearch http://es01:9200 to be healthy.
2025-03-17 20:49:06,122 INFO 29 Resurrected node <Urllib3HttpNode(http://es01:9200)> (force=False)
2025-03-17 20:51:16,284 INFO 29 HEAD http://es01:9200/ [status:N/A duration:130.161s]
2025-03-17 20:51:16,284 WARNING 29 Node <Urllib3HttpNode(http://es01:9200)> has failed for 2 times in a row, putting on 2 second timeout
2025-03-17 20:51:16,284 ERROR 29 Elasticsearch http://es01:9200 is unhealthy in 120s.
2025-03-17 20:51:51,267 INFO 540 task_consumer_0 log path: /ragflow/logs/task_consumer_0.log, log levels: {'peewee': 'WARNING', 'pdfminer': 'WARNING', 'root': 'INFO'}
2025-03-17 20:51:51,268 INFO 540 `

running docker exec ragflow-server curl -v http://es01:9200 , output
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 172.18.0.2:9200... 0 0 0 0 0 0 0 0 --:--:-- 0:01:07 --:--:-- 0

Image

Expected behavior

No response

Steps to reproduce

follows readme,output different when run' docker logs -f ragflow-server '。

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions