Since you have not provided details, you may refer the following Note if it matches your case
Adcfgclone.pl Application Tier Failing With "Permission denied" While Instantiating The OHS Config (Doc ID 2151181.1)
Hope it helps
were you able to solve it? have similar issue with 12.2.6 first clone.