grpc-java icon indicating copy to clipboard operation
grpc-java copied to clipboard

java.lang.IllegalStateException: Could not find TLS ALPN provider; no working netty-tcnative, Conscrypt, or Jetty NPN/ALPN available

Open GavinYang-LR opened this issue 7 years ago • 2 comments

Description in this issue... https://github.com/googleapis/cloud-bigtable-client/issues/2140

GavinYang-LR avatar May 01 '19 16:05 GavinYang-LR

It is normal for Conscrypt and Jetty ALPN to fail.

In the output, this is the important area:

Suppressed: java.lang.UnsatisfiedLinkError: /tmp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_64480984008753957383.so: Error loading shared library libcrypt.so.1: No such file or directory (needed by /tmp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_64480984008753957383.so)

And stripping out more of it:

Error loading shared library libcrypt.so.1

This is a missing runtime dependency. You need to run apk update && apk add libc6-compat within the container.

ejona86 avatar May 02 '19 21:05 ejona86

I could solve a similar issue by using jdk11 instead of 8 as ALPN is available by default in Java 11

MrStobbart avatar Jul 31 '19 08:07 MrStobbart