Pivotal Knowledge Base

Follow

Fail Message "Error while Creating Database Accessor" When Starting Ambari

Environment

 Product  Version
 Pivotal HD/ HDP   3.x/ 2.3,2.4
 Ambari  2.x

Symptom

When trying to start Ambari, the restart fails with the following error in /var/log/ambar-server/ambari-server.log:

07 Nov 2016 16:13:32,911 ERROR [main] DBAccessorImpl:106 - Error while creating database accessor 
org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. 

Cause 

Ambari's backend database is not working correctly.

Resolution

Check the Ambari backend database; it is likely not running correctly. If the backend database is POSTGRESQL, the following commands may be useful:

service postgresql status
service postgresql restart

If the above solution does not help, review the relevant database logs and contact the provider to understand why the database is not accepting connections.

  

Comments

Powered by Zendesk