# Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data)

**URL:** <https://discuss.elastic.co/t/exiting-data-path-already-locked-by-another-beat-please-make-sure-that-multiple-beats-are-not-sharing-the-same-data-path-path-data/293158>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [December 29, 2021, 9:36pm UTC](https://discuss.elastic.co/t/exiting-data-path-already-locked-by-another-beat-please-make-sure-that-multiple-beats-are-not-sharing-the-same-data-path-path-data/293158 "2021-12-29T21:36:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sujitk72](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sujitk72/32/99678_2.png) [@sujitk72](https://discuss.elastic.co/u/sujitk72)\
**Post date:** [December 29, 2021, 9:36pm UTC](https://discuss.elastic.co/t/exiting-data-path-already-locked-by-another-beat-please-make-sure-that-multiple-beats-are-not-sharing-the-same-data-path-path-data/293158/1 "2021-12-29T21:36:29Z")

</div>

I have removed 5x and installed 7x that is not working.

./filebeat -e -d "\*"

2021-12-30T02:52:25.982+0530 INFO instance/beat.go:686 Home path: [/app/filebeat-7.16.2-linux-x86\_64] Config path: [/app/filebeat-7.16.2-linux-x86\_64] Data path: [/app/filebeat-7.16.2-linux-x86\_64/data] Logs path: [/app/filebeat-7.16.2-linux-x86\_64/logs] Hostfs Path: [/]

2021-12-30T02:52:25.982+0530 DEBUG [beat] instance/beat.go:744 Beat metadata path: /app/filebeat-7.16.2-linux-x86\_64/data/meta.json

2021-12-30T02:52:25.982+0530 INFO instance/beat.go:694 Beat ID: d058145d-573d-4f2b-9c11-efdb5bf5eef3

2021-12-30T02:52:25.984+0530 DEBUG [conditions] conditions/conditions.go:98 New condition contains: map

2021-12-30T02:52:25.984+0530 DEBUG [conditions] conditions/conditions.go:98 New condition !contains: map

2021-12-30T02:52:26.214+0530 WARN [add\_cloud\_metadata] add\_cloud\_metadata/provider\_aws\_ec2.go:95 error when check request status for getting IMDSv2 token: http request status 404. No token in the metadata request will be used.

2021-12-30T02:52:26.215+0530 DEBUG [docker] docker/client.go:49 Docker client will negotiate the API version on the first request.

2021-12-30T02:52:26.215+0530 DEBUG [add\_cloud\_metadata] add\_cloud\_metadata/providers.go:129 add\_cloud\_metadata: starting to fetch metadata, timeout=3s

2021-12-30T02:52:26.215+0530 DEBUG [add\_docker\_metadata] add\_docker\_metadata/add\_docker\_metadata.go:87 add\_docker\_metadata: docker environment not detected: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

2021-12-30T02:52:26.216+0530 DEBUG [kubernetes] add\_kubernetes\_metadata/kubernetes.go:147 Could not create kubernetes client using in\_cluster config: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES\_MASTER environment variable {"libbeat.processor": "add\_kubernetes\_metadata"}

2021-12-30T02:52:26.224+0530 DEBUG [add\_cloud\_metadata] add\_cloud\_metadata/providers.go:166 add\_cloud\_metadata: received disposition for digitalocean after 8.721784ms. result=[provider:digitalocean, error=failed with http status code 404, metadata={}]

2021-12-30T02:52:26.224+0530 DEBUG [add\_cloud\_metadata] add\_cloud\_metadata/providers.go:166 add\_cloud\_metadata: received disposition for gcp after 8.881999ms. result=[provider:gcp, error=failed with http status code 404, metadata={}]

2021-12-30T02:52:26.224+0530 DEBUG [add\_cloud\_metadata] add\_cloud\_metadata/providers.go:166 add\_cloud\_metadata: received disposition for huawei after 9.209637ms. result=[provider:huawei, error=, metadata={"cloud":{"availability\_zone":"JMNG-PE3-NONPROD","instance":{"id":"7d3c8c3f-52ab-4312-9b45-25a6192870d7"},"provider":"huawei","region":"","service":{"name":"ECS"}}}]

2021-12-30T02:52:26.224+0530 DEBUG [add\_cloud\_metadata] add\_cloud\_metadata/providers.go:132 add\_cloud\_metadata: fetchMetadata ran for 9.27828ms

2021-12-30T02:52:26.224+0530 INFO [add\_cloud\_metadata] add\_cloud\_metadata/add\_cloud\_metadata.go:105 add\_cloud\_metadata: hosting provider type detected as huawei, metadata={"cloud":{"availability\_zone":"JMNG-PE3-NONPROD","instance":{"id":"7d3c8c3f-52ab-4312-9b45-25a6192870d7"},"provider":"huawei","region":"","service":{"name":"ECS"}}}

2021-12-30T02:52:26.224+0530 DEBUG [processors] processors/processor.go:120 Generated new processors: add\_host\_metadata=[netinfo.enabled=[true], cache.ttl=[5m0s]], condition=!contains: map, add\_cloud\_metadata={"cloud":{"availability\_zone":"JMNG-PE3-NONPROD","instance":{"id":"7d3c8c3f-52ab-4312-9b45-25a6192870d7"},"provider":"huawei","region":"","service":{"name":"ECS"}}}, add\_docker\_metadata=[match\_fields= match\_pids=[process.pid, process.ppid]], add\_kubernetes\_metadata

2021-12-30T02:52:26.225+0530 INFO instance/beat.go:425 filebeat stopped.

2021-12-30T02:52:26.225+0530 ERROR instance/beat.go:1015 _**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:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [January 3, 2022, 12:35pm UTC](https://discuss.elastic.co/t/exiting-data-path-already-locked-by-another-beat-please-make-sure-that-multiple-beats-are-not-sharing-the-same-data-path-path-data/293158/2 "2022-01-03T12:35:53Z")

</div>

Do you want to run multiple instances of Filebeat? If not, are you sure that no other instance of Filebeat 7.16.2 is running when you are trying to start yours?

---

<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:** [January 31, 2022, 2:36pm UTC](https://discuss.elastic.co/t/exiting-data-path-already-locked-by-another-beat-please-make-sure-that-multiple-beats-are-not-sharing-the-same-data-path-path-data/293158/3 "2022-01-31T14:36:49Z")

</div>

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