# Data path already locked by another beat. Unable to start Harvester

**URL:** <https://discuss.elastic.co/t/data-path-already-locked-by-another-beat-unable-to-start-harvester/269197>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 4, 2021, 8:30pm UTC](https://discuss.elastic.co/t/data-path-already-locked-by-another-beat-unable-to-start-harvester/269197 "2021-04-04T20:30:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaan/32/78663_2.png) [@Shaan](https://discuss.elastic.co/u/Shaan)\
**Post date:** [April 4, 2021, 8:30pm UTC](https://discuss.elastic.co/t/data-path-already-locked-by-another-beat-unable-to-start-harvester/269197/1 "2021-04-04T20:30:49Z")

</div>

Hi ! i am getting following error when i used "filebeat -e" and unable to start the harvester. I don't have any other beat running. And I have filebeat.lock in /usr/share/filebeat/data. I removed it and redeployed it again, but it's the same after deployment no change. Can someone please help me with this.

2021-04-04T20:24:52.905Z INFO instance/beat.go:660 Home path: [/usr/share/filebeat] Config path: [/usr/share/filebeat] Data path: [/usr/share/filebeat/data] Logs path: [/usr/share/filebeat/logs]  
2021-04-04T20:24:52.905Z INFO instance/beat.go:668 Beat ID: 51802400-14ef-4202-b176-4e3355cc4753  
2021-04-04T20:24:52.906Z INFO instance/beat.go:405 filebeat stopped.  
2021-04-04T20:24:52.906Z ERROR instance/beat.go:971 Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).  
Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).

---

<div class="post-metadata">

**Author:** ![Francisco\_Peralta\_Gu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_peralta_gu/32/83575_2.png) [@Francisco\_Peralta\_Gu](https://discuss.elastic.co/u/Francisco_Peralta_Gu)\
**Post date:** [April 5, 2021, 12:46pm UTC](https://discuss.elastic.co/t/data-path-already-locked-by-another-beat-unable-to-start-harvester/269197/2 "2021-04-05T12:46:41Z")

</div>

> [@Shaan](#):
>
> Please make sure that multiple beats are not sharing the same data path

Hi Shann.  
Are you sure that there is no other filebeat running on the host?.  
You could try to start th beat using another data path by setting the variable path.data to another value like /var/lib/data-filebeat in the filebeat.yaml .

---

<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 3, 2021, 2:47pm UTC](https://discuss.elastic.co/t/data-path-already-locked-by-another-beat-unable-to-start-harvester/269197/3 "2021-05-03T14:47:21Z")

</div>

Closed on May 3, 2021, 2:47pm UTC

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