Changing JRE version for Agents

book

Article ID: 4500

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

  • While running some actions the user is prompted with error  "Action cannot be loaded - not supported on legacy OS agents (running JRE 1.6)". It mostly occurs on environments where the prerequisite is to have the JRE installed before running agent installer.

Cause

The cause of this problem is that the Release Automation agent is pointing to JRE6 installed on the server. To verify this is the case please navigate to path <RA-Agent Install dir>/jre/bin and execute below command(s):

  • Check if there is a symbolic link from NolioAgent to an older jre by running command 'ls -al':

                      lrwxr-xr-x 1 test    test  23 Oct 7 12:05 NolioAgent -> /opt/java6/jre/bin/java

 

  • Also check that there is one from 'ext' to the same jre by switching to directory <RA-Agent Install dir>/jre/lib and executing 'ls -al':

                      lrwxr-xr-x 1 test    test  23 Oct 7 12:05 ext -> /opt/java6/jre/lib/ext

Environment

Release Automation Agent: 6.1.X, 6.2.X running @ Server: HP-UX B.11.31 U ia64, AIX, Linux (any non-bundled JRE)

Resolution

  • Go to <RA Agent Install Directory>
  • Stop RA agent, you can achieve this by executing sh nolio_agent.sh stop in <RA Agent Install Directory>
  • Once RA Agent is stopped go to directory <RA Agent Install Directory>/jre/bin
  • Remove the symbolic link by running command rm <symbolic link name> for example rm NolioAgent
  • Get full path to java from java7 in your environment for example /opt/java7/jre/bin/java
  • Create the first symbolic link by running command ln -s <path to jre/bin> <link name> for example ln -s /opt/java7/jre/bin/java NolioAgent
  • Next, remove the symbolic link <RA-Agent Install Dir>/jre/lib/ext, eg: rm /opt/CA/ReleaseAutomationAgent/jre/lib/ext
  • Create the second symbolic link by running command ln -s <path to jre/lib/ext> <link name>, for example:

ln -s /opt/java7/jre/lib/ext /opt/CA/ReleaseAutomationAgent/jre/lib/ext

  • Start the Agent service which can be achieved by running sh nolio_agent.sh start from <RA Agent install directory>

Additional Information

Please contact CA Support in case if you have any question or query.