kubernetes 基于Ballerina Service启动K8S pod时出现UnsatisfiedLinkError [已关闭]

eqqqjvef  于 5个月前  发布在  Kubernetes
关注(0)|答案(2)|浏览(49)

**已关闭。**此问题需要debugging details。目前不接受回答。

编辑问题以包括desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将帮助其他人回答问题。
上个月就关门了。
Improve this question
我尝试启动基于Ballerina服务的K8S pod,但出现以下错误
错误类型:java.lang.UnsatisfiedLinkError {“message”:“无法加载所需的本机库”,“cause”:error(“java.lang.IllegalArgumentException”,message=“无法加载任何给定的库:[netty_tcnative_linux_x86_64,netty_tcnative_linux_x86_64_fedora,netty_tcnative_x86_64,netty_tcnative]”)}
运行时是ballerina/jvm-runtime:1.0。

nc1teljy

nc1teljy1#

当文件系统是只读的时,这个问题经常发生。Netty需要/tmp目录是可写的。
一个可能的解决方案是将一个空目录挂载到/tmp

3vpjnl9f

3vpjnl9f2#

另一个原因可能是由于基础映像中缺少glibc依赖项(netty为底层本机传输实现所需)。(例如,alphine linux基础映像不包含alphine linux documentation中的glibc。)
因此,这可以通过切换到默认情况下具有上述依赖性的任何基础图像来解决。
相关问题和讨论可以在herehere中找到。

相关问题