Executing the RSA Identity Governance and Lifecycle patch.sh script fails with "No such file or directory" error
Originally Published: 2017-02-21
Article Number
Applies To
RSA Version/Condition: 7.x
Issue
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
Note that the line number displayed in the error message will vary depending on the product version and patch number.
Cause
The 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:
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.
test@acm-701:/> sudo su Password:
Resolution
- use the su command with the - (dash) parameter.
test@acm-701:/> su - root Password:
- or, if you are switching to the root user from another Aveksa user (e.g. oracle or admin) that has the required environment variables set, you can use the -E switch on the sudo command to ensure the Aveksa environment variables are available for the root user as well.
test@acm-701:/> sudo -E su Password:
Notes
test@acm-701:/> sudo -u root -i Password:
Related Articles
Generate an Integration Script for a Web-Based Application 8Number of Views Patch/upgrade fails with 'java: No such file or directory' error in RSA Identity Governance & Lifecycle 160Number of Views RSA Via Lifecycle and Governance 6.9.1 workflow fails with error: Symbol " has not been defined 52Number of Views RSA-2026-06: RSA Governance and Lifecycle Product Security Update for ActiveMQ Vulnerability 5Number of Views How to remove endpoint agents from RSA Data Loss Prevention 9.6 and later that have been inactive for a long time from Ent… 10Number of Views
Trending Articles
Downloading RSA Authentication Manager license files or RSA Software token seed records RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide Quick Setup Guide - Passwordless Authentication in Windows MFA Agent for Active Directory Mandatory Certificate Upgrade Required by 6th October 2025 for RSA MFA Agent for PAM, RSA MFA Agent for Apache, and Third … RSA Authentication Manager 8.9 Release Notes (January 2026)
Don't see what you're looking for?