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