skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

failure enabling TLS in Docker distro of OAP server 8.1.0-es7

Open pantovad opened this issue 6 years ago • 6 comments

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • [ ] Question or discussion
  • [x] Bug
  • [ ] Requirement
  • [ ] Feature or performance improvement

Question

  • What do you want to know?

Bug

  • Which version of SkyWalking, OS and JRE? Docker OAP server 8.1.0-es7 (https://github.com/apache/skywalking-docker/tree/master/8/8.1.0/oap-es7)

  • Which company or project?

  • What happened? When enabling TLS on gRPC listener in OAP server it fails with errors missing required libraries.


Requirement or improvement

  • I managed to resolve the issue by using adoptopenjdk/openjdk11:alpine (instead of openjdk:8-jre-alpine) as base Java image for both base and OAP image.

pantovad avatar Sep 18 '20 12:09 pantovad

it's because netty tc-native needs some dynamic libraries which apline doesn't contain. we should release a new base image to adopt to "jdk" instead of "jre".

Since OAP can work fine with jdk11, I prefer to use it as the new base image. @wu-sheng @kezhenxu94 ^^

hanahmily avatar Sep 19 '20 23:09 hanahmily

Work for me. Please update the docker file in the main repo first.

wu-sheng avatar Sep 20 '20 00:09 wu-sheng

Work for me. Please update the docker file in the main repo first.

main repo doesn't have this issue and uses the jdk based image all the time due to our development and debugging requirement.

hanahmily avatar Sep 21 '20 04:09 hanahmily

@innerpeacez I added this to the k8s release milestone for next version, in case we miss this in next time.

@hanahmily Do you plan to push the 8.1.0 images again for jdk binded?

@pantovad I will recommend you to re package first locally.

wu-sheng avatar Sep 21 '20 05:09 wu-sheng

And now, when testing https://github.com/apache/skywalking/pull/5722 , I've also found that it(Kubernetes Java client) doesn't work well on openjdk:8-jdk (see https://github.com/kubernetes-client/java/issues/1003 although it just happens in Minikube), thus I used openjdk:11-jdk for the tests, I suggest to upgrade the JDK version in the base image ASAP

kezhenxu94 avatar Oct 25 '20 07:10 kezhenxu94

JDK11 as next TLS, make sense to me. Just feel strange, why JDK version matters

wu-sheng avatar Oct 25 '20 07:10 wu-sheng