Kibana/Shield --FATAL [TypeError: undefined is not a function]

security

(sabad) #1

Shield 2.3.3 and kibana-4.4.1
Getting the error. Kibana not loading.

]# ./bin/kibana --verbose
log [18:00:32.941] [debug][plugins] Scanning /saba/kibana/installedPlugins for plugins
log [18:00:32.953] [debug][plugins] Scanning /saba/kibana/src/plugins for plugins
log [18:00:33.091] [debug][plugins] Found plugin at /saba/kibana/installedPlugins/shield/index.js
log [18:00:33.652] [debug][plugins] Found plugin at /saba/kibana/src/plugins/elasticsearch/index.js
log [18:00:33.672] [debug][plugins] Found plugin at /saba/kibana/src/plugins/kbn_vislib_vis_types/index.js
log [18:00:33.699] [debug][plugins] Found plugin at /saba/kibana/src/plugins/kibana/index.js
log [18:00:33.719] [debug][plugins] Found plugin at /saba/kibana/src/plugins/markdown_vis/index.js
log [18:00:33.745] [debug][plugins] Found plugin at /saba/kibana/src/plugins/metric_vis/index.js
log [18:00:33.765] [debug][plugins] Found plugin at /saba/kibana/src/plugins/spyModes/index.js
log [18:00:33.786] [debug][plugins] Found plugin at /saba/kibana/src/plugins/statusPage/index.js
log [18:00:33.809] [debug][plugins] Found plugin at /saba/kibana/src/plugins/table_vis/index.js
log [18:00:34.451] [debug][optimize] All bundles are cached and ready to go!
log [18:00:34.457] [debug][plugins] Initializing plugin kibana
log [18:00:34.463] [info][status][plugin:kibana] Status changed from uninitialized to green - Ready
log [18:00:34.466] [debug][plugins] Initializing plugin elasticsearch
log [18:00:34.523] [info][status][plugin:elasticsearch] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [18:00:34.544] [debug][plugins] Initializing plugin shield
log [18:00:34.593] [fatal] TypeError: undefined is not a function
at /saba/kibana/installedPlugins/shield/server/lib/get_client_shield.js:12:27
at /saba/kibana/node_modules/lodash/index.js:7363:25
at module.exports (/saba/kibana/installedPlugins/shield/server/lib/is_valid_user.js:7:27)
at module.exports (/saba/kibana/installedPlugins/shield/server/lib/validate.js:4:55)
at /saba/kibana/installedPlugins/shield/index.js:60:50
at done (/saba/kibana/node_modules/hapi/node_modules/items/lib/index.js:30:25)
at Object.exports.register (/saba/kibana/installedPlugins/shield/node_modules/hapi-auth-cookie/lib/index.js:15:5)
at /saba/kibana/node_modules/hapi/lib/plugin.js:254:14
at iterate (/saba/kibana/node_modules/hapi/node_modules/items/lib/index.js:35:13)
at Object.exports.serial (/saba/kibana/node_modules/hapi/node_modules/items/lib/index.js:38:9)
at [object Object].internals.Plugin.register (/saba/kibana/node_modules/hapi/lib/plugin.js:236:11)
at ScopedPlugin.init [as externalInit] (/saba/kibana/installedPlugins/shield/index.js:45:12)
at ScopedPlugin.tryCatcher (/saba/kibana/node_modules/bluebird/js/main/util.js:26:23)
at Promise.attempt.Promise.try (/saba/kibana/node_modules/bluebird/js/main/method.js:30:24)
at Object.register (/saba/kibana/src/server/plugins/Plugin.js:143:15)
at /saba/kibana/node_modules/hapi/lib/plugin.js:254:14
FATAL [TypeError: undefined is not a function]


(Anoop Sunke) #2

Looks like you might be using an older version of Kibana. Shield 2.3+ is compatible only with Kibana 4.5+ as listed here https://www.elastic.co/support/matrix#show_compatibility


(sabad) #3

Thanks, Upgrade to 4.5 worked.


(system) #4