Upgrading the UGC Moderation and Community microservices

You need to upgrade the resources of the two UGC microservices: the UGC Moderation service and the UGC Community service.

Procedure

  1. If the server on which this microservice is installed is a Windows machine, uninstall the Windows service by doing the following:
    1. On the server, open a Powershell command prompt.
    2. Access the bin\ subfolder of the microservice root folder.
    3. Run the script called uninstallService.ps1. (If you are running the service on a different default HTTP port than the default, add a server.port parameter and set it to your custom port number.)
  2. On the server on which the UGC Moderation service is installed, navigate to the library location of the microservice.
  3. Back up any custom microservice extensions you have created to a safe location.
  4. On your SDL Tridion Docs 14 installation media, navigate to the folder Content Delivery\roles\.
  5. Navigate to the subfolder ugc\service-community\standalone\.
  6. Back up your configuration files for this microservice to a safe location.
  7. Back up any custom files in the microservice location to a safe location.
  8. Delete all files and subfolders from the microservice location.
  9. Copy the contents of the installation media folder, including subfolders, to your installed microservice location.
  10. Restore any backed-up custom microservice extensions to your microservice.
  11. If you have modified the Storage Layer configuration file, cd_storage_conf.xml for this microservice, merge the contents of your backed-up cd_storage_conf.xml with your new cd_storage_conf.xml. Make sure that the resulting file has an attribute NamespaceServiceBean set to the value UGCNamespaceService in the Storage element that specifies your UGC database. Otherwise, leave the new cd_storage_conf.xml unchanged.
  12. Copy the remaining backed-up configuration files back to the config\ folder of your micoservice.
  13. If the server on which this microservice is installed is a Windows machine, install the Windows service by doing the following:
    1. On the server, open a Powershell command prompt.
    2. Access the bin\ subfolder of the microservice root folder.
    3. Run the script called installService.ps1.
    On a non-Windows machine, simply run the start script in the bin/ subdirectory.
  14. On the server on which the UGC Community service is installed, navigate to the library location of the microservice.
  15. Repeat steps 3 and 4.
  16. Navigate to the subfolder ugc\service-moderation\standalone\.
  17. Repeat steps 6 through 10.