Kibana won't start after installing Shield plugin


(Mike Wurtz) #1

After installing the Shield plugin on Kbana 4.4.1 like this:

/opt/kibana/bin/kibana plugin --install kibana/shield

I restart kibana, and this error shows up in the log:

{"type":"log","@timestamp":"2016-04-05T00:22:34+00:00","tags":["fatal"],"pid":1327,"level":"fatal","message":"undefined is not a function","error":{"message":"undefined is not a function","name":"TypeError","stack":"TypeError: undefined is not a function\n at /opt/kibana/installedPlugins/shield/server/lib/get_client_shield.js:12:27\n at /opt/kibana/node_modules/lodash/index.js:7363:25\n at module.exports (/opt/kibana/installedPlugins/shield/server/lib/is_valid_user.js:7:27)\n at module.exports (/opt/kibana/installedPlugins/shield/server/lib/validate.js:4:55)\n at /opt/kibana/installedPlugins/shield/index.js:60:50\n at done (/opt/kibana/node_modules/hapi/node_modules/items/lib/index.js:30:25)\n at Object.exports.register (/opt/kibana/installedPlugins/shield/node_modules/hapi-auth-cookie/lib/index.js:15:5)\n at /opt/kibana/node_modules/hapi/lib/plugin.js:254:14\n at iterate (/opt/kibana/node_modules/hapi/node_modules/items/lib/index.js:35:13)\n at Object.exports.serial (/opt/kibana/node_modules/hapi/node_modules/items/lib/index.js:38:9)\n at [object Object].internals.Plugin.register (/opt/kibana/node_modules/hapi/lib/plugin.js:236:11)\n at ScopedPlugin.init [as externalInit] (/opt/kibana/installedPlugins/shield/index.js:45:12)\n at ScopedPlugin.tryCatcher (/opt/kibana/node_modules/bluebird/js/main/util.js:26:23)\n at Promise.attempt.Promise.try (/opt/kibana/node_modules/bluebird/js/main/method.js:30:24)\n at Object.register (/opt/kibana/src/server/plugins/Plugin.js:143:15)\n at /opt/kibana/node_modules/hapi/lib/plugin.js:254:14"}}

And Kibana won't start, unles I remove Shield again.


(Mark Walkom) #2

I think you may need to do /opt/kibana/bin/kibana plugin --install kibana/shield/2.2.0.


(Mike Wurtz) #3

That worked.. I installed 2.2.0, and Kibana was able to start, plus I was able to see the login prompt and log out buttons.

So apparently the latest version of Shield is not compatible with Kibana 4.4.1.


(Mark Walkom) #4

Nope, see https://www.elastic.co/subscriptions/matrix.


(Mike Wurtz) #5

That helps... Thanks.


(system) #6