Cannot get source of document [.readonlyrest ID=1] ROR ES

I get this error even though I have the readonlyrest.yml file in the elasticsearch config folder. Using ROR 1.35.0 free and ES 7.11.1.

After this error I get a ClusterBlockException, which may or may not be related.

Thanks for any ideas on this.

Hello Jim, thanks for reaching out.

The elasticsearch plugin always tries to fetch that document while looking for cluster wide settings before loading the settings from yaml file.

In the kibana plugin manual page we describe the algorithm.