skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

ISSUE- Skywalking argent error after enabling TLS

Open skundu1234 opened this issue 5 years ago • 0 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Apache SkyWalking Component

OAP server (apache/skywalking)

What happened

After enabling TLS from agent and collector side ,we can see below error. Agent and collector both are using same host. Please let me know if you need any details. Errror in skywalking-api.log:

INFO 2021-10-29 09:54:03:754 main PluginResourcesResolver : find skywalking plugin define in jar:file:/prometheus/apache-skywalking-apm-bin-es7/agent/activations/apm-toolkit-logback-1.x-activation-8.7.0.jar!/skywalking-plugin.def ERROR 2021-10-29 09:54:09:418 grpc-default-executor-1 EventReportServiceClient : Failed to report starting event. org.apache.skywalking.apm.dependencies.io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] at org.apache.skywalking.apm.dependencies.io.grpc.Status.asRuntimeException(Status.java:533)

image

Agent: [esmmon@hostname ca]$ pwd /prometheus/apache-skywalking-apm-bin-es7/agent/ca [esmmon@hostname ca]$ ls ca.crt

agent.config: I have changed these two lines and added ca.crt as well.

If true, SkyWalking agent uses TLS even no CA file detected.

agent.force_tls=${SW_AGENT_FORCE_TLS:true}

Backend service addresses.

collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:XX.XX.XX.XX:11800}(XX-IP of collector)

image

Application.yml: I have changed those and did not see any error skywalking.log core: selector: ${SW_CORE:default}

image

What you expected to happen

I expected to work TLS without any issue after doing this change.

How to reproduce

I have provided all the details and let me know if you need any other details as well to provide.I will provide

Anything else

No response

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

skundu1234 avatar Oct 29 '21 15:10 skundu1234