# Issue while upgrading elasticsearch from 7.17.3 to 8.5.1

**URL:** <https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [October 3, 2024, 6:18pm UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214 "2024-10-03T18:18:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![VR29](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VR29](https://discuss.elastic.co/u/VR29)\
**Post date:** [October 3, 2024, 6:18pm UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/1 "2024-10-03T18:18:38Z")

</div>

I'm trying to upgrade elasticsearch from 7.17.3 to 8.5.1, but it is throwing an error: "error.type":"java.lang.IllegalArgumentException".

This is my yaml:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/b/db8ea872ca3b2b0ce0548e0d9480f06771959dc3.png)

Full Error:  
{"@timestamp":"2024-09-27T04:37:48.833Z", "log.level":"ERROR", "message":"fatal exception while booting Elasticsearch", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"elasticsearch-master-2","elasticsearch.cluster.name":"elasticsearch","error.type":"java.lang.IllegalArgumentException","error.message":"unknown setting [node.data] please check that any required plugins are installed, or check the breaking changes documentation for removed settings","error.stack\_trace":"java.lang.IllegalArgumentException: unknown setting [node.data] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:561)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:507)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:477)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:447)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:151)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:56)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.node.Node.(Node.java:468)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.node.Node.(Node.java:318)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.bootstrap.Elasticsearch$2.(Elasticsearch.java:214)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:214)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67)\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.remote\_cluster\_client] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.ingest] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.master] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.ml] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n"}

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [October 3, 2024, 8:26pm UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/2 "2024-10-03T20:26:12Z")

</div>

That's odd. Are you sure that some node doesn't have a yaml that has that `node.data` setting in it? The upgrade assistant didn't report any problems with it?

---

<div class="post-metadata">

**Author:** ![VR29](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VR29](https://discuss.elastic.co/u/VR29)\
**Post date:** [October 4, 2024, 4:02am UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/3 "2024-10-04T04:02:06Z")

</div>

`node.data` and `node.master` aren't settings any more. I have seen [these docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#node-roles) for more information.  
So, I have added node.roles: [master, data].  
It could be great, if you looked into it and provide some solution, as this is effecting our production servers.

---

<div class="post-metadata">

**Author:** ![VR29](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VR29](https://discuss.elastic.co/u/VR29)\
**Post date:** [October 9, 2024, 4:53pm UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/4 "2024-10-09T16:53:13Z")

</div>

Any information on this?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 9, 2024, 5:13pm UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/5 "2024-10-09T17:13:53Z")

</div>

You pointed out that you made a change to fix the error and have not posted any further errors, so I am not sure what you need information about. Did the change you made fix the issue? If not, what errors are you seeing now?

---

<div class="post-metadata">

**Author:** ![VR29](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VR29](https://discuss.elastic.co/u/VR29)\
**Post date:** [October 9, 2024, 7:10pm UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/6 "2024-10-09T19:10:07Z")

</div>

I'm sorry for the miscommunication. The change I made did not fix it.  
I'm still seeing the same error.  
{"@timestamp":"2024-09-27T04:37:48.833Z", "log.level":"ERROR", "message":"fatal exception while booting Elasticsearch", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"elasticsearch-master-2","elasticsearch.cluster.name":"elasticsearch","error.type":"java.lang.IllegalArgumentException","error.message":"unknown setting [node.data] please check that any required plugins are installed, or check the breaking changes documentation for removed settings","error.stack\_trace":"java.lang.IllegalArgumentException: unknown setting [node.data] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:561)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:507)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:477)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:447)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:151)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:56)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.node.Node.(Node.java:468)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.node.Node.(Node.java:318)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.bootstrap.Elasticsearch$2.(Elasticsearch.java:214)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:214)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67)\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.remote\_cluster\_client] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.ingest] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.master] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.ml] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n"}

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 9, 2024, 7:17pm UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/7 "2024-10-09T19:17:52Z")

</div>

Please show you config. It looks like you still have the incorrect setting in there.

---

<div class="post-metadata">

**Author:** ![VR29](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VR29](https://discuss.elastic.co/u/VR29)\
**Post date:** [October 11, 2024, 4:21am UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/8 "2024-10-11T04:21:46Z")

</div>

If you are asking for elasticsearch config, it is already pasted above. If you are asking for any other config, please describe.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 11, 2024, 4:34am UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/9 "2024-10-11T04:34:34Z")

</div>

You should be fine with the default role settings so I would recommend that you try removing `node.roles` completely. Also note that it is recommended to set the heap to 50% of available RAM. The latest versions of Elsticsearch do this by default, so I would also recommend not explicitly setting the heap size.

---

<div class="post-metadata">

**Author:** ![VR29](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VR29](https://discuss.elastic.co/u/VR29)\
**Post date:** [October 11, 2024, 4:55am UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/10 "2024-10-11T04:55:51Z")

</div>

This is my new config

```auto
elasticsearch:
  image: "docker.elastic.co/elasticsearch/elasticsearch"
  imageTag: "8.5.1"
  imagePullPolicy: "IfNotPresent"
# Recommended heap size for elastic search is 50% of the available size
  esJavaOpts: "-Xmx128m -Xms128m"
  resources:
    requests:
      cpu: "200m"
      memory: "2Gi"
    limits:
      memory: "2Gi"

```

Even after making the changes you suggested, it still throwing the same error.  
{"@timestamp":"2024-10-11T04:53:02.091Z", "log.level":"ERROR", "message":"fatal exception while booting Elasticsearch", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"elasticsearch-master-2","elasticsearch.cluster.name":"elasticsearch","error.type":"java.lang.IllegalArgumentException","error.message":"unknown setting [node.ml] please check that any required plugins are installed, or check the breaking changes documentation for removed settings","error.stack\_trace":"java.lang.IllegalArgumentException: unknown setting [node.ml] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:561)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:507)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:477)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:447)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:151)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:56)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.node.Node.(Node.java:468)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.node.Node.(Node.java:318)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.bootstrap.Elasticsearch$2.(Elasticsearch.java:214)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:214)\n\tat org.elasticsearch.server@8.5.1/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67)\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.master] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.ingest] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.remote\_cluster\_client] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n\tSuppressed: java.lang.IllegalArgumentException: unknown setting [node.data] please check that any required plugins are installed, or check the breaking changes documentation for removed settings\n\t\t... 11 more\n"}

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [October 11, 2024, 7:07pm UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/11 "2024-10-11T19:07:01Z")

</div>

Somewhere you have several unsupported properties: `node.data`, `node.remote_cluster_client`, `node.ingest`, `node.master`, and `node.ml`. Is i possible that you have a node that is connecting to the cluster that you're not aware of (although it looks like this is coming from `elasticsearch-master-2` -- is that the node whose configuration you shared)?  
Can you restore your 7.17.3 cluster from snapshots, and then run the upgrade assistant? If that doesn't warn you about anything, a last resort might be to run the [get cluster state API](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/cluster-state.html) to see where that setting is coming from.

---

<div class="post-metadata">

**Author:** ![VR29](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VR29](https://discuss.elastic.co/u/VR29)\
**Post date:** [October 15, 2024, 4:06am UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/12 "2024-10-15T04:06:20Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9d8a9559c69485aa9be12e3e4ad03a37f4599162.png)

1. The node.roles are present by default.
2. As per the logs, it is not connecting to any container where different configurations are there. Let me know if I have to check this anywhere else.
3. Since, it is docker elastic container, we do not have an option to upgrade from the UI.

---

<div class="post-metadata">

**Author:** ![VR29](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VR29](https://discuss.elastic.co/u/VR29)\
**Post date:** [October 22, 2024, 4:32am UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/13 "2024-10-22T04:32:57Z")

</div>

Any updates on this, since there are no comments from past 6 days. @Keith_Massey

---

<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:** [October 22, 2024, 12:54pm UTC](https://discuss.elastic.co/t/issue-while-upgrading-elasticsearch-from-7-17-3-to-8-5-1/368214/14 "2024-10-22T12:54:32Z")

</div>

Hello,

It is not sure where the configuration you shared in the previous post is from as you didn't provide any context.

But for version 8 you cannot have `node.data`, `node.ingest`, `node.master` etc settings, you need to use `node.roles: [data, ingest, master, etc]` instead.

You need to change the settings you are using whatever they are.
