infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.84k stars 2.24k forks source link

[Bug]: error with new version #1087

Closed rhudock closed 5 months ago

rhudock commented 5 months ago

Is there an existing issue for the same bug?

Branch name

main

Commit ID

dbdae8e8

Other environment information

No response

Actual behavior

updated docker and code and now getting this error when starting:

ragflow-server | Traceback (most recent call last): ragflow-server | File "/ragflow/rag/svr/task_executor.py", line 28, in ragflow-server | from api.db.services.file2document_service import File2DocumentService ragflow-server | File "/ragflow/api/db/services/init.py", line 18, in ragflow-server | Traceback (most recent call last): ragflow-server | File "/ragflow/api/ragflow_server.py", line 26, in ragflow-server | from .user_service import UserService ragflow-server | File "/ragflow/api/db/services/user_service.py", line 22, in ragflow-server | from api.db.db_models import DB, UserTenant ragflow-server | File "/ragflow/api/db/db_models.py", line 32, in ragflow-server | from api.apps import app ragflow-server | File "/ragflow/api/apps/init.py", line 26, in ragflow-server | from api.settings import DATABASE, stat_logger, SECRET_KEY ragflow-server | File "/ragflow/api/settings.py", line 35, in ragflow-server | from api.db.db_models import close_connection ragflow-server | File "/ragflow/api/db/db_models.py", line 32, in ragflow-server | from rag.utils.es_conn import ELASTICSEARCH ragflow-server | File "/ragflow/rag/utils/es_conn.py", line 460, in ragflow-server | from api.settings import DATABASE, stat_logger, SECRET_KEY ragflow-server | File "/ragflow/api/settings.py", line 35, in ragflow-server | ELASTICSEARCH = ESConnection() ragflow-server | File "/ragflow/rag/utils/init.py", line 12, in _singleton ragflow-server | from rag.utils.es_conn import ELASTICSEARCH ragflow-server | File "/ragflow/rag/utils/es_conn.py", line 460, in ragflow-server | instances[key] = cls(*args, *kw) ragflow-server | File "/ragflow/rag/utils/es_conn.py", line 24, in init ragflow-server | raise Exception("Can't connect to ES cluster") ragflow-server | Exception: Can't connect to ES cluster ragflow-server | ELASTICSEARCH = ESConnection() ragflow-server | File "/ragflow/rag/utils/init.py", line 12, in _singleton ragflow-server | instances[key] = cls(args, **kw) ragflow-server | File "/ragflow/rag/utils/es_conn.py", line 24, in init ragflow-server | raise Exception("Can't connect to ES cluster") ragflow-server | Exception: Can't connect to ES cluster

Expected behavior

No response

Steps to reproduce

update pre-existing environment and run

Additional information

No response

KevinHuSh commented 5 months ago

Change RAGFLOW_VERSION to dev in docker/.env if you're using latest code.