Error in Installing (Error Status 404)

I try to install DHIS2 for one week and always failed :frowning:
I use Java 8 (jdk and jre 8), Postgres 13, Postgis 3.1.2, Tomcat 9 and Latest DHIS account.
I also already set the environment. but no result :frowning:
This is the error messages:

HTTP Status 404 – Not Found

Type Status Report

Message The requested resource [/dhis] is not available

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

Thank you so much! Really appreciate if anyone wants to help!

Hello @retalily ,

can you explain how you installed dhis 2 ? with dhis2-tools ? manually ?

Is your Apache tomcat starting without error ?

Are you on Linux or Windows ?

did you follow the official documentation ?

Hello. I really appreciate the reply!
I installed it with Windows 10. I follow http://dhis-2.blogspot.com/ exactly like the procedure. This is what is written in my tomcat installation:
25-Aug-2021 13:08:17.920 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

  • INFO 2021-08-25T13:08:18,826 System property dhis2.home not set (LogOnceLogger.java [main])
  • INFO 2021-08-25T13:08:18,841 Environment variable DHIS2_HOME points to C:\DHIS2 (LogOnceLogger.java [main])
  • INFO 2021-08-25T13:08:18,857 File C:\DHIS2\dhis-google-auth.json does not exist (LogOnceLogger.java [main])
  • INFO 2021-08-25T13:08:18,857 Could not find dhis-google-auth.json (LogOnceLogger.java [main])
  • INFO 2021-08-25T13:08:22,216 Monitoring metric for key monitoring.jvm.enabled is disabled (MetricsEnabler.java [main])
  • INFO 2021-08-25T13:08:22,216 Monitoring metric for key monitoring.cpu.enabled is disabled (MetricsEnabler.java [main])
  • INFO 2021-08-25T13:08:22,216 Monitoring metric for key monitoring.uptime.enabled is disabled (MetricsEnabler.java [main])
  • INFO 2021-08-25T13:08:22,216 Monitoring metric for key monitoring.dbpool.enabled is disabled (MetricsEnabler.java [main])
  • INFO 2021-08-25T13:08:22,231 Monitoring metric for key monitoring.hibernate.enabled is disabled (MetricsEnabler.java [main])
  • INFO 2021-08-25T13:08:22,231 Monitoring metric for key monitoring.api.enabled is disabled (MetricsEnabler.java [main])
  • INFO 2021-08-25T13:08:26,527 Hibernate configuration loaded: dialect: ‘org.hisp.dhis.hibernate.dialect.DhisPostgresDialect’, region factory: ‘org.hibernate.cache.ehcache.EhCacheRegionFactory’, connection pool max size: null (DefaultHibernateConfigurationProvider.java [main])

This is inside the Path of my environment:


@didate Thank you so much for your help!
I found my own mistake and fixed it now.
Turns out it needs 24 password code for encryption.password=.
Thank you very much for your help! Much appreciated!

2 Likes