Question
Areteans
NZ
Last activity: 8 Mar 2021 14:28 EST
Issue when starting 8.4 Personal Edition
Hello,
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.
Thanks,
Satish
***Edited by Moderator Marissa to update Platform Capability tags****
-
Likes (1)
Nirup Cherlakola -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 23 Jun 2020 8:21 EDT
Areteans
NZ
The issue is resolved by starting the DB server using below command and then starting the tomcat instance-
D:\PRPCPersonalEdition\pgsql\bin>pg_ctl -D D:\PRPCPersonalEdition\pgsql\data start
Above highlighted could change based on the personal edition installation.
However I was expecting starting tomcat instance would take care of starting DB server as well as I havent explicitly started DB server for personal edition in the past.
Thanks,
Satish
Pegasystems Inc.
US
Please check if the postgres db starts up correctly first.
Areteans
NZ
Hi Kevin,
I dont think PE is able to connect to pgsql. Attached the tomcat logs for this behaviour. Do you mind taking a look at the log and suggest.
Appreciate in case of suggestions.
Thanks,
Satish
TCS
IN
Hi.
how to check that , when I ran below command(D:\PRPCPersonalEdition\pgsql\bin>pg_ctl) it is giving error as below .
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Are you trying to use both versions of Personal editions at the same time?
Areteans
NZ
No only one at a time as I assume both might use the same ports. But please do let me know if i can run both at a time by updating the ports for each and how that can be done.
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Please find the below article which might be helpful.
https://collaborate.pega.com/question/issue-installation-two-versions-pega-7-personal-editions
-
Satish Kumar Lade
Pegasystems Inc.
IN
Hi Satish,
This probably not an issue with Pega PE. Can you please check the postgresql version and JDBC driver that you are using.
Also, the maximum number of parallel connections that you DB is accepting.
Can you also please check:-
Warm Regards,
Venkat
Areteans
NZ
Hi Venkat,
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
<Resource name="jdbc/PegaRULES" auth="Container" type="javax.sql.DataSource" maxTotal="100" maxIdle="30" maxWaitMillis="10000" driverClassName="org.postgresql.Driver" url="jdbc:postgresql://localhost:5432/postgres" username="postgres" password="postgres"/>
Do you mind taking a look at the tomcat log attached which has the error details when this behaviour is observed.
Pegasystems Inc.
GB
Hi,
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.) at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2303)
Also check below link, try the solution given and let us know
https://collaborate.pega.com/question/unable-connect-database-will-only-use-properties-file
Areteans
NZ
Thanks for the response and I dont see any issues with the configuration as suggested in the link.
Pegasystems Inc.
IN
Hi,
Please check the context.xml and setupdatabase.properties files if the ports and DB details are mentioned or not.
Please verify the same with your database configuration.
Areteans
NZ
Thanks for the reponse. context.xml has the DB details as attached but am not sure of the other file to validate. Can you please advise.
Thanks,
Satish
Accepted Solution
Updated: 23 Jun 2020 8:21 EDT
Areteans
NZ
The issue is resolved by starting the DB server using below command and then starting the tomcat instance-
D:\PRPCPersonalEdition\pgsql\bin>pg_ctl -D D:\PRPCPersonalEdition\pgsql\data start
Above highlighted could change based on the personal edition installation.
However I was expecting starting tomcat instance would take care of starting DB server as well as I havent explicitly started DB server for personal edition in the past.
Thanks,
Satish
-
Pradeep Patnam Cristobal Hernandez Ashwani Mishra
Pegasystems Inc.
US
This helped me since it now show the error I was getting. VCRUNTIME140.dll Is Missing
Pegasystems Inc.
US
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.
TATA CONSULTANCY SERVICES
GB
@hernc I am also getting same issue, could you help me how to resolve this?
Pegasystems Inc.
US
@Suma Perumalla Just download and install "Visual C++ Redistributable for Visual Studio 2015". This would install the library that is needed.
@Suma Perumalla Just download and install "Visual C++ Redistributable for Visual Studio 2015". This would install the library that is needed.
TATA CONSULTANCY SERVICES
GB
@hernc Thank you. This helped me in successful installation.