8 Replies Latest reply: Oct 4, 2012 1:36 AM by Lazar NameToUpdate RSS

Failed to create configuration file - agentctl to restart RSCD Agent

jbew

Hi,

 

I am using agentctl to restart the agent in a batch job so that it picks up environment variables set which are required for later jobs in the batch.  It fails with the below info. If I turn off Simulate and Stage Options in Phase Options will this prevent this happening ?  I assume it ocurrs as the agent can't write staging files if it is being restarted.

 

XMLFILEPATH = C:\temp\stage\Restart-BL-Agent-164133.1-454119.1\bldeploy.xml:

08/30/12 16:04:04.027 ERROR    bldeploy - Failed to create configuration file C:\temp\stage\Restart-BL-Agent-164133.1-454119.1\Restart-BL-Agent-164133.1-454119.1.cfg

08/30/12 16:04:04.027 ERROR    bldeploy - Configuration initialization on parse command line failed

08/30/12 16:04:04.027 DEBUG    bldeploy - Remove file list does not yet exist. Clearing internal list

08/30/12 16:04:04.027 DEBUG    bldeploy - Full command line C:\Program Files\BMC BladeLogic\RSC\sbin\bldeploy.exe Restart-BL-Agent-164133.1-454119.1 -N=/temp/stage/Restart-BL-Agent-164133.1-454119.1 -P=LONS00110610 -Q=params.txt -V1 -RegAllCOM -TreatLockedAsErr -js0 -jr0 -jc0

08/30/12 16:04:04.059 ERROR    bldeploy - Failed to create configuration file C:\temp\stage\Restart-BL-Agent-164133.1-454119.1\Restart-BL-Agent-164133.1-454119.1.cfg

08/30/12 16:04:04.059 ERROR    bldeploy - Failed to create configuration file C:\temp\stage\Restart-BL-Agent-164133.1-454119.1\Restart-BL-Agent-164133.1-454119.1.cfg

08/30/12 16:04:04.059 ERROR    bldeploy - Failed to create configuration file C:\temp\stage\Restart-BL-Agent-164133.1-454119.1\Restart-BL-Agent-164133.1-454119.1.cfg

08/30/12 16:04:04.059 INFO     bldeploy - Unknown return code type for directory delete settings

08/30/12 16:04:04.059 WARN     bldeploy - Deploy failed. Cleaning up staging area.

08/30/12 16:04:04.059 DEBUG    bldeploy - DeletePkg = 1 DeleteUndo = 0

08/30/12 16:04:04.059 DEBUG    bldeploy - Unable to delete; Folder: C:\temp\stage\Restart-BL-Agent-164133.1-454119.1 does not exist

08/30/12 16:04:04.589 DEBUG    bldeploy - Bldeploy done - nRet = 10 (Deployment failed to process) exitCode = -4001 (Deployment failed)

 

thanks

 

Jason.

  • 1. Re: Failed to create configuration file - agentctl to restart RSCD Agent
    Bill Robinson

    if you do this, you need to set the 'item defined reboot' setting to 'out of band' on the external command in your blpackage that runs this and the deploy job needs to say 'use item defined reboot settings'.

  • 2. Re: Failed to create configuration file - agentctl to restart RSCD Agent
    jbew

    Hi Bill. I set these as you have suggested and its even worse...it reports as failed more often, even though the event log suggests the service was successfully restarted. How can you gwt it to report the correct fail / sucsess state ?  Errors below.

     

    Thanks.

     

    Warning Aug 31, 2012 5:10:03 PM  A potential out of band reboot as indicated by the item did not occur. This out of band reboot could be conditional. If the reboot was mandatory for this item then there may have been an issue while deploying the item.

    1

    Error Aug 31, 2012 5:10:47 PM APPLY failed for server LONS00110612. Exit code = -4001 

    Error Aug 31, 2012 5:10:34 PM Configuration initialization on parse command line failed

     

    Warning Aug 31, 2012 5:09:56 PM Copy on reboot files present - ignoring

     

    Warning Aug 31, 2012 5:10:34 PM Deploy failed. Cleaning up staging area.

     

    Error Aug 31, 2012 5:10:34 PM Failed to create configuration file C:\temp\stage\Restart-BL-Agent-164133.1-454119.3\Restart-BL-Agent-164133.1-454119.3.cfg

     

    Error Aug 31, 2012 5:10:34 PM Failed to create configuration file C:\temp\stage\Restart-BL-Agent-164133.1-454119.3\Restart-BL-Agent-164133.1-454119.3.cfg

     

    Error Aug 31, 2012 5:10:34 PM Failed to create configuration file C:\temp\stage\Restart-BL-Agent-164133.1-454119.3\Restart-BL-Agent-164133.1-454119.3.cfg

     

    Error Aug 31, 2012 5:10:34 PM Failed to create configuration file C:\temp\stage\Restart-BL-Agent-164133.1-454119.3\Restart-BL-Agent-164133.1-454119.3.cfg

     

    Info Aug 31, 2012 5:09:58 PM Started running the deploy step job 'DEP.BL Agent Restart->DEP.BL Agent Restart' on application server 'jobserver4'(23) against target server 'LONS00110612' 

    Info Aug 31, 2012 5:10:47 PM The job 'DEP.BL Agent Restart->DEP.BL Agent Restart' has failed on server LONS00110612 

  • 3. Re: Failed to create configuration file - agentctl to restart RSCD Agent
    Bill Robinson

    can you paste in a screenshot of what is in your blpackage ?

     

    also the bldeploy log from the latest run..

  • 4. Re: Failed to create configuration file - agentctl to restart RSCD Agent
    jbew

    Here you go - thanks. It is odd that sometimes the job passes, othertimes it is marked as failed, even if it worked.  Only option it complains about is single user mode ?

     

    Many thanks

     

    BLAgent-restart-job.jpg

    08/31/12 17:57:17.540 INFO     bldeploy - Bldeploy started for package: Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:17.540 DEBUG    bldeploy - Bldeploy Arguments:
    08/31/12 17:57:17.540 DEBUG    bldeploy - C:\Program Files\BMC BladeLogic\RSC\sbin\bldeploy.exe
    08/31/12 17:57:17.540 DEBUG    bldeploy - Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:17.540 DEBUG    bldeploy - -N=/temp/stage/Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:17.540 DEBUG    bldeploy - -P=LONS00110612
    08/31/12 17:57:17.540 DEBUG    bldeploy - -Q=params.txt
    08/31/12 17:57:17.540 DEBUG    bldeploy - -DryRun
    08/31/12 17:57:17.540 DEBUG    bldeploy - -Xr
    08/31/12 17:57:17.540 DEBUG    bldeploy - -V1
    08/31/12 17:57:17.540 DEBUG    bldeploy - -Xp
    08/31/12 17:57:17.540 DEBUG    bldeploy - -js0
    08/31/12 17:57:17.540 DEBUG    bldeploy - -jr0
    08/31/12 17:57:17.540 DEBUG    bldeploy - -jc0
    08/31/12 17:57:17.540 DEBUG    bldeploy - -StartNew
    08/31/12 17:57:17.540 DEBUG    bldeploy - C:\Program Files\BMC BladeLogic\RSC\sbin\bldeploy.exe  - 7.6.0.299
    08/31/12 17:57:17.540 INFO     bldeploy - Reboot is not allowed
    08/31/12 17:57:17.540 DEBUG    bldeploy - Cleanup staging area on failure
    08/31/12 17:57:20.176 DEBUG    bldeploy - Utilizing configuration file: C:\temp\stage\Restart-BL-Agent-164133.1-454119.4\Restart-BL-Agent-164133.1-454119.4.cfg
    08/31/12 17:57:20.176 DEBUG    bldeploy - Fresh start of deployment, deleting any pre-existing configuration file
    08/31/12 17:57:20.176 DEBUG    bldeploy - Could not open file "C:\Program Files\BMC BladeLogic\RSC\params.txt" for reading
    08/31/12 17:57:20.176 DEBUG    bldeploy -
    DEPLOYNAME = Restart-BL-Agent-164133.1-454119.4:
    DEPLOYPATH = C:\temp\stage\Restart-BL-Agent-164133.1-454119.4:
    FQHOST = LONS00110612.ETS.NET.INTRA:
    HOST = LONS00110612:
    HOSTIP = 159.95.18.13:
    NAMESPACE = LONS00110612:
    ROLLBACKPATH = C:\Program Files\BMC BladeLogic\RSC\Transactions\Restart-BL-Agent-164133.1-454119.4:
    RSCDIR = C:\Program Files\BMC BladeLogic\RSC:
    WINDIR = C:\Windows:
    XMLFILEPATH = C:\temp\stage\Restart-BL-Agent-164133.1-454119.4\bldeploy.xml:
    08/31/12 17:57:20.176 DEBUG    bldeploy - Full command line C:\Program Files\BMC BladeLogic\RSC\sbin\bldeploy.exe Restart-BL-Agent-164133.1-454119.4 -N=/temp/stage/Restart-BL-Agent-164133.1-454119.4 -P=LONS00110612 -Q=params.txt -DryRun -Xr -V1 -Xp -js0 -jr0 -jc0
    08/31/12 17:57:20.176 DEBUG    bldeploy -  Running as User: BladeLogicRSCD
    08/31/12 17:57:20.176 DEBUG    bldeploy -  Privileges:
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeIncreaseQuotaPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeSecurityPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeTakeOwnershipPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeLoadDriverPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeSystemProfilePrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeSystemtimePrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeProfileSingleProcessPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeIncreaseBasePriorityPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeCreatePagefilePrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeCreatePermanentPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeBackupPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeRestorePrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeShutdownPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeDebugPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeSystemEnvironmentPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeChangeNotifyPrivilege - Enabled by default
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeRemoteShutdownPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeUndockPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeEnableDelegationPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeManageVolumePrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeImpersonatePrivilege - Enabled by default
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeCreateGlobalPrivilege - Enabled by default
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeRelabelPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeIncreaseWorkingSetPrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeTimeZonePrivilege - Disabled
    08/31/12 17:57:20.176 DEBUG    bldeploy -   SeCreateSymbolicLinkPrivilege - Disabled
    08/31/12 17:57:20.707 DEBUG    bldeploy - Validating existence of wait lock C:\Program Files\BMC BladeLogic\RSC\Transactions\locks\reboot.lck
    08/31/12 17:57:20.707 DEBUG    bldeploy - Deployment running in single-job mode
    08/31/12 17:57:21.768 DEBUG    bldeploy - Acquired appropriate lock: C:\Program Files\BMC BladeLogic\RSC\Transactions\locks\writer.lck
    08/31/12 17:57:22.298 WARN     bldeploy - Copy on reboot files present - ignoring
    08/31/12 17:57:22.298 DEBUG    bldeploy - Creating directory C:\Program Files\BMC BladeLogic\RSC\Transactions\Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:22.298 INFO     bldeploy - Metabase initialization failed: 0x80040154
    08/31/12 17:57:22.298 INFO     bldeploy - Bldeploy Restart-BL-Agent-164133.1-454119.4 started using file C:\temp\stage\Restart-BL-Agent-164133.1-454119.4\bldeploy.xml with rollback directory C:\Program Files\BMC BladeLogic\RSC\Transactions\Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:22.298 INFO     bldeploy - Starting dryRun
    08/31/12 17:57:22.298 INFO     bldeploy - Package contains reboot instructions, and does not contain single-user mode instructions
    08/31/12 17:57:22.298 DEBUG    bldeploy - [0][] Dryrun id = 0
    08/31/12 17:57:22.298 DEBUG    bldeploy - [1][] Dryrun id = 1
    08/31/12 17:57:22.298 INFO     bldeploy - Dryrun succeeded
    08/31/12 17:57:22.298 DEBUG    bldeploy - Dryrun does not delete staging nor rollback directories
    08/31/12 17:57:22.298 DEBUG    bldeploy - DeletePkg = 0 DeleteUndo = 0
    08/31/12 17:57:22.828 DEBUG    bldeploy - Bldeploy done - nRet = 3 (DryRun successful) exitCode = 0 (Deployment succeeded)

    08/31/12 17:57:31.596 INFO     bldeploy - Bldeploy started for package: Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:31.596 DEBUG    bldeploy - Bldeploy Arguments:
    08/31/12 17:57:31.596 DEBUG    bldeploy - C:\Program Files\BMC BladeLogic\RSC\sbin\bldeploy.exe
    08/31/12 17:57:31.596 DEBUG    bldeploy - Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:31.596 DEBUG    bldeploy - -N=/temp/stage/Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:31.596 DEBUG    bldeploy - -P=LONS00110612
    08/31/12 17:57:31.596 DEBUG    bldeploy - -Q=params.txt
    08/31/12 17:57:31.611 DEBUG    bldeploy - -Xu
    08/31/12 17:57:31.611 DEBUG    bldeploy - -V1
    08/31/12 17:57:31.611 DEBUG    bldeploy - -RegAllCOM
    08/31/12 17:57:31.611 DEBUG    bldeploy - -TreatLockedAsErr
    08/31/12 17:57:31.611 DEBUG    bldeploy - -Xp
    08/31/12 17:57:31.611 DEBUG    bldeploy - -js0
    08/31/12 17:57:31.611 DEBUG    bldeploy - -jr0
    08/31/12 17:57:31.611 DEBUG    bldeploy - -jc0
    08/31/12 17:57:31.611 DEBUG    bldeploy - -StartNew
    08/31/12 17:57:31.611 DEBUG    bldeploy - C:\Program Files\BMC BladeLogic\RSC\sbin\bldeploy.exe  - 7.6.0.299
    08/31/12 17:57:31.611 INFO     bldeploy - Reboot is allowed
    08/31/12 17:57:31.611 DEBUG    bldeploy - Cleanup staging area on failure
    08/31/12 17:57:34.232 DEBUG    bldeploy - Utilizing configuration file: C:\temp\stage\Restart-BL-Agent-164133.1-454119.4\Restart-BL-Agent-164133.1-454119.4.cfg
    08/31/12 17:57:34.232 DEBUG    bldeploy - Fresh start of deployment, deleting any pre-existing configuration file
    08/31/12 17:57:34.232 DEBUG    bldeploy - Could not open file "C:\Program Files\BMC BladeLogic\RSC\params.txt" for reading
    08/31/12 17:57:34.232 DEBUG    bldeploy -
    DEPLOYNAME = Restart-BL-Agent-164133.1-454119.4:
    DEPLOYPATH = C:\temp\stage\Restart-BL-Agent-164133.1-454119.4:
    FQHOST = LONS00110612.ETS.NET.INTRA:
    HOST = LONS00110612:
    HOSTIP = 159.95.18.13:
    NAMESPACE = LONS00110612:
    ROLLBACKPATH = C:\Program Files\BMC BladeLogic\RSC\Transactions\Restart-BL-Agent-164133.1-454119.4:
    RSCDIR = C:\Program Files\BMC BladeLogic\RSC:
    WINDIR = C:\Windows:
    XMLFILEPATH = C:\temp\stage\Restart-BL-Agent-164133.1-454119.4\bldeploy.xml:
    08/31/12 17:57:34.232 DEBUG    bldeploy - Full command line C:\Program Files\BMC BladeLogic\RSC\sbin\bldeploy.exe Restart-BL-Agent-164133.1-454119.4 -N=/temp/stage/Restart-BL-Agent-164133.1-454119.4 -P=LONS00110612 -Q=params.txt -Xu -V1 -RegAllCOM -TreatLockedAsErr -Xp -js0 -jr0 -jc0
    08/31/12 17:57:34.232 DEBUG    bldeploy -  Running as User: BladeLogicRSCD
    08/31/12 17:57:34.232 DEBUG    bldeploy -  Privileges:
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeIncreaseQuotaPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeSecurityPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeTakeOwnershipPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeLoadDriverPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeSystemProfilePrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeSystemtimePrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeProfileSingleProcessPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeIncreaseBasePriorityPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeCreatePagefilePrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeCreatePermanentPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeBackupPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeRestorePrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeShutdownPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeDebugPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeSystemEnvironmentPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeChangeNotifyPrivilege - Enabled by default
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeRemoteShutdownPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeUndockPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeEnableDelegationPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeManageVolumePrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeImpersonatePrivilege - Enabled by default
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeCreateGlobalPrivilege - Enabled by default
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeRelabelPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeIncreaseWorkingSetPrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeTimeZonePrivilege - Disabled
    08/31/12 17:57:34.232 DEBUG    bldeploy -   SeCreateSymbolicLinkPrivilege - Disabled
    08/31/12 17:57:34.762 DEBUG    bldeploy - Validating existence of wait lock C:\Program Files\BMC BladeLogic\RSC\Transactions\locks\reboot.lck
    08/31/12 17:57:34.762 DEBUG    bldeploy - Deployment running in single-job mode
    08/31/12 17:57:35.823 DEBUG    bldeploy - Acquired appropriate lock: C:\Program Files\BMC BladeLogic\RSC\Transactions\locks\writer.lck
    08/31/12 17:57:36.354 WARN     bldeploy - Copy on reboot files present - ignoring
    08/31/12 17:57:36.354 INFO     bldeploy - Metabase initialization failed: 0x80040154
    08/31/12 17:57:36.354 INFO     bldeploy - Bldeploy Restart-BL-Agent-164133.1-454119.4 started using file C:\temp\stage\Restart-BL-Agent-164133.1-454119.4\bldeploy.xml with rollback directory C:\Program Files\BMC BladeLogic\RSC\Transactions\Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:36.354 INFO     bldeploy - Starting apply
    08/31/12 17:57:36.354 INFO     bldeploy - Package contains reboot instructions, and does not contain single-user mode instructions
    08/31/12 17:57:36.354 DEBUG    bldeploy - [0][] Starting pre-apply for BLPACKAGE
    08/31/12 17:57:36.354 DEBUG    bldeploy - [0][] Applying parent first id = 0
    08/31/12 17:57:36.354 INFO     bldeploy - [0][] Processing asset BLPACKAGE
    08/31/12 17:57:36.354 DEBUG    bldeploy - [1][] Applying parent first id = 1
    08/31/12 17:57:36.354 INFO     bldeploy - [1][] Processing asset EXTERNALCMD
    08/31/12 17:57:36.354 INFO     bldeploy - [1][] Executing command: ""C:\Program Files\BMC BladeLogic\RSC\agentctl" restart"
    08/31/12 17:57:36.354 DEBUG    bldeploy - [1][] chdir to PkgDir: 'C:\temp\stage\Restart-BL-Agent-164133.1-454119.4\'
    08/31/12 17:57:36.354 DEBUG    bldeploy - [1][] exeFullPath = (null), CmdLine = "C:\temp\stage\Restart-BL-Agent-164133.1-454119.4\bldeploycmd.bat", workingDir = NULL
    08/31/12 17:57:36.463 INFO     bldeploy - [1][] [stdout: 1] 

    C:\temp\stage\Restart-BL-Agent-164133.1-454119.4>chcp 1252  1>NUL

     

    C:\temp\stage\Restart-BL-Agent-164133.1-454119.4>"C:\Program Files\BMC BladeLogic\RSC\agentctl" restart


    08/31/12 17:57:43.233 INFO     bldeploy - [1][] [stdout: 1]  Bladelogic RSCD Agent service stopped

    Bladelogic RSCD Agent service started


    08/31/12 17:57:43.233 DEBUG    bldeploy - [1][] In RunProcess: exitCode = 0
    08/31/12 17:57:43.233 DEBUG    bldeploy - [1][] chdir to PkgDir: 'C:\'
    08/31/12 17:57:43.233 WARN     bldeploy - [1][] A potential out of band reboot as indicated by the item did not occur. This out of band reboot could be conditional. If the reboot was mandatory for this item then there may have been an issue while deploying the item.
    08/31/12 17:57:43.233 DEBUG    bldeploy - Package items were processed
    08/31/12 17:57:43.233 INFO     bldeploy - Deployment ignoring copy on boot pending operations according to job configuration.
    08/31/12 17:57:43.233 INFO     bldeploy - Apply Succeeded
    08/31/12 17:57:43.233 DEBUG    bldeploy - Rollback directory created and needs to be cleaned up because there is no rollback for this package deployment
    08/31/12 17:57:43.233 DEBUG    bldeploy - DeletePkg = 1 DeleteUndo = 1
    08/31/12 17:57:43.233 DEBUG    bldeploy - Deleted the folder: C:\temp\stage\Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:43.233 DEBUG    bldeploy - Deleted the folder: C:\Program Files\BMC BladeLogic\RSC\Transactions\Restart-BL-Agent-164133.1-454119.4
    08/31/12 17:57:43.764 DEBUG    bldeploy - Bldeploy done - nRet = 1 (Apply successful) exitCode = 0 (Deployment succeeded)

  • 5. Re: Failed to create configuration file - agentctl to restart RSCD Agent
    jbew

    Hi, any more ideas as to why this is reporting as failed when it ran ok ?

     

    thanks.

  • 6. Re: Failed to create configuration file - agentctl to restart RSCD Agent
    Lazar NameToUpdate

    per bldeploy log, it ran successfully. bldeploy results are passed to bltargetjobmanager, which passed to rscd, which passed to the appserver (deploy job)

     

    which log to you see the error in? attach that log please.

  • 7. Re: Failed to create configuration file - agentctl to restart RSCD Agent
    Jim Wilson

    Hi Jason,

     

    Did this get resolved?

     

    Thanks & Regards,

    Jim (Forum Admin)

  • 8. Re: Failed to create configuration file - agentctl to restart RSCD Agent
    Lazar NameToUpdate

    Maybe it's some timing issue (which is why it fails sometimes and succeeds the others)

     

    Maybe the following approach would work. This was written for special software installations, but it should apply in your situation as well; the command inside the batch file would be the agentctl command, and it's the agentctl.exe that you use in last step to check if it's still running: https://kb.bmc.com/infocenter/index?page=content&id=KA364306