000034862 - Applying RSA Identity Governance and Lifecycle 7.0.1 Patch P02 fails with "No such file or directory" error

Document created by RSA Customer Support Employee on Feb 24, 2017Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000034862
Applies ToRSA Product Set: RSA Identity Governance and Lifecycle
RSA Version/Condition: 7.0.1
IssueWhen attempting to run the patch.sh script for RSA Identity Governance and Lifecycle 7.0.1 Patch P02, it fails with  the following error:
 
test@acm-701:/> su root
Password: <enter root password>
acm-701:/ # cd /home/oracle/Aveksa_7.0.1_P02/
acm-701:/home/oracle/Aveksa_7.0.1_P02 # sh patch.sh
patch.sh: line 18: /archive/wildfly_deployment.properties: No such file or directory


 
CauseThis issue occurs if the environment for the root user does not contain a valid value for the environment variable $AVEKSA_HOME.   
ResolutionThe su root command inherits the Unix shell environment variables of the logged in user and does not set them to the root user.
test@acm-701:/> su root
Password:

In order to run the patch.sh script as root user with the environment set correctly you must use the su command with the - (dash) parameter.
test@acm-701:/> su - root
Password:
NotesYou 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. 
test@acm-701:/> sudo -u root -i
Password:

Attachments

    Outcomes