# Elastic Agent upgrade option is grayed out on Fleet Server

**URL:** <https://discuss.elastic.co/t/elastic-agent-upgrade-option-is-grayed-out-on-fleet-server/344753>\
**Category:** Elastic Agent\
**Created:** [October 10, 2023, 3:34pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-option-is-grayed-out-on-fleet-server/344753 "2023-10-10T15:34:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 10, 2023, 3:34pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-option-is-grayed-out-on-fleet-server/344753/1 "2023-10-10T15:34:37Z")

</div>

Hello,

In the product compatibility support matrix page it says that Elasticsearch 8.10.X is compatible with Elastic Agent 7.17.x - 8.10.X, so I would expect the there is no incompatibility issues between patch versions.

For example, Elastic Agent 8.10.3 should be compatible with the stack on version 8.10.2.

However, if I go to fleet page to try to upgrade an agent, the upgrade option is grayed out.

![Screenshot from 2023-10-10 12-19-10](https://us1.discourse-cdn.com/elastic/original/3X/1/1/112ac528eb66c67676d04d510507fdddaf92982f.png)

Looking at the [documentation](https://www.elastic.co/guide/en/fleet/current/upgrade-elastic-agent.html#upgrade-an-agent), it says this:

> The **Upgrade agent** option is grayed out if an upgrade is unavailable or the Kibana version is lower than the agent version.

So, in this case I cannot upgrade an agent to version 8.10.3 if I'm using Kibana 8.10.2, and to use Kibana 8.10.3 I would need to upgrade the entire stack to 8.10.3, the [documentation](https://www.elastic.co/guide/en/kibana/current/setup.html#elasticsearch-version) about Kibana compatilibity states that running different patch versions is generally supported, but it does not make clear if this applies to Kibana patch being higher than Elasticsearch patch version.

Is there any way to force the upgrade of a single agent without the need to upgrade the entire stack?

Upgrade the entire stack to be able to upgrade a single agent to fix a bug is really not the best approach and it is not what is described in the support matrix page.

---

<div class="post-metadata">

**Author:** ![Craig\_Rodrigues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craig_rodrigues/32/121875_2.png) [@Craig\_Rodrigues](https://discuss.elastic.co/u/Craig_Rodrigues)\
**Post date:** [October 10, 2023, 4:56pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-option-is-grayed-out-on-fleet-server/344753/2 "2023-10-10T16:56:36Z")

</div>

I don't have a good answer to your question, but I thought I would add some details of my research, since I have had the same question.

I think in the Kibana UI, the logic for what agent version to use comes from:

- [useAgentVersion()](https://github.com/elastic/kibana/blob/1fb81fbe1d6626073aa451d047f0b60c472f3369/x-pack/plugins/fleet/public/hooks/use_agent_version.ts#L17)
- [sendGetAgentsAvailableVersions()](https://github.com/elastic/kibana/blob/ae075848e83eba6ed411f063ce7ed807b5c545a1/x-pack/plugins/fleet/public/hooks/use_request/agents.ts#L328)

Maybe an elastic-agent developer can chime in,  
but reading that code, I can't understand if you have an  
elastic-agent at version: MAJOR.MINOR.PATCH,  
if the Kibana logic kicks out the ability to update to an elastic agent with a PATCH version which is higher than the PATCH version of the currently running Kibana.

Elastic devs, care to chime in?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 10, 2023, 5:01pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-option-is-grayed-out-on-fleet-server/344753/3 "2023-10-10T17:01:34Z")

</div>

I already opened an feature request [issue](https://github.com/elastic/kibana/issues/168502) on Github.

If the support matrix says that Elastic Agent 8.10.X is compatible with Elasticsearch 8.10.X, then the user should be able to upgrade it through Kibana, the version should be pinned on the minor version, not the patch version.

But if the Elastic Agent version needs to be pinned to the patch version of Kibana, then the Support Matrix should reflect this and says that patch versions are not fully compatible.

---

<div class="post-metadata">

**Author:** ![Craig\_Rodrigues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craig_rodrigues/32/121875_2.png) [@Craig\_Rodrigues](https://discuss.elastic.co/u/Craig_Rodrigues)\
**Post date:** [October 10, 2023, 6:12pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-option-is-grayed-out-on-fleet-server/344753/4 "2023-10-10T18:12:16Z")

</div>

Agree with you 💯

If you manually (outside of Kibana UI)  
try to run elastic-agent 8.10.3 and try to connect it to Kibana Fleet 8.10.2 does that work, or does that get kicked out at the API level.

I don’t have a Kibana 8.10.2 setup to test.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 21, 2023, 7:00pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-option-is-grayed-out-on-fleet-server/344753/5 "2023-10-21T19:00:03Z")

</div>

> [@Craig\_Rodrigues](#):
>
> If you manually (outside of Kibana UI)  
> try to run elastic-agent 8.10.3 and try to connect it to Kibana Fleet 8.10.2 does that work, or does that get kicked out at the API level.

If you manually upgrade the agents usind `./elastic-agent upgrade version` it will work, there is no issue.

I'm on 8.10.2 (Elasticsearch, Kibana, Fleet Server) but have agents on 8.10.4, both agents that I upgraded manually and new agents on version 8.10.4 enrolled without any issue.

But you can't upgrade through the Fleet UI because the version is pinned on Kibana version.

---

<div class="post-metadata">

**Author:** ![Craig\_Rodrigues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craig_rodrigues/32/121875_2.png) [@Craig\_Rodrigues](https://discuss.elastic.co/u/Craig_Rodrigues)\
**Post date:** [October 21, 2023, 7:25pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-option-is-grayed-out-on-fleet-server/344753/6 "2023-10-21T19:25:49Z")

</div>

Thanks for the feedback. I'm not sure if you  
have an Enterprise contract with Elastic, but I do,  
so I filed a ticket at [https://support.elastic.co](https://support.elastic.co), and referred to your GitHub [issue](https://github.com/elastic/kibana/issues/168502).

I also have interest in having this problem fixed.

---

<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:** [November 18, 2023, 7:26pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-option-is-grayed-out-on-fleet-server/344753/7 "2023-11-18T19:26:02Z")

</div>

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