Just to follow up and give some feedback. I have my cluster in 5.2.2.
The installation of the license is not intuitive and I had a very hard time getting it to work (I don't think I ever did.) I tried posting it from Kibana itself and tried to do it using the instructions from the docs of
curl -XPUT -u elastic 'http://host:9200/_xpack/license' -H "Content-Type: application/json" -d @license.json
Variations were to remove the -u and my license.json is located in the root "/" directory where I was calling the command. I dl'ed from the link I got, and copied the contents into that file.
and kept getting errors:
{"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to derive xcontent"}],"type":"parse_exception","reason":"Failed to derive xcontent"},"status":400}curl: (6) Could not resolve host: license.json; Name or service not known
or
{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST request [/_xpack/license]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security_exception","reason":"missing authentication token for REST request [/_xpack/license]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}curl: (6) Could not resolve host: license.json; Name or service not known
or
curl: (6) Could not resolve host: elastic; Unknown error
I looked online but this is really overwhelming when trying to do something as simple as install a license.
I then thought to move on and see if I can just get things to run and focused on my kibana instance. When I tried to disable xpack.security, I got this error
{"type":"log","@timestamp":"2017-05-30T05:48:49Z","tags":["fatal"],"pid":4587,"level":"fatal","message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/monitoring.entry.js'","error":{"message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/monitoring.entry.js'","name":"Error","stack":"Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/monitoring.entry.js'\n at Error (native)","code":"EACCES"}}
FATAL { Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/monitoring.entry.js'
at Error (native)
cause:
{ Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/monitoring.entry.js'
at Error (native)
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/usr/share/kibana/optimize/bundles/monitoring.entry.js' },
isOperational: true,
errno: -13,
code: 'EACCES',
I know there are tickets for this error, but I'm kind of stuck because I can't change versions currently and I'm not that confident things will actually work if I do.
Then I set in kibana.yml
xpack.security.enabled: false
xpack.graph.enabled: false
xpack.monitoring.enabled: false
and I got:
{"type":"error","@timestamp":"2017-05-30T06:05:43Z","tags":,"pid":8322,"level":"error","message":"Cannot read property 'toJSON' of undefined","error":{"message":"Cannot read property 'toJSON' of undefined","name":"TypeError","stack":"TypeError: Cannot read property 'toJSON' of undefined\n at withXpackInfo (/usr/share/kibana/plugins/x-pack/plugins/xpack_main/server/lib/replace_injected_vars.js:5:32)\n at replaceInjectedVars$ (/usr/share/kibana/plugins/x-pack/plugins/xpack_main/server/lib/replace_injected_vars.js:10:12)\n at tryCatch (/usr/share/kibana/node_modules/regenerator/runtime.js:61:40)\n at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/share/kibana/node_modules/regenerator/runtime.js:328:22)\n at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/share/kibana/node_modules/regenerator/runtime.js:94:21)\n at invoke (/usr/share/kibana/node_modules/regenerator/runtime.js:136:37)\n at callInvokeWithMethodAndArg (/usr/share/kibana/node_modules/regenerator/runtime.js:172:16)\n at previousPromise (/usr/share/kibana/node_modules/regenerator/runtime.js:194:19)\n at AsyncIterator.enqueue (/usr/share/kibana/node_modules/regenerator/runtime.js:193:13)\n at AsyncIterator.prototype.(anonymous function) [as next] (/usr/share/kibana/node_modules/regenerator/runtime.js:94:21)\n at Object.runtime.async (/usr/share/kibana/node_modules/regenerator/runtime.js:215:14)\n at replaceInjectedVars (/usr/share/kibana/plugins/x-pack/plugins/xpack_main/server/lib/replace_injected_vars.js:3:22)\n at /usr/share/kibana/src/ui/index.js:67:22\n at undefined.next (native)\n at step (/usr/share/kibana/src/ui/index.js:9:273)\n at /usr/share/kibana/src/ui/index.js:9:443\n at /usr/share/kibana/src/ui/index.js:9:99\n at tryCatcher (/usr/share/kibana/node_modules/bluebird/js/main/util.js:26:23)\n at ReductionPromiseArray._promiseFulfilled (/usr/share/kibana/node_modules/bluebird/js/main/reduce.js:109:18)\n at ReductionPromiseArray.init (/usr/share/kibana/node_modules/bluebird/js/main/promise_array.js:92:18)\n at ReductionPromiseArray.init (/usr/share/kibana/node_modules/bluebird/js/main/reduce.js:42:10)\n at Async._drainQueue (/usr/share/kibana/node_modules/bluebird/js/main/async.js:128:12)"},"url":{"protocol":null,"slashes":null,"auth":null,"host":null,"port":null,"hostname":null,"hash":null,"search":"","query":{},"pathname":"/app/kibana","path":"/app/kibana","href":"/app/kibana"}}
May 30 02:05:43 KOFI03ES-Kibana kibana: {"type":"response","@timestamp":"2017-05-30T06:05:43Z","tags":,"pid":8322,"method":"get","statusCode":500,"req":{"url":"/app/kibana","method":"get","headers":{"host":"172.28.97.58:5601","connection":"keep-alive","cache-control":"max-age=0","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8","referer":"http://172.28.97.58:5601/","accept-encoding":"gzip, deflate, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"172.29.10.87","userAgent":"172.29.10.87","referer":"http://172.28.97.58:5601/"},"res":{"statusCode":500,"responseTime":29,"contentLength":9},"message":"GET /app/kibana 500 29ms - 9.0B"}
so as a last ditch method, I allowed security, graph and monitoring to run and put everything in kibana.yml as default and things finally seemed to bundle, then when I tried to login to kibana I got
{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"}
This is all very exhausting. I'm just reporting what I've gotten so you guys can take a look to see if these are old news or not. I think I'll just remove x-pack and not be able to do any sort of monitoring which is a shame...