New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Cadet 1st Class
Cadet 1st Class
76 views

PPM Support Tip: "if" statements in .bashrc files can cause migration issues

A new KCS article was published: KM00585785

 

 

When doing an Object Migration, getting "Source SCPClient:Error: transfer failed" due to "if" statement in .bashrc file


When attempting to migrate a Project and Portfolio Management (PPM) Entity via Secure Copy (SCP), the transfer of the zip file containing the Entity was failing:
Source SCPClient:Error: transfer failed
Closing SSH2 Session
Closing SSH2 Session
Errors occurred during command execution.

Same code in the Package Log failed when trying the same on the Command Line.



Check the .bashrc file for any additional "if" statements.

Example of a HOSTNAME check that was causing issue:
if [ $HOSTNAME = "hp1" ]
then
echo "PPM 9.x VM"
fi
if [ $HOSTNAME = "hp2" ]
then
echo "PPM 9.x DB"
fi

Test with a basic configuration, for example:
HOSTNAME=`hostname`
export HOSTNAME
ORACLE_HOME=/hp/oracle/client/v11.2.0.3-32bit/client_1
export ORACLE_HOME
PPM_HOME=/hp/ppm
export PPM_HOME
JAVA_HOME=/hp/sun/jdk/v1.7.0_21
export JAVA_HOME
PATH=${PATH}:$ORACLE_HOME/bin:$JAVA_HOME/bin
export PATH

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”
Labels (1)
0 Likes
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.