1 2 Previous Next 16 Replies Latest reply on Aug 30, 2012 10:13 AM by Jason B

    deploy blpackage on Win2K8R2 fails - Could not open 'bldeploycmd.bat' for writing

    Matt Kreger

      I created a simple blpackage that runs an external command, copies a few files, and runs another command.  It successfully runs the first command and copies the files, but just as it is about to run the second command, it fails trying to open bldeploycmd.bat and rolls the whole thing back. The two commands are basically the same.

       

      Any suggestions?

       

      ...

       

      10/06/10 12:33:03.318 INFO     bldeploy - [1][] Processing asset EXTERNALCMD
      10/06/10 12:33:03.318 INFO     bldeploy - [1][] Executing command: "ovc -kill
      timeout /T 30"

      10/06/10 12:33:03.318 DEBUG    bldeploy - [1][] chdir to PkgDir: 'C:\temp\stage\HPOA_8.60_Win64_Hotfix-4173.1-2315.1\'
      10/06/10 12:33:03.349 DEBUG    bldeploy - [1][] exeFullPath = (null), CmdLine = "C:\temp\stage\HPOA_8.60_Win64_Hotfix-4173.1-2315.1\bldeploycmd.bat", workingDir = NULL
      10/06/10 12:33:03.677 INFO     bldeploy - [1][] [stdout: 1]     

      C:\temp\stage\HPOA_8.60_Win64_Hotfix-4173.1-2315.1>chcp 1252  1>NUL


      10/06/10 12:33:03.896 INFO     bldeploy - [1][] [stdout: 1]     

      C:\temp\stage\HPOA_8.60_Win64_Hotfix-4173.1-2315.1>ovc -kill


      10/06/10 12:33:27.068 INFO     bldeploy - [1][] [stdout: 1]     

      C:\temp\stage\HPOA_8.60_Win64_Hotfix-4173.1-2315.1>timeout /T 30


      10/06/10 12:33:27.177 INFO     bldeploy - [1][] [stdout: 1]     

      Waiting for 30 seconds, press a key to continue ...
      10/06/10 12:33:28.162 INFO     bldeploy - [1][] [stdout: 1]       29
      10/06/10 12:33:29.146 INFO     bldeploy - [1][] [stdout: 1]       28
      10/06/10 12:33:30.130 INFO     bldeploy - [1][] [stdout: 1]       27
      10/06/10 12:33:31.115 INFO     bldeploy - [1][] [stdout: 1]       26
      10/06/10 12:33:32.115 INFO     bldeploy - [1][] [stdout: 1]       25
      10/06/10 12:33:33.021 INFO     bldeploy - [1][] [stdout: 1]       24
      10/06/10 12:33:34.005 INFO     bldeploy - [1][] [stdout: 1]       23
      10/06/10 12:33:35.209 INFO     bldeploy - [1][] [stdout: 1]       22
      10/06/10 12:33:36.193 INFO     bldeploy - [1][] [stdout: 1]       21
      10/06/10 12:33:37.177 INFO     bldeploy - [1][] [stdout: 1]       20
      10/06/10 12:33:38.052 INFO     bldeploy - [1][] [stdout: 1]       19
      10/06/10 12:33:39.037 INFO     bldeploy - [1][] [stdout: 1]       18
      10/06/10 12:33:40.021 INFO     bldeploy - [1][] [stdout: 1]       17
      10/06/10 12:33:41.006 INFO     bldeploy - [1][] [stdout: 1]       16
      10/06/10 12:33:45.099 INFO     bldeploy - [1][] [stdout: 1]       15  14  13  12
      10/06/10 12:33:46.084 INFO     bldeploy - [1][] [stdout: 1]       11
      10/06/10 12:33:47.193 INFO     bldeploy - [1][] [stdout: 1]       10
      10/06/10 12:33:48.178 INFO     bldeploy - [1][] [stdout: 1]        9
      10/06/10 12:33:49.162 INFO     bldeploy - [1][] [stdout: 1]        8
      10/06/10 12:33:50.053 INFO     bldeploy - [1][] [stdout: 1]        7
      10/06/10 12:33:51.037 INFO     bldeploy - [1][] [stdout: 1]        6
      10/06/10 12:33:52.131 INFO     bldeploy - [1][] [stdout: 1]        5
      10/06/10 12:33:53.115 INFO     bldeploy - [1][] [stdout: 1]        4
      10/06/10 12:33:54.099 INFO     bldeploy - [1][] [stdout: 1]        3
      10/06/10 12:33:55.099 INFO     bldeploy - [1][] [stdout: 1]        2
      10/06/10 12:33:56.193 INFO     bldeploy - [1][] [stdout: 1]        1
      10/06/10 12:33:57.178 INFO     bldeploy - [1][] [stdout: 1]        0


      10/06/10 12:33:57.287 DEBUG    bldeploy - [1][] In RunProcess: exitCode = 0

       

      ...

       

      10/06/10 12:33:59.537 INFO     bldeploy - [7][] Processing asset EXTERNALCMD
      10/06/10 12:33:59.537 INFO     bldeploy - [7][] Executing command: "ovc -start

      timeout /T 30"
      10/06/10 12:33:59.537 DEBUG    bldeploy - [7][] chdir to PkgDir: 'C:\temp\stage\HPOA_8.60_Win64_Hotfix-4173.1-2315.1\'

      10/06/10 12:33:59.553 ERROR    bldeploy - [7][] Could not open 'bldeploycmd.bat' for writing: Error 'The process cannot access the file because it is being used by another process.'
      10/06/10 12:33:59.553 ERROR    bldeploy - [7][] Failed to create batch file
      10/06/10 12:33:59.553 DEBUG    bldeploy - [7][] chdir to PkgDir: 'C:\'
      10/06/10 12:33:59.584 ERROR    bldeploy - [7][] Apply failed: id = 7
      10/06/10 12:33:59.584 DEBUG    bldeploy - [0][] Apply failed -processing sub-list: id = 0
      10/06/10 12:33:59.600 DEBUG    bldeploy - Package items were processed
      10/06/10 12:34:00.521 INFO     bldeploy - Starting undo

      ...

        1 2 Previous Next