Wednesday, January 15, 2014

Bsu error

Sometimes we get strange error which has no head or tail and no hit on google or oracle support, this was one of them :)

When applying a PSU on weblogic , we need to remove the previously applied PSU.We tried and got this error.

$ ./bsu.sh -prod_dir=/app/111/wlserver_10.3 -patchlist=MYFD -log=test.log -verbose -remove -log_priority=trace
Checking for conflicts..
No conflict(s) detected
Starting removal of Patch ID: MYFD
Restoring /app1/111/modules/com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar from /app1/fmw/product/111/patch_wls1036/backup/backup.jar
Result: Failure
Failure condition follows:
An error occured while removing patches - run with logging to obtain detailed information
java.io.FileNotFoundException: /app1/111/modules/com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar (No such file or directory)
Result: Failure
Failure condition follows:
An error occured while removing patches - run with logging to obtain detailed information
java.io.FileNotFoundException: /app1/111/modules/com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar (No such file or directory)


Trace error
========
2014-01-15 02:09:21,317 DEBUG [Main Thread] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (An unexpected error was encountered removing patch %s.  That resource may be busy.) under key (patchCommandLine.remove.error.message1) from namespace <public>.
2014-01-15 02:09:21,331 DEBUG [Main Thread] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (The patch was not removed, and has been restored to its original state.  For further information, enable logging and run patch removal again.) under key (patchCommandLine.remove.error.message2) from namespace <public>.
2014-01-15 02:09:21,332 DEBUG [Main Thread] com.bea.plateng.patch.CommandLinePatchInstaller - An unexpected error was encountered removing patch MYFD.  That resource may be busy.
The patch was not removed, and has been restored to its original state.  For further information, enable logging and run patch removal again.
com.bea.plateng.patch.PatchRemovalException: java.io.FileNotFoundException: /app1/111/modules/com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar (No such file or directory)        at com.bea.plateng.patch.FilePatchRemover.removePatch(FilePatchRemover.java:210)



Notice its picking wrong path app1 instead of app, in our case app1 was not even on same host and didnot even exist.I was looking where was it located.Registry.xml as correct.The culprit was in 

<MW_HOME>/patch_wls1036/registry/patch-backup.xml 

Fixed the correct name here and was able to apply and remove patch.

1 comment:

  1. Hi Rachana,

    You made my day with this post... Thank you.

    -Jagadish.
    appsjagan.blogspot.com

    ReplyDelete