Kibana 6.3.0 failing on > management > Index Patterns

Hello,

I'm new newbie to ELK

I have installed Elastic search + Kibana using following URL on centos 7
http://xxx.xxx.xxx.xxx:5601/app/kibana#/management/kibana/indices/

Change 1. changed the installation location for kibana to different path
Change 2. changed the installation location for elasticsearch to different path as we have less storage available on "/"

Change 3. file /etc/elasticsearch/jvm.options and edited jvm value

-Xms4g
-Xmx4g

Change 4. file /etc/kibana/kibana.yml and added below IP
server.host: 0.0.0.0

Elastic search is running fine as I have checked with below command:

[root@admin ~]# curl -X GET "localhost:9200/"
{
"name" : "dbFb-O-",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "UyRAyOaKT_WVEminBuu3Kw",
"version" : {
"number" : "6.3.1",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "eb782d0",
"build_date" : "2018-06-29T21:59:26.107521Z",
"build_snapshot" : false,
"lucene_version" : "7.3.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}

Note: I did not set any username and Password or any SSL certificate for both Kibana and Elastic Search

I wanted check if Kibana and Elastic Search is working fine before I move further, So I loaded Sample Data using below URL

https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html

I got the Same result after doing that as below

[root@admin ~]# curl -XGET "http://localhost:9200/_cat/indices"
yellow open logstash-2015.05.20         IgqmgdOoRy2aVGep2ZuDgw 5 1   4750   0  22.9mb  22.9mb
yellow open logstash-2015.05.18         DmtW8dLKT4Kf9ZPvGP-A0g 5 1   4631   0  20.4mb  20.4mb
green  open .monitoring-es-6-2018.07.17 RWDuaClrSuOFqYO6nnXu-w 1 0   7907 260   4.6mb   4.6mb
green  open .kibana                     FnlqF11cTRmojF9uHZDa2Q 1 0      2   0   8.4kb   8.4kb
yellow open bank                        7bbo_paESEmcYfF7EglXew 5 1   1000   0 475.1kb 475.1kb
yellow open logstash-2015.05.19         g2YfZc4bSM2nQSxJJEqrbQ 5 1   4624   0  21.7mb  21.7mb
yellow open shakespeare                 F41g8eD2RHC5psnySpSOKg 5 1 111396   0  21.5mb  21.5mb

In Kibana :

When I move to Next step i.e "Defining your index pattern" and then I Entered shakes* in the Index pattern field.

KIbana request got failed on http://xxx.xxx.xxx.xxx:5601/api/saved_objects/index-pattern/bd829490-89a9-11e8-b68b-a7a4a3512cc8

TypeError: Cannot read property 'message' of null
    at http://xxx.xxx.xxx.xxx:5601/bundles/commons.bundle.js?v=16627:1:293183
    at processQueue (http://xxx.xxx.xxx.xxx:5601/bundles/vendors.bundle.js?v=16627:58:132456)
    at http://xxx.xxx.xxx.xxx:5601/bundles/vendors.bundle.js?v=16627:58:133349
    at Scope.$digest (http://xxx.xxx.xxx.xxx:5601/bundles/vendors.bundle.js?v=16627:58:144239)
    at Scope.$apply (http://xxx.xxx.xxx.xxx:5601/bundles/vendors.bundle.js?v=16627:58:147018)
    at done (http://xxx.xxx.xxx.xxx:5601/bundles/vendors.bundle.js?v=16627:58:100026)
    at completeRequest (http://xxx.xxx.xxx.xxx:5601/bundles/vendors.bundle.js?v=16627:58:104697)
    at XMLHttpRequest.requestError (http://xxx.xxx.xxx.xxx:5601/bundles/vendors.bundle.js?v=16627:58:105545)

Note: I'm directly accessing kibana on 5601 port not using any proxy

Now When I try to access Kibana management >Index Patterns then It shows blank page

I really don't understand what is the issue.

Thanks in advance
Pankaj

Hi there, can you share the log output of the Kibana server when this error occurs?

For reference purposes, here is a similar problem which another user has reported: TypeError: Cannot read property 'message' of null.

Thanks,
CJ

Hi ,
These are the logs

{"type":"response","@timestamp":"2018-07-18T05:39:38Z","tags":[],"pid":28379,"method":"get","statusCode":200,"req":{"url":"/api/saved_objects/?type=index-pattern&fields=title&per_page=10000&page=1","method":"get","headers":{"host":"10.18.240.252:5601","connection":"keep-alive","accept":"application/json, text/plain, */*","kbn-version":"6.2.4","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36","referer":"http://10.18.240.252:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-IN,en;q=0.9,mr-IN;q=0.8,mr;q=0.7,hi-IN;q=0.6,hi;q=0.5,en-GB;q=0.4,en-US;q=0.3"},"remoteAddress":"10.89.113.154","userAgent":"10.89.113.154","referer":"http://10.18.240.252:5601/app/kibana"},"res":{"statusCode":200,"responseTime":12,"contentLength":9},"message":"GET /api/saved_objects/?type=index-pattern&fields=title&per_page=10000&page=1 200 12ms - 9.0B"}
{"type":"response","@timestamp":"2018-07-18T05:39:38Z","tags":[],"pid":28379,"method":"get","statusCode":304,"req":{"url":"/ui/favicons/favicon-32x32.png","method":"get","headers":{"host":"10.18.240.252:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36","accept":"image/webp,image/apng,image/*,*/*;q=0.8","referer":"http://10.18.240.252:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-IN,en;q=0.9,mr-IN;q=0.8,mr;q=0.7,hi-IN;q=0.6,hi;q=0.5,en-GB;q=0.4,en-US;q=0.3","if-none-match":"\"8e183c2e644fb050707d89402e1f7a120a95e4d2\"","if-modified-since":"Thu, 12 Apr 2018 20:58:09 GMT"},"remoteAddress":"10.89.113.154","userAgent":"10.89.113.154","referer":"http://10.18.240.252:5601/app/kibana"},"res":{"statusCode":304,"responseTime":2,"contentLength":9},"message":"GET /ui/favicons/favicon-32x32.png 304 2ms - 9.0B"}
{"type":"response","@timestamp":"2018-07-18T05:39:38Z","tags":[],"pid":28379,"method":"get","statusCode":200,"req":{"url":"/api/saved_objects/?type=index-pattern&fields=title&per_page=10000&page=1","method":"get","headers":{"host":"10.18.240.252:5601","connection":"keep-alive","accept":"application/json, text/plain, */*","kbn-version":"6.2.4","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36","referer":"http://10.18.240.252:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-IN,en;q=0.9,mr-IN;q=0.8,mr;q=0.7,hi-IN;q=0.6,hi;q=0.5,en-GB;q=0.4,en-US;q=0.3"},"remoteAddress":"10.89.113.154","userAgent":"10.89.113.154","referer":"http://10.18.240.252:5601/app/kibana"},"res":{"statusCode":200,"responseTime":13,"contentLength":9},"message":"GET /api/saved_objects/?type=index-pattern&fields=title&per_page=10000&page=1 200 13ms - 9.0B"}
{"type":"response","@timestamp":"2018-07-18T05:39:38Z","tags":[],"pid":28379,"method":"get","statusCode":304,"req":{"url":"/ui/favicons/favicon-32x32.png","method":"get","headers":{"host":"10.18.240.252:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36","accept":"image/webp,image/apng,image/*,*/*;q=0.8","referer":"http://10.18.240.252:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-IN,en;q=0.9,mr-IN;q=0.8,mr;q=0.7,hi-IN;q=0.6,hi;q=0.5,en-GB;q=0.4,en-US;q=0.3","if-none-match":"\"8e183c2e644fb050707d89402e1f7a120a95e4d2\"","if-modified-since":"Thu, 12 Apr 2018 20:58:09 GMT"},"remoteAddress":"10.89.113.154","userAgent":"10.89.113.154","referer":"http://10.18.240.252:5601/app/kibana"},"res":{"statusCode":304,"responseTime":4,"contentLength":9},"message":"GET /ui/favicons/favicon-32x32.png 304 4ms - 9.0B"}
{"type":"response","@timestamp":"2018-07-18T05:39:38Z","tags":[],"pid":28379,"method":"get","statusCode":304,"req":{"url":"/ui/favicons/favicon-16x16.png","method":"get","headers":{"host":"10.18.240.252:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36","accept":"image/webp,image/apng,image/*,*/*;q=0.8","referer":"http://10.18.240.252:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-IN,en;q=0.9,mr-IN;q=0.8,mr;q=0.7,hi-IN;q=0.6,hi;q=0.5,en-GB;q=0.4,en-US;q=0.3","if-none-match":"\"13b869be5df4bdc56920edc16a28e67a7c08203b\"","if-modified-since":"Thu, 12 Apr 2018 20:58:09 GMT"},"remoteAddress":"10.89.113.154","userAgent":"10.89.113.154","referer":"http://10.18.240.252:5601/app/kibana"},"res":{"statusCode":304,"responseTime":1,"contentLength":9},"message":"GET /ui/favicons/favicon-16x16.png 304 1ms - 9.0B"}
{"type":"response","@timestamp":"2018-07-18T05:41:06Z","tags":[],"pid":28379,"method":"get","statusCode":304,"req":{"url":"/bundles/4b5a84aaf1c9485e060c503a0ff8cadb.woff2","method":"get","headers":{"host":"10.18.240.252:5601","connection":"keep-alive","origin":"http://10.18.240.252:5601","if-none-match":"\"574ea2698c03ae9477db2ea3baf460ee32f1a7ea\"","if-modified-since":"Thu, 12 Apr 2018 20:58:08 GMT","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36","accept":"*/*","referer":"http://10.18.240.252:5601/bundles/commons.style.css?v=16627","accept-encoding":"gzip, deflate","accept-language":"en-IN,en;q=0.9,mr-IN;q=0.8,mr;q=0.7,hi-IN;q=0.6,hi;q=0.5,en-GB;q=0.4,en-US;q=0.3"},"remoteAddress":"10.89.113.154","userAgent":"10.89.113.154","referer":"http://10.18.240.252:5601/bundles/commons.style.css?v=16627"},"res":{"statusCode":304,"responseTime":2,"contentLength":9},"message":"GET /bundles/4b5a84aaf1c9485e060c503a0ff8cadb.woff2 304 2ms - 9.0B"}

I tried installing Kibana and Elastic Search on Windows docker and Linux docker

Windows Docker: It works well on docker
Linux Docker: It doesn't work.

The only difference in Linux docker-compose.yml file is this

volumes:
  esdata:
    driver: local

I don't understand Where is the issue

Can some one provide the query (CURL directly to elastic Search ) for Elastic search for this URL which is failing on kibana

Http Request:

http://10.18.240.252:5601/api/saved_objects/index-pattern/f516bec0-8b3b-11e8-8f9d-6bcf78c5e0b9

Request Payload

{"attributes":{"title":"shakes*","fields":"[{\"name\":\"_id\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_source\",\"type\":\"_source\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"line_id\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"line_number\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"line_number.keyword\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"play_name\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"speaker\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"speech_number\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"text_entry\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"text_entry.keyword\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"type.keyword\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]"}}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.