Skip to content

Could not find required attribute 'readonlyrest' in file #41622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Happyfeet01 opened this issue Apr 28, 2019 · 0 comments
Closed

Could not find required attribute 'readonlyrest' in file #41622

Happyfeet01 opened this issue Apr 28, 2019 · 0 comments

Comments

@Happyfeet01
Copy link

Elasticsearch version (bin/elasticsearch --version):
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Version: 7.0.0, Build: default/deb/b7e28a7/2019-04-05T22:55:32.697037Z, JVM: 12

Plugins installed: []
readonlyrest-7.0.0
ingest-attachment

JVM version (java -version):
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
OS version (uname -a if on a Unix-like system):
linux 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:

when i add an readonlyrest file with content, i get this error and Elasticsearch won´t start.

Steps to reproduce:

Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

  1. sudo apt-get install openjdk-8-jre
    
  2. curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0.deb
    
  3. sudo dpkg -i elasticsearch-7.0.0.deb
    
  4. sudo /etc/init.d/elasticsearch start
    
  5. cd /usr/share/elasticsearch
    
  6. bin/elasticsearch-plugin install file:///<download_path>/readonlyrest-7.0.0.zip
  7. vim /etc/elasticsearch/readonlyrest.yml
    with this Content:
    `readonlyrest:
    access_control_rules:

name: Accept requests from cloud1 on my_index
groups: [„cloud1“]
indices: [„my_index“]

users:

username: netzcloud
auth_key: netzcloud:aer/ie1Quoo1
groups: [„cloud1“]`

  1. service elasticsearch restart (then is starts but shutdown directly with this error)
    Without the readonlyrest file it works. But it need this Setup.
    Provide logs (if relevant):

Elasticsearch logfile:

elasticsearch[7495]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". elasticsearch[7495]: SLF4J: Defaulting to no-operation (NOP) logger implementation elasticsearch[7495]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. elasticsearch[7495]: tech.beshu.ror.settings.SettingsMalformedException: Could not find required attribute 'readonlyrest' in file pidfile:/var/run/elasticsearch/elasticsearch.pid,client:{type=node},cluster:{name=elasticsearch},node:{name=domain.tld},path:{data=[/var/lib/elasticsearch], logs=/var/log/elasticsearch, home=/usr/share/elasticsearch},network:{host=127.0.0.1}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant