# Couldn't Make the Package of metricbeats in Windows-7 32 bit

**URL:** https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462
**Category:** Beats
**Tags:** metricbeat
**Created:** [March 15, 2019, 6:13am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462 "2019-03-15T06:13:32Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)
#### Post date: [March 15, 2019, 6:13am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462/1 "2019-03-15T06:13:32Z")

</div>

Hi-  
I have to Make Package of metricbeats (got to test couple of bugs in Windows module which has been fixed, which is still in a pull request, but not yet into the master), but its failing with an error message as below:

Could someone please help me to fix this error:

```auto
C:\Users\Administrator\go\src\github.com\elastic\beats\metricbeat>make package
C:\Users\Administrator\go\bin\mage.exe
package ran for 0s
Error: failed to find github.com/elastic/beats/dev-tools/mage in the project's v
endor

```

```auto
C:\Users\Administrator\go\src\github.com\elastic\beats\metricbeat>make
Targets:
  build builds the Beat binary.
  buildGoDaemon builds the go-daemon binary (use crossBuildGoDaemon).
  clean cleans all generated files and build artifacts.
  crossBuild cross-builds the beat for all target platforms.
  crossBuildGoDaemon cross-builds the go-daemon binary using Docker.
  crossBuildXPack cross-builds the beat with XPack for all target platform
s.
  exportDashboard exports a dashboard and writes it into the correct direc
tory Required ENV variables: * MODULE: Name of the module * ID: Dashboard id
  fields generates a fields.yml for the Beat.
  goTestIntegration executes the Go integration tests.
  goTestUnit executes the Go unit tests.
  golangCrossBuild build the Beat binary inside of the golang-builder.
  package packages the Beat for distribution.
  testPackages tests the generated packages (i.e.
  update updates the generated files (aka make update).

```

go version - go version go1.12.1 windows/386

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [March 15, 2019, 11:52am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462/2 "2019-03-15T11:52:00Z")

</div>

Seems like you are missing mage: [https://github.com/magefile/mage](https://github.com/magefile/mage)

---

<div class="post-metadata">

### Author: ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)
#### Post date: [March 18, 2019, 5:58am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462/3 "2019-03-18T05:58:31Z")

</div>

@ruflin -  
I installed the mage, and found a new binary added in the Go bin path, but still I see the same error: ☹

```auto
C:\Users\Admin\Go\src\github.com\elastic\beats\metricbeat>make package
C:\Users\Admin\Go\bin\mage.exe
package ran for 1ms
Error: failed to find github.com/elastic/beats/dev-tools/mage in the project's v
endor

```

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [March 18, 2019, 10:21am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462/4 "2019-03-18T10:21:55Z")

</div>

I have to confess that most of us develop on OS X and Linux and because of this sometimes the dev tools are not working properly on Windows. But the above more looks like a missing directory which should not be related to the OS. What version did you check out of Github? Are you on master?

---

<div class="post-metadata">

### Author: ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)
#### Post date: [March 18, 2019, 10:57am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462/5 "2019-03-18T10:57:20Z")

</div>

Hi @ruflin-  
I have cloned @maddin2016 repo ([https://github.com/martinscholz83/beats](https://github.com/martinscholz83/beats))

Its related to the issues [9847](https://discuss.elastic.co/t/metricbeats-windows-metricset-invalid-data/161040/10) and [10060](https://discuss.elastic.co/t/metricbeat-6-6-0-windows-module-breaks-in-win7-server/167589/4)  
Since, the issue is with the Windows-7 32 bit, trying to build the package with the same OS configuration.

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [March 19, 2019, 9:30am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462/6 "2019-03-19T09:30:27Z")

</div>

I see, perhaps it makes sense to rebase on master as lots of things have changed since January.

---

<div class="post-metadata">

### Author: ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)
#### Post date: [March 20, 2019, 6:53am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462/7 "2019-03-20T06:53:27Z")

</div>

@ruflin  
That worked; could able to built the package now. Thanks so much !

Any timelines, when this PR could move to the Master ([https://github.com/elastic/beats/pull/9847](https://github.com/elastic/beats/pull/9847)) ?.  
So, I can just take the snapshot builds from the Jenkins CI. Thanks !

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [March 20, 2019, 9:18am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462/8 "2019-03-20T09:18:38Z")

</div>

The PR you linked is from the community. Best ping Martin on it on how it looks from his side priority wise.

---

<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 17, 2019, 11:18am UTC](https://discuss.elastic.co/t/couldnt-make-the-package-of-metricbeats-in-windows-7-32-bit/172462/9 "2019-04-17T11:18:45Z")

</div>

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