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

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