# APM Go agent install fails

**URL:** <https://discuss.elastic.co/t/apm-go-agent-install-fails/243936>\
**Category:** APM\
**Tags:** go\
**Created:** [August 5, 2020, 9:25pm UTC](https://discuss.elastic.co/t/apm-go-agent-install-fails/243936 "2020-08-05T21:25:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vulcanfan](https://avatars.discourse-cdn.com/v4/letter/v/cab0a1/32.png) [@vulcanfan](https://discuss.elastic.co/u/vulcanfan)\
**Post date:** [August 5, 2020, 9:25pm UTC](https://discuss.elastic.co/t/apm-go-agent-install-fails/243936/1 "2020-08-05T21:25:13Z")

</div>

Followed the 'go get' instruction to install the APM agent, but came back with dependency error, with a 3rd party website not being available. Can you confirm whether there is another way to install the Go agent module, without the dependency on the package on a 3rd party website?

Wholly new 'installation', to test instrumenting a Go program for APM.

Output:

```auto
# go get go.elastic.co/apm
go: finding go.elastic.co/apm v1.8.0
go: downloading go.elastic.co/apm v1.8.0
go: extracting go.elastic.co/apm v1.8.0
go get: go.elastic.co/apm@v1.8.0 requires
        github.com/elastic/go-sysinfo@v1.1.1 requires
        howett.net/plist@v0.0.0-20181124034731-591f970eefbb: invalid version: git fetch -f https://gitlab.howett.net/go/plist.git refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /root/go/pkg/mod/cache/vcs/c8e70a3b22313f6fedf9d36ced823fdeb2c8ba51480fd7c16ae40194977aa32a: exit status 128:
        fatal: unable to access 'https://gitlab.howett.net/go/plist.git/': Failed connect to gitlab.howett.net:443; Connection timed out

```

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [August 6, 2020, 1:54am UTC](https://discuss.elastic.co/t/apm-go-agent-install-fails/243936/2 "2020-08-06T01:54:35Z")

</div>

@vulcanfan welcome to the forum!

Which version of Go are you using? Go 1.13+ will use [https://proxy.golang.org/](https://proxy.golang.org/) to fetch module dependencies. I've just confirmed that `howett.net/plist` is cached and available through the proxy.

I presume you're using an older version of Go, otherwise it _should_ be using the proxy - unless you've explicitly disabled GOPROXY. If you upgrade Go or enable GOPROXY then it should resolve the issue.

That specific module is mirrored on GitHub at [https://github.com/DHowett/go-plist/](https://github.com/DHowett/go-plist/). If upgrading Go versions is out of the question, then you could add a `replace` clause in `go.mod`:

`go mod edit -replace howett.net/plist=github.com/DHowett/go-plist@v0.0.0-20181124034731-591f970eefbb`

---

<div class="post-metadata">

**Author:** ![vulcanfan](https://avatars.discourse-cdn.com/v4/letter/v/cab0a1/32.png) [@vulcanfan](https://discuss.elastic.co/u/vulcanfan)\
**Post date:** [August 6, 2020, 7:02pm UTC](https://discuss.elastic.co/t/apm-go-agent-install-fails/243936/3 "2020-08-06T19:02:47Z")

</div>

Hi,

It’s Go 1.13 actually, but you were right about GOPROXY. It was disabled.

I didn’t know about that, many thanks for the tip. I can continue now.

Thanks again and regards

Andy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 27, 2020, 3:02pm UTC](https://discuss.elastic.co/t/apm-go-agent-install-fails/243936/4 "2020-08-27T15:02:50Z")

</div>

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