A bit like "make package" broken for community beats? (but topic closed so cannot edit it) but with a later commit (tried d561c30cb731ae5e14ea43f46b1a093084c96413 and more recently 36e212d5616104a4de3902071ca9b489dfdfbdc9, see PS note below) and without any custom beat in the tree: I get make package
failing with the following error:
...Successfully built 67609e17ccc4
echo Creating DEB packages for filebeat
Creating DEB packages for filebeat
ARCH=386 BEAT=filebeat BUILD_DIR=/tmp/go_elastic/src/github.com/elastic/beats/filebeat/build BEAT_PATH=/tmp/go_elastic/src/github.com/elastic/beats/filebeat BUILDID=36e212d5616104a4de3902071ca9b489dfdfbdc9 SNAPSHOT=yes /tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer/platforms/debian/build.sh
/tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer/platforms/debian/build.sh: 12: /tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer/platforms/debian/build.sh: gotpl: not found
Makefile:14: recipe for target 'filebeat/deb' failed
make[1]: *** [filebeat/deb] Error 127
make[1]: Leaving directory '/tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer'
../libbeat/scripts/Makefile:433: recipe for target 'package' failed
make: *** [package] Error 2
Note: I first tried to build the version from 5.4.1 and stopped / rm all docker containers before my last attempt.
How can I troubleshoot this?
PS: Basically this is what I did in my last attempt:
fabien@fld:~$ export GOPATH=/tmp/go_elastic
fabien@fld:~$ mkdir $GOPATH
fabien@fld:~$ cd $GOPATH
fabien@fld:/tmp/go_elastic$ go version
go version go1.8.1 linux/amd64
fabien@fld:/tmp/go_elastic$ docker version
Client:
Version: 17.03.1-ce
API version: 1.27
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:14:09 2017
OS/Arch: linux/amd64
Server:
Version: 17.03.1-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:14:09 2017
OS/Arch: linux/amd64
Experimental: false
fabien@fld:/tmp/go_elastic$ docker-compose version
docker-compose version 1.14.0, build c7bdf9e
docker-py version: 2.3.0
CPython version: 2.7.13
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
fabien@fld:/tmp/go_elastic$ mkdir -p ${GOPATH}/src/github.com/elastic
fabien@fld:/tmp/go_elastic$ cd ${GOPATH}/src/github.com/elastic
fabien@fld:/tmp/go_elastic/src/github.com/elastic$ git clone https://github.com/elastic/beats.git
Cloning into 'beats'...
remote: Counting objects: 63278, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 63278 (delta 15), reused 20 (delta 10), pack-reused 63241
Receiving objects: 100% (63278/63278), 54.03 MiB | 4.93 MiB/s, done.
Resolving deltas: 100% (38228/38228), done.
Checking connectivity... done.
fabien@fld:/tmp/go_elastic/src/github.com/elastic$ cd beats/filebeat/
fabien@fld:/tmp/go_elastic/src/github.com/elastic/beats/filebeat$ make
go build
fabien@fld:/tmp/go_elastic/src/github.com/elastic/beats/filebeat$ make update
...<truncated ouptut>...
The index pattern was created under /tmp/go_elastic/src/github.com/elastic/beats/filebeat/_meta/kibana/index-pattern/filebeat.json
fabien@fld:/tmp/go_elastic/src/github.com/elastic/beats/filebeat$ echo $?
0
fabien@fld:/tmp/go_elastic/src/github.com/elastic/beats/filebeat$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fabien@fld:/tmp/go_elastic/src/github.com/elastic/beats/filebeat$ make package
make -C ../dev-tools/packer deps images
make[1]: Entering directory '/tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer'
go get -u github.com/tsg/gotpl
cd /tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer/docker/xgo-image/; ./build.sh
Sending build context to Docker daemon 317.4 kB
Step 1/26 : FROM ubuntu:14.04
...<truncated output>...
Successfully built 67609e17ccc4
echo Creating DEB packages for filebeat
Creating DEB packages for filebeat
ARCH=386 BEAT=filebeat BUILD_DIR=/tmp/go_elastic/src/github.com/elastic/beats/filebeat/build BEAT_PATH=/tmp/go_elastic/src/github.com/elastic/beats/filebeat BUILDID=36e212d5616104a4de3902071ca9b489dfdfbdc9 SNAPSHOT=yes /tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer/platforms/debian/build.sh
/tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer/platforms/debian/build.sh: 12: /tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer/platforms/debian/build.sh: gotpl: not found
Makefile:14: recipe for target 'filebeat/deb' failed
make[1]: *** [filebeat/deb] Error 127
make[1]: Leaving directory '/tmp/go_elastic/src/github.com/elastic/beats/dev-tools/packer'
../libbeat/scripts/Makefile:433: recipe for target 'package' failed
make: *** [package] Error 2
Regards