Get a "illegal_argument_exception" error after upgrade

Hi, everyone.

I'm trying to upgrade ES from 5.4.0 to 6.8.0.

According to official documents, I execute this method after upgrade:

curl -XPUT -H "Content-Type:application/json" 172.16.1.133:9200/_cluster/settings -d'
{
"persistent": {
"cluster.routing.allocation.enable": null
}
}
'

And I got error:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [archived.xpack.security.transport.filter.deny] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"}],"type":"illegal_argument_exception","reason":"unknown setting [archived.xpack.security.transport.filter.deny] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"},"status":400}

How can I solve this problem?

Thanks and regards!

Somewhere along the way, Elasticsearch has failed to recognise your xpack.security.transport.filter.deny setting and has archived it. You must remove any archived settings before you can set any other settings. I think this is a valid setting, as long as you are not using an unusual distribution. Can you share the output of curl http://172.16.1.133:9200/?

To remove an archived setting, set it to null:

curl -XPUT -H "Content-Type:application/json" http://172.16.1.133:9200/_cluster/settings -d'
{
  "persistent": {
    "archived.xpack.security.transport.filter.deny": null
  }
}'

it works!
Tnanks and best regards!

1 Like

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