GCP PubSub - Java - Unix本机库问题

vddsk6oq  于 2022-11-04  发布在  Unix
关注(0)|答案(1)|浏览(201)
环境详细信息

操作系统类型和版本:pom.xml

重现步骤

1.这是一个从GCP GitLab获取的简单订阅者。
1.无论我在哪里部署Unix系统,我都不应该在上面安装或更改任何软件,只需复制Sping Boot jar并运行应用程序。它应该照常工作。

以下任何其他信息

相同的Sping Boot 可执行jar在Windows上运行得很好,但是如果我在Unix环境下运行相同的jar,会抛出这个错误。我已经使用了netty和其他本机库的maven依赖项,如下面的代码所示。仍然会抛出相同的错误。

rpm -qa | fgrep glibc
glibc-32bit-2.11.3-17.110.33.1
glibc-2.11.3-17.110.33.1
glibc-devel-2.11.3-17.110.33.1
glibc-locale-32bit-2.11.3-17.110.33.1
glibc-locale-2.11.3-17.110.33.1
glibc-devel-32bit-2.11.3-17.110.33.1
glibc-i18ndata-2.11.3-17.110.33.1

观察

我怀疑我需要降级我的GCP库版本,以使GLIBC版本与我在pom.xml中使用的当前GCP版本兼容,我在日志中看到以下错误(完整的堆栈跟踪显示在底部):
原因:java.lang.未满足链接错误:/tmp/libconscrypt_openjdk_jni-linux-x86文件系统中的一个文件系统。/lib 64/libc.so.6中指定了一个或多个参数:未找到版本'GLIBC_2.14'(需要该版本)

代码

第一个

堆栈跟踪
2022-07-25 14:09:48.027  INFO 25803 --- [           main] com.my.packa.PubSubApp               : No active profile set, falling back to 1 default profile: "default"
2022-07-25 14:09:51.651  INFO 25803 --- [           main] i.g.n.s.io.grpc.netty.GrpcSslContexts    : Java 9 ALPN API unavailable (this may be normal)
2022-07-25 14:09:51.664  INFO 25803 --- [           main] i.g.n.s.io.grpc.netty.GrpcSslContexts    : netty-tcnative unavailable (this may be normal)

java.lang.IllegalArgumentException: Failed to load any of the given libraries: [netty_tcnative_linux_x86_64, netty_tcnative_linux_x86_64_fedora, netty_tcnative_x86_64, netty_tcnative]
        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:107) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.netty.handler.ssl.OpenSsl.loadTcNative(OpenSsl.java:705) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[packa-pubsub-utility-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[packa-pubsub-utility-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) ~[packa-pubsub-utility-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
        Suppressed: java.lang.UnsatisfiedLinkError: /tmp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_646976970630165030878.so: /lib64/libpthread.so.0: version `GLIBC_2.12' not found (required by /tmp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_646976970630165030878.so)
                at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[na:1.8.0_66]
                at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) ~[na:1.8.0_66]
                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821) ~[na:1.8.0_66]
                at java.lang.Runtime.load0(Runtime.java:809) ~[na:1.8.0_66]
                at java.lang.System.load(System.java:1086) ~[na:1.8.0_66]
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:36) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:319) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:196) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:98) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                ... 55 common frames omitted
                Suppressed: java.lang.UnsatisfiedLinkError: /tmp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_646976970630165030878.so: /lib64/libpthread.so.0: version `GLIBC_2.12' not found (required by /tmp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_646976970630165030878.so)
                        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
                        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
                        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
                        at java.lang.Runtime.load0(Runtime.java:809)
                        at java.lang.System.load(System.java:1086)
                      at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:345)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:311)
                        ... 57 common frames omitted
                Suppressed: java.lang.UnsatisfiedLinkError: no io_grpc_netty_shaded_netty_tcnative_linux_x86_64 in java.library.path
                        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
                        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
                        at java.lang.System.loadLibrary(System.java:1122)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:319)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:139)
                        ... 56 common frames omitted
                        Suppressed: java.lang.UnsatisfiedLinkError: no io_grpc_netty_shaded_netty_tcnative_linux_x86_64 in java.library.path
                                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
                                at java.lang.Runtime.loadLibrary0(Runtime.java:870)
                                at java.lang.System.loadLibrary(System.java:1122)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
                                 at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:345)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:311)
                                ... 57 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: could not load a native library: io_grpc_netty_shaded_netty_tcnative_linux_x86_64_fedora
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:217) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:98) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                ... 55 common frames omitted
        Caused by: java.io.FileNotFoundException: META-INF/native/libio_grpc_netty_shaded_netty_tcnative_linux_x86_64_fedora.so
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:164)
                ... 56 common frames omitted
                Suppressed: java.lang.UnsatisfiedLinkError: no io_grpc_netty_shaded_netty_tcnative_linux_x86_64_fedora in java.library.path
                        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
                        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
                        at java.lang.System.loadLibrary(System.java:1122)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:319)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:139)
                        ... 56 common frames omitted
                        Suppressed: java.lang.UnsatisfiedLinkError: no io_grpc_netty_shaded_netty_tcnative_linux_x86_64_fedora in java.library.path
                                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
                                at java.lang.Runtime.loadLibrary0(Runtime.java:870)
                                at java.lang.System.loadLibrary(System.java:1122)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
                               at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:345)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:311)
                                ... 57 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: could not load a native library: io_grpc_netty_shaded_netty_tcnative_x86_64
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:217) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:98) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                ... 55 common frames omitted
        Caused by: java.io.FileNotFoundException: META-INF/native/libio_grpc_netty_shaded_netty_tcnative_x86_64.so
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:164)
                ... 56 common frames omitted
                Suppressed: java.lang.UnsatisfiedLinkError: no io_grpc_netty_shaded_netty_tcnative_x86_64 in java.library.path
                        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
                        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
                        at java.lang.System.loadLibrary(System.java:1122)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:319)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:139)
                        ... 56 common frames omitted
                        Suppressed: java.lang.UnsatisfiedLinkError: no io_grpc_netty_shaded_netty_tcnative_x86_64 in java.library.path
                                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
                                at java.lang.Runtime.loadLibrary0(Runtime.java:870)
                                at java.lang.System.loadLibrary(System.java:1122)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
                                 at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:345)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:311)
                                ... 57 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: could not load a native library: io_grpc_netty_shaded_netty_tcnative
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:217) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:98) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
                ... 55 common frames omitted
        Caused by: java.io.FileNotFoundException: META-INF/native/libio_grpc_netty_shaded_netty_tcnative.so
                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:164)
                ... 56 common frames omitted
                Suppressed: java.lang.UnsatisfiedLinkError: no io_grpc_netty_shaded_netty_tcnative in java.library.path
                        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
                        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
                        at java.lang.System.loadLibrary(System.java:1122)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:319)
                        at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:139)
                        ... 56 common frames omitted
                        Suppressed: java.lang.UnsatisfiedLinkError: no io_grpc_netty_shaded_netty_tcnative in java.library.path
                                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
                                at java.lang.Runtime.loadLibrary0(Runtime.java:870)
                                at java.lang.System.loadLibrary(System.java:1122)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:497)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:353)
                                at java.security.AccessController.doPrivileged(Native Method)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:345)
                                at io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:311)
                                ... 57 common frames omitted

2022-07-25 14:09:51.673  INFO 25803 --- [           main] i.g.n.s.io.grpc.netty.GrpcSslContexts    : Conscrypt not found (this may be normal)

java.lang.reflect.InvocationTargetException: null
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_66]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_66]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_66]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_66]
        at io.grpc.internal.ConscryptLoader.newProvider(ConscryptLoader.java:78) ~[grpc-core-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts$ConscryptHolder.<clinit>(GrpcSslContexts.java:295) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts.findJdkProvider(GrpcSslContexts.java:268) [grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts.defaultSslProvider(GrpcSslContexts.java:234) [grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:146) [grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:95) [grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder$DefaultProtocolNegotiator.newNegotiator(NettyChannelBuilder.java:628) [grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_66]
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[packa-pubsub-utility-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[packa-pubsub-utility-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[packa-pubsub-utility-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) ~[packa-pubsub-utility-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
Caused by: java.lang.UnsatisfiedLinkError: /tmp/libconscrypt_openjdk_jni-linux-x86_6416587725916100000.so: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/libconscrypt_openjdk_jni-linux-x86_6416587725916100000.so)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[na:1.8.0_66]
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) ~[na:1.8.0_66]
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821) ~[na:1.8.0_66]
        at org.conscrypt.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:106) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
        at org.conscrypt.NativeCryptoJni.init(NativeCryptoJni.java:50) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
        at org.conscrypt.NativeCrypto.<clinit>(NativeCrypto.java:64) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
        at org.conscrypt.Conscrypt.checkAvailability(Conscrypt.java:119) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
        at org.conscrypt.Conscrypt.newProvider(Conscrypt.java:133) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
        ... 60 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: /tmp/libconscrypt_openjdk_jni-linux-x86_6416587725916100000.so: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/libconscrypt_openjdk_jni-linux-x86_6416587725916100000.so)
                at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[na:1.8.0_66]
                at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) ~[na:1.8.0_66]
                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821) ~[na:1.8.0_66]
                at java.lang.Runtime.load0(Runtime.java:809) ~[na:1.8.0_66]
                at java.lang.System.load(System.java:1086) ~[na:1.8.0_66]
                at org.conscrypt.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:52) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibraryFromCurrentClassloader(NativeLibraryLoader.java:318) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:273) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                ... 67 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: no conscrypt_openjdk_jni-linux-x86_64 in java.library.path
                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) ~[na:1.8.0_66]
                at java.lang.Runtime.loadLibrary0(Runtime.java:870) ~[na:1.8.0_66]
                at java.lang.System.loadLibrary(System.java:1122) ~[na:1.8.0_66]
                at org.conscrypt.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:54) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                ... 66 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: no conscrypt_openjdk_jni-linux-x86_64 in java.library.path
                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) ~[na:1.8.0_66]
                at java.lang.Runtime.loadLibrary0(Runtime.java:870) ~[na:1.8.0_66]
                at java.lang.System.loadLibrary(System.java:1122) ~[na:1.8.0_66]
                at org.conscrypt.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:54) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibraryFromCurrentClassloader(NativeLibraryLoader.java:318) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:273) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                ... 66 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: no conscrypt_openjdk_jni in java.library.path
                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) ~[na:1.8.0_66]
                at java.lang.Runtime.loadLibrary0(Runtime.java:870) ~[na:1.8.0_66]
                at java.lang.System.loadLibrary(System.java:1122) ~[na:1.8.0_66]
                at org.conscrypt.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:54) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_66]
                at org.conscrypt.NativeLibraryLoader.loadLibraryFromHelperClassloader(NativeLibraryLoader.java:289) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:262) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                ... 66 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: no conscrypt_openjdk_jni in java.library.path
                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) ~[na:1.8.0_66]
                at java.lang.Runtime.loadLibrary0(Runtime.java:870) ~[na:1.8.0_66]
                at java.lang.System.loadLibrary(System.java:1122) ~[na:1.8.0_66]
                at org.conscrypt.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:54) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibraryFromCurrentClassloader(NativeLibraryLoader.java:318) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:273) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                ... 66 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: no conscrypt in java.library.path
                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) ~[na:1.8.0_66]
                at java.lang.Runtime.loadLibrary0(Runtime.java:870) ~[na:1.8.0_66]
                at java.lang.System.loadLibrary(System.java:1122) ~[na:1.8.0_66]
                at org.conscrypt.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:54) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:262) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                ... 66 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: no conscrypt in java.library.path
                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) ~[na:1.8.0_66]
                at java.lang.Runtime.loadLibrary0(Runtime.java:870) ~[na:1.8.0_66]
                at java.lang.System.loadLibrary(System.java:1122) ~[na:1.8.0_66]
                at org.conscrypt.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:54) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibraryFromCurrentClassloader(NativeLibraryLoader.java:318) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                at org.conscrypt.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:273) ~[conscrypt-openjdk-uber-2.5.1.jar!/:2.5.1]
                ... 66 common frames omitted

2022-07-25 14:09:51.677  INFO 25803 --- [           main] i.g.n.s.io.grpc.netty.GrpcSslContexts    : Jetty ALPN unavailable (this may be normal)

java.lang.ClassNotFoundException: org/eclipse/jetty/alpn/ALPN
        at java.lang.Class.forName0(Native Method) ~[na:1.8.0_66]
        at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_66]
        at io.grpc.netty.shaded.io.grpc.netty.JettyTlsUtil.isJettyAlpnConfigured(JettyTlsUtil.java:64) ~[grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts.findJdkProvider(GrpcSslContexts.java:254) [grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts.defaultSslProvider(GrpcSslContexts.java:234) [grpc-netty-shaded-1.45.0.jar!/:1.45.0]
        at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:146) [grpc-netty-shaded-1.45.0.jar!/:1.45.0]

谢谢你!

g6ll5ycj

g6ll5ycj1#

您需要使用针对GLIBC_2.14GLIBC_2.12构建的内核-GLIBC_2.11太旧了。
它不仅抱怨GLIBC_2.14
请输入以下命令行:/lib 64/libc.so.6中指定了一个或多个参数:没有找到'GLIBC_2.14'版本(需要这个版本)
但它也抱怨GLIBC_2.12
请输入以下命令行:/lib 64/libpthread.so.0中指定的文件类型:没有找到'GLIBC_2.12'版本(需要这个版本)。
您需要使用两个版本,这两个版本需要与内核的GLIBC版本相同的GLIBC要求。因此,您需要一个以GLIBC_2.14GLIBC_2.12开始的内核。混合使用这两个版本是绝对不可能的。This看起来很相似,但可能有两个版本问题。

相关问题