# \[ERROR\]\[plugins.fleet\] Failed to fetch latest version

**URL:** <https://discuss.elastic.co/t/error-plugins-fleet-failed-to-fetch-latest-version/335115>\
**Category:** Elastic Agent\
**Created:** [June 2, 2023, 6:13pm UTC](https://discuss.elastic.co/t/error-plugins-fleet-failed-to-fetch-latest-version/335115 "2023-06-02T18:13:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Verdugo\_Gonzalo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/verdugo_gonzalo/32/37680_2.png) [@Verdugo\_Gonzalo](https://discuss.elastic.co/u/Verdugo_Gonzalo)\
**Post date:** [June 2, 2023, 6:13pm UTC](https://discuss.elastic.co/t/error-plugins-fleet-failed-to-fetch-latest-version/335115/1 "2023-06-02T18:13:02Z")

</div>

Hello everyone I have the same error that is shown in this closed post: ([Fleet server loading slowly](https://discuss.elastic.co/t/fleet-server-loading-slowly/321108))

Internet access goes through a proxy, but throwing curl to said URL responds without problems.

Also added this info

```auto
Jun 02 14:53:19 pv1plnxelk0003 kibana[17315]: [2023-06-02T14:53:19.057-03:00][ERROR][plugins.fleet] Failed to fetch latest version of elastic_agent from registry: Error connecting to package registry: request to https://epr.elastic.co/search?package=elastic_agent&prerelease=false&kibana.version=8.8.0 failed, reason: connect ETIMEDOUT 34.120.127.130:443

```

add in the environment variables the following, but nothing changes.

```auto
NODE_EXTRA_CA_CERTS="/etc/kibana/certs/ca/ca.crt"

```

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Verdugo\_Gonzalo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/verdugo_gonzalo/32/37680_2.png) [@Verdugo\_Gonzalo](https://discuss.elastic.co/u/Verdugo_Gonzalo)\
**Post date:** [June 8, 2023, 4:43pm UTC](https://discuss.elastic.co/t/error-plugins-fleet-failed-to-fetch-latest-version/335115/2 "2023-06-08T16:43:46Z")

</div>

I can't believe this doesn't have a solution.

---

<div class="post-metadata">

**Author:** ![Verdugo\_Gonzalo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/verdugo_gonzalo/32/37680_2.png) [@Verdugo\_Gonzalo](https://discuss.elastic.co/u/Verdugo_Gonzalo)\
**Post date:** [June 16, 2023, 5:11pm UTC](https://discuss.elastic.co/t/error-plugins-fleet-failed-to-fetch-latest-version/335115/3 "2023-06-16T17:11:30Z")

</div>

with this I am solved  
`xpack.fleet.registryProxyUrl: your-nat-gateway.corp.net`

---

<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:** [July 14, 2023, 5:11pm UTC](https://discuss.elastic.co/t/error-plugins-fleet-failed-to-fetch-latest-version/335115/4 "2023-07-14T17:11:51Z")

</div>

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