Performing an In-Place Upgrade performing-an-in-place-upgrade
Pre-Upgrade Steps pre-upgrade-steps
Before executing your upgrade, there are several steps that must be completed. See Upgrading Code and Customizations and Pre-Upgrade Maintenance Tasks for more information. Additionally, make sure that your system meets the requirements for AEM 6.5 LTS and see upgrade planning considerations and how Analyzer can help you estimate the complexity.
Migration Prerequisites migration-prerequisites
- Minimum Required Java version: Make sure you have Oracle’s Java™ 17 installed on your system.
Preparation of the AEM Quickstart jar file prep-quickstart-file
-
Download the new AEM 6.5 LTS jar file
-
Stop the instance if it is running
-
Use new AEM 6.5 LTS jar to replace the old one outside the
crx-quickstart
folder -
Take a backup of the
sling.properties
file (usually present in thecrx-quickstart/conf/
), then delete it -
Unpack the new quickstart jar by running:
code language-shell java -Xmx4096m -jar aem-quickstart.jar -unpack
-
The unpack command will generate a new
sling.properties
file under thecrx-quickstart/conf/
folder. You can now apply your custom changes to newly generatedsling.properties
file.
Performing The Upgrade performing-the-upgrade
If using S3:
-
Remove any jars beneath
crx-quickstart/install
associated with an earlier version of the S3 connector. -
Download the latest release of the 1.60.2 S3 connector from
-
Extract the S3 connector (version 1.60.2) and copy the content of the following folders under
crx-quickstart/install
, as follows:- Copy
com.adobe.granite.oak.s3connector-1.60.2/jcr_root/libs/system/install/1
undercrx-quickstart/install/1
- Copy
com.adobe.granite.oak.s3connector-1.60.2/jcr_root/libs/system/install/15
undercrx-quickstart/install/15
- Copy
Now, start the AEM instance using the new command determined using the information under the Determining the correct upgrade start command section.
Determining the correct upgrade start command determining-the-correct-upgrade-start-command
To execute the upgrade, it is important to start AEM using the jar file to bring up the instance.
Note that starting AEM from the start script will not start the upgrade. Most customers start AEM using the start script and have customized this start script to include switches for environment configurations such as memory settings, security certificates, and so on. For this reason, 51ºÚÁϲ»´òìÈ recommends following this procedure to determine the proper upgrade command:
-
On a running AEM instance, execute the following from the command line:
code language-shell ps -ef | grep java
-
Look for the AEM process. It will look something like:
code language-shell /usr/bin/java -server -Xmx1024m -Djava.awt.headless=true -Dsling.run.modes=author,crx3,crx3tar -jar crx-quickstart/app/cq-quickstart-6.5.0-standalone-quickstart.jar start -c crx-quickstart -i launchpad -p 4502 -Dsling.properties=conf/sling.properties
-
Modify the command by replacing the path to the existing jar (
crx-quickstart/app/aem-quickstart*.jar
in this case) with the new AEM 6.5 LTS jar that is a sibling of thecrx-quickstart
folder. Using our previous command as an example, our command would be:code language-shell /usr/bin/java -server -Xmx4096m -Djava.awt.headless=true -Dsling.run.modes=author,crx3,crx3tar -jar <AEM-6.5-LTS.jar> -c crx-quickstart -p 4502 -Dsling.properties=conf/sling.properties
This will ensure that all proper memory settings, custom runmodes, and other environmental parameters are applied for the upgrade. After the upgrade has completed, the instance may be started from the start script on future startups.
Deploy Upgraded Codebase deploy-upgraded-codebase
Once the in-place upgrade process has been completed, the updated code base should be deployed. Steps for updating the code base to work in the target version of AEM can be found in Upgrade Code and Customizations page.
Perform Post-Upgrade Checks and Troubleshooting perform-post-upgrade-check-troubleshooting
See Post Upgrade Checks and Troubleshooting.