GenerateCustomBeats hangs

Hi all,

I'm attempting to create a new custom beat but get stuck when using the mage GenerateCustomBeat command.

Enter the beat name [examplebeat]: examplebeat
Enter your github name [your-github-name]:
Enter the beat path [github.com//examplebeat]: examplebeat
Enter your full name [Firstname Lastname]:
Enter the beat type [beat]: beat
Enter the github.com/elastic/beats revision [master]: master
go: creating new go.mod: module examplebeat
go: finding module for package github.com/elastic/beats/v7/libbeat/cmd/instance
go: finding module for package github.com/elastic/beats/v7/libbeat/beat
go: finding module for package github.com/elastic/beats/v7/libbeat/cmd
go: finding module for package golang.org/x/lint/golint
go: finding module for package github.com/mitchellh/gox
go: finding module for package github.com/pierrre/gotestcover
go: finding module for package github.com/elastic/beats/v7/dev-tools/mage/target/common
go: finding module for package github.com/tsg/go-daemon
go: finding module for package github.com/elastic/beats/v7/dev-tools/mage/target/pkg
go: finding module for package github.com/magefile/mage/mg
go: finding module for package github.com/elastic/beats/v7/libbeat/common
go: finding module for package github.com/elastic/beats/v7/libbeat/logp
go: finding module for package github.com/elastic/beats/v7/dev-tools/mage/target/unittest
go: finding module for package github.com/elastic/beats/v7/dev-tools/mage
go: finding module for package github.com/magefile/mage/sh
go: finding module for package github.com/elastic/beats/v7/dev-tools/mage/target/build
go: found github.com/elastic/beats/v7/dev-tools/mage in github.com/elastic/beats/v7 v7.11.1
go: found github.com/elastic/beats/v7/dev-tools/mage/target/build in github.com/elastic/beats/v7 v7.11.1
go: found github.com/elastic/beats/v7/dev-tools/mage/target/common in github.com/elastic/beats/v7 v7.11.1
go: found github.com/elastic/beats/v7/dev-tools/mage/target/pkg in github.com/elastic/beats/v7 v7.11.1
go: found github.com/elastic/beats/v7/dev-tools/mage/target/unittest in github.com/elastic/beats/v7 v7.11.1
go: found github.com/magefile/mage/mg in github.com/magefile/mage v1.11.0
go: found github.com/magefile/mage/sh in github.com/magefile/mage v1.11.0
go: found github.com/elastic/beats/v7/libbeat/beat in github.com/elastic/beats/v7 v7.11.1
go: found github.com/elastic/beats/v7/libbeat/common in github.com/elastic/beats/v7 v7.11.1
go: found github.com/elastic/beats/v7/libbeat/logp in github.com/elastic/beats/v7 v7.11.1
go: found github.com/elastic/beats/v7/libbeat/cmd in github.com/elastic/beats/v7 v7.11.1
go: found github.com/elastic/beats/v7/libbeat/cmd/instance in github.com/elastic/beats/v7 v7.11.1
go: found github.com/mitchellh/gox in github.com/mitchellh/gox v1.0.1
go: found github.com/pierrre/gotestcover in github.com/pierrre/gotestcover v0.0.0-20160517101806-924dca7d15f0
go: found github.com/tsg/go-daemon in github.com/tsg/go-daemon v0.0.0-20200207173439-e704b93fd89b
go: found golang.org/x/lint/golint in golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5
go: found golang.org/x/tools/cmd/goimports in golang.org/x/tools v0.0.0-00010101000000-000000000000
go: github.com/elastic/beats/v7 master => v7.0.0-alpha2.0.20210217212423-d0d1abcd104f
go: go.uber.org/zap upgrade => v1.16.0
go: github.com/mitchellh/hashstructure upgrade => v1.1.0
go: golang.org/x/net upgrade => v0.0.0-20210119194325-5f4716e94777
go: github.com/fatih/color upgrade => v1.10.0
go: github.com/go-sourcemap/sourcemap upgrade => v2.1.3+incompatible
go: github.com/hashicorp/errwrap upgrade => v1.1.0
go: go.elastic.co/ecszap upgrade => v1.0.0
go: golang.org/x/text upgrade => v0.3.5
go: golang.org/x/crypto upgrade => v0.0.0-20201221181555-eec23a3978ad
go: gopkg.in/yaml.v2 upgrade => v2.4.0
go: honnef.co/go/tools upgrade => v0.1.1
go: golang.org/x/lint upgrade => v0.0.0-20201208152925-83fdc39ff7b5
go: github.com/prometheus/procfs upgrade => v0.6.0
go: github.com/dop251/goja_nodejs upgrade => v0.0.0-20201222133159-1629e8d0b836
go: golang.org/x/tools upgrade => v0.1.0
go: golang.org/x/sys upgrade => v0.0.0-20210218085108-9555bcde0c6a
go: github.com/akavel/rsrc upgrade => v0.10.1
go: github.com/magefile/mage upgrade => v1.11.0
go: github.com/mattn/go-colorable upgrade => v0.1.8
go: github.com/dlclark/regexp2 upgrade => v1.4.0
go: github.com/dop251/goja upgrade => v0.0.0-20210216182323-60bc6ebb9fc1
go: go.elastic.co/apm upgrade => v1.11.0
go: github.com/elastic/go-windows upgrade => v1.0.1
go: github.com/pkg/errors upgrade => v0.9.1
go: github.com/hashicorp/go-multierror upgrade => v1.1.0
go: go.elastic.co/fastjson upgrade => v1.1.0
go: github.com/gofrs/uuid upgrade => v4.0.0+incompatible
go: howett.net/plist upgrade => v0.0.0-20201203080718-1454fab16a06
go: go.uber.org/multierr upgrade => v1.6.0
go: github.com/mattn/go-isatty upgrade => v0.0.12
go: go.uber.org/atomic upgrade => v1.7.0
go: github.com/elastic/go-sysinfo upgrade => v1.6.0
go: github.com/rcrowley/go-metrics upgrade => v0.0.0-20201227073835-cf1acfcdf475
go: github.com/elastic/go-ucfg upgrade => v0.8.3
go: github.com/josephspurrier/goversioninfo upgrade => v1.2.0
go: downloading golang.org/x/sys v0.0.0-20210218085108-9555bcde0c6a

Here, it just hangs. I´ve waited several hours and it still did not proceed. The command prompt also does not react to CTRL+C anymore.
When redoing mage GenerateCustomBeat with the exact same properties, it hangs again, but always at different points.

I am using this go version: go version go1.15.8 windows/amd64.

My dev environment is fresh after following these guidelines (https://www.elastic.co/guide/en/beats/devguide/current/beats-contributing.html#setting-up-dev-environment ).

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