I am installing the new ES and i keep receiving these errors on start. main ERROR Null object returned for RollingFile in Appenders

Hi, I am installing the new ES and i keep receiving these errors on start.
main ERROR Null object returned for RollingFile in Appenders.

I trouble shoot by all the recommendation which had posted in forums relates to this error still i am not able to resolve this issue.

strong textroot@ubuntu:/etc/init.d# systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-03-21 12:24:07 PDT; 5min ago
Docs: http://www.elastic.co
Process: 4836 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 4836 (code=exited, status=1/FAILURE)

Mar 21 12:24:07 ubuntu elasticsearch[4836]: 2018-03-21 12:24:06,712 main ERROR Null object returned for RollingFile in Appenders.
Mar 21 12:24:07 ubuntu elasticsearch[4836]: 2018-03-21 12:24:06,712 main ERROR Null object returned for RollingFile in Appenders.
Mar 21 12:24:07 ubuntu elasticsearch[4836]: 2018-03-21 12:24:06,713 main ERROR Null object returned for RollingFile in Appenders.
Mar 21 12:24:07 ubuntu elasticsearch[4836]: 2018-03-21 12:24:06,713 main ERROR Unable to locate appender "rolling" for logger config "root"
Mar 21 12:24:07 ubuntu elasticsearch[4836]: 2018-03-21 12:24:06,713 main ERROR Unable to locate appender "index_indexing_slowlog_rolling" for l
Mar 21 12:24:07 ubuntu elasticsearch[4836]: 2018-03-21 12:24:06,714 main ERROR Unable to locate appender "index_search_slowlog_rolling" for log
Mar 21 12:24:07 ubuntu elasticsearch[4836]: 2018-03-21 12:24:06,715 main ERROR Unable to locate appender "deprecation_rolling" for logger confi
Mar 21 12:24:07 ubuntu systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Mar 21 12:24:07 ubuntu systemd[1]: elasticsearch.service: Unit entered failed state.
Mar 21 12:24:07 ubuntu systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

Hi,

Can you give:
OS and ES version ?

Can you past the result of:

more /var/log/elasticsearch/<clustername>.log

There is probably more informations in the full log.

Xavier

Hi,

OS and ES version ?

OS: Ubuntu 16.04

ES Version :6.0.1

I didn't find any logs for elasticsearch in this location --/var/log/elasticsearch/.log

Regards,

KB.

There no log in the directory : /var/log/elasticsearch/

ls /var/log/elasticsearch/

Hi,

I don't see any logs which are generated /var/log/elasticsearch.
please see the details in screen short.

Could you please let me know the process how to install elastic search in Suse linux / redhat linux i tried but I couldn't get the procedure.

Regards,
Bhavani.

Hello xavierfacq,

I tried installation on Linux machine where i got the below java error .
Bhavani/elasticsearch-5.0.2 #./bin/elasticsearch

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/elasticsearch/bootstrap/Elasticsearch : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482

java version is: java version "1.8.0_131"
Can you please help me to resolve this case.

Regards,
Bhavani.

Your JAVA_HOME is probably incorrectly set. Check it.

hi,

It is pretty strange that there is no log into the directory when you start the service...
Without the full trace, it will be easier to find a solution.

Xavier

are you certain that this version is used to start elasticsearch ? Try :

java -version

Xavier

I set the path correctly, I installed the ELK on windows.
thank you.

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