0

I have installed Astra DB on macOS Sonoma using Homebrew

brew install datastax/astra-cli/astra-cli

I am running astra setup now but getting the following error

Exception in thread "main" java.lang.UnsatisfiedLinkError: jdk.internal.io.JdkConsoleImpl.echo(Z)Z [symbol: Java_jdk_internal_io_JdkConsoleImpl_echo or Java_jdk_internal_io_JdkConsoleImpl_echo__Z]
    at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.access.JNINativeLinkage.getOrFindEntryPoint(JNINativeLinkage.java:152)
    at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.JNIGeneratedMethodSupport.nativeCallAddress(JNIGeneratedMethodSupport.java:54)
    at [email protected]/jdk.internal.io.JdkConsoleImpl.echo(Native Method)
    at [email protected]/jdk.internal.io.JdkConsoleImpl.readPassword(JdkConsoleImpl.java:101)
    at [email protected]/java.io.ProxyingConsole.readPassword(ProxyingConsole.java:117)
    at com.dtsx.astra.cli.config.SetupCmd.execute(SetupCmd.java:75)
    at com.dtsx.astra.cli.core.AbstractCmd.run(AbstractCmd.java:89)
    at com.dtsx.astra.cli.AstraCli.run(AstraCli.java:280)
    at com.dtsx.astra.cli.AstraCli.main(AstraCli.java:255)
    at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)

1 Answer 1

1

There is a known issue when running the Astra CLI setup command in interactive mode for some of the latest JDKs that leads to the UnsatisfiedLinkError.

As a workaround, please specify your database token using the --token option so it can connect to Astra, for example:

$ astra setup --token AstraCS:AbC...:123...

If the token is valid, you should see the following output:

[OK]    Configuration has been saved.
[OK]    Setup completed.
[INFO]  Enter 'astra help' to list available commands.

Then verify that the Astra CLI setup is complete using the config list command, for example:

$ astra config list
+-----------------------------------------+
| configuration                           |
+-----------------------------------------+
| [email protected]                  |
+-----------------------------------------+

These steps should allow you to get past the error. Cheers!

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot for the prompt response Erick. This solved my problem

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.