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-python/deployment] Error with Elastic Search on MacOS 15.2 with M4 Macbook #5760

Closed
louisbrulenaudet opened this issue Dec 17, 2024 · 2 comments · Fixed by #5766
Closed
Labels
area: deployment type: bug Indicates an unexpected problem or unintended behavior

Comments

@louisbrulenaudet
Copy link
Contributor

Describe the bug

Everything was working fine until MacOS version 15.2 was upgraded, rendering Elastic Search unusable. This problem is not simply linked to Argilla, but seems to find another reference in the Corretto library (issue here).

Stacktrace and code to create the bug

2024-12-17 09:03:57 # A fatal error has been detected by the Java Runtime Environment:
2024-12-17 09:03:57 #
2024-12-17 09:03:57 # SIGILL (0x4) at pc=0x0000ffff83f3fb5c, pid=7, tid=16
2024-12-17 09:03:57 #
2024-12-17 09:03:57 # JRE version: (21.0.2+13) (build )
2024-12-17 09:03:57 # Java VM: OpenJDK 64-Bit Server VM (21.0.2+13-58, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
2024-12-17 09:03:57 # Problematic frame:
2024-12-17 09:03:57 # j java.lang.System.registerNatives()V+0 [email protected]
2024-12-17 09:03:57 #
2024-12-17 09:03:57 # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
2024-12-17 09:03:57 #
2024-12-17 09:03:57 # An error report file with more information is saved as:
2024-12-17 09:03:57 # /usr/share/elasticsearch/hs_err_pid7.log
2024-12-17 09:03:57 [0.012s][warning][os] Loading hsdis library failed
2024-12-17 09:03:57 #
2024-12-17 09:03:57 # The crash happened outside the Java Virtual Machine in native code.
2024-12-17 09:03:57 # See problematic frame for where to report the bug.
2024-12-17 09:03:57 #

Expected behavior

Normally the docker container should start without trouble, but with this new version, it shows a java error.

Environment

  • Argilla Version [2.5.0]:
  • ElasticSearch Version [8.12.2]:

Additional context

No response

@louisbrulenaudet
Copy link
Contributor Author

The problem can be solved by applying this modification to docker-compose.yaml, then docker-compose up -d:

elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0
    environment:
      - ES_JAVA_OPTS=-Xms512m -Xmx512m -XX:UseSVE=0
      - CLI_JAVA_OPTS=-XX:UseSVE=0
      - node.name=elasticsearch
      - cluster.name=es-argilla-local
      - discovery.type=single-node
      - cluster.routing.allocation.disk.threshold_enabled=false
      - xpack.security.enabled=false
    ulimits:
      memlock:
        soft: -1
        hard: -1
    networks:
      - argilla
    volumes:
      - elasticdata:/usr/share/elasticsearch/data/

It remains to be seen whether this modification will bring about any regression.

@TeslaZY
Copy link

TeslaZY commented Dec 23, 2024

It seems related with https://bugs.openjdk.org/browse/JDK-8345296

@frascuchon frascuchon added type: bug Indicates an unexpected problem or unintended behavior type: documentation Improvements or additions to documentation area: deployment and removed type: documentation Improvements or additions to documentation labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: deployment type: bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants