Upgrading the Contextual Image Delivery microservice
If you are upgrading from SDL Web 8.5, and you have Contextual Image Delivery set up as a standalone microservice, some changes to your Ehcache configuration are required. If you are upgrading from SDL Tridion Sites 9, the upgrade is more straightforward.
Procedure
- If the server on which this microservice is installed is a Windows machine, uninstall the Windows service by doing the following:
- On the server, open a Powershell command prompt.
- Access the bin\ subfolder of the microservice root folder.
- Run the script called uninstallService.ps1. (If you are running the service on a different default HTTP port than the default, add a
server.portparameter and set it to your custom port number.)
- On the server on which this microservice is installed, do one of the following:
- If your microservice runs as a standalone microservice, navigate to the configuration location of the microservice.
- If you are upgrading from SDL Web 8.5, and if your microservice runs as a (now discontinued) deprecated Java/JSP web application-based microservice, navigate to the WEB-INF/classes/ subdirectory of the web application.
- Back up the contents of this folder to a safe location.
- Back up any custom microservice extensions you have created to a safe location.
- Delete all files and subfolders from the microservice location or, if you are upgrading from SDL Web 8.5 and your microservice ran as a web application, from the web application location.
- On your SDL Tridion Sites 9.1 installation media, navigate to the folder Content Delivery\roles\.
- Navigate to the cid\ subfolder.
- Navigate to the standalone\ subfolder.
- Do one of the following:
- If your microservice runs as a standalone microservice, copy the contents of the installation media folder, including subfolders, to your installed microservice location.
- If you are upgrading from SDL Web 8.5, and if you were running a (now discontinued) Java/JSP web application-based microservice, migrate to a standalone microservice by copying the contents of the installation media folder, including subfolders, to a location of your choice.
- If you have modified or customized the configuration file ehcache_context_image.xml, merge its contents with the same file as found on your installation media, and exclude it from the backed-up configuration files you restore in the next step.
- If you have previously made changes to the application.properties file that you backed up, compare your backed-up application.properties file to the new one you just copied, and reapply your customizations to the new file.
- Restore the rest of your backed-up configuration files (but not the schemas\ subfolder) to the configuration location of the microservice.
- Restore any backed-up custom microservice extensions to your microservice.
- If the server on which this microservice is installed is a Windows machine, install the Windows service by doing the following:
- On the server, open a Powershell command prompt.
- Access the bin\ subfolder of the microservice root folder.
- Run the script called installService.ps1.
On a non-Windows machine, simply run the start script in the bin/ subdirectory.