josh-thurston / easyBEATS

Beats for Raspberry Pi / ARM
Apache License 2.0
83 stars 27 forks source link

Script Error #1

Closed josh-thurston closed 4 years ago

josh-thurston commented 4 years ago

Possibly a path issue where I am not able to launch Go because my GOPATH is not set correctly. Cant figure out what I am doing wrong though Screen Shot 2019-09-24 at 10 48 58 PM

josh-thurston commented 4 years ago

Friend Willie showed me this. Will try to update and try install again with a fresh OS install. https://github.com/josh-thurston/pibeat/issues/1

josh-thurston commented 4 years ago

new error

go build -i -ldflags "-X github.com/elastic/beats/libbeat/version.buildTime=2019-09-25T04:51:24Z -X github.com/elastic/beats/libbeat/version.commit=5b046c5a97fe1e312f22d40a1f05365621aad621"
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:32:2: cannot find package "github.com/elastic/beats/filebeat/module/apache" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/apache (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/apache (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/apache (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:33:2: cannot find package "github.com/elastic/beats/filebeat/module/auditd" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/auditd (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/auditd (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/auditd (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:34:2: cannot find package "github.com/elastic/beats/filebeat/module/elasticsearch" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/elasticsearch (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/elasticsearch (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/elasticsearch (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:35:2: cannot find package "github.com/elastic/beats/filebeat/module/haproxy" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/haproxy (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/haproxy (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/haproxy (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:36:2: cannot find package "github.com/elastic/beats/filebeat/module/icinga" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/icinga (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/icinga (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/icinga (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:37:2: cannot find package "github.com/elastic/beats/filebeat/module/iis" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/iis (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/iis (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/iis (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:38:2: cannot find package "github.com/elastic/beats/filebeat/module/kafka" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/kafka (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/kafka (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/kafka (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:39:2: cannot find package "github.com/elastic/beats/filebeat/module/kibana" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/kibana (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/kibana (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/kibana (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:40:2: cannot find package "github.com/elastic/beats/filebeat/module/logstash" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/logstash (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/logstash (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/logstash (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:41:2: cannot find package "github.com/elastic/beats/filebeat/module/mongodb" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/mongodb (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/mongodb (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/mongodb (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:42:2: cannot find package "github.com/elastic/beats/filebeat/module/mysql" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/mysql (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/mysql (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/mysql (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:43:2: cannot find package "github.com/elastic/beats/filebeat/module/nats" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/nats (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/nats (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/nats (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:44:2: cannot find package "github.com/elastic/beats/filebeat/module/nginx" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/nginx (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/nginx (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/nginx (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:45:2: cannot find package "github.com/elastic/beats/filebeat/module/osquery" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/osquery (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/osquery (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/osquery (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:46:2: cannot find package "github.com/elastic/beats/filebeat/module/postgresql" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/postgresql (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/postgresql (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/postgresql (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:47:2: cannot find package "github.com/elastic/beats/filebeat/module/redis" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/redis (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/redis (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/redis (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:48:2: cannot find package "github.com/elastic/beats/filebeat/module/santa" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/santa (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/santa (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/santa (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:49:2: cannot find package "github.com/elastic/beats/filebeat/module/system" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/system (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/system (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/system (from $GOPATH)
/root/go/src/github.com/elastic/beats/filebeat/include/list.go:50:2: cannot find package "github.com/elastic/beats/filebeat/module/traefik" in any of:
    /root/go/src/github.com/elastic/beats/vendor/github.com/elastic/beats/filebeat/module/traefik (vendor tree)
    /usr/lib/go-1.11/src/github.com/elastic/beats/filebeat/module/traefik (from $GOROOT)
    /root/go/src/github.com/elastic/beats/filebeat/module/traefik (from $GOPATH)
make: *** [../libbeat/scripts/Makefile:107: filebeat] Error 1
josh-thurston commented 4 years ago

Updated pibeat to use new install for go. Still getting an error

Screen Shot 2019-09-25 at 12 37 38 AM

josh-thurston commented 4 years ago

fixed issue.
GOPATH and GOROOT were set wrong and causing issues. using git clone was not pulling all the files. changed to go get and it works added arm architecture detection to build the right file.