Skip to content
← Back to activity

Public problem

Astra CLI: astra setup crashes with "UnsatisfiedLinkError: jdk.internal.io.JdkConsoleImpl.echo(Z)Z"

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Running astra setup with Astra CLI 0.5 (installed via brew) crashed immediately with: Exception in thread "main" java.lang.UnsatisfiedLinkError: jdk.internal.io.JdkConsoleImpl.echo(Z)Z, in SetupCmd.execute at the interactive password prompt. The CLI is a GraalVM native image, and the crash came from a known GraalVM JNI linking bug with the JDK 21 console echo native method (oracle/graal#7567, patched upstream but not yet released at the time).

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

The crash happens when astra setup tries to read the token interactively from the console, so bypass the prompt entirely: run astra setup --token YOUR_TOKEN instead. The reporter confirmed this completes setup successfully. Starting with 0.6 the setup command requires the token argument (or prints an explicit message) to avoid the linking issue altogether. If a later command still complains about an invalid token after the workaround, check your home directory — one user had a stale token saved there and fixed it by writing the new token into the [default] section directly. Source: https://github.com/datastax/astra-cli/issues/135

Source: https://github.com/datastax/astra-cli/issues/135