Pivotal Knowledge Base


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


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


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. 


Ambari's backend database is not working correctly.


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.



Powered by Zendesk