Hi, I have a new goal now.
I now want to change the war file from 2.38 to 2.42. However, to my knowledge, in 2.38, we have JDK 11 and Tomcat 9, but for 2.42, we need JDK 17 and Tomcat 10. I have applied two ways until now.
i have started from scratch and installed Java then Postgres then tomcat10 but having issues with it.
In the end, it doesn’t work.
and 2nd I have git cloned from Git Hub and changed in the file like guest os =24.04,jdk 17, and war file link.
Now I want if anyone has some links to the instructions or any tips and tricks that might come in handy and guide me with it.
Thanks,
Tahir Zaman khalid
Would you be able to specify what’s not working? Could it be that it’s not recognizing JDK 17 path? It sounds like the suggestion by @Mohindar’s might solve this if it’s a java version issue:
Dear Tahir,
Please can you share your experience, how you went about doing the upgrade, any hidden tips, or certain pros and cons that you followed? We want to know so we might not make similar mistakes in the future.
In our standard installation, we use LXD containers, each running its own operating system—typically Ubuntu LTS releases. These container or guest operating systems are immutable, meaning once the OS is set during initial deployment, it cannot be changed later by simply modifying the guest_os=24.04 parameter.
To upgrade to DHIS2 version 42, there are key prerequisites:
Tomcat 10
Java 17
An implied requirement is Ubuntu 24.04, since Tomcat 10 is only available via apt on this version of Ubuntu.
Summary:
You cannot perform an in-place upgrade from DHIS2 version 2.41 or earlier. Instead, you must provision a new guest environment—either an LXD container or VM—running Ubuntu 24.04, and migrate your instance there.