Skip to content

Kibana 9.x.x gives error 500 over IPv6 #236380

@AllRWeak

Description

@AllRWeak

Kibana version:
docker.elastic.co/kibana/kibana:9.1.4

Elasticsearch version:
docker.elastic.co/elasticsearch/elasticsearch:9.1.4

Server OS version:
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Browser version:
Firefox 143.0.1

Browser OS version:
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Original install method (e.g. download page, yum, from source, etc.):
Docker images

Describe the bug:
On pre-9.x.x Kibana (for an example 8.19.4) it was possible to set server.host: "::" in kibana.yml and Kibana would listen on both IPv4 and IPv6 addresses. The same config on Kibana 9.1.4 gives an error 300 in browser and Invalid URL error in Kibana container logs.

Steps to reproduce:

  1. Set server.host: "::" in kibana.yml
  2. Try accessing Kibana over IPv6 (either directly or using an AAAA-only DNS records)

Expected behavior:
It might not be the same config but I would expect that dual-stack or IPv6 only support would be available for Kibana.

Provide logs and/or server output (if relevant):
Container error:

[2025-09-24T20:29:45.766+00:00][ERROR][http.server.Kibana] TypeError: Invalid URL
    at new URL (node:internal/url:818:25)
    at Request._parseUrl (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:187:25)
    at Request.get url [as url] (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:121:21)
    at new CoreKibanaRequest (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/request.js:138:40)
    at Function.from (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/request.js:65:12)
    at interceptPreRoutingRequest (/usr/share/kibana/node_modules/@kbn/core-http-server-internal/src/lifecycle/on_pre_routing.js:51:79)
    at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:57:29)
    at Request._invoke (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:397:55)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Request._onRequest (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:289:30)
    at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:271:13)
[2025-09-24T20:29:45.767+00:00][ERROR][http.server.Kibana] TypeError: Invalid URL
    at new URL (node:internal/url:818:25)
    at Request._parseUrl (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:187:25)
    at Request.get url [as url] (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:121:21)
    at new CoreKibanaRequest (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/request.js:138:40)
    at Function.from (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/request.js:65:12)
    at interceptPreResponse (/usr/share/kibana/node_modules/@kbn/core-http-server-internal/src/lifecycle/on_pre_response.js:59:81)
    at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:57:29)
    at Request._invoke (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:397:55)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Request._postCycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:468:32)
    at Request._reply (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:447:9)
[2025-09-24T20:29:45.816+00:00][ERROR][http.server.Kibana] TypeError: Invalid URL
    at new URL (node:internal/url:818:25)
    at Request._parseUrl (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:187:25)
    at Request.get url [as url] (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:121:21)
    at new CoreKibanaRequest (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/request.js:138:40)
    at Function.from (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/request.js:65:12)
    at interceptPreRoutingRequest (/usr/share/kibana/node_modules/@kbn/core-http-server-internal/src/lifecycle/on_pre_routing.js:51:79)
    at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:57:29)
    at Request._invoke (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:397:55)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Request._onRequest (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:289:30)
    at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:271:13)
[2025-09-24T20:29:45.817+00:00][ERROR][http.server.Kibana] TypeError: Invalid URL
    at new URL (node:internal/url:818:25)
    at Request._parseUrl (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:187:25)
    at Request.get url [as url] (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:121:21)
    at new CoreKibanaRequest (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/request.js:138:40)
    at Function.from (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/request.js:65:12)
    at interceptPreResponse (/usr/share/kibana/node_modules/@kbn/core-http-server-internal/src/lifecycle/on_pre_response.js:59:81)
    at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:57:29)
    at Request._invoke (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:397:55)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Request._postCycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:468:32)
    at Request._reply (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:447:9)

Any additional context:
Kibana is running inside a Docker container and external 443 port is bound to internal 5601

Metadata

Metadata

Assignees

Labels

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

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions