Kibana unable to start (validation error cookie_session_storage.js)

Hi,

Below error preventing kibana to start. please guide.

'''

log [17:00:36.724] [fatal][root] { ValidationError: child "path" fails because ["path" is not allowed to be empty]

at Object.exports.process (D:\Kibana_ELK\kibana-7.7.0-windows-x86_64\kibana-7.7.0-windows-x86_64\node_modules\joi\lib\errors.js:196:19)

at internals.Object._validateWithOptions (D:\Kibana_ELK\kibana-7.7.0-windows-x86_64\kibana-7.7.0-windows-x86_64\node_modules\joi\lib\types\any\index.js:675:31)

at module.exports.internals.Any.root.validate (D:\Kibana_ELK\kibana-7.7.0-windows-x86_64\kibana-7.7.0-windows-x86_64\node_modules\joi\lib\index.js:146:23)

at Object.internals.implementation [as cookie] (D:\Kibana_ELK\kibana-7.7.0-windows-x86_64\kibana-7.7.0-windows-x86_64\node_modules\hapi-auth-cookie\lib\index.js:94:25)

at module.exports.internals.Auth._strategy (D:\Kibana_ELK\kibana-7.7.0-windows-x86_64\kibana-7.7.0-windows-x86_64\node_modules\hapi\lib\auth.js:52:47)

at createCookieSessionStorageFactory (D:\Kibana_ELK\kibana-7.7.0-windows-x86_64\kibana-7.7.0-windows-x86_64\src\core\server\http\cookie_session_storage.js:98:15)

at process._tickCallback (internal/process/next_tick.js:68:7)

isJoi: true,

name: 'ValidationError',

details:

at createCookieSessionStorageFactory (D:\Kibana_ELK\kibana-7.7.0-windows-x86_64\kibana-7.7.0-windows-x86_64\src\core\server\http\cookie_session_storage.js:98:15)

at process._tickCallback (internal/process/next_tick.js:68:7)

isJoi: true,

name: 'ValidationError',

details:

[ { message: '"path" is not allowed to be empty',

   path: [Array],

   type: 'any.empty',

   context: [Object] } ],

_object:

{ cookie: 'sid',

 password: '96bdea990f70c0c2759d0e71b317f1cb',

 validateFunc: [AsyncFunction: validateFunc],

 isSecure: false,

 path: '',

 clearInvalid: false,

 isHttpOnly: true,

 isSameSite: false },

annotate: [Function] }
'''

Can you please share your kibana.yml (be sure to remove any sensitive information).

Please note that your post inadvertently shared your xpack.security.encryptionKey please rotate this key.

It sounds like you might have bumped into this bug: https://github.com/elastic/kibana/issues/69344

If you kibana.yml has a setting like server.basePath: '' or server.basePath: "" can you try comment out that setting and see if Kibana starts up?

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