8 Replies Latest reply on Sep 8, 2014 3:58 AM by Jim Wilson

    Agent Upgrade Fails

      Experts,

       

      I am not sure why the agent upgrade shows as failed though it has updated the agent on the target servers.

       

      Log:

       

      Failed to create configuration file C:\temp\stage\04a0495f9d2d3c6dbd7798e5f342160a\85b3c033b6193bf68dbb727234d99980.cfg

      Failed to create configuration file C:\temp\stage\04a0495f9d2d3c6dbd7798e5f342160a\85b3c033b6193bf68dbb727234d99980.cfg

      Failed to create configuration file C:\temp\stage\04a0495f9d2d3c6dbd7798e5f342160a\85b3c033b6193bf68dbb727234d99980.cfg

      Configuration initialization on parse command line failed

      Failed to create configuration file C:\temp\stage\04a0495f9d2d3c6dbd7798e5f342160a\85b3c033b6193bf68dbb727234d99980.cfg

      The job 'RSCD85-P2-WIN64->RSCD85-P2-WIN64' has failed on server

       

      Regards

        • 1. Re: Agent Upgrade Fails
          Joe Piotrowski

          On the target, go into the Transactions directory and look for the deployment log. There should be additional information about what the server is complaining about.

          • 2. Re: Agent Upgrade Fails

            Joe,

             

            Looks like the same has been written again in the transactions:

             

            09/05/14 10:34:00.993 DEBUG    bldeploy - -jc0

            09/05/14 10:34:01.008 DEBUG    bldeploy - C:\Program Files\BMC Software\BladeLogic\RSCD\sbin\bldeploy.exe  - 8.5.00.469

            09/05/14 10:34:01.008 INFO     bldeploy - Deployment job not in single-job mode. Reboot is not allowed. Any reboot requests by certain file operations will be ignored.

            09/05/14 10:34:01.008 DEBUG    bldeploy - Cleanup staging area on failure

            09/05/14 10:34:02.022 DEBUG    bldeploy - Utilizing configuration file: C:\temp\stage\e61e73ead5cd3ec8a70cea8337d2fc5d\7e9d167933523d51bb49cc8ca5353df1.cfg

            09/05/14 10:34:06.624 DEBUG    bldeploy - Could not open file "C:\Program Files\BMC Software\BladeLogic\RSCD\\params.txt" for reading

            09/05/14 10:34:06.624 DEBUG    bldeploy - Could not open file "C:\temp\stage\e61e73ead5cd3ec8a70cea8337d2fc5d\params.txt" for reading

            09/05/14 10:34:06.624 DEBUG    bldeploy -

            DEPLOYNAME = 7e9d167933523d51bb49cc8ca5353df1:

            DEPLOYPATH = C:\temp\stage\e61e73ead5cd3ec8a70cea8337d2fc5d:

            FQHOST = BP1LCSAP034.bp1.ad.bp.com:

            HOST = SERVERS:

            HOSTIP = IP ADDRESS:

            NAMESPACE = SERVERS:

            ROLLBACKPATH = C:\Program Files\BMC Software\BladeLogic\RSCD\\Transactions\7e9d167933523d51bb49cc8ca5353df1:

            RSCDIR = C:\Program Files\BMC Software\BladeLogic\RSCD\:

            WINDIR = C:\Windows:

            XMLFILEPATH = C:\temp\stage\e61e73ead5cd3ec8a70cea8337d2fc5d\bldeploy.xml:

            09/05/14 10:34:06.655 ERROR    bldeploy - Failed to create configuration file C:\temp\stage\e61e73ead5cd3ec8a70cea8337d2fc5d\7e9d167933523d51bb49cc8ca5353df1.cfg

            09/05/14 10:34:06.655 ERROR    bldeploy - Configuration initialization on parse command line failed

            09/05/14 10:34:06.655 DEBUG    bldeploy - Remove file list does not yet exist. Clearing internal list

            09/05/14 10:34:06.671 DEBUG    bldeploy - Full command line C:\Program Files\BMC Software\BladeLogic\RSCD\sbin\bldeploy.exe 7e9d167933523d51bb49cc8ca5353df1 -N=/temp/stage/e61e73ead5cd3ec8a70cea8337d2fc5d -P=SERVERS -Q=params.txt -PKG=RSCD85-P2-WIN64-192178.1-0.1961515003913451-32404.1 -V1 -RegAllCOM -UnregAllCOM -TreatLockedAsErr -js0 -jr0 -jc0

            09/05/14 10:34:07.030 ERROR    bldeploy - Failed to create configuration file C:\temp\stage\e61e73ead5cd3ec8a70cea8337d2fc5d\7e9d167933523d51bb49cc8ca5353df1.cfg

            09/05/14 10:34:07.030 ERROR    bldeploy - Failed to create configuration file C:\temp\stage\e61e73ead5cd3ec8a70cea8337d2fc5d\7e9d167933523d51bb49cc8ca5353df1.cfg

            09/05/14 10:34:07.045 ERROR    bldeploy - Failed to create configuration file C:\temp\stage\e61e73ead5cd3ec8a70cea8337d2fc5d\7e9d167933523d51bb49cc8ca5353df1.cfg

            09/05/14 10:34:07.045 WARN     bldeploy - Deploy failed. Cleaning up staging area.

            09/05/14 10:34:07.045 WARN     bldeploy - Deploy failed. Cleaning up staging area.

            09/05/14 10:34:07.061 DEBUG    bldeploy - DeletePkg = 1 DeleteUndo = 1

            09/05/14 10:34:07.061 DEBUG    bldeploy - Unable to delete; Folder: C:\temp\stage\e61e73ead5cd3ec8a70cea8337d2fc5d does not exist

            09/05/14 10:34:07.077 DEBUG    bldeploy - DirUtil::remove: pf->remove (C:\Program Files\BMC Software\BladeLogic\RSCD\\Transactions\7e9d167933523d51bb49cc8ca5353df1/31592.1/RSCD85-P2-WIN64.msi) = 0

            09/05/14 10:34:07.077 DEBUG    bldeploy - DirUtil::remove: pf->remove (C:\Program Files\BMC Software\BladeLogic\RSCD\\Transactions\7e9d167933523d51bb49cc8ca5353df1/31592.1) = 0

            09/05/14 10:34:07.092 DEBUG    bldeploy - Deleted the folder: C:\Program Files\BMC Software\BladeLogic\RSCD\\Transactions\7e9d167933523d51bb49cc8ca5353df1

            09/05/14 10:34:07.092 INFO     bldeploy - Bldeploy done - nRet = 10 (Deployment failed to process) exitCode = -4001 (Deployment failed)

            • 3. Re: Agent Upgrade Fails
              Joe Piotrowski

              What user/role is running this job? Does that user have permission to write to C:\temp\stage?

              • 4. Re: Agent Upgrade Fails

                Joe,

                 

                I am running as BLAdmins and yes it has.

                 

                 

                Regards

                • 5. Re: Agent Upgrade Fails
                  Monoj Padhy

                  I have seen 4001 error in below scenario. also can you check tjm log under same dir.

                   

                  missing some command/ syntax error

                  permission issue

                  server require reboot and you try install something

                  mapping issue

                   

                  basically its a very generic error code.

                  • 6. Re: Agent Upgrade Fails
                    Bill Robinson

                    how are you attempting to upgrade the agent (and the rscd agent?) ?

                     

                    you are using a file deploy job or the agent installer/upgrade job type ?  those are the two supported methods of upgrading the rscd agent as noted in the docs.

                    • 7. Re: Agent Upgrade Fails

                      Bill,

                       

                      we created a msi package and respective deploy job to execute the upgrade.

                       

                      Regards

                      • 8. Re: Agent Upgrade Fails
                        Jim Wilson

                        Please use these instructions to successfully upgrade Windows 64-bit RSCD Agent

                         

                        - Use BMC supplied RSCD85-P2-WIN64.msi (download from EPD)

                         

                        - Use File Deploy Job with post command to perform install/upgrade

                        https://docs.bmc.com/docs/display/public/bsa85/Silently+upgrading+Windows+agents

                         

                        - Follow this thread to resolve a defect:

                        https://communities.bmc.com/message/462714#462714