Beat package issue for windows

Hi ,

We are getting below issue , when we run "make release"

" 05:31:30 Found Elastic Beats dir at /root/go/src/github.com/scb/appbeat/vendor/github.com/elastic/beats
Generated fields.yml for appbeat to /root/go/src/github.com/scb/appbeat/fields.yml
Generated fields.yml for appbeat to /root/go/src/github.com/scb/appbeat/-
2019/08/07 05:31:32 Found Elastic Beats dir at /root/go/src/github.com/scb/appbeat/vendor/github.com/elastic/beats
Generated fields.yml for appbeat to /root/go/src/github.com/scb/appbeat/build/fields/fields.all.yml
grep: ../libbeat/docs/version.asciidoc: No such file or directory
2019/08/07 05:31:34 Found Elastic Beats dir at /root/go/src/github.com/scb/appbeat/vendor/github.com/elastic/beats
flag provided but not defined: -f
See '/usr/bin/docker-current info --help'.
package ran for 19.860670052s
Error: docker is not available: running "docker info -f {{ json .}}" failed with exit code 125
docker is not available: running "docker info -f {{ json .}}" failed with exit code 125
make: *** [release] Error 1"

docker version screen shot
image

ELK Version: 7.2
Go version: 1.12.6

Your Docker version seems very old. I assume docker info does not have a flag --format in this version. Can you update Docker?

Hi @kvch,
thanks for the quick response. we have upgraded the docker version (Docker version 19.03.0-rc3, build 27fcb77)

after running "make release" now we are getting the below error

Error: running "go build -o build/golang-crossbuild/appbeat-windows-amd64.exe -ldflags -X github.com/xxx/appbeat/vendor/github.com/elastic/beats/libbeat/version.commit=fbf86a241e8d9366f19595eaf6776b8954d9b233 -X github.com/xxx/appbeat/vendor/github.com/elastic/beats/libbeat/version.buildTime=2019-08-07T14:07:18Z" failed with exit code 1
Error: failed building for windows/amd64: exit status 1
failed building for windows/amd64: exit status 1
module/xxxmodule/ports/ports.go:10:9: cannot find package "github.com/anvie/port-scanner" in any of:
/go/src/github.com/xxx/appbeat/vendor/github.com/anvie/port-scanner (vendor tree)
/usr/local/go/src/github.com/anvie/port-scanner (from $GOROOT)
/go/src/github.com/anvie/port-scanner (from $GOPATH)

We used this import "github.com/anvie/port-scanner" in our go file.

Thanks,
Balamurugan.

Have you added this dependency to your project's vendor/ directory?

Hi @andrewkroh,

Yes we manually added the libraries into vendor directory. but still getting the same error.

can you please help to resolve this issue.

Thanks,
Balamurugan.

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