I see that 8.4 personal edition does not start sometimes. This doesnt seem to be an issue with 8.4 as I have seen same issue with 8.1 PE too and both instances have the same error. I have attached the tomcat log file which has error details observed during startup and below is an extract from the log file-
04-May-2020 13:04:15.855 SEVERE [localhost-startStop-1] org.postgresql.Driver.connect Connection error:
org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
It would be helpful if someone can review the log error and suggest the reason for this behaviour and how to address it.
***Edited by Moderator Marissa to update Platform Capability tags****
I am not sure which version of pgsql comes with PE for 8.4. However noticed that pgadmin4 client is of the version 1.1 and tomcat is configured to use org.postgresql.Driver as per below tomcat settings in context.xml
In logs it clearly says that unable to connect to database.
04-May-2020 13:04:15.865 SEVERE [localhost-startStop-1] com.pega.pegarules.internal.bootstrap.PRBootstrapDataSource. Unable to connect to database. Will only use properties from file.
java.sql.SQLException: Cannot create PoolableConnectionFactory (Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)
Also check below link, try the solution given and let us know
I also had this problem when installed on Windows Server 2019. The problem was that it didn't have VCRUNTIME140.dll. needed to run the DB. To fix it I had to install Visual C++ Redistributable for Visual Studio 2015.