Skip to content

[Question]: docker image ragflow-es-01 keeps restarting on MacOS M4 Chips #5466

Open
@cyanghsieh

Description

@cyanghsieh

Describe your problem

Tried to deploy RAGFLOW_IMAGE=infiniflow/ragflow:v0.15.1 locally in MacOS environment.
I've already refered the solutions provided in #4666, #5367 and here, but none of these works unfortunately.

what I've tried:

  1. add platform: linux/arm64 in docker-compose-base.yml below es01, mysql, minio, redis sections
  2. turn off docker VM Options Use Rosetta for x86_64/amd64 emulation on Apple Silicon
  3. increase docker memory limit to 16GB
  4. get into ragflow-server and run the following commands:
pip install polars-lts-cpu
exit
docker restart ragflow-server

this solved the cpu issues on ragflow-server but es-01 keeps restarting

  1. add the following commands at .env files
_JAVA_OPTIONS=-XX:UseSVE=0
OPENBLAS_CORETYPE=generic
NUMBA_DISABLE_JIT=1

here's the logs for reference:

2025-02-28 11:24:36 Picked up _JAVA_OPTIONS: -XX:UseSVE=0
2025-02-28 11:24:36 Picked up _JAVA_OPTIONS: -XX:UseSVE=0
2025-02-28 11:24:37 Picked up _JAVA_OPTIONS: -XX:UseSVE=0
2025-02-28 11:24:37 Picked up _JAVA_OPTIONS: -XX:UseSVE=0
2025-02-28 11:24:37 Picked up _JAVA_OPTIONS: -XX:UseSVE=0
2025-02-28 11:24:38 Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
2025-02-28 11:24:38 output:
2025-02-28 11:24:38 
2025-02-28 11:24:38 error:
2025-02-28 11:24:38 Picked up _JAVA_OPTIONS: -XX:UseSVE=0
2025-02-28 11:24:38 WARNING: Using incubator modules: jdk.incubator.vector
2025-02-28 11:24:38 Error: Could not find or load main class "-Xms512m
2025-02-28 11:24:38 Caused by: java.lang.ClassNotFoundException: "-Xms512m
2025-02-28 11:24:38     at org.elasticsearch.server.cli.JvmOption.flagsFinal(JvmOption.java:120)
2025-02-28 11:24:38     at org.elasticsearch.server.cli.JvmOption.findFinalOptions(JvmOption.java:87)
2025-02-28 11:24:38     at org.elasticsearch.server.cli.MachineDependentHeap.determineHeapSettings(MachineDependentHeap.java:59)
2025-02-28 11:24:38     at org.elasticsearch.server.cli.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:138)
2025-02-28 11:24:38     at org.elasticsearch.server.cli.JvmOptionsParser.determineJvmOptions(JvmOptionsParser.java:91)
2025-02-28 11:24:38     at org.elasticsearch.server.cli.ServerProcess.createProcess(ServerProcess.java:208)
2025-02-28 11:24:38     at org.elasticsearch.server.cli.ServerProcess.start(ServerProcess.java:104)
2025-02-28 11:24:38     at org.elasticsearch.server.cli.ServerProcess.start(ServerProcess.java:88)
2025-02-28 11:24:38     at org.elasticsearch.server.cli.ServerCli.startServer(ServerCli.java:239)
2025-02-28 11:24:38     at org.elasticsearch.server.cli.ServerCli.execute(ServerCli.java:100)
2025-02-28 11:24:38     at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
2025-02-28 11:24:38     at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
2025-02-28 11:24:38     at org.elasticsearch.cli.Command.main(Command.java:50)
2025-02-28 11:24:38     at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions