skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

5.0-alpha skyworking ui some part nothing show.

Open 50168383 opened this issue 8 years ago • 34 comments

Please answer these questions before submitting your issue.

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

Question

  • What do you want to know? skyworking ui (Dashboard'App\Service or Server ) can show some data. but why skyworking ui in(1~4) nothing show ? 1 Topology 2 Application 3 Trace 4 Alam

Bug

  • Which version of SkyWalking, OS and JRE? 5.0-alpha , win7 , jdk8

  • Which company or project? self project

  • What happen? If possible, provide a way for reproducing the error. e.g. demo application, component version.

    I checked os-system time is all sync. but no help. operator by https://github.com/apache/incubator-skywalking/blob/master/docs/cn/FAQ/Why-have-traces-no-others-CN.md

    I view data in elasticsearch by Kibana'index application . like this: { "_index": "application", "_type": "type", "_id": "-2", "_version": 1, "_score": 1, "_source": { "application_code": "10.206.2.4:1521", "application_id": -2 } }


Requirement or improvement

  • Please describe about your requirements or improvement suggestions.

50168383 avatar Apr 04 '18 03:04 50168383

Do you have actual serve access from browser or somewhere? The UI and traces should be showed automatically, if you can find Traces.

wu-sheng avatar Apr 04 '18 03:04 wu-sheng

machine ip info: 172.18.70.49 is zk server 10.206.2.177 is elasticsearch server 127.0.0.1 is my localhosts

app conf:

1 apache-tomcat-8.5.16\bin\catalina.bat conf: new line: set "CATALINA_OPTS=-javaagent:E:\demo\skywalking\demo5-local\apache-skywalking-apm-incubating\agent\skywalking-agent.jar"

2 agent.config conf: E:\demo\skywalking\demo5-local\apache-skywalking-apm-incubating\agent\config\agent.config collector.servers=127.0.0.1:10800 3 controller application.yml conf: E:\demo\skywalking\demo5-local\apache-skywalking-apm-incubating\config\application.yml cluster: zookeeper: hostPort: 172.18.70.49:2181,172.18.70.49:2182,172.18.70.49:2183 sessionTimeout: 100000 storage: elasticsearch: cluster_name: CollectorDBCluster cluster_transport_sniffer: true cluster_nodes: 10.206.2.177:9300 index_shards_number: 2 index_replicas_number: 0 ttl: 7 , I change log level "Info" to "Debug" in skywalking-collector log4j2.xml,

now , run app 1 E:\demo\skywalking\demo5-local\apache-skywalking-apm-incubating\bin\startup.bat 2 apache-tomcat-8.5.16\bin\startup.bat

I explorer apache-tomcat-8.5.16's app url ...

than

I explorer by skywalking-ui in http://127.0.0.1:8080/

than

nothing trace .

------skywalking-collector log part---------------------- org.apache.skywalking.apm.collector.analysis.alarm.provider.worker.application.ApplicationReferenceMetricAlarmPersistenceWorker worker data size: 0 2018-04-04 14:02:35,582 - org.apache.skywalking.apm.collector.analysis.worker.timer.PersistenceTimer -414715 [pool-9-thread-1] DEBUG [] - extract org.apache.skywalking.apm.collector.analysis.alarm.provider.worker.application.ApplicationReferenceMetricAlarmListPersistenceWorker worker data and save 2018-04-04 14:02:35,582 - org.apache.skywalking.apm.collector.analysis.worker.timer.PersistenceTimer -414715 [pool-9-thread-1] DEBUG [] - extract org.apache.skywalking.apm.collector.analysis.alarm.provider.worker.application.ApplicationReferenceMetricAlarmListPersistenceWorker worker data size: 0 2018-04-04 14:02:35,582 - org.apache.skywalking.apm.collector.storage.es.base.dao.BatchEsDAO -414715 [pool-9-thread-1] DEBUG [] - bulk data size: 0 2018-04-04 14:02:35,582 - org.apache.skywalking.apm.collector.analysis.worker.timer.PersistenceTimer -414715 [pool-9-thread-1] DEBUG [] - persistence data save finish 2018-04-04 14:02:35,884 - io.grpc.netty.NettyServerHandler -415017 [grpc-default-worker-ELG-4-1] DEBUG [] - [id: 0x55749907, L:/127.0.0.1:11800 - R:/127.0.0.1:60601] INBOUND HEADERS: streamId=1133 headers=GrpcHttp2RequestHeaders[:path: /JVMMetricsService/collect, :authority: localhost:11800, :method: POST, :scheme: http, te: trailers, content-type: application/grpc, user-agent: grpc-java-netty/5.0.0-alpha, grpc-accept-encoding: gzip, grpc-trace-bin: ] streamDependency=0 weight=16 exclusive=false padding=0 endStream=false 2018-04-04 14:02:35,885 - io.grpc.netty.NettyServerHandler -415018 [grpc-default-worker-ELG-4-1] DEBUG [] - [id: 0x55749907, L:/127.0.0.1:11800 - R:/127.0.0.1:60601] INBOUND DATA: streamId=1133 padding=0 endStream=true length=212 bytes=00000000cf0aca010884e0fff9a82c1209117d6a379b7e60a53f1a1608011080808008188080e07b20c087de472880c0da541a191080800a18ffffffffffffff... 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.agent.grpc.provider.handler.JVMMetricsServiceHandler -415018 [grpc-default-executor-1] DEBUG [] - receive the jvm metric from application instance, id: 15 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.CpuMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to cpu metric graph, id: 20180404140234_15 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.MemoryMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to memory metric graph, id: 20180404140234_15_1 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.MemoryMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to memory metric graph, id: 20180404140234_15_0 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.MemoryPoolMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to memory pool metric graph, id: 20180404140234_15_0 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.MemoryPoolMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to memory pool metric graph, id: 20180404140234_15_5 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.MemoryPoolMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to memory pool metric graph, id: 20180404140234_15_1 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.MemoryPoolMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to memory pool metric graph, id: 20180404140234_15_3 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.MemoryPoolMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to memory pool metric graph, id: 20180404140234_15_2 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.GCMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to gc metric graph, id: 20180404140234_15_0 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.jvm.provider.service.GCMetricService -415018 [grpc-default-executor-1] DEBUG [] - push to gc metric graph, id: 20180404140234_15_1 2018-04-04 14:02:35,885 - org.apache.skywalking.apm.collector.analysis.metric.provider.service.InstanceHeartBeatService -415018 [grpc-default-executor-1] DEBUG [] - push to instance heart beat persistence worker, id: 15 2018-04-04 14:02:35,885 - io.grpc.netty.NettyServerHandler -415018 [grpc-default-worker-ELG-4-1] DEBUG [] - [id: 0x55749907, L:/127.0.0.1:11800 - R:/127.0.0.1:60601] OUTBOUND HEADERS: streamId=1133 headers=GrpcHttp2OutboundHeaders[:status: 200, content-type: application/grpc, grpc-encoding: identity, grpc-accept-encoding: gzip] streamDependency=0 weight=16 exclusive=false padding=0 endStream=false 2018-04-04 14:02:35,886 - io.grpc.netty.NettyServerHandler -415019 [grpc-default-worker-ELG-4-1] DEBUG [] - [id: 0x55749907, L:/127.0.0.1:11800 - R:/127.0.0.1:60601] OUTBOUND DATA: streamId=1133 padding=0 endStream=false length=5 bytes=0000000000 2018-04-04 14:02:35,886 - io.grpc.netty.NettyServerHandler -415019 [grpc-default-worker-ELG-4-1] DEBUG [] - [id: 0x55749907, L:/127.0.0.1:11800 - R:/127.0.0.1:60601] OUTBOUND HEADERS: streamId=1133 headers=GrpcHttp2OutboundHeaders[grpc-status: 0] streamDependency=0 weight=16 exclusive=false padding=0 endStream=true ----skywalking-collector log part------------------------------------ ----skywalking-agent log part-----------------------------

DEBUG 2018-04-04 14:05:15 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:18 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:21 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:24 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:27 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:30 TraceSegmentServiceClient : 1 trace segments have been sent to collector. DEBUG 2018-04-04 14:05:30 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:33 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:36 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:39 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:42 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:45 GRPCChannelManager : Selected collector grpc service running, reconnect:false. DEBUG 2018-04-04 14:05:45 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:45 DiscoveryRestServiceClient : GRPC server list remain unchanged: [localhost:11800] DEBUG 2018-04-04 14:05:48 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:51 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:54 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:05:57 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:06:00 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:06:03 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:06:06 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:06:09 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. DEBUG 2018-04-04 14:06:12 AppAndServiceRegisterClient : AppAndServiceRegisterClient running, status:CONNECTED. ----skywalking-agent log part-----------------------------

but nothing about agent report trace . how find no work reason?

50168383 avatar Apr 04 '18 06:04 50168383

If no error and no trace, you should check the agent log about classes enhanced. Find out which classes has been instrumented, and do your serve provider components/frameworks have been supported. See our supported list.

Then, if still no clue, I think you have to provide a small application based on your tech stack, let @ascrutae help you locate the issue.

If you want to do this by yourself, try to learn remote debug in IntelliJ, and debug agent in that way.

wu-sheng avatar Apr 04 '18 06:04 wu-sheng

@ascrutae where "toggle breakpoint" i can set ? org.apache.skywalking.apm.agent.core.remote.TraceSegmentServiceClient.java ?

50168383 avatar Apr 04 '18 07:04 50168383

Yes, you can set there. Or TracingContext#createSpan. Or the interceptor of the certain plugin (eg, SpringMVC)

wu-sheng avatar Apr 04 '18 07:04 wu-sheng

1 Trace created; 2 trace segments have been sent to collector. ok .

where "toggle breakpoint" i can set Controller to check Trace put in elasticsearch ?

50168383 avatar Apr 04 '18 08:04 50168383

i think find . is org.apache.skywalking.apm.collector.storage.es.dao.GlobalTraceEsPersistenceDAO ?

50168383 avatar Apr 04 '18 08:04 50168383

TraceSegmentServiceHandler segmentParseService.parse(segment, ISegmentParseService.Source.Agent); segment: globalTraceIds { idParts: 18 idParts: 139 idParts: 15228327069810009 } segment: "\n\r\n\v\022\213\001\330\372\223\214\323\302\206\033\022\204\001\020\377\377\377\377\377\377\377\377\377\001\030\245\233\234\377\250, \306\234\234\377\250,:\033/api/imprest/areas/{gameId}X\003`\016z4\n\003url\022-http://a.b.c/api/imprest/areas/10z\022\n\vhttp.method\022\003GET\030\371\377\377\377\377\377\377\377\377\001 \022"

next find, step by step

org.apache.skywalking.apm.collector.analysis.segment.parser.provider.parser.SegmentParse This segment id exchange not success, write to buffer file, id: {}

org.apache.skywalking.apm.collector.analysis.segment.parser.provider.parser.standardization.SpanIdExchanger service name: {} from application id: {} exchange failed

push to segment buffer write worker, id: {}

last writeToBufferFile(segmentId, segment);

50168383 avatar Apr 04 '18 09:04 50168383

Do you even delete es data, but didnt restart agent/ application?

wu-sheng avatar Apr 04 '18 09:04 wu-sheng

i don't restart agent in debugging .

50168383 avatar Apr 04 '18 10:04 50168383

and no even delete es data

50168383 avatar Apr 04 '18 10:04 50168383

@peng-yongsheng could you provide more ways to debug?

wu-sheng avatar Apr 04 '18 10:04 wu-sheng

I find buffer/data_20180408112823.sw this file-size increase always why ?

50168383 avatar Apr 08 '18 03:04 50168383

This file is used for segment buffer. If exist some operation names, peer IPs are not registered yet. So, this file should not be problem, except no data consumed.

wu-sheng avatar Apr 08 '18 03:04 wu-sheng

image

debuging, screenshot 。please check !

50168383 avatar Apr 08 '18 05:04 50168383

@50168383 Please, give me service_name index datas in Elasticsearch.

peng-yongsheng avatar Apr 08 '18 05:04 peng-yongsheng

image

50168383 avatar Apr 08 '18 05:04 50168383

image

50168383 avatar Apr 08 '18 06:04 50168383

please check , two pic.

50168383 avatar Apr 08 '18 06:04 50168383

I find application_id in Elasticsearch is not same the Debug Elasticsearch : application_id = -1 Debug : application_id = -5

50168383 avatar Apr 08 '18 06:04 50168383