It looks like from the output that you aren't even getting the initial database connection. Can you use psql to open a session to the database using the username and hostname you have defined? You may need to update your pg_hba.conf file for postgresql to allow for the proper connections to the database.