HTTP Status 404 - Not Found
Type Status Report
Message Not found
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.24 (Ubuntu)
When I checked: tail -f tomcat-dhis / logs / catalina.out
root@uprisma:/home/dhis# tail -f tomcat-dhis/logs/catalina.out
<2> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
<2> at java.lang.reflect.Method.invoke(Method.java:498)
<2> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
<2> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:479)
<2>
<6>Pausing ProtocolHandler ["http-nio-8080"]
<6>Stopping service [Catalina]
<6>Stopping ProtocolHandler ["http-nio-8080"]
<6>Destroying ProtocolHandler ["http-nio-8080"]
Looks like the problem is related to the connection to the database.
Is postgresql installed in the same machine?
Check the database link in the dhis.conf file, from outside dhis2 try to debug and check if the database at that link and port is actually accessible, if it’s not accessible figure out what the right link and port and change it accordingly, look for any wrong database parameters dhis2 have that need to be corrected.
in dhis.conf file try change the connection.url to:
connection.url = jdbc:postgresql://localhost:5432/name-of-database
see what the name of the dhis database that was created and replace name-of-database with it and then restart the instance
if dhis could acquire the connection to the database during startup it will create the tables automatically. but it couldn’t connect to the database.
could you go to dhis.conf file and try change the connection.url to:
connection.url = jdbc:postgresql://localhost:5432/dhis2