Skip to content

Kibana Dev Console queries returning Internal Server Error  #56450

@spong

Description

@spong

On kibana master (08e0cbc), running queries from the Kibana Dev Console returns:

{"statusCode":500,"error":"Internal Server Error","message":"Internal Error"}

and the following error in the server console:

server    log   [14:06:43.986] [error][console][plugins] Error: Unknown ssl verificationMode: undefined
    at createAgent (/Users/garrettspong/dev/kibana/src/plugins/console/server/lib/elasticsearch_proxy_config.ts:50:13)
    at getElasticsearchProxyConfig (/Users/garrettspong/dev/kibana/src/plugins/console/server/lib/elasticsearch_proxy_config.ts:68:12)
    at getRequestConfig (/Users/garrettspong/dev/kibana/src/plugins/console/server/routes/api/console/proxy/create_handler.ts:91:8)
    at handler (/Users/garrettspong/dev/kibana/src/plugins/console/server/routes/api/console/proxy/create_handler.ts:154:63)
    at /Users/garrettspong/dev/kibana/src/core/utils/context.ts:242:14
    at process._tickCallback (internal/process/next_tick.js:68:7)
server   error  [14:06:43.403]  Error: Internal Server Error
    at HapiResponseAdapter.toError (/Users/garrettspong/dev/kibana/src/core/server/http/router/response_adapter.ts:129:19)
    at HapiResponseAdapter.toHapiResponse (/Users/garrettspong/dev/kibana/src/core/server/http/router/response_adapter.ts:79:19)
    at HapiResponseAdapter.handle (/Users/garrettspong/dev/kibana/src/core/server/http/router/response_adapter.ts:74:17)
    at Router.handle (/Users/garrettspong/dev/kibana/src/core/server/http/router/router.ts:265:34)
    at process._tickCallback (internal/process/next_tick.js:68:7)
server  respons [14:06:43.403] [access:console] POST /api/console/proxy?path=%2Fapm-8.0.0-transaction-000001&method=PUT 500 816ms - 9.0B

In debugging, adding console logs before the verificationMode switch in both:

showed elasticsearch_client_config was getting the correct verificationMode as set in my kibana.dev.yml, however the legacyConfig in elasticsearch_proxy_config is indeed undefined.

As a workaround I was able to comment out that switch block, manually set agentOptions.rejectUnauthorized = false;, and then querying worked within the Kibana Dev Console.

Note: I have elasticsearch.ssl.verificationMode: 'none' configured in mykibana.dev.yml.

cc @cjcenizal @rudolf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:ConsoleDev Tools Console FeatureFeature:Dev ToolsTeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//bugFixes for quality problems that affect the customer experiencev7.7.0v8.0.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions