ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: exec ./entrypoint.sh: no such file or directory

Open DemonDamon opened this issue 1 year ago • 11 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

i have followed the instructions but got this error while printout the log by 'sudo docker logs -f ragflow-server' --> exec ./entrypoint.sh: no such file or directory

Expected behavior

No response

Steps to reproduce

1. cd ragflow/docker
2. chmod +x ./entrypoint.sh
3. sudo docker compose -f docker-compose-CN.yml up -d

Additional information

No response

DemonDamon avatar Apr 08 '24 22:04 DemonDamon

Are your machine Arm64 architecture ?

KevinHuSh avatar Apr 09 '24 01:04 KevinHuSh

I have the same problem in WSL.

ChaoII avatar Apr 09 '24 06:04 ChaoII

i have the same problem. PS E:\gpt\ragflow\docker> docker logs -f ragflow-server exec ./entrypoint.sh: no such file or directory

younggggger avatar Apr 10 '24 02:04 younggggger

What about removing this line in docker compose yaml? image

KevinHuSh avatar Apr 10 '24 02:04 KevinHuSh

It still doesn't work, and there are even more error messages.

before: exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory

now exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory exec ./entrypoint.sh: no such file or directory

younggggger avatar Apr 10 '24 02:04 younggggger

If you comment out the line "- ./entrypoint.sh:/ragflow/entrypoint.sh" it might work. I am more concerned about the dockerfiles transparency.

//Edit never mind I found the issue https://github.com/infiniflow/ragflow/issues/205 TBH seems sketchy

drndos avatar Apr 10 '24 09:04 drndos

Check this version.

Docker Compose >= v2.26.1

KevinHuSh avatar Apr 11 '24 01:04 KevinHuSh

Docker is the latest version.

younggggger avatar Apr 11 '24 02:04 younggggger

Docker is the latest version. have - ./entrypoint.sh:/ragflow/entrypoint.sh logs exec ./entrypoint.sh: no such file or directory can't use files add entrypoint.sh

please help me

448486810 avatar Apr 14 '24 15:04 448486810

i think may be it only appear in the windows, we should convert the sh file fromCRLF(Windows) toLF (Linux) end of linesequence. The vscode can change it in lower right. also can use dos2unix .\entrypoint.sh which install in https://sourceforge.net/projects/dos2unix/files/dos2unix/7.5.2/dos2unix-7.5.2-win64.zip/download and add it to PATH. but now i don't have the windows machine, so i am not sure it is useful

ooooo-create avatar Apr 15 '24 10:04 ooooo-create

i think may be it only appear in the windows, we should convert the sh file fromCRLF(Windows) toLF (Linux) end of linesequence. The vscode can change it in lower right. also can use dos2unix .\entrypoint.sh which install in https://sourceforge.net/projects/dos2unix/files/dos2unix/7.5.2/dos2unix-7.5.2-win64.zip/download and add it to PATH. but now i don't have the windows machine, so i am not sure it is useful

I have tried it , it seems useful to convert the sh file from CRLF(Windows) to LF (Linux) end of linesequence 图片

ooooo-create avatar Apr 16 '24 05:04 ooooo-create