Readonlyrest.yml file is not being created

Hi

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.

root@taiga:/usr/share/elasticsearch# ./bin/elasticsearch-plugin install file:///home/alexa/readonlyrest-1.16.18_es6.2.1.zip
→ Downloading file:///home/alexa/readonlyrest-1.16.18_es6.2.1.zip
[=================================================] 100%??
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

  • java.io.FilePermission << ALL FILES >> read
  • java.lang.RuntimePermission accessDeclaredMembers
  • java.lang.RuntimePermission getClassLoader
  • java.lang.reflect.ReflectPermission suppressAccessChecks
  • java.net.SocketPermission * connect,accept,resolve
  • java.security.SecurityPermission getProperty.ssl.KeyManagerFactory.algorithm
  • java.util.PropertyPermission * read,write
    See Permissions in the JDK
    for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y
→ Installed readonlyrest
root@taiga:/usr/share/elasticsearch#
root@taiga:/usr/share/elasticsearch#
root@taiga:/usr/share/elasticsearch#
root@taiga:/usr/share/elasticsearch#
root@taiga:/usr/share/elasticsearch#
root@taiga:/usr/share/elasticsearch# cd /etc/elasticsearch
root@taiga:/etc/elasticsearch# ls
elasticsearch.keystore elasticsearch.yml ingest-geoip jvm.options log4j2.properties
root@taiga:/etc/elasticsearch# find / -name ‘readonlyrest.yml’
root@taiga:/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?

Alexa

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.