# Removing xpack.maps.enabled as advised breaks Kibana

**URL:** <https://discuss.elastic.co/t/removing-xpack-maps-enabled-as-advised-breaks-kibana/319222>\
**Category:** Kibana\
**Created:** [November 17, 2022, 4:40pm UTC](https://discuss.elastic.co/t/removing-xpack-maps-enabled-as-advised-breaks-kibana/319222 "2022-11-17T16:40:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://discuss.elastic.co/u/mikewillis)\
**Post date:** [November 17, 2022, 4:40pm UTC](https://discuss.elastic.co/t/removing-xpack-maps-enabled-as-advised-breaks-kibana/319222/1 "2022-11-17T16:40:24Z")

</div>

Kibana 7.17

The Kibana Upgrade Assistant is showing me a Critical issue:

> Setting "xpack.maps.enabled" is deprecated
> 
> Configuring "xpack.maps.enabled" is deprecated and will be removed in 8.0.0.  
> How to fix
> 
> Remove "xpack.maps.enabled" from the Kibana config file, CLI flag, or environment variable (in Docker only) before upgrading to 8.0.0.

`kibana.yml` currently contains `xpack.maps.enabled: false` If I remove this, as the Upgrade Assistant is telling me to, then Kibana will not start up. Errors in Kibana log:

```auto

[2022-11-17T14:11:39.890+00:00][ERROR][savedobjects-service] [.kibana] Unexpected Elasticsearch ResponseError: statusCode: 500, method: PUT, url: /.kibana/_mapping?timeout=60s error: [mapper_exception]: the [enabled] parameter can't be updated for the object mapping [maps-telemetry],
[2022-11-17T14:11:39.910+00:00][FATAL][root] Error: Unable to complete saved object migrations for the [.kibana] index. Please check the health of your Elasticsearch cluster and try again. Unexpected Elasticsearch ResponseError: statusCode: 500, method: PUT, url: /.kibana_7.17.1_001/_mapping?timeout=60s error: [mapper_exception]: the [enabled] parameter can't be updated for the object mapping [maps-telemetry],
    at migrationStateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrationsv2/migrations_state_action_machine.js:164:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
    at SavedObjectsService.start (/usr/share/kibana/src/core/server/saved_objects/saved_objects_service.js:181:9)
    at Server.start (/usr/share/kibana/src/core/server/server.js:330:31)
    at Root.start (/usr/share/kibana/src/core/server/root/index.js:69:14)
    at bootstrap (/usr/share/kibana/src/core/server/bootstrap.js:120:5)
    at Command.<anonymous> (/usr/share/kibana/src/cli/serve/serve.js:229:5)
[2022-11-17T14:12:41.742+00:00][ERROR][savedobjects-service] [.kibana] Unexpected Elasticsearch ResponseError: statusCode: 500, method: PUT, url: /.kibana_7.17.1_001/_mapping?timeout=60s error: [mapper_exception]: the [enabled] parameter can't be updated for the object mapping [maps-telemetry],
[2022-11-17T14:12:41.775+00:00][FATAL][root] Error: Unable to complete saved object migrations for the [.kibana] index. Please check the health of your Elasticsearch cluster and try again. Unexpected Elasticsearch ResponseError: statusCode: 500, method: PUT, url: /.kibana_7.17.1_001/_mapping?timeout=60s error: [mapper_exception]: the [enabled] parameter can't be updated for the object mapping [maps-telemetry]

```

Elasticsearch log

```auto
[2022-11-17T14:12:41,735][WARN][r.suppressed] [kibana_foo] path: /.kibana-_7.17.1_001/_mapping, params: {index=.kibana_7.17.1_001, timeout=60s}
org.elasticsearch.transport.RemoteTransportException: [master_bar][10.70.13.146:9300][indices:admin/mapping/put]
Caused by: org.elasticsearch.index.mapper.MapperException: the [enabled] parameter can't be updated for the object mapping [maps-telemetry]

```

The `maps-telemetry` mapping in the index in question:

```auto
$ curl -s "https://$(hostname):9200/.kibana_7.17.1_001/_mapping?pretty" | jq '.[".kibana_7.17.1_001"].mappings.properties."maps-telemetry"' 
{
  "type": "object",
  "dynamic": "false"
}
$

```

The Elasticsearch cluster health, as queried from the Kibana node, is Green.

Can someone explain what's going wrong and how I can do what the Upgrade Assistant says should be done and still have working Kibana afterwards?

Also, what does/did `xpack.maps.enabled` do? I can't find a description of it in documentation (even for Kibana 6).

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 17, 2022, 4:50pm UTC](https://discuss.elastic.co/t/removing-xpack-maps-enabled-as-advised-breaks-kibana/319222/2 "2022-11-17T16:50:56Z")

</div>

Did you remove it, upgraded your cluster and are you getting this error?

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://discuss.elastic.co/u/mikewillis)\
**Post date:** [November 17, 2022, 5:18pm UTC](https://discuss.elastic.co/t/removing-xpack-maps-enabled-as-advised-breaks-kibana/319222/3 "2022-11-17T17:18:12Z")

</div>

I haven't upgraded the cluster, I've just tried removing the setting. I am not planning to upgrade the cluster any time soon, I'm just slowly going through the Critical issues the Upgrade Assistant says need to be resolved before the upgrade is done.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 15, 2022, 5:18pm UTC](https://discuss.elastic.co/t/removing-xpack-maps-enabled-as-advised-breaks-kibana/319222/4 "2022-12-15T17:18:34Z")

</div>

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