DHIS2 on Windows 10 PC: installation issue

Hi all.
In order to install DHIS2 on windows 10, I’ve installed:
→ JDK 8
→ PostgreSQL 16 with Stack Builder and PostGIS
→ Tomcat 9, using 32-bit/64-bit Windows Service Installer (instead of Tomcat 7 mentioned in the tutorial I followed)
I’ve downloaded the latest (version 41) DHIS2 var file.
To deploy the DHIS2 war file, I ran (as administrator) the Tomcat7w.exe file; but I did not get the expected catalina log.
Instead, I got the attached one which is incomplete and problematic.

As a beginner, I am not allowed to upload file;
however, I’m sending two lines that I’m suspecting “problematic”:
1)
19-Feb-2025 20:02:29.081 GRAVE [main] org.apache.catalina.core.StandardContext.startInternal Un ou plusieurs filtres n’ont pas pu d├®marrer, les d├®tails sont dans le fichier log du conteneur
2)
19-Feb-2025 20:02:29.081 GRAVE [main] org.apache.catalina.core.StandardContext.startInternal Erreur de d├®marrage du contexte [/dhis2-stable-41.3.0] suite aux erreurs pr├®c├®dentes

But, the last line of the catalina log is like follows:

19-Feb-2025 20:02:29.722 INFOS [main] org.apache.catalina.startup.Catalina.start Le d├®marrage du serveur a pris [51605] millisecondes

Despite the suspected issue of the deployment of the war file, I ran the Tomcat7w.exe file and attempted to access DHIS2 via
http://localhost:8080/dhis/: i received the error message:

“The requested resource /dhis is not available”

Any help to resolve this and allow me to complete the installation would be greatly appreciated!
Warm regards.

/dhis is supposed to be the war file you moved. If there’s an issue with the file itself (incomplete download or access issues), or if Tomcat isn’t connecting to the Postgresql database properly so you might want to check those settings.

On the other hand, if this is for development, I recommend using Docker instead, please follow this quick guide: How to spin up a DHIS2 local instance | DHIS2 Developer Portal

@Gassim ,

Thank you for your reply and the suggestion above.
But unfortunately, my MS PC doesn’t meet some cruacial requirements related to this type of installation;
I’m planning to install a Linux machine on my PC and then install a DHIS instance on it; so, the quick guide that you provided is it applicable to Linux PC?
Thanks a lot!

1 Like

You’re welcome!

Would you please share the specifications for your MS PC?

It sounds like a longer way to do this but if you have the passion to set it up that way and experiment then it’s a good idea. In you take this path, I’d recommend trying this guide: Automated Install on Ubuntu - DHIS2 Documentation

Thanks!