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

I installed DHIS2 according to the tutorial http://dhis2trainingland.com/eportal/?tutorial=dhis2-installation-on-ubuntu-19-04-lts-digital-ocean

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"]

Help me :slight_smile:

Hi @desawarna,

Can you share more/all of the Exception/logs?

2 Likes

Hi @lthengo this my catalina.out
https://gist.github.com/desawarna/36dc583548d2dad5619e4b6139fb830c

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

1 Like

I checked PostgreSQL - its runing , and connected to DHIS2

PostgreSQL connected but when i check in pgadmin 4, database DHIS2 no tables,
how do you add the tables?

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