Patch application failed on Linux server with Database Connection error


We are facing an issue while applying a patch on our Linux server. The Patch get failed and throwing connectivity errors with the backend database. In the patch log, we are seeing the below error:-

ERROR ROOT c.a.p.p.steps.BackendDBConnection - Error while creating connection with backend database : Exception Id "7a5e2365-38a7-47be-b8d8-d50480ab97db" Message :Not able to connect with database, to continue with patch process database should be accessible.
[Database type=Oracle]
[prerequisite step=Step to check backend database connection]
at ~[patchUpdate.jar:na]



The initial error in the logs was not descriptive enough. So when tested with a Database utility(attached below) with additional logging we were able to see the exact error, we have found the following error:-

java.sql.SQLRecoverableException: IO Error: Connection reset by peer, Authentication lapse 87623 ms.
at oracle.jdbc.driver.T4CConnection.logon(
at oracle.jdbc.driver.PhysicalConnection.connect(
at oracle.jdbc.driver.T4CDriverExtension.getConnection(
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at test.DatabaseConnectionTest.createConnection(
at test.DatabaseConnectionTest.main(
Caused by: Connection reset by peer, Authentication lapse 87623 ms.
at oracle.jdbc.driver.T4CConnection.logon(
... 7 more


This is an environment-specific issue and some customers face this issue when their Linux servers face trouble while generating Random numbers, when the Adeptia tries to generate a random number but JVM is unable to generate the number resulting in the Patch Application failure. More details are available on the below link:-



In order to resolve this issue, kindly, perform the following steps and make the required changes. The steps are:-

  • Goto the extracted patch folder.
  • Open file in edit mode and search for "Invoke command" section.
  • Now, replace the second line with the following one:- 

java -Xms256M -Xmx2048M -DinstallationDirectory="$installDirPath" -DpatchMode="deployment" -Dcomponent=$component -cp "libs/logback-access-1.1.3.jar:libs/logback-classic-1.1.3.jar:libs/logback-core-1.1.3.jar:libs/*:etc"


  • Save the file and apply the patch again.
Have more questions? Submit a request


Article is closed for comments.