Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Pega 8.3.1 upgrade fails and connection to the database is lost



Pega Platform 7.3.1 In-place upgrade to Pega Platform 8.3 fails. The upgrade runs correctly for some time. However, the upgrade fails when connecting to the database. This occurs despite connecting to the database several times earlier. 

Error Messages

     [java] Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
     [java]     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl( ~[postgresql-42.2.10.jar:42.2.10]
     [java]     at org.postgresql.core.ConnectionFactory.openConnection( ~[postgresql-42.2.10.jar:42.2.10]
     [java]     at org.postgresql.jdbc.PgConnection.<init>( ~[postgresql-42.2.10.jar:42.2.10]
     [java]     at org.postgresql.Driver.makeConnection( ~[postgresql-42.2.10.jar:42.2.10]
     [java]     at org.postgresql.Driver.connect( ~[postgresql-42.2.10.jar:42.2.10]
     [java]     at com.zaxxer.hikari.util.DriverDataSource.getConnection( ~[HikariCP-java7-2.4.12.jar:?]
  [java] Caused by: Connection reset
     [java]     at ~[?:1.8.0_232]
     [java]     at ~[?:1.8.0_232]
     [java]     at org.postgresql.core.VisibleBufferedInputStream.readMore( ~[postgresql-42.2.10.jar:42.2.10]

Steps to Reproduce

Run the uprade. sh script.

Root Cause

A defect or configuration issue in the operating environment.
The environment is configured to have a maximum number of ports. The Upgrade script opens and closes connections to the database. Once the maximum number of ports is reached, the connection to the database does not occur.


Perform the following local-change:

Multiple resumes of the Upgrade script completes the upgrade.

Change the Environment to increase the maximum number of ports (such that future executions of the Upgrade script can complete without having to resume).

Published April 15, 2020 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us