{"record":{"id":"e9a99b3ad75adf4f","repo":"testcontainers/testcontainers-java","slug":"kibana-version-s-is-not-supported-minimum-version-is-s","errorCode":null,"errorMessage":"Kibana version %s is not supported. Minimum version is %s","messagePattern":"Kibana version (.+?) is not supported\\. Minimum version is (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/elasticsearch/src/main/java/org/testcontainers/elasticsearch/KibanaContainer.java","lineNumber":521,"sourceCode":"        String networkId = network.getId();\n\n        try {\n            DockerClientFactory\n                .instance()\n                .client()\n                .connectToNetworkCmd()\n                .withContainerId(containerId)\n                .withNetworkId(networkId)\n                .exec();\n        } catch (Exception e) {\n            throw new IllegalStateException(\"Failed to connect Elasticsearch container to ad-hoc shared network\", e);\n        }\n    }\n\n    private static void ensureCompatibleVersion(String esVersion) {\n        ComparableVersion comparableVersion = new ComparableVersion(esVersion);\n        if (comparableVersion.isLessThan(MINIMUM_SUPPORTED_VERSION)) {\n            throw new IllegalArgumentException(\n                String.format(\n                    \"Kibana version %s is not supported. Minimum version is %s\",\n                    comparableVersion,\n                    MINIMUM_SUPPORTED_VERSION\n                )\n            );\n        }\n    }\n\n    private String createKibanaServiceAccountToken(String protocol) {\n        if (elasticsearch == null) {\n            throw new IllegalStateException(\"Cannot create service account token in external mode\");\n        }\n\n        String elasticPassword = elasticsearch\n            .getEnvMap()\n            .getOrDefault(\"ELASTIC_PASSWORD\", ElasticsearchContainer.ELASTICSEARCH_DEFAULT_PASSWORD);\n","sourceCodeStart":503,"sourceCodeEnd":539,"githubUrl":"https://github.com/testcontainers/testcontainers-java/blob/8e549514e3f01c57d70546fbb8599d138f3903e5/modules/elasticsearch/src/main/java/org/testcontainers/elasticsearch/KibanaContainer.java#L503-L539","documentation":"KibanaContainer enforces a minimum supported Kibana/Elasticsearch version (MINIMUM_SUPPORTED_VERSION). ensureCompatibleVersion parses the version string with ComparableVersion and throws IllegalArgumentException if it is below the minimum, because older Kibana images lack APIs the container integration depends on.","triggerScenarios":"Creating a KibanaContainer (constructor or via buildDockerImageName) with an image tag whose version is lower than MINIMUM_SUPPORTED_VERSION, e.g. DockerImageName.parse(\"docker.elastic.co/kibana/kibana:6.x\") or any tag that resolves to a too-old version.","commonSituations":"Pinning an old image tag copied from legacy test code; upgrading Elasticsearch tests selectively so Kibana stays behind; using a typo'd tag like \"7.1\" mistaken for \"7.17\".","solutions":["Upgrade the Kibana image tag to a version at or above MINIMUM_SUPPORTED_VERSION (check the constant in KibanaContainer).","Keep the Kibana and Elasticsearch image versions in lock-step.","If you truly need an old version, use an unmanaged setup (external mode) rather than this container class."],"exampleFix":"// before\nnew KibanaContainer(DockerImageName.parse(\"docker.elastic.co/kibana/kibana:6.8.0\"))\n\n// after\nnew KibanaContainer(DockerImageName.parse(\"docker.elastic.co/kibana/kibana:8.11.0\"))","handlingStrategy":"validation","validationCode":"String tag = image.getVersionPart();\norg.apache.maven.artifact.versioning.ComparableVersion v = new org.apache.maven.artifact.versioning.ComparableVersion(tag);\nif (v.compareTo(new org.apache.maven.artifact.versioning.ComparableVersion(\"7.17.0\")) < 0) {\n    throw new IllegalArgumentException(\"Kibana image too old: \" + tag);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Centralize image version constants and share them between Elasticsearch and Kibana declarations.","Pin supported tags in one place and upgrade Kibana and ES together.","Review MINIMUM_SUPPORTED_VERSION in KibanaContainer when choosing tags."],"tags":["testcontainers","kibana","version","compatibility"],"backgroundTag":"unsupported-config-value","analyzedSha":"8e549514e3f01c57d70546fbb8599d138f3903e5","analyzedAt":"2026-09-12T14:56:41.227Z","contentChangedAt":"2026-09-12T14:56:41.227Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}