ES flaied to start after plugin installed

Hi,

Installed elasticsearch and kibana opensource (version 6.0.0), working fine and then I have downloaded and installed readonlyrest-1.16.14_es6.0.0.zip plugin and created readonlyrest.yml @ /etc/elasticsearch where elasticsearch.yml present. but when I firsty start ES , log dislpay fileNotFound in “/usr/share/elasticsearch/config/readonlyrest.yml” ,So I copy one to this location(/usr/share/elasticsearch/config/readonlyrest.yml).
What I install plugin as follows :slight_smile:
1、 ./elasticsearch-plugin install file:///tmp/readonlyrest-1.16.14_es6.0.0.zip
2、vim /etc/elasticsearch/readonlyrest.yml,
readonlyrest:
enable: true

access_control_rules:

  • name: “Require HTTP Basic Auth”
    type: “allow”
    auth_key: “user:password”
    3、make sure “xpack.security.enabled: false”
    4、restart Elasticsearch

when I start elasticsearch, I am getting the following error:

    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85)
  1. Error injecting constructor, tech.beshu.ror.commons.settings.SettingsMalformedException: Could not find required attribute ‘readonlyrest’
    at tech.beshu.ror.es.SettingsObservableImpl.(Unknown Source)
    while locating tech.beshu.ror.es.SettingsObservableImpl
    for parameter 5 at tech.beshu.ror.es.IndexLevelActionFilter.(Unknown Source)
    while locating tech.beshu.ror.es.IndexLevelActionFilter
    while locating org.elasticsearch.action.support.ActionFilter annotated with @org.elasticsearch.common.inject.multibindings.Element(setName=,uniqueId=7)
    at unknown
    while locating java.util.Set<org.elasticsearch.action.support.ActionFilter>
    for parameter 0 at org.elasticsearch.action.support.ActionFilters.(Unknown Source)
    while locating org.elasticsearch.action.support.ActionFilters
    for parameter 5 at org.elasticsearch.action.admin.cluster.node.info.TransportNodesInfoAction.(Unknown Source)
    while locating org.elasticsearch.action.admin.cluster.node.info.TransportNodesInfoAction
    Caused by: tech.beshu.ror.commons.settings.SettingsMalformedException: Could not find required attribute ‘readonlyrest’
    at tech.beshu.ror.commons.settings.RawSettings.req(RawSettings.java:84)

ROR 1.16.14 is very old version. Maybe you can try the newest available?

Maybe u r right. I have download the latest version match es6.0.0,and it works,thx.