# Elasticsearch 7.1 failed to start

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-1-failed-to-start/187586>\
**Category:** Elasticsearch\
**Created:** [June 26, 2019, 1:58pm UTC](https://discuss.elastic.co/t/elasticsearch-7-1-failed-to-start/187586 "2019-06-26T13:58:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skdasari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skdasari/32/50452_2.png) [@skdasari](https://discuss.elastic.co/u/skdasari)\
**Post date:** [June 26, 2019, 1:58pm UTC](https://discuss.elastic.co/t/elasticsearch-7-1-failed-to-start/187586/1 "2019-06-26T13:58:48Z")

</div>

Hello Guys,

I am trying to configure Elasticsearch 7.1 in one of our test VM's. I have created a repo file and installed the package through yum in centos 7. After installing I tried setting up the yml file in the /etc/elasticsearch/elasticsearch.yml with my localmachine IP address and port 9200.

After doing when I try to start it from systemctl start elasticsearch. It excecuted without any errors. When I tried to see systemctl status elasticsearch. I have received a failed error. Please find the log below.  
note: I have installed JDK 12 for this. I don't have any previous versions of Java installed in that machine.

I can't seem to find out the elasticsearch executable in bin or sbin. Can you guys please help me out with this .

Much much thanks in advance. Please let me know if you need more info  
Error Log

 ![snapshot](https://us1.discourse-cdn.com/elastic/original/3X/b/f/bff408de4dc8d753218ccb58d58d1a07f3cfce45.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/2/a25f8201bc80d0aa4850ec530e0d64d96f2d7476.png)

Please refer to the snap shot above.

Log in text format:

## -- The start-up result is done. Jun 26 19:10:01 elk.server CROND[22840]: (root) CMD (/usr/lib64/sa/sa1 1 1) Jun 26 19:10:43 elk.server kernel: type=1400 audit(1561556443.032:226): avc: denied { dac\_override } for pid=22881 comm="pgrep" capability=1 scontext=system\_u:syste Jun 26 19:10:43 elk.server kernel: type=1400 audit(1561556443.032:227): avc: denied { dac\_read\_search } for pid=22881 comm="pgrep" capability=2 scontext=system\_u:sy Jun 26 19:10:43 elk.server kernel: type=1400 audit(1561556443.032:228): avc: denied { dac\_override } for pid=22881 comm="pgrep" capability=1 scontext=system\_u:syste Jun 26 19:10:43 elk.server kernel: type=1400 audit(1561556443.032:229): avc: denied { dac\_read\_search } for pid=22881 comm="pgrep" capability=2 scontext=system\_u:sy Jun 26 19:11:43 elk.server kernel: type=1400 audit(1561556503.073:230): avc: denied { dac\_override } for pid=22937 comm="pgrep" capability=1 scontext=system\_u:syste Jun 26 19:11:43 elk.server kernel: type=1400 audit(1561556503.073:231): avc: denied { dac\_read\_search } for pid=22937 comm="pgrep" capability=2 scontext=system\_u:sy Jun 26 19:11:43 elk.server kernel: type=1400 audit(1561556503.073:232): avc: denied { dac\_override } for pid=22937 comm="pgrep" capability=1 scontext=system\_u:syste Jun 26 19:11:43 elk.server kernel: type=1400 audit(1561556503.073:233): avc: denied { dac\_read\_search } for pid=22937 comm="pgrep" capability=2 scontext=system\_u:sy Jun 26 19:12:43 elk.server kernel: type=1400 audit(1561556563.129:234): avc: denied { dac\_override } for pid=22992 comm="pgrep" capability=1 scontext=system\_u:syste Jun 26 19:12:43 elk.server kernel: type=1400 audit(1561556563.129:235): avc: denied { dac\_read\_search } for pid=22992 comm="pgrep" capability=2 scontext=system\_u:sy Jun 26 19:12:43 elk.server kernel: type=1400 audit(1561556563.129:236): avc: denied { dac\_override } for pid=22992 comm="pgrep" capability=1 scontext=system\_u:syste Jun 26 19:12:43 elk.server kernel: type=1400 audit(1561556563.129:237): avc: denied { dac\_read\_search } for pid=22992 comm="pgrep" capability=2 scontext=system\_u:sy Jun 26 19:13:18 elk.server sudo[23025]: oracle : TTY=pts/1 ; PWD=/home/oracle ; USER=root ; COMMAND=/bin/systemctl start elasticsearch Jun 26 19:13:18 elk.server sudo[23025]: pam\_unix(sudo:session): session opened for user root by oracle(uid=0) Jun 26 19:13:18 elk.server polkitd[9863]: Registered Authentication Agent for unix-process:23027:225814 (system bus name :1.64 [/usr/bin/pkttyagent --notify-fd 5 --fall Jun 26 19:13:18 elk.server systemd[1]: Started Elasticsearch. -- Subject: Unit elasticsearch.service has finished start-up -- Defined-By: systemd -- Support: [http://lists.freedesktop.org/mailman/listinfo/systemd-devel](http://lists.freedesktop.org/mailman/listinfo/systemd-devel)

## -- Unit elasticsearch.service has finished starting up.

-- The start-up result is done.  
Jun 26 19:13:19 elk.server polkitd[9863]: Unregistered Authentication Agent for unix-process:23027:225814 (system bus name :1.64, object path /org/freedesktop/PolicyKit  
Jun 26 19:13:19 elk.server sudo[23025]: pam\_unix(sudo:session): session closed for user root  
Jun 26 19:13:20 elk.server elasticsearch[23033]: /usr/share/elasticsearch/bin/elasticsearch-env: line 73: /etc/sysconfig/elasticsearch: Permission denied  
Jun 26 19:13:20 elk.server systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE  
Jun 26 19:13:20 elk.server systemd[1]: Unit elasticsearch.service entered failed state.  
Jun 26 19:13:20 elk.server systemd[1]: elasticsearch.service failed.  
Jun 26 19:13:28 elk.server sudo[23070]: oracle : TTY=pts/1 ; PWD=/home/oracle ; USER=root ; COMMAND=/bin/systemctl status elasticsearch  
Jun 26 19:13:28 elk.server sudo[23070]: pam\_unix(sudo:session): session opened for user root by oracle(uid=0)  
Jun 26 19:13:28 elk.server sudo[23070]: pam\_unix(sudo:session): session closed for user root  
Jun 26 19:13:34 elk.server sudo[23078]: oracle : TTY=pts/1 ; PWD=/home/oracle ; USER=root ; COMMAND=/bin/systemctl status elasticsearch -l  
Jun 26 19:13:34 elk.server sudo[23078]: pam\_unix(sudo:session): session opened for user root by oracle(uid=0)  
Jun 26 19:13:34 elk.server sudo[23078]: pam\_unix(sudo:session): session closed for user root  
Jun 26 19:13:43 elk.server kernel: type=1400 audit(1561556623.166:238): avc: denied { dac\_override } for pid=23091 comm="pgrep" capability=1 scontext=system\_u:syste  
Jun 26 19:13:43 elk.server kernel: type=1400 audit(1561556623.166:239): avc: denied { dac\_read\_search } for pid=23091 comm="pgrep" capability=2 scontext=system\_u:sy  
Jun 26 19:13:43 elk.server kernel: type=1400 audit(1561556623.166:240): avc: denied { dac\_override } for pid=23091 comm="pgrep" capability=1 scontext=system\_u:syste  
Jun 26 19:13:43 elk.server kernel: type=1400 audit(1561556623.166:241): avc: denied { dac\_read\_search } for pid=23091 comm="pgrep" capability=2 scontext=system\_u:sy

These are the entries in the config files:

/usr/lib/systemd/system/elasticsearch.service

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/0/d0751c5a2e8160b181b3f287f05e5d0f13f0e60d.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/5/155c44260d77fe270e639031f95d0e51339a3033.png)

/etc/sysconfig/elasticsearch

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/8/8869a69da5d5329b0d2ab81d0c835515be3ddf7a.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/3/432fa8b82b707bcf2d5f845383d84353c750d71b.png)

---

<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:** [July 24, 2019, 1:58pm UTC](https://discuss.elastic.co/t/elasticsearch-7-1-failed-to-start/187586/2 "2019-07-24T13:58:52Z")

</div>

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