Today I have faced an issue with WLS patching and observed the MT ETCC utility has listed the patches missing from the WLS home. However some of those patches are already applied and those installed patches also listed in MT ETCC report as not applied. So I have checked whether patches are properly applied or not with using following command - "bsu.sh -report | grep -i XXXX" and observed below error message.
To overcome this issue permanently, you need to ensure the next patch will be applied on the correct/default patch_download_dir.
Thats it. Hope this article will help you.
Thanks,
Chowdari
$ bsu.sh -report | grep -i XXXX
ERROR..................... Patch "XXXX" was not found in the patch catalog. Make sure your catalog is up to date.
WARNING................... Archive for Patch "XXXX" is not availabe, details skipped. Download the archive to generate the full report.
Patch ID.................. XXXX
$
Then I tried to remove that WLS patch, but got error as "Encountered unrecognized patch ID"$ sh bsu.sh -remove -patchlist=XXXX -prod_dir=$MW_HOME/wlserver_10.3 -verbose Encountered unrecognized patch ID: XXXXAgain try to install that patch, now this time noticed that "Patch already installed:XXXX in profile: Default"
$ sh bsu.sh -install -patchlist=XXXX -prod_dir=$MW_HOME/wlserver_10.3 -patch_download_dir=$MW_HOME/utils/bsu/cache_dir -verbose Patch already installed: XXXX in profile: DefaultUsing below command, I have confirmed that WLS patch catalog was corrupt or missing for file system "fs1". That's why the MT ETCC is listing all patches as missing for WLS as no patch data is recorded for this home. DownloadDir (/u01/HYDINFRA/working/WLSPathces) was used non-default directory for patching and that directory (/u01/HYDINFRA/working/WLSPathces) also does not exist.
$ cd $FMW_HOME/utils/bsu
$ bsu.sh -view -status=applied -prod_dir=$FMW_HOME/wlserver_10.3
ProductName: WebLogic Server
ProductVersion: 10.3 MP6
Components: WebLogic Server/Core Application Server,WebLogic Server/Admi
nistration Console,WebLogic Server/Configuration Wizard and
Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
ic Server/Evaluation Database,WebLogic Server/Workshop Code
Completion Support
BEAHome: /u01/HYDINFRA/R122EBS/fs1/FMW_Home
ProductHome: /u01/HYDINFRA/R122EBS/fs1/FMW_Home/wlserver_10.3
PatchSystemDir: /u01/HYDINFRA/R122EBS/fs1/FMW_Home/utils/bsu
PatchDir: /u01/HYDINFRA/R122EBS/fs1/FMW_Home/patch_wls1036
Profile: Default
DownloadDir: /u01/HYDINFRA/working/WLSPathces
JavaVersion: 1.6.0_29
JavaVendor: Sun
Patch ID: XXXX
Patch ID: XXXX
Patch ID: XXXX (XXXXXXXX)
Patch ID: XXXX (XXXXXXXX)
Patch ID: XXXX (XXXXXXXX)
Patch ID: XXXX (XXXXXXXX)
Patch ID: XXXX (XXXXXXXX)
Patch ID: XXXX (XXXXXXXX)
Patch ID: XXXX (XXXXXXXX)
Patch ID: XXXX (XXXXXXXX)
$
Workaround for this issue:
1) Created same directory structure and copied all missing patch information.
$ mkdir -p /u01/HYDINFRA/working/WLSPathces
$ cp -r /u01/HYDINFRA/R122EBS/fs1/FMW_Home/utils/bsu/cache_dir/* /u01/HYDINFRA/working/WLSPathces
2) Re-tested BSU report and confirmed that no errors now.$ bsu.sh -report | grep -i XXXX
Patch ID.................. XXXX
3) Re-ran MT ETCC checker and noticed correct results returned.To overcome this issue permanently, you need to ensure the next patch will be applied on the correct/default patch_download_dir.
$ cd $FMW_HOME/utils/bsu
$ bsu.sh -install -verbose -patchlist=XXXX -prod_dir=$FMW_HOME/wlserver_10.3 -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir
Thats it. Hope this article will help you.
Thanks,
Chowdari
You saved my day :)
ReplyDeleteThanks a lot for the post.