[Question]: Can't connect to ES cluster
Describe your problem
错误图片
docker ps图片,均已启动成功:
从其他 issue中看到的,关于镜像版本全都是dev:
请问老哥,还有可能是 哪里的问题?
Please refer to this And mind the password consistency between docker/.env and conf/service_conf.yml
朋友问题解决了吗?我也遇到了这个问题 尝试可很多办法都不行
Please refer to this And mind the password consistency between docker/.env and conf/service_conf.yml请参考此内容 请注意 docker/.env 和 conf/service_conf.yml 之间的密码一致性
This method is useless. I followed this document several times, but I still reported this error. The passwords for the two files are the same.
Please refer to this And mind the password consistency between docker/.env and conf/service_conf.yml
我的解决方法发这里了https://github.com/infiniflow/ragflow/issues/1135#issuecomment-2291638601
Currently two issues found that could result in the problem:
- The port on the host is mapped at 1200 (used to be 9200 but changed at some point) by
ragflow-es-01butragflow-serverstill listens at 9200; -
ragflow-serverisn't having a correct domain resolution set forhttp://es01. Cannot confirm if this also happens on docker; I tried to deploy it from source code which had no luck.
Solutions:
- edit
docker-compose.ymland/or.envto map the port on the host back to 9200. - If it's confortable to do so (doesn't cause other resolution issues or security risks), edit
/etc/hosts, alternatively configure the DNS to resolve domaines01to127.0.0.1; if the ElasticSearch is running on other machines, configure/etc/hoststo where the IP that ElasticSearch is at, alternatively you may have to tweak networking gears.
Alternatively, check the comment mentioned by @RyanRaw .
检查docker compose -f docker/docker-compose.yml up -d中yml文件是否正确,当使用docker-compose-CN-oc9.yml文件时会出现Can't connect to ES cluster错误
检查docker compose -f docker/docker-compose.yml up -d中yml文件是否正确,当使用docker-compose-CN-oc9.yml文件时会出现Can't connect to ES cluster错误
对我是用docker-compose没问题 但是使用 cn-oc9 就会报错Can't connect to ES cluster
检查docker compose -f docker/docker-compose.yml up -d中yml文件是否正确,当使用docker-compose-CN-oc9.yml文件时会出现Can't connect to ES cluster错误
对我是用docker-compose没问题但是使用cn-oc9就会报错Can't connect to ES cluster
问题解决了吗?@RubyRose2001
检查docker compose -f docker/docker-compose.yml up -d中yml文件是否正确,当使用docker-compose-CN-oc9.yml文件时会出现Can't connect to ES cluster错误
对我是用docker-compose没问题但是使用cn-oc9就会报错Can't connect to ES cluster
问题解决了吗?@RubyRose2001
没有 官方了,官方说这个不维护了 老老实实用 docker-compose.yml了