Skip to content

When server.basePath is an empty string, Kibana fails to start up #69344

@rudolf

Description

@rudolf

kibana.yml:

server.basePath: ''

Logs:

server    log   [00:16:12.533] [fatal][root] { ValidationError: child "path" fails because ["path" is not allowed to be empty]
    at Object.exports.process (/Users/rudolf/dev/kibana/node_modules/joi/lib/errors.js:196:19)
    at internals.Object._validateWithOptions (/Users/rudolf/dev/kibana/node_modules/joi/lib/types/any/index.js:675:31)
    at module.exports.internals.Any.root.validate (/Users/rudolf/dev/kibana/node_modules/joi/lib/index.js:146:23)
    at Object.internals.implementation [as cookie] (/Users/rudolf/dev/kibana/node_modules/hapi-auth-cookie/lib/index.js:94:25)
    at module.exports.internals.Auth.strategy [as _strategy] (/Users/rudolf/dev/kibana/node_modules/hapi/lib/auth.js:52:47)
    at createCookieSessionStorageFactory (/Users/rudolf/dev/kibana/src/core/server/http/cookie_session_storage.ts:144: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: 'my secure cookie secret is strong enough',
     validateFunc: [AsyncFunction: validateFunc],
     isSecure: false,
     path: '',
     clearInvalid: false,
     isHttpOnly: true,
     isSameSite: false },
  annotate: [Function] }

Workaround:

Remove the server.basePath setting altogether if you don't want to specify a basePath.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//bugFixes for quality problems that affect the customer experiencev8.0.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions