10 Replies Latest reply: Aug 24, 2012 8:09 AM by Lazar NameToUpdate RSS

CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "

Malay Tiwari

Hello,

 

We are getting following error while running any patch catalogue update

Error    6.8.2012 9:18:55    Error occur: Level: F

Type: EXECUTION_ERROR

Message: Error executing BLPatchCheck2 (Exit code: -1):

 

I have already referred to KB documents (KA324245) and registering DLLs are not working for me. We are using .XML hyperlink instead of .CAB in shavlik URL.

 

Does anyone has any idea about this?

Please let me know if you need anything else from my side.  Below is my environment description.

 

 

BBSA- 8.1 SP4, windows 2008 x64

RSCD -8.1 SP4 windows 2008 x64

stpatchassesment.dll version 6.0.11.38

Console version 8.1 SP4

  • 1. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    piyush pandey

    Hi,

    Can you post the complete error log.

  • 2. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    Malay Tiwari

    Below is error log from console.log

     

    [06 Aug 2012 13:25:12,195] [PSU-Thread-1] [FATAL] [BLAdmin:BLAdmins:] [Patch-Metadata-Updator] Error occur: Level: F

    Type: EXECUTION_ERROR

    Message: Error executing BLPatchCheck2 (Exit code: -1):

    com.bmc.sa.patchfeed.windows.UpdatorFeedException

        at com.bmc.sa.patchfeed.windows.MetadataManager.generateResultFile(Unknown Source)

        at com.bmc.sa.patchfeed.windows.MetadataManager.updatePackageMDWithShavlikNameProperty(Unknown Source)

        at com.bmc.sa.patchfeed.windows.WindowsFeedUpdator.notifyPackageAndBulletinMetadata(Unknown Source)

        at com.bmc.sa.patchfeed.windows.WindowsFeedUpdator.buildAndNotifyMetadata(Unknown Source)

        at com.bmc.sa.patchfeed.windows.WindowsFeedUpdator.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

        at com.bladelogic.om.patch.app.psu.PSUThreadFactory$PSUThread.run(PSUThreadFactory.java:81)

    [06 Aug 2012 13:25:12,366] [PSU-Thread-1] [ERROR] [BLAdmin:BLAdmins:] [Patch-Metadata-Updator] Unable to delete file or directory: //aaaa01.sszt.local/E/BLStorage/patch/temp_217_-199156409 : JNI file delete of '//aaaa01.mjkkn.local/E/BLStorage/patch/temp_217_-199156409' failed: : directory not empty

    [06 Aug 2012 13:25:12,366] [WorkItem-Thread-3] [ERROR] [BLAdmin:BLAdmins:] [Patch-Metadata-Updator] Error occur: Level: F

    Type: EXECUTION_ERROR

    Message: Error executing BLPatchCheck2 (Exit code: -1):

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Patches newly added: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Patches updated: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Patches obsoleted: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Patches failed to be process: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Patches downloaded: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Patches failed to be downloaded: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Patches with invalid/deprecated urls: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Referrers newly added: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Referrers updated: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Referrers obsoleted: 0

    [06 Aug 2012 13:25:12,413] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Referrers failed to be process: 0

    [06 Aug 2012 13:25:12,694] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] Creating the ISystem object for the host:aaaa01.asas.local and the root dir:/E/BLStorage/patches

    [06 Aug 2012 13:25:12,741] [Job-Execution-0] [INFO] [BLAdmin:BLAdmins:] [CatalogUpdate] The job 'Windows_CUJ-2012-08-03 13-09-23-630+0300' has failed

  • 3. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    piyush pandey

    Hi,

    Please refer to given flash message by BMC. Your error description matches this.

  • 4. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    piyush pandey

    Also what all filters you are using in your windows catalog.

  • 5. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    Malay Tiwari

    Since we are using 8.1 SP4, we dont have a fix in the ftp mentioned..

    its till SP2.

     

    And our catalogue is not working for any of the microsoft patches... not even win2k3 or win2k8

    I even tried with internet explorer with diffrent helper servers, but everything fails with same error.

     

    Regards

    Malay

  • 6. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    Neil Armstrong

    Have you looked in c:\trace.txt

     

      This should have indepth detail around what is going on with BLpatchcheck / Shavlik.

     

    I have just had some strange issues myself and following this fixed the issues : https://kb.bmc.com/infocenter/index?page=content&id=KA360425&actp=search&viewlocale=en_US&searchid=1344421630812

  • 7. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    Malay Tiwari

    That error is for patch analysis... I am having issues with Catalogue update.. and my helper server dont have that registry...

  • 8. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    Malay Tiwari

    Well I have already raised an issue with BMC support, and now its being escalated... Let see how it goes..

     

    I'll update this post as soon as I get some resolution..

  • 9. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    Malay Tiwari

    Finally with two weeks of resolution time. and loadzz of escalations.... I found that , there was proxy linked my file server( by mistake someone might have defined it) , which was my helper server. That proxy was somehow , for unknown reasons killing BLPatchCheck2.exe exactly after 5 minutes.

    And when I removed the proxy location property value, my CUJ started working...

     


    Strange thing is BL didn't told us that something is killing the process.

     

    Regards

    Malay

  • 10. Re: CUJ failing with "Error executing BLPatchCheck2 (Exit code: -1): "
    Lazar NameToUpdate

    I was actually on that WebEx , BladeLogic would not know of this and would not be able to tell you that something is kiling the process. It simply executes BLPatchCheck2 and waits for the results. Since it was not BladeLogic that kills the connection, it cannot be aware of it; all it sees is the end result of BLPatchCheck2 no longer in communication with appserver, so the appserver handles it as -1 failure. The reason we knew it was something in the communication is because the manual execution of the same BLPatchCheck2 command ran longer for 5 minutes on the helper, yet did not fail.