1 Reply Latest reply on Aug 9, 2018 11:24 AM by Newton Nyante

    Creating Certificate on Servers

    Ramakrishna Rao Mummidi

      I am trying to import certificates and when the File Job is run it fails.

      comand need to run as below.

      file Job is pushing Cert to tep file.

       

      certutil.exe -f addstore "TrustedPublisher"xxxxx.cer

       

      guide me with steps

       

      below is the Logs.

       

      JobRun Log Settings: JobRun Limit = 1000000, Per Target Log Limit = 1000, Per Target Log Level = AllInfo for DEPLOY_JOB

      Started running the job 'test' with priority 'NORMAL' on application server 'nambsaap05job'(16)

      JobRun Log Settings: JobRun Limit = 1000000, Per Target Log Limit = 1000, Per Target Log Level = AllInfo for DRYRUN_JOB

      Executing work item Deploy Dry Run Job (Pre-Execute):test; Server:xxxxxx server; Package:Card OS; on application server: nambsaap14job

      Executing work item Deploy Dry Run Job (Post-Execute):test; Server:xxxxxx server; Package:Card OS; on application server: nambsaap14job

      JobRun Log Settings: JobRun Limit = 1000000, Per Target Log Limit = 1000, Per Target Log Level = AllInfo for STAGING_JOB

      Executing work item Deploy Staging Job:test; Server:xxxxxx server; Package:Card OS; on application server: nambsaap13job

      JobRun Log Settings: JobRun Limit = 1000000, Per Target Log Limit = 1000, Per Target Log Level = AllInfo for APPLY_JOB

      Executing work item Deploy Apply Job (Pre-Execute):test; Server:xxxxxx server; Package:Card OS; on application server: nambsaap14job

      Executing work item Deploy Apply Job (Post-Execute):test; Server:xxxxxx server; Package:Card OS; on application server: nambsaap13job

      Execution Override on job 'test' set with Role 'AtosIntNAM_L3AdminW' and User 'a669669@ad.intra.ao-srv.com'.

      Full path to job 'test' : 'Jobs/AtosIntNAM/Workspace/CARD OS install'

      Job 'test' was manually executed by User:Role 'a669669@ad.intra.ao-srv.com':'AtosIntNAM_L3AdminW'.

      Debug mode is enabled for job 'test' .  Check appserver log(s) for file location.

      The job 'test' has failed

      Deploy Dry Run Job (Pre-Execute):test; Server:xxxxxx server; Package:Card OS; PkgID:"2033ebdb-1e57-443a-9f92-f244ab67ee97-146948.1"; UUID:055ddc828a8e368b94e6ad4ac2b94f19

      Started running the deploy step job 'test->test' on application server 'nambsaap14job'(36) against target server 'xxxxxx server'

      Checking size of '//nambsafile.gesm.ao-srv.com/e/Data/storage/blpackages/2033ebdb-1e57-443a-9f92-f244ab67ee97'

      Package on server nambsafile.gesm.ao-srv.com is 25735171 bytes in size.

      Staging directory on server xxxxxx server has 63037235200 bytes available.

      Package "Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) started

      Package Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) initialized

      Package "Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) processing instructions

      Package "Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) completed. exitCode = 0 (DryRun successful)

      Dryrun succeeded

       

       

      Reboot is not allowed

       

       

      Maintenance / Exclusion Window Timeout not configured

       

       

      Copy on reboot files present - ignoring

       

       

      Bldeploy "Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) started using file C:\temp\stage\7f25f5af4f3d3c70861e17b2266873f5\bldeploy.xml with rollback directory C:\Program Files\BMC Software\BladeLogic\RSCD\\Transactions\055ddc828a8e368b94e6ad4ac2b94f19

       

       

      Starting dryRun

       

       

      "Package does not contain reboot instructions, and contains single-user mode instructions

      (Time in agent's deploy log:: 08/08/2018 15:31:34)"

      Bldeploy done - nRet = 3 (DryRun successful) exitCode = 0 (Deployment succeeded)

       

       

      The job 'test->test' has succeeded on server xxxxxx server

      Deploy Staging Job:test; Server:xxxxxx server; Package:Card OS; PkgID:"2033ebdb-1e57-443a-9f92-f244ab67ee97-146948.1"; UUID:055ddc828a8e368b94e6ad4ac2b94f19

      Started running the deploy step job 'test->test' on application server 'nambsaap13job'(37) against target server 'xxxxxx server'

      Checking size of '//nambsafile.gesm.ao-srv.com/e/Data/storage/blpackages/2033ebdb-1e57-443a-9f92-f244ab67ee97'

      Package on server nambsafile.gesm.ao-srv.com is 25735171 bytes in size.

      Staging directory on server xxxxxx server has 63037206528 bytes available.

      The job 'test->test' has succeeded on server xxxxxx server

      Deploy Apply Job (Pre-Execute):test; Server:xxxxxx server; Package:Card OS; PkgID:"2033ebdb-1e57-443a-9f92-f244ab67ee97-146948.1"; UUID:055ddc828a8e368b94e6ad4ac2b94f19

      Exclusion window not defined for server xxxxxx server.

      Maintenance Window disabled on server xxxxxx server.

      Started running the deploy step job 'test->test' on application server 'nambsaap14job'(36) against target server 'xxxxxx server'

      Package "Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) started

      Package Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) initialized

      Package "Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) processing instructions

      Package "Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) auto-rollback on failure started

      Package "Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) completed. exitCode = -4001 (Apply failed; auto-rollback successful)

      Reboot is not allowed

       

       

      Maintenance / Exclusion Window Timeout not configured

       

       

      Copy on reboot files present - ignoring

       

       

      Bldeploy "Card OS" UUID(055ddc828a8e368b94e6ad4ac2b94f19) started using file C:\temp\stage\7f25f5af4f3d3c70861e17b2266873f5\bldeploy.xml with rollback directory C:\Program Files\BMC Software\BladeLogic\RSCD\\Transactions\055ddc828a8e368b94e6ad4ac2b94f19

       

       

      Starting apply

       

       

      "Package does not contain reboot instructions, and contains single-user mode instructions

      (Time in agent's deploy log:: 08/08/2018 15:32:05)"

      Processing asset BLPACKAGE (Time in agent's deploy log:: 08/08/2018 15:32:05)

      Processing asset FILE (Time in agent's deploy log:: 08/08/2018 15:32:05)

      Creation Time: Using DST Time.

       

       

      Modified Time: Using DST Time.

       

       

      Processing asset EXTERNALCMD (Time in agent's deploy log:: 08/08/2018 15:32:05)

      Executing command: "certutil.exe -f -addstore "TrustedPublisher" VeriSignClass3CodeSigning2010CA.cer" (Time in agent's deploy log:: 08/08/2018 15:32:05)

      "[stdout: 2] TrustedPublisher ""Trusted Publishers"" (Time in agent's deploy log:: 08/08/2018 15:32:05)"

      DecodeFile returned The system cannot find the file specified. 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)

      CertUtil: -addstore command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)

      CertUtil: The system cannot find the file specified.

      Item 'VeriSignClass3CodeSigning2010CA.cer' returned exit code -2147024894 (Time in agent's deploy log:: 08/08/2018 15:32:05)

      Command returned non-zero exit code: -2147024894 (Time in agent's deploy log:: 08/08/2018 15:32:05)

      Apply failed: id = 2 (Time in agent's deploy log:: 08/08/2018 15:32:05)

      Deployment ignoring copy on boot pending operations according to job configuration.

       

       

      Starting undo

       

       

      "Package does not contain reboot instructions, and contains single-user mode instructions

      (Time in agent's deploy log:: 08/08/2018 15:32:05)"

      Processing asset BLPACKAGE (Time in agent's deploy log:: 08/08/2018 15:32:05)

      Processing asset FILE (Time in agent's deploy log:: 08/08/2018 15:32:05)

      Creation Time: Using DST Time.

       

       

      Access Time: Using DST Time.

       

       

      Modified Time: Using DST Time.

       

       

      Failed to open C:/tmp. Error: The process cannot access the file because it is being used by another process.

       

       

      Deployment ignoring copy on boot pending operations according to job configuration.

       

       

      Undo succeeded

       

       

      Deploy failed. Cleaning up staging area.

       

       

      Deploy failed. Cleaning up staging area.

       

       

      Bldeploy done - nRet = 6 (Apply failed; auto-rollback successful) exitCode = -4001 (Deployment failed)

       

      Message was edited by: Ramakrishna Rao Mummidi

        • 1. Re: Creating Certificate on Servers
          Newton Nyante

          Seems the util is not finding the input file:

          Executing command: "certutil.exe -f -addstore "TrustedPublisher" VeriSignClass3CodeSigning2010CA.cer" (Time in agent's deploy log:: 08/08/2018 15:32:05)

          "[stdout: 2] TrustedPublisher ""Trusted Publishers"" (Time in agent's deploy log:: 08/08/2018 15:32:05)"

          DecodeFile returned The system cannot find the file specified. 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)

          CertUtil: -addstore command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)

          CertUtil: The system cannot find the file specified.

          Item 'VeriSignClass3CodeSigning2010CA.cer' returned exit code -2147024894 (Time in agent's deploy log:: 08/08/2018 15:32:05)

           

           

          Do you need to specify a full path to the input file a not a relative path/filename?  Where have you deployed the input file with your blpackage?  I don't see that in the log.