[Bug]: mac m4 can not Parsing document
Is there an existing issue for the same bug?
- [x] I have checked the existing issues.
RAGFlow workspace code commit ID
217caecf
RAGFlow image version
v0.16.0-112-g217caecf full
Other environment information
mac M4 arm64
Actual behavior
can‘t parsing document
web Begin at: Mon, 24 Feb 2025 16:13:12 GMT Duration: 1586.22 s Progress: Task is queued...
docker: ragflow-server | ./entrypoint.sh: line 19: 12292 Illegal instruction $PY rag/svr/task_executor.py $1 ragflow-server | 2025-02-24 16:40:15,428 INFO 26 172.18.0.6 - - [24/Feb/2025 16:40:15] "GET /v1/user/info HTTP/1.1" 200 - ragflow-server | 2025-02-24 16:40:15,433 INFO 26 172.18.0.6 - - [24/Feb/2025 16:40:15] "GET /v1/user/tenant_info HTTP/1.1" 200 - ragflow-server | 2025-02-24 16:40:15,435 INFO 26 HEAD http://es01:9200/ragflow_6a10c708f28611efa4e60242ac120006 [status:404 duration:0.002s] ragflow-server | 2025-02-24 16:40:15,438 INFO 26 172.18.0.6 - - [24/Feb/2025 16:40:15] "GET /v1/kb/detail?kb_id=797cc354f28611ef95470242ac120006 HTTP/1.1" 200 - ragflow-server | 2025-02-24 16:40:15,438 INFO 26 172.18.0.6 - - [24/Feb/2025 16:40:15] "GET /v1/document/list?kb_id=797cc354f28611ef95470242ac120006&keywords=&page_size=10&page=1 HTTP/1.1" 200 - ragflow-server | 2025-02-24 16:40:15,438 INFO 26 172.18.0.6 - - [24/Feb/2025 16:40:15] "GET /v1/kb/797cc354f28611ef95470242ac120006/knowledge_graph HTTP/1.1" 200 - ragflow-server | 2025-02-24 16:40:17,166 INFO 26 172.18.0.6 - - [24/Feb/2025 16:40:17] "POST /v1/document/run HTTP/1.1" 200 - ragflow-server | 2025-02-24 16:40:17,172 INFO 26 172.18.0.6 - - [24/Feb/2025 16:40:17] "GET /v1/document/list?kb_id=797cc354f28611ef95470242ac120006&keywords=&page_size=10&page=1 HTTP/1.1" 200 - ragflow-server | 2025-02-24 16:40:18,117 INFO 26 172.18.0.6 - - [24/Feb/2025 16:40:18] "POST /v1/document/run HTTP/1.1" 200 - ragflow-server | 2025-02-24 16:40:18,126 INFO 26 172.18.0.6 - - [24/Feb/2025 16:40:18] "GET /v1/document/list?kb_id=797cc354f28611ef95470242ac120006&keywords=&page_size=10&page=1 HTTP/1.1" 200 - ragflow-server | ./entrypoint.sh: line 19: 12328 Illegal instruction $PY rag/svr/task_executor.py $1 ragflow-server | ./entrypoint.sh: line 19: 12373 Illegal instruction $PY rag/svr/task_executor.py $1 ragflow-server | ./entrypoint.sh: line 19: 12409 Illegal instruction $PY rag/svr/task_executor.py $1
Expected behavior
No response
Steps to reproduce
macbook m4-max arm64
0 git clone https://github.com/infiniflow/ragflow.git
1 cd ragflow
2 Dockfile edit: ARG NEED_MIRROR=1
3 .env edit: MacOS: MACOS=1
4 pip3 install huggingface_hub nltk
5 python3 download_deps.py
6 docker build --build-arg ARCH=arm64 -f Dockerfile.deps -t infiniflow/ragflow_deps .
7 docker build --build-arg ARCH=arm64 -f Dockerfile -t infiniflow/ragflow:v0.16.0 .
8 service.environment in docker/[docker-compose](https://so.csdn.net/so/search?q=docker-compose&spm=1001.2101.3001.7020)-base.yml
add:
- "ES_JAVA_OPTS=-XX:UseSVE=0"
- "CLI_JAVA_OPTS=-XX:UseSVE=0"
9 docker compose -f docker/docker-compose.yml up -d
Additional information
No response
Solution:
add these 3 lines to your .env file under docker directory.
this line to solve elastic search crashing: _JAVA_OPTIONS=-XX:UseSVE=0
these two: to solve $PY rag/svr/task_executor.py $1 OPENBLAS_CORETYPE=generic NUMBA_DISABLE_JIT=1
@B1tMaster it works.thinks.
macbook m4-max arm64
git clone https://github.com/infiniflow/ragflow.git
cd ragflow
Dockfile set: ARG NEED_MIRROR=1
.env Uncomment and set: MACOS=1
.env add:
_JAVA_OPTIONS=-XX:UseSVE=0
OPENBLAS_CORETYPE=generic
NUMBA_DISABLE_JIT=1
pip3 install huggingface_hub nltk
python3 download_deps.py
docker build --build-arg ARCH=arm64 -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build --build-arg ARCH=arm64 -f Dockerfile -t infiniflow/ragflow:nightly .
docker/docker-compose-base.yml
add:
- "ES_JAVA_OPTS=-XX:UseSVE=0"
- "CLI_JAVA_OPTS=-XX:UseSVE=0"
9 docker compose -f docker/docker-compose.yml up -d
@B1tMaster it works.thinks.
macbook m4-max arm64
git clone https://github.com/infiniflow/ragflow.git cd ragflow Dockfile set: ARG NEED_MIRROR=1 .env Uncomment and set: MACOS=1 .env add: _JAVA_OPTIONS=-XX:UseSVE=0 OPENBLAS_CORETYPE=generic NUMBA_DISABLE_JIT=1 pip3 install huggingface_hub nltk python3 download_deps.py docker build --build-arg ARCH=arm64 -f Dockerfile.deps -t infiniflow/ragflow_deps . docker build --build-arg ARCH=arm64 -f Dockerfile -t infiniflow/ragflow:nightly . docker/docker-compose-base.yml add: - "ES_JAVA_OPTS=-XX:UseSVE=0" - "CLI_JAVA_OPTS=-XX:UseSVE=0" 9 docker compose -f docker/docker-compose.yml up -d
![]()
![]()
pls use docker compose -f docker/docker-compose-macos.yml up -d
