【问题描述】:ks3.1开启istio,应用负载–应用–自治应用–bookinfo–Tracing页签没有数据

【排查】:
1、访问 kiali 的 service 菜单标签— 双击 productpage 进入微服务,然后选择标签页 Traces,报错“invalid character ‘<’ looking for beginning of value”

2、查看kiali的pod日志:
E0622 02:18:01.681006 1 traces.go:89] Error unmarshalling Jaeger response: invalid character '<' looking for beginning of value [URL: http://jaeger-query.istio-system:16686/jaeger/api/traces?limit=20&service=details.cp-istio&start=1624327729668000]
W0622 02:18:10.731011 1 reflector.go:289] pkg/mod/k8s.io/client-go@v11.0.1-0.20190820062731-7e43eff7c80a+incompatible/tools/cache/reflector.go:94: watch of *v1.ConfigMap ended with: too old resource version: 87717541 (87721482)
W0622 02:18:10.931966 1 reflector.go:289] pkg/mod/k8s.io/client-go@v11.0.1-0.20190820062731-7e43eff7c80a+incompatible/tools/cache/reflector.go:94: watch of *v1.ConfigMap ended with: too old resource version: 87717948 (87721482)
E0622 02:18:16.689123 1 traces.go:89] Error unmarshalling Jaeger response: invalid character '<' looking for beginning of value [URL: http://jaeger-query.istio-system:16686/jaeger/api/traces?limit=20&service=details.cp-istio&start=1624327744671000]
访问日志钟的URL查看结果
bglab@node4:~$ curl http://10.233.54.153:16686/jaeger/api/traces?limit=20&service=details.cp-istio&start=1624327744671000
[1] 28340
[2] 28341
bglab@node4:~$ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="cache-control" content="max-age=0"/><meta http-equiv="cache-control" content="no-cache"/><meta http-equiv="expires" content="0"/><meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT"/><meta http-equiv="pragma" content="no-cache"/><base href="/" data-inject-target="BASE_URL"/><link rel="shortcut icon" href="./favicon.ico"><title>Jaeger UI</title><script>// Jaeger UI config data is embedded by the query-service. This is
// later merged with defaults into the redux `state.config` via
// src/utils/config/get-config.js. The default provided by the query
// service should be an empty object or it can leave `DEFAULT_CONFIG`
// unchanged.
function getJaegerUiConfig() {
const DEFAULT_CONFIG = null;
const JAEGER_CONFIG = {"dependencies":{"menuEnabled":false},"menu":[{"items":[{"label":"Documentation","url":"https://www.jaegertracing.io/docs/1.17"}],"label":"About"}]};
return JAEGER_CONFIG;
}</script><link href="./static/css/1.56631403.chunk.css" rel="stylesheet"><link href="./static/css/main.c0e43b3a.chunk.css" rel="stylesheet"></head><body><div id="jaeger-ui-root"></div><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={2:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="./";var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="./static/js/1.16f198e3.chunk.js"></script><script src="./static/js/main.2763c360.chunk.js"></script></body></html>
[1]- Done curl http://10.233.54.153:16686/jaeger/api/traces?limit=20
[2]+ Done service=details.cp-istio
bglab@node4:~$
是因为jaeger-query.istio-system:16686/jaeger/api/traces返回了‘<’ 开头的,所以kiali展示不了么?版本匹配问题,还是返回不对?