Can you please check if the postgresql service is running on ambari server (if you are running default embedded database for ambari)
# service postgresql status
# netstat -ntpl | grep 5432
If not please start postgresql and then try to start ambari-server