# Make collect command throws an error

**URL:** <https://discuss.elastic.co/t/make-collect-command-throws-an-error/224185>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [March 18, 2020, 8:43pm UTC](https://discuss.elastic.co/t/make-collect-command-throws-an-error/224185 "2020-03-18T20:43:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Carmel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_carmel/32/64365_2.png) [@Daniel\_Carmel](https://discuss.elastic.co/u/Daniel_Carmel)\
**Post date:** [March 18, 2020, 8:43pm UTC](https://discuss.elastic.co/t/make-collect-command-throws-an-error/224185/1 "2020-03-18T20:43:50Z")

</div>

I am trying to run the `make collect` command after creating new metricset and get the following error:

```auto
~/go_dev/src/github.com/elastic/beats/metricbeat$ make collect
Makefile:84: warning: overriding recipe for target 'integration-tests'
../libbeat/scripts/Makefile:217: warning: ignoring old recipe for target 'integration-tests'
go run -mod=vendor ../metricbeat/scripts/assets/assets.go ../metricbeat/module
mkdir -p include/fields
go run -mod=vendor ../libbeat/scripts/cmd/global_fields/main.go -es_beats_path .. -beat_path /home/daniel/go_dev/src/github.com/elastic/beats/metricbeat | go run ../dev-tools/cmd/asset/asset.go -license ASL2 -out ./include/fields/fields.go -pkg include -priority asset.LibbeatFieldsPri ../libbeat/fields.yml metricbeat
mage CollectAll
Generated fields.yml for metricbeat to /home/daniel/go_dev/src/github.com/elastic/beats/metricbeat/build/fields/fields.all.yml
# github.com/godror/godror
../vendor/github.com/godror/godror/conn.go:10:10: fatal error: dpiImpl.h: No such file or directory
 #include "dpiImpl.h"
          ^ ~~~~~~~~~~
compilation terminated.
Error: error getting default metricsets: Error running subcommand to get metricsets: running "go run -mod vendor /home/daniel/go_dev/src/github.com/elastic/beats/x-pack/metricbeat/scripts/msetlists/main.go" failed with exit code 2
Makefile:27: recipe for target 'collect-docs' failed
make: *** [collect-docs] Error 1

```

What should I do??

---

<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:** [March 19, 2020, 12:01pm UTC](https://discuss.elastic.co/t/make-collect-command-throws-an-error/224185/2 "2020-03-19T12:01:28Z")

</div>

It is a known issue. I am working on this PR to get it fixed: [https://github.com/elastic/beats/pull/17105](https://github.com/elastic/beats/pull/17105)

---

<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 16, 2020, 12:08pm UTC](https://discuss.elastic.co/t/make-collect-command-throws-an-error/224185/3 "2020-04-16T12:08:46Z")

</div>

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