Readonlyrest.yml file is not being created

(Alexandra) #1


I am trying to get ReadonlyREST installed and configured on a previoulsy working elasticsearch stack (version 6.2.1) using ReadonlyREST 1.16.18

I have installed it twice now and yet it does not create a readonlyrest.yml file at all.

[email protected]:/usr/share/elasticsearch# ./bin/elasticsearch-plugin install file:///home/alexa/
-> Downloading file:///home/alexa/
[=================================================] 100%??
@ WARNING: plugin requires additional permissions @

  • << ALL FILES >> read
  • java.lang.RuntimePermission accessDeclaredMembers
  • java.lang.RuntimePermission getClassLoader
  • java.lang.reflect.ReflectPermission suppressAccessChecks
  • * connect,accept,resolve
  • getProperty.ssl.KeyManagerFactory.algorithm
  • java.util.PropertyPermission * read,write
    for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y
-> Installed readonlyrest
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch# cd /etc/elasticsearch
[email protected]:/etc/elasticsearch# ls
elasticsearch.keystore elasticsearch.yml ingest-geoip jvm.options
[email protected]:/etc/elasticsearch# find / -name 'readonlyrest.yml’
[email protected]:/etc/elasticsearch#

I am installing this as root, yes I can see a generic warning about requiring addition permission on java plugins without any indication as to what permissions are required or even as to whether or not this is why any given config file has not been created.

Is anybody able to assist please?


(Simone Scarduzio) #2

Hi @alexa, welcome to ReadonlyREST Forum!

Yeah, it’s not supposed to be created automatically. Just create it yourself right beside elasticsearch.yml in the same directory, wherever it is in your environment.