ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: exec ./entrypoint.sh: no such file or directory bug , due to which rag server restarts.

Open pydv9991 opened this issue 1 year ago • 13 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch name

main

Commit ID

dfeqxewc

Other environment information

No response

Actual behavior

the rag server starts again and again

Expected behavior

rag server should be in running state.

Steps to reproduce

$ git clone https://github.com/infiniflow/ragflow.git
$ cd ragflow/
$ docker build -t infiniflow/ragflow:v1.0 .
$ cd ragflow/docker
$ chmod +x ./entrypoint.sh
$ docker compose up -d

Additional information

No response

pydv9991 avatar Apr 09 '24 09:04 pydv9991

Are your machine Arm64 architecture ?

KevinHuSh avatar Apr 09 '24 09:04 KevinHuSh

My system is X64.

On Tue, 9 Apr 2024 at 3:12 PM, KevinHuSh @.***> wrote:

Are your machine Arm64 architecture ?

— Reply to this email directly, view it on GitHub https://github.com/infiniflow/ragflow/issues/279#issuecomment-2044587119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6GLMGEDVK2YXGLIW7XOJDY4OZZRAVCNFSM6AAAAABF6GVRASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGU4DOMJRHE . You are receiving this because you authored the thread.Message ID: @.***>

pydv9991 avatar Apr 09 '24 09:04 pydv9991

will it not work on x64 ?

pydv9991 avatar Apr 09 '24 10:04 pydv9991

What about removing this line in docker_compose.yml? image

KevinHuSh avatar Apr 09 '24 11:04 KevinHuSh

after removing this. $docker logs -f ragflow-server request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/ragflow-server/json, check if the server supports the requested API version

pydv9991 avatar Apr 09 '24 12:04 pydv9991

Docker version >= 24.0.0 ?

KevinHuSh avatar Apr 10 '24 02:04 KevinHuSh

Same problem, "Docker version 26.0.0, build 2ae903e"

domsebalj avatar Apr 10 '24 07:04 domsebalj

change line 22 on docker-compose.yml to - ./entrypoint.sh:/entrypoint.sh

Shreyansh-Sheth avatar Apr 10 '24 08:04 Shreyansh-Sheth

Still the same error message "exec ./entrypoint.sh: no such file or directory"

domsebalj avatar Apr 10 '24 10:04 domsebalj

change line 22 on docker-compose.yml to - ./entrypoint.sh:/entrypoint.sh

Does this method work?

BTW. Docker Compose >= v2.26.1

KevinHuSh avatar Apr 11 '24 00:04 KevinHuSh

trying on linux now. raise Exception("Can't connect to ES cluster") Exception: Can't connect to ES cluster Traceback (most recent call last): File "/ragflow/rag/svr/task_executor.py", line 34, in from api.db.services.task_service import TaskService 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 33, in from api.settings import DATABASE, stat_logger, SECRET_KEY File "/ragflow/api/settings.py", line 18, in from rag.utils import ELASTICSEARCH File "/ragflow/rag/utils/init.py", line 19, in from .es_conn import ELASTICSEARCH File "/ragflow/rag/utils/es_conn.py", line 456, in ELASTICSEARCH = HuEs()

es cluster is not starting

pydv9991 avatar Apr 11 '24 12:04 pydv9991

change line 22 on docker-compose.yml to - ./entrypoint.sh:/entrypoint.sh

Does this method work?

BTW. Docker Compose >= v2.26.1

That didn't work. Still getting the same error.

Docker compose is 2.26.1

domsebalj avatar Apr 11 '24 13:04 domsebalj

About the ES connection please refer to: https://github.com/infiniflow/ragflow/blob/main/docs/faq.md

KevinHuSh avatar Apr 13 '24 02:04 KevinHuSh

Upgrade to the latest dev version of the docker image. Problem solved.

KevinHuSh avatar May 16 '24 07:05 KevinHuSh

ERROR: BadRequestError(400, 'search_phase_execution_exception', 'failed to create query: field [q_1536_vec] does not exist in the mapping') it is shown in version 0.7.Pls help me to resolve it,thks. @KevinHuSh

williamyszhou avatar Jun 01 '24 14:06 williamyszhou