Skip to content

[Bug]: Solution to M4 mac arch64 elastic container crashing and $PY rag/svr/task_executor.py $1 issue with main server. #5367

Open
@B1tMaster

Description

@B1tMaster

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

4e2afcd

RAGFlow image version

nightly

Other environment information

M4, macmini pro , 15.3.1 (24D70)

Actual behavior

this is actual solution to solve the problem.

I added below 3 ENV variables to my .env file under docker directory:

_JAVA_OPTIONS=-XX:UseSVE=0
OPENBLAS_CORETYPE=generic
NUMBA_DISABLE_JIT=1

This solution solves 2 problems:

  1. Elastic search container constantly re-boot due to Java crash.. related to MacBook m4 macmini ARch64 incompatibility .
  2. main ragflow server , not being able to start properly due to executor failing all the time again due to MacBook m4 Arch64 incompatibility .
    basically if you get this: illegal $PY rag/svr/task_executor.py $1

Expected behavior

No response

Steps to reproduce

this is a fix.. just add those lines to .env file if you are on macOS m4 

_JAVA_OPTIONS=-XX:UseSVE=0
OPENBLAS_CORETYPE=generic
NUMBA_DISABLE_JIT=1

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions