influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.63k stars 5.58k forks source link

Unable to run make successfully #4229

Closed gangyi89 closed 6 years ago

gangyi89 commented 6 years ago

Am unable to run make successfully using AWS windows server. Appreciate advise on how to resolve it. Thank you.

Relevant telegraf.conf:

as per master

System info:

AWS windows server [Include Telegraf version, operating system name, and other relevant details] go version go1.10.2 windows/amd64 GOPATH= C:\Users\Administrator\go

Steps to reproduce:

  1. go get -d github.com/influxdata/telegraf
  2. cd to C:\Users\Administrator\go\src\github.com\influxdata\telegraf
  3. run make

Expected behavior:

make successful

Actual behavior:

Unable to make

Additional info:

[Include gist of relevant config, logs, etc.]

C:\Users\Administrator\go\src\github.com\influxdata\telegraf>make
The system cannot find the path specified.
make deps
The system cannot find the path specified.
make[1]: Entering directory `C:/Users/Administrator/go/src/github.com/influxdata/telegraf'
go get -u github.com/golang/lint/golint
go get github.com/sparrc/gdm
gdm restore --parallel=false
              Go Dependency Manager 
= working dir:  C:\Users\Administrator\go\src\github.com\influxdata\telegraf
= checkout dir: C:\Users\Administrator\go\src
= GOPATH:       C:\Users\Administrator\go

> Restoring C:\Users\Administrator\go\src\code.cloudfoundry.org\clock to e9dc86bbf0e5bbe6bf7ff5a6f71e048959b61f71
> Restoring C:\Users\Administrator\go\src\collectd.org to 2ce144541b8903101fb8f1483cc0497a68798122
> Restoring C:\Users\Administrator\go\src\github.com\aerospike\aerospike-client-go to 9701404f4c60a6ea256595d24bf318f721a7e8b8
> Restoring C:\Users\Administrator\go\src\github.com\amir\raidman to c74861fe6a7bb8ede0a010ce4485bdbb4fc4c985
> Restoring C:\Users\Administrator\go\src\github.com\apache\thrift to 4aaa92ece8503a6da9bc6701604f69acf2b99d07
> Restoring C:\Users\Administrator\go\src\github.com\aws\aws-sdk-go to c861d27d0304a79f727e9a8a4e2ac1e74602fdc0
> Restoring C:\Users\Administrator\go\src\github.com\beorn7\perks to 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9
> Restoring C:\Users\Administrator\go\src\github.com\bsm\sarama-cluster to abf039439f66c1ce78017f560b490612552f6472
> Restoring C:\Users\Administrator\go\src\github.com\cenkalti\backoff to b02f2bbce11d7ea6b97f282ef1771b0fe2f65ef3
> Restoring C:\Users\Administrator\go\src\github.com\couchbase\go-couchbase to bfe555a140d53dc1adf390f1a1d4b0fd4ceadb28
> Restoring C:\Users\Administrator\go\src\github.com\couchbase\gomemcached to 4a25d2f4e1dea9ea7dd76dfd943407abf9b07d29
> Restoring C:\Users\Administrator\go\src\github.com\couchbase\goutils to 5823a0cbaaa9008406021dc5daf80125ea30bba6
> Restoring C:\Users\Administrator\go\src\github.com\davecgh\go-spew to 346938d642f2ec3594ed81d874461961cd0faa76
> Restoring C:\Users\Administrator\go\src\github.com\dgrijalva\jwt-go to dbeaa9332f19a944acb5736b4456cfcc02140e29
> Restoring C:\Users\Administrator\go\src\github.com\docker\docker to f5ec1e2936dcbe7b5001c2b817188b095c700c27
> Restoring C:\Users\Administrator\go\src\github.com\docker\go-connections to 990a1a1a70b0da4c4cb70e117971a4f0babfbf1a
> Restoring C:\Users\Administrator\go\src\github.com\eapache\go-resiliency to b86b1ec0dd4209a588dc1285cdd471e73525c0b3
> Restoring C:\Users\Administrator\go\src\github.com\eapache\go-xerial-snappy to bb955e01b9346ac19dc29eb16586c90ded99a98c
> Restoring C:\Users\Administrator\go\src\github.com\eapache\queue to 44cc805cf13205b55f69e14bcb69867d1ae92f98
> Restoring C:\Users\Administrator\go\src\github.com\eclipse\paho.mqtt.golang to aff15770515e3c57fc6109da73d42b0d46f7f483
> Restoring C:\Users\Administrator\go\src\github.com\go-logfmt\logfmt to 390ab7935ee28ec6b286364bba9b4dd6410cb3d5
> Restoring C:\Users\Administrator\go\src\github.com\go-sql-driver\mysql to 2e00b5cd70399450106cec6431c2e2ce3cae5034
> Restoring C:\Users\Administrator\go\src\github.com\gobwas\glob to bea32b9cd2d6f55753d94a28e959b13f0244797a
> Restoring C:\Users\Administrator\go\src\github.com\go-ini\ini to 9144852efba7c4daf409943ee90767da62d55438
> Restoring C:\Users\Administrator\go\src\github.com\gogo\protobuf to 7b6c6391c4ff245962047fc1e2c6e08b1cdfa0e8
> Restoring C:\Users\Administrator\go\src\github.com\golang\protobuf to 8ee79997227bf9b34611aee7946ae64735e6fd93
> Restoring C:\Users\Administrator\go\src\github.com\golang\snappy to 7db9049039a047d955fe8c19b83c8ff5abd765c7
> Restoring C:\Users\Administrator\go\src\github.com\go-ole\go-ole to be49f7c07711fcb603cff39e1de7c67926dc0ba7
> Restoring C:\Users\Administrator\go\src\github.com\google\go-cmp to f94e52cad91c65a63acc1e75d4be223ea22e99bc
> Restoring C:\Users\Administrator\go\src\github.com\gorilla\mux to 53c1911da2b537f792e7cafcb446b05ffe33b996
> Restoring C:\Users\Administrator\go\src\github.com\go-redis\redis to 73b70592cdaa9e6abdfcfbf97b4a90d80728c836
> Restoring C:\Users\Administrator\go\src\github.com\hailocab\go-hostpool to e80d13ce29ede4452c43dea11e79b9bc8a15b478
> Restoring C:\Users\Administrator\go\src\github.com\hashicorp\consul to 5174058f0d2bda63fa5198ab96c33d9a909c58ed
> Restoring C:\Users\Administrator\go\src\github.com\influxdata\go-syslog to 84f3b60009444d298f97454feb1f20cf91d1fa6e
> Restoring C:\Users\Administrator\go\src\github.com\influxdata\tail to c43482518d410361b6c383d7aebce33d0471d7bc
> Restoring C:\Users\Administrator\go\src\github.com\influxdata\toml to 5d1d907f22ead1cd47adde17ceec5bda9cacaf8f
> Restoring C:\Users\Administrator\go\src\github.com\influxdata\wlog to 7c63b0a71ef8300adc255344d275e10e5c3a71ec
> Restoring C:\Users\Administrator\go\src\github.com\fsnotify\fsnotify to c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9
> Restoring C:\Users\Administrator\go\src\github.com\jackc\pgx to 63f58fd32edb5684b9e9f4cfaac847c6b42b3917
> Restoring C:\Users\Administrator\go\src\github.com\jmespath\go-jmespath to bd40a432e4c76585ef6b72d3fd96fb9b6dc7b68d
> Restoring C:\Users\Administrator\go\src\github.com\kardianos\osext to c2c54e542fb797ad986b31721e1baedf214ca413
> Restoring C:\Users\Administrator\go\src\github.com\kardianos\service to 6d3a0ee7d3425d9d835debc51a0ca1ffa28f4893
> Restoring C:\Users\Administrator\go\src\github.com\kballard\go-shellquote to d8ec1a69a250a17bb0e419c386eac1f3711dc142
> Restoring C:\Users\Administrator\go\src\github.com\matttproud\golang_protobuf_extensions to c12348ce28de40eed0136aa2b644d0ee0650e56c
> Restoring C:\Users\Administrator\go\src\github.com\Microsoft\ApplicationInsights-Go to 3612f58550c1de70f1a110c78c830e55f29aa65d
> Restoring C:\Users\Administrator\go\src\github.com\Microsoft\go-winio to ce2922f643c8fd76b46cadc7f404a06282678b34
> Restoring C:\Users\Administrator\go\src\github.com\miekg\dns to 99f84ae56e75126dd77e5de4fae2ea034a468ca1
> Restoring C:\Users\Administrator\go\src\github.com\mitchellh\mapstructure to d0303fe809921458f417bcf828397a65db30a7e4
> Restoring C:\Users\Administrator\go\src\github.com\multiplay\go-ts3 to 07477f49b8dfa3ada231afc7b7b17617d42afe8e
> Restoring C:\Users\Administrator\go\src\github.com\naoina\go-stringutil to 6b638e95a32d0c1131db0e7fe83775cbea4a0d0b
> Restoring C:\Users\Administrator\go\src\github.com\nats-io\gnatsd to 393bbb7c031433e68707c8810fda0bfcfbe6ab9b
> Restoring C:\Users\Administrator\go\src\github.com\nats-io\go-nats to ea9585611a4ab58a205b9b125ebd74c389a6b898
> Restoring C:\Users\Administrator\go\src\github.com\nats-io\nats to ea9585611a4ab58a205b9b125ebd74c389a6b898
> Restoring C:\Users\Administrator\go\src\github.com\nats-io\nuid to 289cccf02c178dc782430d534e3c1f5b72af807f
> Restoring C:\Users\Administrator\go\src\github.com\nsqio\go-nsq to eee57a3ac4174c55924125bb15eeeda8cffb6e6f
> Restoring C:\Users\Administrator\go\src\github.com\opencontainers\runc to 89ab7f2ccc1e45ddf6485eaa802c35dcf321dfc8
> Restoring C:\Users\Administrator\go\src\github.com\opentracing-contrib\go-observer to a52f2342449246d5bcc273e65cbdcfa5f7d6c63c
> Restoring C:\Users\Administrator\go\src\github.com\opentracing\opentracing-go to 06f47b42c792fef2796e9681353e1d908c417827
> Restoring C:\Users\Administrator\go\src\github.com\openzipkin\zipkin-go-opentracing to 1cafbdfde94fbf2b373534764e0863aa3bd0bf7b
> Restoring C:\Users\Administrator\go\src\github.com\pierrec\lz4 to 5c9560bfa9ace2bf86080bf40d46b34ae44604df
> Restoring C:\Users\Administrator\go\src\github.com\pierrec\xxHash to 5a004441f897722c627870a981d02b29924215fa
> Restoring C:\Users\Administrator\go\src\github.com\pkg\errors to 645ef00459ed84a119197bfb8d8205042c6df63d
> Restoring C:\Users\Administrator\go\src\github.com\pmezard\go-difflib\difflib to 792786c7400a136282c1664665ae0a8db921c6c2
> Restoring C:\Users\Administrator\go\src\github.com\prometheus\client_golang to c317fb74746eac4fc65fe3909195f4cf67c5562a
> Restoring C:\Users\Administrator\go\src\github.com\prometheus\client_model to fa8ad6fec33561be4280a8f0514318c79d7f6cb6
> Restoring C:\Users\Administrator\go\src\github.com\prometheus\common to dd2f054febf4a6c00f2343686efb775948a8bff4
> Restoring C:\Users\Administrator\go\src\github.com\prometheus\procfs to 1878d9fbb537119d24b21ca07effd591627cd160
> Restoring C:\Users\Administrator\go\src\github.com\rcrowley\go-metrics to 1f30fe9094a513ce4c700b9a54458bbb0c96996c
> Restoring C:\Users\Administrator\go\src\github.com\samuel\go-zookeeper to 1d7be4effb13d2d908342d349d71a284a7542693
> Restoring C:\Users\Administrator\go\src\github.com\satori\go.uuid to 5bf94b69c6b68ee1b541973bb8e1144db23a194b
> Restoring C:\Users\Administrator\go\src\github.com\shirou\gopsutil to c95755e4bcd7a62bb8bd33f3a597a7c7f35e2cf3
> Restoring C:\Users\Administrator\go\src\github.com\shirou\w32 to 3c9377fc6748f222729a8270fe2775d149a249ad
> Restoring C:\Users\Administrator\go\src\github.com\Shopify\sarama to 3b1b38866a79f06deddf0487d5c27ba0697ccd65
> Restoring C:\Users\Administrator\go\src\github.com\Sirupsen\logrus to 61e43dc76f7ee59a82bdf3d71033dc12bea4c77d
> Restoring C:\Users\Administrator\go\src\github.com\soniah\gosnmp to f15472a4cd6f6ea7929e4c7d9f163c49f059924f
> Restoring C:\Users\Administrator\go\src\github.com\StackExchange\wmi to f3e2bae1e0cb5aef83e319133eabfee30013a4a5
> Restoring C:\Users\Administrator\go\src\github.com\streadway\amqp to 63795daa9a446c920826655f26ba31c81c860fd6
> Restoring C:\Users\Administrator\go\src\github.com\stretchr\objx to facf9a85c22f48d2f52f2380e4efce1768749a89
> Restoring C:\Users\Administrator\go\src\github.com\stretchr\testify to 12b6f73e6084dad08a7c6e575284b177ecafbc71
> Restoring C:\Users\Administrator\go\src\github.com\tidwall\gjson to 0623bd8fbdbf97cc62b98d15108832851a658e59
> Restoring C:\Users\Administrator\go\src\github.com\tidwall\match to 173748da739a410c5b0b813b956f89ff94730b4c
> Restoring C:\Users\Administrator\go\src\github.com\vjeantet\grok to d73e972b60935c7fec0b4ffbc904ed39ecaf7efe
> Restoring C:\Users\Administrator\go\src\github.com\wvanbergen\kafka to bc265fedb9ff5b5c5d3c0fdcef4a819b3523d3ee
> Restoring C:\Users\Administrator\go\src\github.com\wvanbergen\kazoo-go to 968957352185472eacb69215fa3dbfcfdbac1096
> Restoring C:\Users\Administrator\go\src\github.com\yuin\gopher-lua to 66c871e454fcf10251c61bf8eff02d0978cae75a
> Restoring C:\Users\Administrator\go\src\github.com\zensqlmonitor\go-mssqldb to ffe5510c6fa5e15e6d983210ab501c815b56b363
> Restoring C:\Users\Administrator\go\src\golang.org\x\crypto to dc137beb6cce2043eb6b5f223ab8bf51c32459f4
> Restoring C:\Users\Administrator\go\src\golang.org\x\net to a337091b0525af65de94df2eb7e98bd9962dcbe2
> Restoring C:\Users\Administrator\go\src\golang.org\x\sys to 739734461d1c916b6c72a63d7efda2b27edb369f
> Restoring C:\Users\Administrator\go\src\golang.org\x\text to 506f9d5c962f284575e88337e7d9296d27e729d3
> Restoring C:\Users\Administrator\go\src\google.golang.org\genproto to 11c7f9e547da6db876260ce49ea7536985904c9b
> Restoring C:\Users\Administrator\go\src\google.golang.org\grpc to de2209a968d48e8970546c8a710189f7461370f7
> Restoring C:\Users\Administrator\go\src\gopkg.in\asn1-ber.v1 to 4e86f4367175e39f69d9358a5f17b4dda270378d
> Restoring C:\Users\Administrator\go\src\gopkg.in\fatih\pool.v2 to 6e328e67893eb46323ad06f0e92cb9536babbabc
> Restoring C:\Users\Administrator\go\src\gopkg.in\gorethink\gorethink.v3 to 7ab832f7b65573104a555d84a27992ae9ea1f659
> Restoring C:\Users\Administrator\go\src\gopkg.in\ldap.v2 to 8168ee085ee43257585e50c6441aadf54ecb2c9f
> Restoring C:\Users\Administrator\go\src\gopkg.in\mgo.v2 to 3f83fa5005286a7fe593b055f0d7771a7dce4655
> Restoring C:\Users\Administrator\go\src\gopkg.in\olivere\elastic.v5 to 3113f9b9ad37509fe5f8a0e5e91c96fdc4435e26
> Restoring C:\Users\Administrator\go\src\gopkg.in\tomb.v1 to dd632973f1e7218eb1089048e0798ec9ae7dceb8
> Restoring C:\Users\Administrator\go\src\gopkg.in\yaml.v2 to 4c78c975fe7c825c6d1466c42be594d1d6f3aba6
make[1]: Leaving directory `C:/Users/Administrator/go/src/github.com/influxdata/telegraf'
make telegraf
The system cannot find the path specified.
make[1]: Entering directory `C:/Users/Administrator/go/src/github.com/influxdata/telegraf'
go build -ldflags " -X main.commit=df1fe7a2 -X main.branch=master" ./cmd/telegraf
make[1]: Leaving directory `C:/Users/Administrator/go/src/github.com/influxdata/telegraf'
danielnelson commented 6 years ago

Is telegraf.exe created in the top level directory? If not, can you run: go version and paste the output?

gangyi89 commented 6 years ago

@danielnelson thanks for the advise Yes, at the top level directory i see the telegraph application. However, given the make logs i showed above, does it still mean the executable is fully functional?

go version go1.10.2 windows/amd64

mmhabd12 commented 6 years ago

Im using Windows 7 with go version go1.10.2 windows/386 and I have the same generated error "the system cannot find the path specified" and I tested the generated telegraf.exe it started as a service without crushing but is not writing any metrics. So please did you succeed to fix the issue?

danielnelson commented 6 years ago

I think this warning would not effect the compiled binary, other than potentially not adding the branch/revision to the binary. It is probably one of the commands we are running at the top of the Makefile which are not in the PATH, it looks like we are also expecting git and gofmt, can you run git --version and gofmt -h?

mmhabd12 commented 6 years ago

-git version 2.17.1.windows.1

danielnelson commented 6 years ago

What does telegraf.exe version print?

mmhabd12 commented 6 years ago

telegraf version

Telegraf v1.8.0~acba20af (git: master acba20af)

mrjohannchang commented 6 years ago

I just encountered similar issue. I think it's because the commit ea9585611a4ab58a205b9b125ebd74c389a6b898 is no longer in github.com/nats-io/nats.

mrjohannchang commented 6 years ago

Seems like the issue I encountered has just been fixed. https://github.com/influxdata/telegraf/commit/dd2223ae1c36961cbd3541719e27ab2b8e9aa346 https://github.com/influxdata/telegraf/commit/daddd8bbac3d16db5e3a09a19c265e42db6f0b7a

glinton commented 6 years ago

Since updating to deps, have you been able to run make successfully?

sureshsubramaniam commented 6 years ago

After updating to dep, unable to make the telegraf build sucessfully

pytimer commented 6 years ago

@sureshsubramaniam , what's wrong when you running make command?

I can make successfully. I use branch master.

sureshsubramaniam commented 6 years ago

@pytimer it seems to be an issue with my dev machine where the dep source directory needs a cleanup and after that today it succeeded. Could be other projects using some of the deps with a diff commit and might be detached and not able to find the tree in source

danielnelson commented 6 years ago

@gangyi89 Now that we have updated to dep, could you run make again from a fresh clone and gopath and post the updated output?