Closed yuanpneg closed 3 months ago
i have the same question too
i have the same question too
修改es_conn.py ,加上鉴权 basic_auth=(settings.ES["username"], settings.ES["password"]) if "username" in settings.ES and "password" in settings.ES else None,
i fix it by change /.env ragflow-version from latest to dev.
修改es_conn.py ,加上鉴权 basic_auth=(settings.ES["username"], settings.ES["password"]) if "username" in settings.ES and "password" in settings.ES else None,
新版本自带就有这句。
我是跑dev没问题,但是解析很慢且报错index fail,然后想尝试固定版本,试了0.7.0和0.6.0都是Exception: Can't connect to ES cluster
修改es_conn.py ,加上鉴权 basic_auth=(settings.ES["username"], settings.ES["password"]) if "username" in settings.ES and "password" in settings.ES else None,
新版本自带就有这句。
我是跑dev没问题,但是解析很慢且报错index fail,然后想尝试固定版本,试了0.7.0和0.6.0都是Exception: Can't connect to ES cluster
果然切换版本,也要切换相应代码,不是直接拉docker就行了,换了对于版本的代码就可以了。
修改es_conn.py ,加上鉴权 basic_auth=(settings.ES["username"], settings.ES["password"]) if "username" in settings.ES and "password" in settings.ES else None,
新版本自带就有这句。 我是跑dev没问题,但是解析很慢且报错index fail,然后想尝试固定版本,试了0.7.0和0.6.0都是Exception: Can't connect to ES cluster
果然切换版本,也要切换相应代码,不是直接拉docker就行了,换了对于版本的代码就可以了 我这是在内部测试服务器配置了0.7.0版本的一套代码,最后运行docker compose 服务后,改变本地ES的连接主机IP代码,才连接成功,
修改es_conn.py ,加上鉴权 basic_auth=(settings.ES["username"], settings.ES["password"]) if "username" in settings.ES and "password" in settings.ES else None,
新版本自带就有这句。 我是跑dev没问题,但是解析很慢且报错index fail,然后想尝试固定版本,试了0.7.0和0.6.0都是Exception: Can't connect to ES cluster
果然切换版本,也要切换相应代码,不是直接拉docker就行了,换了对于版本的代码就可以了 我这是在内部测试服务器配置了0.7.0版本的一套代码,最后运行docker compose 服务后,改变本地ES的连接主机IP代码,才连接成功,
老哥怎么整的?我看了代码里面的RAGFLOW_VERSION都已经是dev版本了,直接compase的docker-compose-base.yml,还是出现无法连接es cluster的问题...
Describe your problem
Traceback (most recent call last): File "/ragflow/rag/svr/task_executor.py", line 28, in
from api.db.services.file2document_service import File2DocumentService
File "/ragflow/api/db/services/init.py", line 18, in
from .user_service import UserService
File "/ragflow/api/db/services/user_service.py", line 22, in
from api.db.db_models import DB, UserTenant
File "/ragflow/api/db/db_models.py", line 32, in
from api.settings import DATABASE, stat_logger, SECRET_KEY
File "/ragflow/api/settings.py", line 35, in
from rag.utils.es_conn import ELASTICSEARCH
File "/ragflow/rag/utils/es_conn.py", line 460, in
ELASTICSEARCH = ESConnection()
File "/ragflow/rag/utils/init.py", line 12, in _singleton
instances[key] = cls(*args, **kw)
File "/ragflow/rag/utils/es_conn.py", line 24, in init
raise Exception("Can't connect to ES cluster")
Exception: Can't connect to ES cluster