Install ssg 11.x patch using CLI commands with error: Error: Could not find or load main class com.l7tech.server.processcontroller.patching.PatchVerifier
search cancel

Install ssg 11.x patch using CLI commands with error: Error: Could not find or load main class com.l7tech.server.processcontroller.patching.PatchVerifier

book

Article ID: 275989

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

While trying to script the monthly OS patching using CLI commands, the process is failing. Here are the commands for uploading and installing:

/opt/SecureSpan/Controller/bin/patch.sh upload  <file local path>/Layer7_API_PlatformUpdate_64bit_v11.X-Debian-2023-11-01.L7P*

/opt/SecureSpan/Controller/bin/patch.sh install   Layer7_API_PlatformUpdate_64bit_v11.X-Debian-2023-11-01.L7P*

 

2023-11-10T09:01:59.033-0500 INFO    25 com.l7tech.server.processcontroller.patching.PatchServiceApiImpl: Output from patch install: Error: Could not find or load main class com.l7tech.server.processcontroller.patching.PatchVerifier
2023-11-10T09:01:59.034-0500 INFO    25 com.l7tech.server.processcontroller.patching.PatchServiceApiImpl: Output from patch install: Caused by: java.lang.ClassNotFoundException: com.l7tech.server.processcontroller.patching.PatchVerifier
2023-11-10T09:01:59.040-0500 INFO    25 com.l7tech.server.processcontroller.patching.PatchServiceApiImpl: Output from patch install: Package verification failure when attempting to install patch.
2023-11-10T09:01:59.047-0500 INFO    25 com.l7tech.server.processcontroller.patching.PatchServiceApiImpl: Patch exit code: 1

Environment

ssg 11.x 

Cause

Patch service has moved to use PatchManagement service in ssg 11.  

Resolution

Stop gateway:  

/opt/SecureSpan/Gateway/runtime/bin/gateway.sh stop

Load patch file and install patch:  

/opt/SecureSpan/PatchManagement/bin/patch.sh <action>
 
Where:
"<action>"  is an action from the table below. You must upload first, then install:

-  upload <filename>    
           Uploads the patch named <filename> to the Layer7 API Gateway.
-  install <patch_ID>    
          Installs the patch with the identifier <patch_ID>. This patch must already be uploaded using the upload action.

Note: in the old version of gateway,  the script used for upload and install was 

 /opt/SecureSpan/Controller/bin/patch.sh

This script could result runtime error and fail to install the patch.