-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
installing Graal.js language component via gu fails with error "org.graalvm.component.installer.FailedOperationException: Component metadata storage is corrupted." #7951
Comments
hi @ispringer! we tried to reproduce this locally and the installation was successful. Can you please try the following and tell us if it worked?
Also do you know if this happens as well in other environments? |
Hi @alina-yur, same issue:
The only other platform I have tried it on is OS X aarch64, and it was not an issue there. |
Hi @ispringer! I'm sorry, I can't reproduce the issue:
For reference:
|
Hi @ansalond, your test case worked for me. The js-installable jar I was originally using was identical to yours, so I figured it must be something different about the GraalVM install dir. And I recalled that I did repackage the So I thought the "corrupt metadata storage" error message might be referring to the metadata under
Deleting these two files solved the issue!
It turns out Mac OS X creates these Sorry for the false alarm! Thanks for your diligence in trying to reproduce! I hope this issue will at least help some other people out in the future who encounter this issue or a similar issue. |
Thank you @ispringer for the feedback! Indeed, Since GraalVM 23.1, |
Describe the issue
I have GraalVM CE 22.3.3 installed on an Amazon Linux 1 box:
$ uname -a
Linux t5a1 4.14.252-131.483.amzn1.x86_64 #1 SMP Mon Nov 1 20:48:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ java -version
openjdk version "11.0.20" 2023-07-18
OpenJDK Runtime Environment GraalVM CE 22.3.3 (build 11.0.20+8-jvmci-22.3-b22)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.3 (build 11.0.20+8-jvmci-22.3-b22, mixed mode, sharing)
When I try to install Graal.js via gu, it fails with:
Steps to reproduce the issue
Please include both build steps as well as run steps
sudo /usr/lib/jvm/java/bin/gu -e install js
Fails as follows:
Describe GraalVM and your environment:
More details
Looking at the source code for the DirectoryStorage class, it looks like this is the line that fails:
https://github.com/oracle/graal/blob/master/vm/src/org.graalvm.component.installer/src/org/graalvm/component/installer/persist/DirectoryStorage.java#L304
It's trying to read the "Bundle-Symbolic-Name" prop from the component metadata for the graaljs bundle and not finding it.
But i cracked open the jar and that prop does appear to be set...
The text was updated successfully, but these errors were encountered: