H
H
HaruAtari2015-11-13 11:28:18
Java
HaruAtari, 2015-11-13 11:28:18

Elastic throws an error when accessing plugins?

I installed elasticsearch 1.7.3 on debian jessie. It uses the default config files ( /etc/default/elasticsearchdidn't change anything either) and it works fine. But when accessing, an sudo /usr/share/elasticsearch/bin/pluginerror occurs:

Exception in thread "main" org.elasticsearch.env.FailedToResolveConfigException: Failed to resolve config path ["/usr/share/elasticsearch/config/elasticsearch.yml"], tried file path ["/usr/share/elasticsearch/config/elasticsearch.yml"], path file ["/usr/share/elasticsearch/config"/"/usr/share/elasticsearch/config/elasticsearch.yml"], and classpath
        at org.elasticsearch.env.Environment.resolveConfig(Environment.java:291)
        at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:95)
        at org.elasticsearch.plugins.PluginManager.main(PluginManager.java:396)

In this case, the file /usr/share/elasticsearch/config/elasticsearch.ymlexists and normally opens through nano.
No messages appear in elastic logs.
Tell me what could be the problem?
PS Today I discovered that if you delete the config file, then the call to bin/plugin no longer fails with an error. But at the same time, he writes to any command that it is unknown, and naturally the elastic itself does not start. It seems that it cannot parse the config file. But at the same time, if you leave the file empty (everything is commented there anyway), the error does not disappear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osin, 2015-11-13
@Telsir

The user under which the elastic is launched has the rights to the file!?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question