Trying to initialise my ledger using the following command,
daml script --dar $DAR_FILE --script-name Setup:setup --ledger-host "$LEDGER_HOST" --ledger-port 6865 --wall-clock-time --pem /home/daml/keys/tls8.pem --crt /home/daml/keys/tls.crt --cacrt /home/daml/keys/tls.crt --access-token-file /home/daml/accesstoken
The ledger is TLS enabled. DAML SDK 1.2.0
The script doesn’t return and stuck with the below message,
ug 20, 2020 10:56:14 AM io.grpc.netty.GrpcSslContexts defaultSslProvider
INFO: Jetty ALPN unavailable (this may be normal)
java.lang.ClassNotFoundException: org/eclipse/jetty/alpn/ALPN
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at io.grpc.netty.JettyTlsUtil.isJettyAlpnConfigured(JettyTlsUtil.java:64)
at io.grpc.netty.GrpcSslContexts.findJdkProvider(GrpcSslContexts.java:241)
at io.grpc.netty.GrpcSslContexts.defaultSslProvider(GrpcSslContexts.java:221)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:144)
at io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:93)
at com.daml.ledger.api.tls.TlsConfiguration.client(TlsConfiguration.scala:32)
at com.daml.lf.engine.script.RunnerMain$.$anonfun$main$7(RunnerMain.scala:115)
at scala.Option.flatMap(Option.scala:271)
at com.daml.lf.engine.script.RunnerMain$.main(RunnerMain.scala:115)
at com.daml.sdk.SdkMain$.main(SdkMain.scala:21)
at com.daml.sdk.SdkMain.main(SdkMain.scala)
Exception in thread "main" java.lang.IllegalStateException: Could not find TLS ALPN provider; no working netty-tcnative, Conscrypt, or Jetty NPN/ALPN available
at io.grpc.netty.GrpcSslContexts.defaultSslProvider(GrpcSslContexts.java:233)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:144)
at io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:93)
at com.daml.ledger.api.tls.TlsConfiguration.client(TlsConfiguration.scala:32)
at com.daml.lf.engine.script.RunnerMain$.$anonfun$main$7(RunnerMain.scala:115)
at scala.Option.flatMap(Option.scala:271)
at com.daml.lf.engine.script.RunnerMain$.main(RunnerMain.scala:115)
at com.daml.sdk.SdkMain$.main(SdkMain.scala:21)
at com.daml.sdk.SdkMain.main(SdkMain.scala)
Let me know, what’s missing here? This is working without TLS.