I’ve managed to lock myself out. I think that I’ve saved a bad configuration in the clusterwide settings. In the logs, I see this.
[2017-10-05T18:34:24,824][INFO ][o.e.p.r.e.ReloadableSettingsImpl] [CLUSTERWIDE SETTINGS] good settings found in index, overriding elasticsearch.yml
Which tells me that my elasticsearch.yml file is being overwritten.
I’m hoping that there is a way to backout or reset the changes in the index.
Hi @mching,
Oh snap! This is pretty common. Fortunately the solution is very simple. Just delete the .readonlyrest index.
For example, you could log in into the ElasticSearch node and run this curl command. This assumes you have at least one set of credentials that work (in this example user:kibana, password:kibana).
curl -XDELETE -k -ukibana:kibana https://localhost:900/.readonlyrest
```
If you **completely** locked yourself out, edit your `elasticsearch.yml` and disable ReadonlyREST:
readonlyrest:
enable: false
Now **restart** the ES node, and use the curl command above.
Uninstalling the plugin across the cluster, starting the cluster, deleting the index (using your curl command), and re-installing the plugin did get me access to the cluster again.