Cannot run bin/elasticsearch

 bin/elasticsearch
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.apache.logging.log4j.core.config.AbstractConfiguration.getLoggerContext()" because the return value of "java.util.List.get(int)" is null
        at org.apache.logging.log4j.core.config.composite.CompositeConfiguration.<init>(CompositeConfiguration.java:64)
        at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:222)
        at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:118)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:313)
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166)
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157)
        at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:81)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
        at org.elasticsearch.cli.Command.main(Command.java:77)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
For complete error details, refer to the log at /var/log/elasticsearch/elasticsearch.log

I'm trying run bin/Elasticsearch and that is what i got. Elasticsearch.service is runing.
Can some1 help solve this problem?

Is this a stock Elasticsearch or did you change your configuration/setup, i.e. the logging configuration? If so, can you try to revert that change and see if it works?

Thanks for replaying. I solved my problem by rebooting debian server and reinstalling Elasticsearch.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.