Upgrading to Pega 24.2

When I run the update.sh script I receive the following and the process stops.

I can’t determine what the problem is.

crmpoc:/pega_software/pega24.2/scripts: ./upgrade.sh
INFO ResumeKt - Detected resume.properties, but automatic.resume flag in setupDatabase.properties is set to false.
INFO ResumeKt - Starting over upgrade
INFO ResumeKt - Performing upgrade…
INFO AntScriptWrapper -
INFO AntScriptWrapper - Initialization:
INFO AntScriptWrapper - [echo] Performing Upgrade
INFO AntScriptWrapper - [delete] Deleting: /pega_software/pega24.2/scripts/resume.properties
INFO AntScriptWrapper - [delete] Deleting directory /pega_software/pega24.2/scripts/taskRuntimes
INFO AntScriptWrapper - [mkdir] Created dir: /pega_software/pega24.2/scripts/taskRuntimes
INFO AntScriptWrapper - [delete] Deleting: /pega_software/pega24.2/scripts/logs/Warnings.log
INFO AntScriptWrapper - [pega:propertyparser] Reading Properties from: /pega_software/pega24.2/scripts/setupDatabase.properties
INFO AntScriptWrapper - [pega:propertyparser] pega.jdbc.driver.class=oracle.jdbc.OracleDriver
INFO AntScriptWrapper - [pega:propertyparser] update.existing.applications=false
INFO AntScriptWrapper - [pega:propertyparser] bypass.udf.generation=true
INFO AntScriptWrapper - [pega:propertyparser] pega.jdbc.password=*****
INFO AntScriptWrapper - [pega:propertyparser] update.applications.schema=false
INFO AntScriptWrapper - [pega:propertyparser] automatic.resume=false
INFO AntScriptWrapper - [pega:propertyparser] pega.jdbc.driver.jar=/oracle_software/19.17.0/jdbc/lib/ojdbc8.jar
INFO AntScriptWrapper - [pega:propertyparser] rules.schema.name=rules_admin
INFO AntScriptWrapper - [pega:propertyparser] run.ruleset.cleanup=true
INFO AntScriptWrapper - [pega:propertyparser] pega.jdbc.url=jdbc:oracle:thin:@//hapdevel2.hap.org:1521/crmpoc.hap.org
INFO AntScriptWrapper - [pega:propertyparser] pega.database.type=oracledate
INFO AntScriptWrapper - [pega:propertyparser] user.temp.dir=/pega_software/pega24.2/temp
INFO AntScriptWrapper - [pega:propertyparser] production.level=2
INFO AntScriptWrapper - [pega:propertyparser] customerdata.schema.name=
INFO AntScriptWrapper - [pega:propertyparser] pega.jdbc.username=pega_admin
INFO AntScriptWrapper - [pega:propertyparser] bypass.pega.schema=
INFO AntScriptWrapper - [pega:propertyparser] pega.admin.password=*****
INFO AntScriptWrapper - [pega:propertyparser] data.schema.name=crm_admin
INFO AntScriptWrapper - [pega:propertyparser] system.name=pega
INFO AntScriptWrapper - [echo] Using logging configuration from: /pega_software/pega24.2/scripts/config/deploylogging.properties
INFO AntScriptWrapper - [echo] *** JVM Arguments -Xmx4g -Djava.security.egd=file:///dev/urandom -XX:+HeapDumpOnOutOfMemoryError -Djava.util.logging.config.file=‘/pega_software/pega24.2/scripts/config/deploylogging.properties’ ***
INFO AntScriptWrapper - [propertyfile] Creating new property file: /pega_software/pega24.2/scripts/resume.properties
INFO AntScriptWrapper - [propertyfile] Updating property file: /pega_software/pega24.2/scripts/resume.properties
Found 27155420KB of free space on ‘/pega_software/pega24.2/temp’
INFO AntScriptWrapper - [echo] Driver Path: /oracle_software/19.17.0/jdbc/lib/ojdbc8.jar
INFO AntScriptWrapper - [pega:getbuildcodesetversion] Found runtime codeset version FS_ONLY
INFO AntScriptWrapper - [pega:getbuildcodesetversion] Found manifest codeset version 08-24-51
INFO AntScriptWrapper - [mkdir] Created dir: /pega_software/pega24.2/temp/PegaInstallTemp-15-January-2025-18.59.27/load
INFO AntScriptWrapper - [mkdir] Created dir: /pega_software/pega24.2/temp/PegaInstallTemp-15-January-2025-18.59.27/pr_temp
INFO AntScriptWrapper - [touch] Creating /pega_software/pega24.2/scripts/logs/Warnings.log
INFO AntScriptWrapper - [echo] Using /pega_software/pega24.2/temp/PegaInstallTemp-15-January-2025-18.59.27 for install scratch space…
INFO AntScriptWrapper - [copy] Copying 1 file to /pega_software/pega24.2/temp/PegaInstallTemp-15-January-2025-18.59.27/load
INFO AntScriptWrapper - [copy] Copying 1 file to /pega_software/pega24.2/temp/PegaInstallTemp-15-January-2025-18.59.27
Exception in thread “main” /pega_software/pega24.2/scripts/setupDatabase.xml:796: java.lang.NullPointerException
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:109)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
at com.pega.deploy.AntScriptWrapper.invokeAntTarget(AntScriptWrapper.kt:94)
at com.pega.deploy.SetupDatabase.initialization(SetupDatabase.kt:166)
at com.pega.deploy.UpgradeKt.rulesUpgrade(Upgrade.kt:101)
at com.pega.deploy.UpgradeKt.main(Upgrade.kt:41)
at com.pega.deploy.UpgradeKt.main(Upgrade.kt)
Caused by: java.lang.NullPointerException
at java.security.SecureRandom.nextBytes(SecureRandom.java:475)
at java.security.SecureRandom.next(SecureRandom.java:498)
at java.util.Random.nextLong(Random.java:435)
at java.nio.file.TempFileHelper.generatePath(TempFileHelper.java:69)
at java.nio.file.TempFileHelper.create(TempFileHelper.java:138)
at java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:172)
at java.nio.file.Files.createTempFile(Files.java:863)
at org.apache.tools.ant.util.FileUtils.createTempFile(FileUtils.java:1035)
at org.apache.tools.ant.taskdefs.Replace.processFile(Replace.java:652)
at org.apache.tools.ant.taskdefs.Replace.execute(Replace.java:533)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
… 10 more
Java Process returned a non 0 value

@JohnP695

I think I found the problem. It appears that Java 8 is no longer supported only Java 17. I’m having our Sys Admin install Java 17.

@JohnP695 The issue during the Pega 24.2 upgrade likely comes from the setupDatabase.xml file, where a NullPointerException is caused by a problem creating temporary files. To resolve this, first, ensure the setupDatabase.properties file is correctly configured, especially user.temp.dir, pega.jdbc.driver.jar, and pega.jdbc.url. Check that the temp directory exists, has sufficient space, and allows write access. Verify Java compatibility, set securerandom.source=file:/dev/urandom in Java’s security settings, and ensure the correct Java version is being used. Delete the resume.properties file and rerun the script to avoid conflicts. Check permissions for all necessary folders and ensure no environment variables interfere with the process. If issues persist, enable debug logging in setupDatabase.properties to identify the exact failure point. Also, verify that Apache Ant is installed and compatible. These steps should resolve the issue, but if the problem continues, review the setupDatabase.xml file and logs for further details. Thanks

@Sairohith how to enable debug logging in setupDatabase.properties ? could please explain

@JohnP695 Hello , we have installed JAVA JDK 21 version and it worked to move the script ahead but during the upgrade process , it got stuck with below forever.

INFO AbstractFastCodeLoader - FORCED Loading validation-api-2.0.1.Final.jar …
INFO AbstractFastCodeLoader - FORCED Loading kotlinx-serialization-runtime-0.20.0.jar …
INFO AbstractFastCodeLoader - FORCED Loading kotlinx-serialization-runtime-common-0.20.0.jar …
INFO AbstractFastCodeLoader - FORCED Loading kotlinx-coroutines-core-1.3.5.jar …
INFO AbstractFastCodeLoader - FORCED Loading grizzly-http-server-3.0.0-M1.jar …
INFO AbstractFastCodeLoader - FORCED Loading grizzly-http-3.0.0-M1.jar …
INFO AbstractFastCodeLoader - FORCED Loading grizzly-framework-3.0.0-M1.jar …
INFO AbstractFastCodeLoader - FORCED Loading lucene-core-6.6.1.jar …
INFO AbstractFastCodeLoader - FORCED Loading jest-common-5.3.4.jar …
INFO AbstractFastCodeLoader - FORCED Loading selenium-api-3.141.59.jar …
INFO AbstractFastCodeLoader - FORCED Loading commons-exec-1.4.0.jar …
INFO AbstractFastCodeLoader - FORCED Loading jmatio-1.5.jar …
INFO AbstractFastCodeLoader - FORCED Loading jbig2-imageio-3.0.4.jar …
INFO AbstractFastCodeLoader - FORCED Loading jempbox-1.8.17.jar …
INFO AbstractFastCodeLoader - FORCED Loading spreadsheet-builder-api-3.0.1.jar …
INFO AbstractFastCodeLoader - FORCED Loading picocli-4.7.6.jar …
INFO AbstractFastCodeLoader - FORCED Loading prsoapclient.jar …
INFO AbstractFastCodeLoader - FORCED Loading prmaster-schema.jar …