# Exiting : data path locked by another beat

**URL:** <https://discuss.elastic.co/t/exiting-data-path-locked-by-another-beat/223344>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 12, 2020, 2:14pm UTC](https://discuss.elastic.co/t/exiting-data-path-locked-by-another-beat/223344 "2020-03-12T14:14:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cctk](https://avatars.discourse-cdn.com/v4/letter/c/73ab20/32.png) [@cctk](https://discuss.elastic.co/u/cctk)\
**Post date:** [March 12, 2020, 2:14pm UTC](https://discuss.elastic.co/t/exiting-data-path-locked-by-another-beat/223344/1 "2020-03-12T14:14:01Z")

</div>

Hi ,

I have upgraded the beats to 7.6.1 and i am experiencing an issue when starting the beat.  
It keeps failing with a message that the data path is already locked by another beat, there is only one instance of the beat running and i have already tried to set a data path in the yaml file. This happens for both metricbeat and filebeat.

is there anyway to fix this issue ?

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [March 13, 2020, 8:00am UTC](https://discuss.elastic.co/t/exiting-data-path-locked-by-another-beat/223344/2 "2020-03-13T08:00:43Z")

</div>

Unless you've a live beat process, look for a ".lock" file in the data directory and delete it. Then try to run the process again.

---

<div class="post-metadata">

**Author:** ![cctk](https://avatars.discourse-cdn.com/v4/letter/c/73ab20/32.png) [@cctk](https://discuss.elastic.co/u/cctk)\
**Post date:** [March 13, 2020, 8:52am UTC](https://discuss.elastic.co/t/exiting-data-path-locked-by-another-beat/223344/3 "2020-03-13T08:52:26Z")

</div>

I have checked for the .lock file in data directory but there doesn't seem to be one

---

<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:** [April 10, 2020, 8:52am UTC](https://discuss.elastic.co/t/exiting-data-path-locked-by-another-beat/223344/4 "2020-04-10T08:52:28Z")

</div>

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