When OS patching is done, it is possible that the Java / JRE / JDK as part of the Operating System gets updated too.
When AutoSys Agent/Web Server are configured to use operating system Java, and if the Java Paths referred to are no longer valid now, neither Agent/Web Server can start.
./cybAgent -aAgent service is starting...The service did not respond to the start request in a timely fashion
Agent's cybagent_service.log contains an error like this
08/09/2024 10:17:21.904-0400: Database check succeeded08/09/2024 10:17:21.904-0400: JVM doesn't exist at the specified java path /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el7_7.x86_64/jre/bin/
With restart option of unisrvcntr, one would see a FAILED status on the Web Server and Soap Web Server
WAAE Soap Web Server FAILEDWAAE Web Server (ACE) FAILED
This is because the Agent / Web Server / Soap Web Server were configured with a hard coded JVM path that does not exist on the operating system anymore.
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el8_7.x86_64/jre/bin/
When OS patching is done, if Java/JRE packages were added as part of the OS, then those Java/JRE packages get upgraded. Older Java/JRE builds are removed too. Which means the build 1.8.0.352 in the above case, is no longer present on the OS.
This causes Agent, SOAP Web Server and Web Server not to start anymore.
ls -al /etc/alternatives/jre_openjdklrwxrwxrwx. 1 root root 75 Jul 25 11:20 /etc/alternatives/jre_openjdk-> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.412.b08-2.0.1.el7.x86_64/jre
Note: the build number is 412 above, as opposed to 352 that the agent was looking for earlier/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.412.b08-2.0.1.el7.x86_64/jre/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.412.b08-2.0.1.el7.x86_64/jre
oscomponent.javapath=/etc/alternatives/jre_openjdk$AUTOUSER/webserver/conf/wrapper.conf check for set.JAVA_HOME = ../../JRE_WA
ls -al /opt/CA/WorkloadAutomationAElrwxrwxrwx. 1 root root 29 Jul 25 11:22 JRE64_WA -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el7.x86_64/jrelrwxrwxrwx. 1 root root 29 Jul 25 11:21 JRE_WA -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el7.x86_64/jre
rm -rf /opt/CA/WorkloadAutomationAE/JRE_WArm -rf /opt/CA/WorkloadAutomationAE/JRE64_WAln -s /etc/alternatives/jre_openjdk JRE_WAln -s /etc/alternatives/jre_openjdk JRE64_WAls -al /opt/CA/WorkloadAutomationAElrwxrwxrwx. 1 root root 29 Jul 25 11:22 JRE64_WA -> /etc/alternatives/jre_openjdklrwxrwxrwx. 1 root root 29 Jul 25 11:21 JRE_WA -> /etc/alternatives/jre_openjdk