It seems the ports reported are using by some other instance in the same server. Searching on support.oracle.com I found three articles:
EBS 126.96.36.199 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:
find . -type f -print | xargs grep 7214
7214 is the port that failed validation as per logfile.
It is present in
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
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
It succeeded this time. Till we get a patch for this bug, we will continue to use this workaround to complete clones.