Hello, I have elasticsearch 1.5.2 and I was trying to install elasticsearch-readonlyrest-v1.3_es-v1.5.2
During start elasticsearch service I receive:
[2016-01-28 15:51:07,102][ERROR][bootstrap ] Exception
org.elasticsearch.common.inject.CreationException: Guice creation errors:
- Error injecting constructor, java.lang.NoSuchMethodError: org.elasticsearch.rest.BaseRestHandler.(Lorg/elasticsearch/common/settings/Settings;Lorg/elasticsearch/client/Client;)V
at org.elasticsearch.rest.action.readonlyrest.ReadonlyRestAction.(Unknown Source)
while locating org.elasticsearch.rest.action.readonlyrest.ReadonlyRestAction
1 error
at org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:344)
at org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:178)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:110)
I've tried with java 1.7.76, 1.8.05, 1.8.45 and 1.8.72 - still the same error
Due to the lack of positive results I decided to try version for ES 1.6 - elasticsearch-readonlyrest-v1.4_es-v1.6.0
For a short moment I though that it finally works but in few minutes I relized that it works only for IP but not for subnets. Config is correct because I've tried exactly the same configuration with my test machine with ES 2.1 (java 1.8.51) and on it everything works fine! But I can't upgrade ES on production environment, it must be 1.5.2
In attachments you can see my config in elasticsearch.yml and part of ES log where I can see that ACL config is correctly interpreted. With this config on host 172.18.0.1 I receive 'Sorry, your request is forbidden' but when I change in config [172.18.0.0/24] to [172.18.0.1] then access is possible. As I mentioned - It doesn't work when I try to make configuration for subnets.
How can I force readonlyrest v1.4_es_1.6.0 to work with subnets configuration?
Or maybe there is a way to run elasticsearch-readonlyrest-v1.3_es-v1.5.2 ?
Attachments:
elasticsearch.yml works for ES 2.1 + elasticsearch-readonlyrest-v1.5_es-v2.1.1.zip and works without subnets support for ES 1.5.2 + elasticsearch-readonlyrest-v1.4_es-v1.6.0
elasticsearch.log - it is a start sequence for ES 1.5.2 with readonlyrest v1.4_es_1.6.0
elasticsearch.log.txt
elasticsearch.yml.txt