Skip to content

Add workaround in dev docs for issue with OpenSearch image #18168

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

facutuesca
Copy link
Contributor

@facutuesca facutuesca commented May 21, 2025

Building the OpenSearch image in a M4 Macbook results in the following error:

 => CACHED [opensearch 1/6] FROM docker.io/opensearchproject/opensearch:2.12.0@sha256:645d3d9390ade7ebef988d3c9bc61a6616f1863ff41efe97e2347d6bf7972504                                 0.0s
 => ERROR [opensearch 2/6] RUN opensearch-plugin remove opensearch-skills --purge                                                                                                      0.2s
------
 > [opensearch 2/6] RUN opensearch-plugin remove opensearch-skills --purge:
0.160 #
0.160 # A fatal error has been detected by the Java Runtime Environment:
0.160 #
0.160 #  SIGILL (0x4) at pc=0x0000f819dfc67c5c, pid=25, tid=26
0.160 #
0.160 # JRE version:  (21.0.2+13) (build )
0.160 # Java VM: OpenJDK 64-Bit Server VM (21.0.2+13-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
0.160 # Problematic frame:
0.160 # j  java.lang.System.registerNatives()V+0 [email protected]
0.160 #
0.160 # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /usr/share/opensearch/core.25)
0.160 #
0.160 # An error report file with more information is saved as:
0.160 # /usr/share/opensearch/hs_err_pid25.log
0.163 [0.010s][warning][os] Loading hsdis library failed
0.166 #
0.166 # The crash happened outside the Java Virtual Machine in native code.
0.166 # See problematic frame for where to report the bug.
0.166 #
0.211 /usr/share/opensearch/bin/opensearch-env: line 99:    25 Aborted                 (core dumped) "$JAVA" "$XSHARE" -cp "$OPENSEARCH_CLASSPATH" org.opensearch.tools.java_version_checker.JavaVersionChecker

This seems to be a known issue with M4 processors. A workaround is described here: comment

This PR documents that workaround in the troubleshooting section of the warehouse dev docs.

cc @woodruffw

@facutuesca facutuesca requested a review from a team as a code owner May 21, 2025 18:36
Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @facutuesca, LGTM!


while building the ``warehouse-opensearch`` image, this is a known issue
with OpenSearch in Apple M4 processors. A workaround (described in
`this comment <https://github.com/elastic/elasticsearch/issues/118583#issuecomment-2567270484>`_)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious - this link is from the elasticsearch-side on the world, and we're using opensearch. Is it possible that's been fixed over there / possibly in another version, or something else?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@facutuesca can confirm, but I believe the issue is present in both -- based on the discussion in that issue, users are seeing the both the same crash and have the same fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants