Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: failed to start with the error " ./entrypoint.sh: line 22: 1180 Illegal instruction $PY rag/svr/task_executor.py" #3989

Open
1 task done
qiulang opened this issue Dec 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@qiulang
Copy link

qiulang commented Dec 11, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

74c6b21

RAGFlow image version

failed to start

Other environment information

uname -a
Darwin localhost 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:16:46 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8112 arm64

sw_vers
ProductName:		macOS
ProductVersion:		14.6.1
BuildVersion:		23G93

Actual behavior

docker compose -f docker/docker-compose.yml up -d
[+] Running 5/5
 ✔ Container ragflow-es-01   Running                                                                                                                                       0.0s
 ✔ Container ragflow-mysql   Healthy                                                                                                                                       0.5s
 ✔ Container ragflow-redis   Running                                                                                                                                       0.0s
 ✔ Container ragflow-server  Running                                                                                                                                       0.0s
 ✔ Container ragflow-minio   Running
 

But it fails to start

docker logs -f ragflow-server
./entrypoint.sh: line 35:  3430 Illegal instruction     $PY api/ragflow_server.py

Stop the docker and start it again, sometimes it will show the following error, but sometimes it does not!

! ragflow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Expected behavior

No response

Steps to reproduce

git pull the latest code and  run on mac M2

Additional information

No response

@qiulang qiulang added the bug Something isn't working label Dec 11, 2024
@KevinHuSh
Copy link
Collaborator

docker build --build-arg ARCH=arm64 -f Dockerfile.slim -t infiniflow/ragflow:dev-slim .
docker build --build-arg ARCH=arm64 -f Dockerfile -t infiniflow/ragflow:dev .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants