Error HTTP Status when installing dhis2

Hi, i have done with all the configuration unfortunately when i run the URL i get this error HTTP Status 404 – Not Found . i installed ubuntu 22.04 java 17 and tomcat 9 . Here is the catalina log GNU nano 6.2 catalina.2024-03-27.log - Pastebin.com

HTTP Status 404 – Not Found


Type Status Report

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat/9.0.58 (Ubuntu)

Please if you can help me, thank you

Hi @Ornella

Could you double check the dhis.conf settings specifically DHIS2_HOME ?

If the settings are correct, please ensure that the dhis2 tomcat permissions for the directory are correct, you might have entered the command tomcat 8 but you are using tomcat 9, here: Installation - DHIS2 Documentation

For example, instead of:
sudo apt-get install -y tomcat8-user
use
sudo apt-get install -y tomcat9-user
and so on

I hope this fixes it! :slight_smile:

here is my dhis.conf setting:

  1. #!/bin/sh

  • CATALINA_HOME=/usr/share/tomcat9

  • Find the Java runtime and set JAVA_HOME

  1. . /usr/libexec/tomcat9/tomcat-locate-java.sh
  • Default Java options

  1. if [ -z “$JAVA_OPTS” ]; then

  2. JAVA_OPTS=“-Djava.awt.headless=true”

  3. fi

  4. export JAVA_HOME=‘/usr/lib/jvm/java-11-openjdk-amd64/’

  5. export JAVA_OPTS=‘-Xmx2000m -Xms1000m’

  6. export DHIS2_HOME=‘/home/dhis/config’

Yes i have already installed java 11, tomcat 8 and postgre14 .

I manage to install it, thank you. It was a permission problem

1 Like