Installing DHIS2 in ubuntu (HTTP Status 404 - Not Found)

Hello , I followed the instruction of installing DHIS2 in ubuntu from http://dhis-2.blogspot.com/ but getting the HTTP Status 404 message. Also i am using a virtual machine to run ubuntu.

versions used

  • ubuntu 22.04 LTS
  • DHIS 2.37
  • Tomcat 9
  • PostgreSQL 14
  • OpenJDK 11

tomcat starts successfully

and My catlina.out is as follow:-

Continuing the discussion from Installing DHIS2 in ubuntu (HTTP Status 404 - Not Found) :

I haven’t received any responses on the old thread so I thought I would start a new post.

I installed a local instance with the following specifications: dhis 2.37 on ubuntu 22.04.3 with PostgreSQL 14, tomcat 9 and java 11. I get HTTP 404 when I try to access it in the url locahost:8080/ROOT. What could be the problem?

Don’t create new topic/threads. (ping @Gassim if you don’t get support)

Isn’t it : http://localhost:8080/ ?

(according to tomcat documentation ROOT is a special case for tomcat where it’s not http://localhost:8080/war_file_name but directly the root path http://localhost:8080)

try to find the tomcat logs if he picked up the war file (check the permissions) and check if there are errors when spring is initializing the whole dhis2 context (ex can’t connect to postgres ?).

note that the blog post you mention is from 2019… we are in 2023.
prefer following an up-to-date documentation : Installation - DHIS2 Documentation

1 Like

Thanks @Stephan_Mestach ! :slight_smile:

@raghav_karki apologies, I had missed this because I needed to have a second look at that page but please note that the page you are referring to is not official. If you are using this for development purposes then I think the fastest and quickest as well as easiest way is to use dhis2 in docker, please see this guide: How to spin up a DHIS2 local instance | DHIS2 Developer Portal

If the installation and configuration was successful then instead of root (we rename from root.war to dhis.war), then the default URL is localhost:8080/dhis