Alok and Shoaib pinged me about this error. This error is reported in logs when adcfgclone.pl is run for a R12.2.4 appsTier where the source and target instances are on same physical server.
SEVERE : Jan 27, 2015 3:40:09 PM - ERROR - CLONE-20372 Server port validation failed.
SEVERE : Jan 27, 2015 3:40:09 PM - CAUSE - CLONE-20372 Ports of following servers - oacore_server2(7256),forms_server2(7456),oafm_server2(7656),forms-c4ws_server2(7856),oaea_server1(6856) - are not available.
4:00 PM
SEVERE : Jan 27, 2015 3:40:09 PM - ERROR - CLONE-20372 Server port validation failed.
SEVERE : Jan 27, 2015 3:40:09 PM - CAUSE - CLONE-20372 Ports of following servers - oacore_server2(7256),forms_server2(7456),oafm_server2(7656),forms-c4ws_server2(7856),oaea_server1(6856) - are not available.
SEVERE : Jan 27, 2015 3:40:09 PM - ACTION - CLONE-20372 Provide valid free ports.
oracle.as.t2p.exceptions.FMWT2PPasteConfigException: PasteConfig failed. Make sure that the move plan and the values specified in moveplan are correct
The ports reported are those in the source instance. Searching on support.oracle.com bug database I found three articles:
EBS 12.2.2.4 RAPID CLONE FAILS WITH ERROR - CLONE-20372 SERVER PORT VALIDATION(Bug ID 20147454)
12.2: N->1 CLONING TO SAME APPS TIER FAILING DUE TO PORT CONFLICT(Bug ID 20389864)
FS_CLONE IS NOT ABLE TO COMPLETE FOR MULTI-NODE SETUP(Bug ID 18460148)
The situation described in the first two bugs is same. The articles reference each other but don't provide any solution.
Logically thinking, adcfgclone.pl is picking this up from source configuration that is in $COMMON_TOP/clone directory. So we did grep on subdirectories of $COMMON_TOP/clone:
cd $COMMON_TOP/clone
find . -type f -print | xargs grep 7256
7256 is one of the ports that failed validation.
It is present in
CTXORIG.xml and
FMW/ohs/moveplan.xml
FMW/wls/moveplan.xml
We tried changing the port numbers in CTXORIG.xml and re-tried adcfgclone.pl and it failed again.
So we changed the port numbers of the ports that failed validation in
$COMMON_TOP/clone/FMW/ohs/moveplan.xml and
$COMMON_TOP/clone/FMW/wls/moveplan.xml
cd $FMW_HOME
find . -name detachHome.sh |grep -v Template
The above command returns the detachHome.sh scripts for all the ORACLE_HOMEs inside FMW_HOME. Executed this to detach all of them.
Removed the FMW_HOME directory
Re-executed
adcfgclone.pl appsTier
It succeeded this time. Till we get a patch for this bug, we will continue to use this workaround to complete clones.
SEVERE : Jan 27, 2015 3:40:09 PM - ERROR - CLONE-20372 Server port validation failed.
SEVERE : Jan 27, 2015 3:40:09 PM - CAUSE - CLONE-20372 Ports of following servers - oacore_server2(7256),forms_server2(7456),oafm_server2(7656),forms-c4ws_server2(7856),oaea_server1(6856) - are not available.
4:00 PM
SEVERE : Jan 27, 2015 3:40:09 PM - ERROR - CLONE-20372 Server port validation failed.
SEVERE : Jan 27, 2015 3:40:09 PM - CAUSE - CLONE-20372 Ports of following servers - oacore_server2(7256),forms_server2(7456),oafm_server2(7656),forms-c4ws_server2(7856),oaea_server1(6856) - are not available.
SEVERE : Jan 27, 2015 3:40:09 PM - ACTION - CLONE-20372 Provide valid free ports.
oracle.as.t2p.exceptions.FMWT2PPasteConfigException: PasteConfig failed. Make sure that the move plan and the values specified in moveplan are correct
EBS 12.2.2.4 RAPID CLONE FAILS WITH ERROR - CLONE-20372 SERVER PORT VALIDATION(Bug ID 20147454)
12.2: N->1 CLONING TO SAME APPS TIER FAILING DUE TO PORT CONFLICT(Bug ID 20389864)
FS_CLONE IS NOT ABLE TO COMPLETE FOR MULTI-NODE SETUP(Bug ID 18460148)
The situation described in the first two bugs is same. The articles reference each other but don't provide any solution.
Logically thinking, adcfgclone.pl is picking this up from source configuration that is in $COMMON_TOP/clone directory. So we did grep on subdirectories of $COMMON_TOP/clone:
cd $COMMON_TOP/clone
find . -type f -print | xargs grep 7256
7256 is one of the ports that failed validation.
It is present in
CTXORIG.xml and
FMW/ohs/moveplan.xml
FMW/wls/moveplan.xml
We tried changing the port numbers in CTXORIG.xml and re-tried adcfgclone.pl and it failed again.
So we changed the port numbers of the ports that failed validation in
$COMMON_TOP/clone/FMW/ohs/moveplan.xml and
$COMMON_TOP/clone/FMW/wls/moveplan.xml
cd $FMW_HOME
find . -name detachHome.sh |grep -v Template
The above command returns the detachHome.sh scripts for all the ORACLE_HOMEs inside FMW_HOME. Executed this to detach all of them.
Removed the FMW_HOME directory
Re-executed
adcfgclone.pl appsTier
It succeeded this time. Till we get a patch for this bug, we will continue to use this workaround to complete clones.