# How to handle this error

**URL:** <https://discuss.elastic.co/t/how-to-handle-this-error/288726>\
**Category:** Elasticsearch\
**Created:** [November 9, 2021, 8:49am UTC](https://discuss.elastic.co/t/how-to-handle-this-error/288726 "2021-11-09T08:49:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahrukh\_Malik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahrukh_malik/32/96890_2.png) [@Mahrukh\_Malik](https://discuss.elastic.co/u/Mahrukh_Malik)\
**Post date:** [November 9, 2021, 8:49am UTC](https://discuss.elastic.co/t/how-to-handle-this-error/288726/1 "2021-11-09T08:49:49Z")

</div>

```
elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
   Active: **failed** (Result: exit-code) since Tue 2021-11-09 13:38:12 PKT; 11s ago
     Docs: https://www.elastic.co
  Process: 4837 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet**(code=exited, status=1/FAILURE)**Main PID: 4837 (code=exited, status=1/FAILURE)

Nov 09 13:38:12 centos8.linuxvmimages.local systemd-entrypoint[4837]: at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:278)
Nov 09 13:38:12 centos8.linuxvmimages.local systemd-entrypoint[4837]: at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226)
Nov 09 13:38:12 centos8.linuxvmimages.local systemd-entrypoint[4837]: at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:558)
Nov 09 13:38:12 centos8.linuxvmimages.local systemd-entrypoint[4837]: at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
Nov 09 13:38:12 centos8.linuxvmimages.local systemd-entrypoint[4837]: at org.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:168)
Nov 09 13:38:12 centos8.linuxvmimages.local systemd-entrypoint[4837]: at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:355)
Nov 09 13:38:12 centos8.linuxvmimages.local systemd-entrypoint[4837]: ... 14 more
Nov 09 13:38:12 centos8.linuxvmimages.local systemd[1]: **elasticsearch.service: Main process exited, code=exited, status=1/FAILURE** Nov 09 13:38:12 centos8.linuxvmimages.local systemd[1]: **elasticsearch.service: Failed with result 'exit-code'.** Nov 09 13:38:12 centos8.linuxvmimages.local systemd[1]: **Failed to start Elasticsearch.**** ~ ****~**
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 9, 2021, 9:08pm UTC](https://discuss.elastic.co/t/how-to-handle-this-error/288726/2 "2021-11-09T21:08:01Z")

</div>

Welcome to our community! 😃

We will need more information to help here.  
What version of Elasticsearch are you running?  
When are you getting this error?  
Did you make changes to anything prior to getting this error? If so, what?  
What do your Elasticsearch logs show?

---

<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:** [December 7, 2021, 9:08pm UTC](https://discuss.elastic.co/t/how-to-handle-this-error/288726/3 "2021-12-07T21:08:58Z")

</div>

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