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