# Dremio cannot be upgraded to version 25.2.1from 24.0.0

**URL:** <https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928>\
**Category:** Uncategorized\
**Created:** [April 7, 2025, 8:29am UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928 "2025-04-07T08:29:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dremio\_user](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@dremio\_user](https://community.dremio.com/u/dremio_user)\
**Post date:** [April 7, 2025, 8:29am UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/1 "2025-04-07T08:29:55Z")

</div>

Hello I am running dremio on docker and need to upgrade my current version from 24.0.0 to 25 however I am facing issues while running the docker and ansible commands. First Java version openjdk 11 is used but it still dosent work. Another error is KV store error - KVStore has an older version (24.0.0-202302100528110223-3a169b7c) than the server (24.3.5-202404170249350726-2d3a78c1), please run the upgrade tool first. while running dremio-admin upgrade in opt/dremio/bin I am getting command not found. and thus my admin upgrade is also not working. Can someone give steps to resolve these issues .  
usually the command is being executed but the dremio coordinator is not starting up.  
some other errors which I faced :  
Dremio is exiting. Failure while starting services.  
857java.lang.NullPointerException

---

<div class="post-metadata">

**Author:** ![dremio\_user](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@dremio\_user](https://community.dremio.com/u/dremio_user)\
**Post date:** [April 9, 2025, 7:44am UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/2 "2025-04-09T07:44:16Z")

</div>

Any update on this issue  
Below are the logs :

Dremio is exiting. Failure while starting services.  
java.lang.NullPointerException  
at java.base/java.util.Objects.requireNonNull(Objects.java:221)  
atcom.dremio.extusr.azuread.AzureGraphClient.validateScopesForToken(AzureGraphClient.java:144)at com.dremio.extusr.azuread.AzureADUserGroupService.start(AzureADUserGroupService.java:353)

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [April 21, 2025, 3:21pm UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/3 "2025-04-21T15:21:18Z")

</div>

@dremio_user

If you are getting “command not found” then your `dremio-admin` commandis not in path. Let us first make sure the command works. So from the `/opt/dremio/bin` run `./dremio-admin upgrade`

Once that completes successfully, then you should no longer get the KVstore error. Then you can start Dremio

---

<div class="post-metadata">

**Author:** ![dremio\_user](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@dremio\_user](https://community.dremio.com/u/dremio_user)\
**Post date:** [April 23, 2025, 12:44pm UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/4 "2025-04-23T12:44:35Z")

</div>

Hello, Thanks for your reply, yes my path is exactly the same as you mentioned. however in my case ./dremio-admin upgrade is not working. Is there any oter workaround to upgrade the java version and avoid below error

Dremio is exiting. Failure while starting services.  
java.lang.NullPointerException  
at java.base/java.util.Objects.requireNonNull(Objects.java:221)  
atcom.dremio.extusr.azuread.AzureGraphClient.validateScopesForToken(AzureGraphClient.java:144)at com.dremio.extusr.azuread.AzureADUserGroupService.start(AzureADUserGroupService.java:353)

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [May 13, 2025, 2:28pm UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/5 "2025-05-13T14:28:05Z")

</div>

@dremio_user Will the below help to upgrade Java version on a Docker image

To upgrade the Java version in a Docker container, one should modify the Dockerfile used to build the image. There are two primary methods to achieve this:

- **Modify the Base Image:**

- **Install a New Java Version:**

It’s generally recommended to rebuild the Docker image rather than modifying a running container because changes to a running container are lost when the container is stopped or restarted.

> **[How to Update The Default Java Version Used Within a Container](https://forums.docker.com/t/how-to-update-the-default-java-version-used-within-a-container/111213)**
>
> I have a container that I use to run a service called Pterodactyl. This software is used to configure, manage, and host video game servers - amongst those is Minecraft. A recent update to Minecraft has moved the entire game over to Java 16, so I...

---

<div class="post-metadata">

**Author:** ![dremio\_user](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@dremio\_user](https://community.dremio.com/u/dremio_user)\
**Post date:** [July 4, 2025, 6:59am UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/6 "2025-07-04T06:59:50Z")

</div>

Hello, My dremio qas upgraded successfully by deleting the previous java image, Now I do not have any data after upgrade in the test environmnet, is there a way to restore the data or I want to mirror the prod data into test, is there a way to do this?

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [July 14, 2025, 6:06am UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/7 "2025-07-14T06:06:55Z")

</div>

@dremio_user

Have you trird back and restore?

---

<div class="post-metadata">

**Author:** ![dremio\_user](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@dremio\_user](https://community.dremio.com/u/dremio_user)\
**Post date:** [July 18, 2025, 8:46am UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/8 "2025-07-18T08:46:10Z")

</div>

yes, I tried, Cant restore the backup of version 24.0.0 into version 25.2.1. Is that even possible. or after upgrade how do I get my backups restored into the new version ?

---

<div class="post-metadata">

**Author:** ![dremio\_user](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@dremio\_user](https://community.dremio.com/u/dremio_user)\
**Post date:** [July 25, 2025, 8:25am UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/9 "2025-07-25T08:25:34Z")

</div>

or the second option is ..is there a way I can replicate my dremio production instance exactly as it is into the test instance.  
Here the prod version is 24 and test instance version is 25.2.1

---

<div class="post-metadata">

**Author:** ![dremio\_user](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@dremio\_user](https://community.dremio.com/u/dremio_user)\
**Post date:** [July 25, 2025, 8:26am UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/10 "2025-07-25T08:26:35Z")

</div>

basically after upgrade my test instance is empty and I need data either the old one which was there and I have the backup of it. Or it is replicated as prod

---

<div class="post-metadata">

**Author:** ![quangbilly79](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/quangbilly79/32/6549_2.png) [@quangbilly79](https://community.dremio.com/u/quangbilly79)\
**Post date:** [August 14, 2025, 7:03am UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/11 "2025-08-14T07:03:19Z")

</div>

Could you give me the Docker file? I’m currently installing Dremio directly on our company server, but now I want to install using Docker instead for easy maintenance and updates. The problem is Dremio doc only mentions how to install on k8s (which is super complex),and there is no guide on how to install Dremio on Docker.

Could you give me a bit guide?

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [September 2, 2025, 7:16pm UTC](https://community.dremio.com/t/dremio-cannot-be-upgraded-to-version-25-2-1from-24-0-0/12928/12 "2025-09-02T19:16:58Z")

</div>

If it is empty after upgrade, check if the “db” folder is new and has nothing. Ideally an upgrade should not make it empty unless it is a non-persistent disk and image was restarted
