Skip to content

Instantly share code, notes, and snippets.

@DamianReeves
Last active July 20, 2022 19:43
Show Gist options
  • Save DamianReeves/612f6fb308dead8c0b5a8082fe254d5f to your computer and use it in GitHub Desktop.
Save DamianReeves/612f6fb308dead8c0b5a8082fe254d5f to your computer and use it in GitHub Desktop.
Troubleshooting
os.SubprocessException: CommandResult 2
os.SubprocessException$.apply(Model.scala:203)
os.proc.call(ProcessOps.scala:85)
scala.cli.packaging.NativeImage$.ensureHasNativeImageCommand(NativeImage.scala:28)
scala.cli.packaging.NativeImage$.buildNativeImage$$anonfun$1$$anonfun$1$$anonfun$1(NativeImage.scala:275)
scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
scala.cli.packaging.NativeImage$.maybeWithShorterGraalvmHome(NativeImage.scala:200)
scala.cli.packaging.NativeImage$.buildNativeImage$$anonfun$1$$anonfun$1(NativeImage.scala:302)
scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
scala.cli.packaging.NativeImage$.maybeWithManifestClassPath(NativeImage.scala:73)
scala.cli.packaging.NativeImage$.buildNativeImage$$anonfun$1(NativeImage.scala:305)
scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
scala.cli.packaging.Library$.withLibraryJar(Library.scala:26)
scala.cli.packaging.NativeImage$.buildNativeImage(NativeImage.scala:306)
scala.cli.commands.Package$.doPackage$$anonfun$1(Package.scala:349)
scala.build.EitherCps$Helper.apply(EitherCps.scala:19)
scala.cli.commands.Package$.doPackage(Package.scala:451)
scala.cli.commands.Package$.run(Package.scala:126)
scala.cli.commands.Package$.run(Package.scala:47)
caseapp.core.app.CaseApp.main(CaseApp.scala:149)
caseapp.core.app.CommandsEntryPoint.main(CommandsEntryPoint.scala:120)
scala.cli.ScalaCliCommands.main(ScalaCliCommands.scala:119)
scala.cli.ScalaCli$.main0(ScalaCli.scala:184)
scala.cli.ScalaCli$.main(ScalaCli.scala:83)
scala.cli.ScalaCli.main(ScalaCli.scala)
❯ scala-cli package . --native-image --graalvm-jvm-id system

Downloading: Component catalog from www.graalvm.org
Processing Component: Native Image
Downloading: Component native-image: Native Image from github.com
I/O error occurred: Remote host terminated the handshake
Error: os.SubprocessException: CommandResult 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment