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

Merged
merged 2 commits into from
Jun 2, 2025

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!

@miketheman miketheman added the developer experience Anything that improves the experience for Warehouse devs label Jun 2, 2025
Copy link
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

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

Thanks!!

@miketheman miketheman enabled auto-merge (squash) June 2, 2025 19:12
@miketheman miketheman merged commit 42f2eb4 into pypi:main Jun 2, 2025
20 checks passed
@facutuesca facutuesca deleted the ft/dev-doc-troubleshoot-m4 branch June 2, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience Anything that improves the experience for Warehouse devs documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants