|Applies To||RSA Product Set: Identity Governance & Lifecycle|
RSA Version/Condition: 7.x
|Issue||When attempting to run the patch.sh script for an RSA Identity Governance and Lifecycle 7.x patch, it fails with the following error:|
Note that the line number displayed in the error message will vary depending on the product version and patch number.
|Cause||This issue occurs if the environment for the root user does not contain a valid value for the environment variable $AVEKSA_HOME. |
The su root command inherits the Unix shell environment variables of the logged in user and does not set them to the root user.
The sudo su command does not carry over environment variables for the logged in user. So, if you login with another Aveksa user, e.g. oracle, that has environment variables set, then you use just sudo su to move to root, the root user will not inherit the necessary environment variables required by patch.sh.
|Resolution||In order to run the patch.sh script as root user with the environment set correctly, either:|
|Notes||Alternatively, you also may be able to use the Unix sudo command with the -i option to accomplish the same thing. The success of the sudo command however, depends on how the sudo permissions are set and may not work for all users. |