Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discover crashes when the primary index pattern is empty (Case: APM) #56375

Closed
jonare77 opened this issue Jan 30, 2020 · 20 comments
Closed

Discover crashes when the primary index pattern is empty (Case: APM) #56375

jonare77 opened this issue Jan 30, 2020 · 20 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:APM All issues that need APM UI Team support Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@jonare77
Copy link

jonare77 commented Jan 30, 2020

Temporary workaround:
Changing the default index pattern from apm-* to something else fixes the issue

Kibana version:
7.5.2
Elasticsearch version:
7.5.2
Server OS version:
Ubuntu 18.04.03
Browser version:
Chrome 79.0.3945.130 / FireFox 72.0.2 (64-bit)
Browser OS version:
Windows 10
Original install method (e.g. download page, yum, from source, etc.):
Installed from offical repository with APT
Describe the bug:
When clicking "Discover" button in left hand toolbar i get the following error
"Error fetching fields", Error: Not Found at https://elk.xxxx..no/bundles/commons.bundle.js:3:1371537
Steps to reproduce:

  1. Install ELK statck
  2. Install OpenJDK 11

Expected behavior:
To get discover page
Screenshots (if relevant):
kibana3

Errors in browser console (if relevant):
VM6:1 GET https://xxxxxxxxx.no/api/index_patterns/_fields_for_wildcard?pattern=apm-*&meta_fields=_source&meta_fields=_id&meta_fields=_type&meta_fields=_index&meta_fields=_score 404 (Not Found) (anonymous) @ VM6:1 _callee6$ @ commons.bundle.js:3 tryCatch @ vendors.bundle.dll.js:489 invoke @ vendors.bundle.dll.js:489 forEach.prototype.<computed> @ vendors.bundle.dll.js:489 asyncGeneratorStep @ commons.bundle.js:3 _next @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 fetcher @ commons.bundle.js:3 Promise.then (async) _callee7$ @ commons.bundle.js:3 tryCatch @ vendors.bundle.dll.js:489 invoke @ vendors.bundle.dll.js:489 forEach.prototype.<computed> @ vendors.bundle.dll.js:489 asyncGeneratorStep @ commons.bundle.js:3 _next @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 _callee8$ @ commons.bundle.js:3 tryCatch @ vendors.bundle.dll.js:489 invoke @ vendors.bundle.dll.js:489 forEach.prototype.<computed> @ vendors.bundle.dll.js:489 asyncGeneratorStep @ commons.bundle.js:3 _next @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 fetch @ commons.bundle.js:3 _request @ commons.bundle.js:3 getFieldsForWildcard @ commons.bundle.js:3 fetchForWildcard @ commons.bundle.js:3 fetch @ commons.bundle.js:3 _callee9$ @ commons.bundle.js:3 tryCatch @ vendors.bundle.dll.js:489 invoke @ vendors.bundle.dll.js:489 forEach.prototype.<computed> @ vendors.bundle.dll.js:489 asyncGeneratorStep @ commons.bundle.js:3 _next @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 _fetchFields @ commons.bundle.js:3 refreshFields @ commons.bundle.js:3 _callee$ @ commons.bundle.js:3 tryCatch @ vendors.bundle.dll.js:489 invoke @ vendors.bundle.dll.js:489 forEach.prototype.<computed> @ vendors.bundle.dll.js:489 asyncGeneratorStep @ commons.bundle.js:3 _next @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 indexFields @ commons.bundle.js:3 _callee2$ @ commons.bundle.js:3 tryCatch @ vendors.bundle.dll.js:489 invoke @ vendors.bundle.dll.js:489 forEach.prototype.<computed> @ vendors.bundle.dll.js:489 asyncGeneratorStep @ commons.bundle.js:3 _next @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 updateFromElasticSearch @ commons.bundle.js:3 _callee3$ @ commons.bundle.js:3 tryCatch @ vendors.bundle.dll.js:489 invoke @ vendors.bundle.dll.js:489 forEach.prototype.<computed> @ vendors.bundle.dll.js:489 asyncGeneratorStep @ commons.bundle.js:3 _next @ commons.bundle.js:3 Promise.then (async) asyncGeneratorStep @ commons.bundle.js:3 _next @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 init @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 (anonymous) @ kibana.bundle.js:3 Promise.then (async) ip @ kibana.bundle.js:3 invoke @ vendors.bundle.dll.js:435 (anonymous) @ commons.bundle.js:3 processQueue @ vendors.bundle.dll.js:435 (anonymous) @ vendors.bundle.dll.js:435 $digest @ vendors.bundle.dll.js:435 (anonymous) @ vendors.bundle.dll.js:435 completeTask @ vendors.bundle.dll.js:435 (anonymous) @ vendors.bundle.dll.js:435 setTimeout (async) Browser.self.defer @ vendors.bundle.dll.js:435 $evalAsync @ vendors.bundle.dll.js:435 (anonymous) @ vendors.bundle.dll.js:435 scheduleProcessQueue @ vendors.bundle.dll.js:435 $$resolve @ vendors.bundle.dll.js:435 doResolve @ vendors.bundle.dll.js:435 Promise.then (async) $$resolve @ vendors.bundle.dll.js:435 resolvePromise @ vendors.bundle.dll.js:435 Deferred.resolve @ vendors.bundle.dll.js:435 _module.service.Promise.resolve @ commons.bundle.js:3 _module.service.Promise.try @ commons.bundle.js:3 (anonymous) @ commons.bundle.js:3 _module.service.Promise.map @ commons.bundle.js:3 invokeEach @ commons.bundle.js:3 doWork @ commons.bundle.js:3 invoke @ vendors.bundle.dll.js:435 __prep__ @ commons.bundle.js:3 invoke @ vendors.bundle.dll.js:435 (anonymous) @ vendors.bundle.dll.js:257 forEach @ vendors.bundle.dll.js:435 resolveLocals @ vendors.bundle.dll.js:257 processQueue @ vendors.bundle.dll.js:435 (anonymous) @ vendors.bundle.dll.js:435 $digest @ vendors.bundle.dll.js:435 (anonymous) @ vendors.bundle.dll.js:435 (anonymous) @ vendors.bundle.dll.js:435 forEach @ vendors.bundle.dll.js:435 fireStateOrUrlChange @ vendors.bundle.dll.js:435 cacheStateAndFireUrlChange @ vendors.bundle.dll.js:435 dispatch @ vendors.bundle.dll.js:429 elemData.handle @ vendors.bundle.dll.js:429 Show 36 more frames
Provide logs and/or server output (if relevant):

Any additional context:
Using nginx as proxy_pass

@legrego legrego added Team:Operations Team label for Operations Team triage_needed labels Jan 31, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@jbudz
Copy link
Member

jbudz commented Feb 3, 2020

Can you share the proxy pass configuration? Is kibana configured route under a subfolder?

@matthewford
Copy link

Seeing this too, homebrew install, defaults, no subfolder.

I did change my primary/default index pattern

@matthewford
Copy link

Seeing this too, homebrew install, defaults, no subfolder.

I did change my primary/default index pattern

I thought I had changed it, it switched to an empty apm index pattern, switching it back fixed it.

@wrednybarteK
Copy link

wrednybarteK commented Feb 5, 2020

Hi i've this error too, everything were working ok but just fuckd up.
Error: Not Found
at https://172.21.1.253:5601/bundles/commons.bundle.js:3:1371537

I dont use proxy.

@edit , i didnt see reply from matthew , switching index from apm to another fixed problem.

From journal
Feb 05 08:32:12 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:12Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/vendors.style.dll.css","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"text/css,*/*;q=0.1","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":79,"contentLength":9},"message":"GET /built_assets/dlls/vendors.style.dll.css 200 79ms - 9.0B"} Feb 05 08:32:15 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:12Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/vendors.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":2147,"contentLength":9},"message":"GET /built_assets/dlls/vendors.bundle.dll.js 200 2147ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.apps-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":5,"contentLength":9},"message":"GET /built_assets/dlls/icon.apps-js.bundle.dll.js 200 5ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.logo_kibana-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":6,"contentLength":9},"message":"GET /built_assets/dlls/icon.logo_kibana-js.bundle.dll.js 200 6ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.help-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":4,"contentLength":9},"message":"GET /built_assets/dlls/icon.help-js.bundle.dll.js 200 4ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.menuRight-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":4,"contentLength":9},"message":"GET /built_assets/dlls/icon.menuRight-js.bundle.dll.js 200 4ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.clock-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":4,"contentLength":9},"message":"GET /built_assets/dlls/icon.clock-js.bundle.dll.js 200 4ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_discover-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":8,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_discover-js.bundle.dll.js 200 8ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_visualize-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":7,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_visualize-js.bundle.dll.js 200 7ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_dashboard-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":11,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_dashboard-js.bundle.dll.js 200 11ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_timelion-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":13,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_timelion-js.bundle.dll.js 200 13ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_canvas-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":11,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_canvas-js.bundle.dll.js 200 11ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_gis-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":7,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_gis-js.bundle.dll.js 200 7ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_ml-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":5,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_ml-js.bundle.dll.js 200 5ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_metrics-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":28,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_metrics-js.bundle.dll.js 200 28ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_logs-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":27,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_logs-js.bundle.dll.js 200 27ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_apm-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":25,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_apm-js.bundle.dll.js 200 25ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_uptime-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":21,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_uptime-js.bundle.dll.js 200 21ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_security_analytics-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":12,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_security_analytics-js.bundle.dll.js 200 12ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_graph-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":6,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_graph-js.bundle.dll.js 200 6ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_devtools-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":12,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_devtools-js.bundle.dll.js 200 12ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_monitoring-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":9,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_monitoring-js.bundle.dll.js 200 9ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.app_management-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":6,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_management-js.bundle.dll.js 200 6ms - 9.0B"} Feb 05 08:32:17 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:17Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.email-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":5,"contentLength":9},"message":"GET /built_assets/dlls/icon.email-js.bundle.dll.js 200 5ms - 9.0B"} Feb 05 08:32:21 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:21Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.alert-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":21,"contentLength":9},"message":"GET /built_assets/dlls/icon.alert-js.bundle.dll.js 200 21ms - 9.0B"} Feb 05 08:32:21 kibana.ucti kibana[18302]: {"type":"response","@timestamp":"2020-02-05T07:32:21Z","tags":[],"pid":18302,"method":"get","statusCode":200,"req":{"url":"/built_assets/dlls/icon.cross-js.bundle.dll.js","method":"get","headers":{"host":"172.21.1.253:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"no-cors","referer":"https://172.21.1.253:5601/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,pl;q=0.8"},"remoteAddress":"MYIP","userAgent":"MYIP","referer":"https://172.21.1.253:5601/app/kibana"},"res":{"statusCode":200,"responseTime":23,"contentLength":9},"message":"GET /built_assets/dlls/icon.cross-js.bundle.dll.js 200 23ms - 9.0B"}

@erictuvesson
Copy link

erictuvesson commented Feb 6, 2020

We had the same issue on our Kibana server, as @matthewford said.

Changing the default index pattern solves the issue. Our default was apm-*, I changed it to one of our indexes and that solved it.

The setting can be found under "Management > Kibana > Index Patterns", go into an index and press the star at the top right.

@jonare77
Copy link
Author

jonare77 commented Feb 6, 2020

We had the same issue on our Kibana server, as @matthewford said.

Changing the default index pattern solves the issue. Our default was apm-*, I changed it to one of our indexes and that solved it.

The setting can be found under "Management > Kibana > Index Patterns", go into an index and press the start at the top right.

I can confirm that this fixed the problem in my installation. Thanks @erictuvesson

@emionch
Copy link

emionch commented Feb 7, 2020

I have the same issue and also was fixed by changing the default index

@vidhyadhara
Copy link

Such a simple solution... Even i had the same error and it was solved by changing the default index in kibana from *apm to anyone of our index.

@tylersmalley
Copy link
Contributor

I am having a hard time reproducing this issue.

@matthewford:

homebrew install, defaults, no subfolder.

After installing Kibana, I assume you then setup APM? Is there anything else you did?

Is anyone still able to reproduce that could provide a HAR of the full-page load?

@tylersmalley tylersmalley added the Team:APM All issues that need APM UI Team support label Feb 13, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@tylersmalley
Copy link
Contributor

Tagging APM since based on the comments this has something to do with the APM index pattern.

@matthewford
Copy link

@tylersmalley yes I was clicking on all the tabs on the nav to see what they do, and I must have activated apm (but did not use it).

@sorenlouv
Copy link
Member

sorenlouv commented Feb 14, 2020

I think I know what's going on:

When APM app is opened an APM index pattern is created automatically. If no other index patterns have been created, the APM index pattern will be the default. When opening Discover it calls api/index_patterns/_fields_for_wildcard?pattern=apm-* to get the fields for the index, however no APM data has been ingested, so it fails.

I think there are a two possible fixes for this problem

1) Quick fix:
When opening APM app it should only create an index pattern if APM data exists.

2) Long term fix
Discover should not fail when requesting fields for an empty index pattern. Instead it should show a helpful message like: "No data for apm-*. Please select another index pattern in the dropdown".
This will make sure that if other apps do the same, it will not cause Discover to crash.

@sorenlouv sorenlouv changed the title Error: Not Found - bundles/commons.bundle.js Discover crashes when the primary index pattern is empty (Case: APM) Feb 14, 2020
@rayafratkina rayafratkina added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Feb 14, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@rayafratkina rayafratkina added the Feature:Discover Discover Application label Feb 14, 2020
@flash1293
Copy link
Contributor

flash1293 commented Feb 14, 2020

In theory Discover should be able to handle this. In most cases it will just show this screen:
Screenshot 2020-02-14 at 16 16 42

I agree though that your message would be even better @sqren - would be a nice improvement.

I looked into the problem a bit and it seems this occurs because the index pattern tries to refresh its fields - this produces a generic not found error because of this catch all: https://github.com/elastic/kibana/blob/master/src/plugins/data/server/index_patterns/routes.ts#L118

The route handler goes through a few layers and finally hits the field caps api here: https://github.com/elastic/kibana/blob/master/src/plugins/data/server/index_patterns/fetcher/lib/es_api.ts#L66

This function documents it will throw when no data is present. IMHO the index pattern service should handle the situation more gracefully.

Pulling in app arch as this is ultimately caused by the index pattern service and can also occur in all other places index patterns are used (because of the generic error discover currently can't differentiate between a no-data situation and a something-went-very-wrong-in-general situation).

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@kertal
Copy link
Member

kertal commented Feb 14, 2020

Sound like a bug that was fixed in 7.6 -> #55836

@flash1293
Copy link
Contributor

I missed this one, @kertal. This definitely improves the situation, but I'm not sure whether it's sufficient for all cases.

AFAIK In some scenarios it seems like this can crash all of discover and show up in a lot of other places: https://discuss.elastic.co/t/error-not-found-at-http-localhost-5601-bundles-commons-bundle-js1376093/218720

@tylersmalley tylersmalley removed the Team:Operations Team label for Operations Team label Feb 20, 2020
@ppisljar ppisljar added the bug Fixes for quality problems that affect the customer experience label May 10, 2021
@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Jun 21, 2021
@timroes
Copy link
Contributor

timroes commented Jul 14, 2021

It's not really clear to me given the state this issue is in at the moment, what's the state and if there's still work expected. It seems like the described issue here is fixed, but there might be other "related" issues? I'll go ahead and close this for now, and please feel free to reopen it and update with a clear description what's failing or open new issues if there are other related issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:APM All issues that need APM UI Team support Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests