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

**URL:** <https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002>\
**Category:** Elasticsearch\
**Created:** [March 21, 2018, 2:23pm UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002 "2018-03-21T14:23:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![KKB](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@KKB](https://discuss.elastic.co/u/KKB)\
**Post date:** [March 21, 2018, 2:23pm UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/1 "2018-03-21T14:23:24Z")

</div>

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 text** root@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](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'.

---

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [March 22, 2018, 8:54am UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/2 "2018-03-22T08:54:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![KKB](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@KKB](https://discuss.elastic.co/u/KKB)\
**Post date:** [March 23, 2018, 10:33am UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/3 "2018-03-23T10:33:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [March 26, 2018, 1:44pm UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/4 "2018-03-26T13:44:54Z")

</div>

> [@KKB](#):
>
> /var/log/elasticsearch/.log

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

```
ls /var/log/elasticsearch/

```

---

<div class="post-metadata">

**Author:** ![KKB](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@KKB](https://discuss.elastic.co/u/KKB)\
**Post date:** [March 28, 2018, 7:35am UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/5 "2018-03-28T07:35:12Z")

</div>

Hi,

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

 ![Elasticsearch](https://us1.discourse-cdn.com/elastic/original/3X/7/9/79b8e5b08fde790eb7df5571fcd9234901789d37.PNG)

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.

---

<div class="post-metadata">

**Author:** ![KKB](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@KKB](https://discuss.elastic.co/u/KKB)\
**Post date:** [March 28, 2018, 2:41pm UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/6 "2018-03-28T14:41:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 28, 2018, 2:59pm UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/7 "2018-03-28T14:59:39Z")

</div>

Your `JAVA_HOME` is probably incorrectly set. Check it.

---

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [April 4, 2018, 2:04pm UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/8 "2018-04-04T14:04:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [April 4, 2018, 2:07pm UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/9 "2018-04-04T14:07:14Z")

</div>

> [@KKB](#):
>
> Exception in thread "main" java.lang.UnsupportedClassVersionError: org/elasticsearch/bootstrap/Elasticsearch : Unsupported major.minor version 52.0

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

```
java -version

```

Xavier

---

<div class="post-metadata">

**Author:** ![KKB](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@KKB](https://discuss.elastic.co/u/KKB)\
**Post date:** [April 4, 2018, 2:07pm UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/10 "2018-04-04T14:07:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 2, 2018, 2:07pm UTC](https://discuss.elastic.co/t/i-am-installing-the-new-es-and-i-keep-receiving-these-errors-on-start-main-error-null-object-returned-for-rollingfile-in-appenders/125002/11 "2018-05-02T14:07:38Z")

</div>

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