9 Replies Latest reply on Dec 12, 2013 2:44 PM by Jim Wilson

    Failed to change Windows Service Start Type

    Tal Abramson

      Hi

      I am trying to change a service start type from Disabled to Manual

      So i right clicked the service in live browse and created a BLPackage

      Changed the package to Modify , and changed the Start Type from Disabled to Manual

      But when i am executing the deploy job (on the same server where i took the service from)

      I am getting his error :

      PreCondition "SevicePresent" failed - Name = "TrustedInstaller"

       

      This service is clearly there

      So what am i doing wrong ?

        • 1. Re: Failed to change Windows Service Start Type
          Daniel Tharby

          Hi Tal,

           

          What service did you attempt to change?

          What version of BSA are you using?

          What do you mean by Modify?

           

          When you create a BLP from Live Server Objects all you need to do is open the BLP and make the changes

           

          I have just tested this with BSA 8.3 and a Windows 2008 R2 Server successfully changing a service from Manual to Automatic.

           

          Cheers

          Dan

          • 2. Re: Failed to change Windows Service Start Type
            Tal Abramson

            Its 8.2 SP3

            Windows 2008 R2

            And the Windows Module Installer service

             

            I open the newly created package

            Change the action to Modify

            And changed the Start Type from Disabled to Manual

            Saved and deployed

            • 3. Re: Failed to change Windows Service Start Type
              Daniel Tharby

              Hi Tal,

               

              Yeah I should have remembered the Action lol -I left it to add.

               

              OK,there is an error after the PreCondition for the TrustedInstaller that mentions "Access is denied"

              BLP - ModulesInstaller - Access Denied.PNG.png

               

              Given that this is part of Windows Update I would suspect some additional Admin Permissions are required.

               

              Therefore we now have to ask why you are changing it and have you spoken to the Windows Admins about the access. This would be my first port of call.

               

              I believe that the Windows Module Installer has it's own user called TrustedInstaller that has overall rights but would need to be verified.

               

              HTH

              Dan

              • 4. Re: Failed to change Windows Service Start Type
                Tal Abramson

                Hi

                Thank you for trying to help

                I do not have an Access denied errorModify_Service.jpg

                And the user used is an Admin on the system

                • 5. Re: Failed to change Windows Service Start Type
                  Jim Wilson

                  Hi Tal Abramson

                   

                  In your example, you have "Windows Modules Installer" which is the Service Display Name, but in Daniel Tharby example, it is "TrustedInstaller" which is the Service Name.

                   

                  Change yours to use the Service Name then Dan's response will make more sense.

                   

                  HTH

                  Jim

                  • 6. Re: Failed to change Windows Service Start Type
                    Tal Abramson

                    I already tried that with no luck

                    Modify_Service2.jpg

                    • 7. Re: Re: Failed to change Windows Service Start Type
                      Jim Wilson

                      Is there a bldeploy log  under  rscd_install_dir\RSCD\Transactions\log on the target?

                       

                      -or-

                      Would an NSH Script Job work for you?

                       

                      You could send the relevant sc command:

                       

                      sc config TrustedInstaller start= demand

                      • 8. Re: Failed to change Windows Service Start Type
                        Tal Abramson

                        I wanted to avoid scripting for this

                        i attached the deploy log , which doesn't give any more info

                         

                        12/12/13 14:23:22.210 INFO     bldeploy - Bldeploy started for package: a6d75188d56d3bf0bd8f9ffdf4c5f6be

                        12/12/13 14:23:22.226 DEBUG    bldeploy - Bldeploy Arguments:

                        12/12/13 14:23:22.226 DEBUG    bldeploy - C:\Program Files\BMC Software\BladeLogic\RSCD\sbin\bldeploy.exe

                        12/12/13 14:23:22.226 DEBUG    bldeploy - a6d75188d56d3bf0bd8f9ffdf4c5f6be

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -N=/temp/stage/0debe2f816d13fbb82b896dc71fadccc

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -P=bbc-pd-mt-05.uk.onbmc.com

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -Q=params.txt

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -PKG=Delta%20Modul%20Installer%20@2013-12-12%2014-19-00-778+0000-37795.1

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -DryRun

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -Xr

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -V1

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -js0

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -jr0

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -jc0

                        12/12/13 14:23:22.226 DEBUG    bldeploy - -StartNew

                        12/12/13 14:23:22.226 DEBUG    bldeploy - C:\Program Files\BMC Software\BladeLogic\RSCD\sbin\bldeploy.exe  - 8.2.0.158

                        12/12/13 14:23:22.242 INFO     bldeploy - Deployment job not in single-job mode. Reboot is not allowed. Any reboot requests by certain file operations will be ignored.

                        12/12/13 14:23:22.242 DEBUG    bldeploy - Cleanup staging area on failure

                        12/12/13 14:23:23.287 DEBUG    bldeploy - Utilizing configuration file: C:\temp\stage\0debe2f816d13fbb82b896dc71fadccc\a6d75188d56d3bf0bd8f9ffdf4c5f6be.cfg

                        12/12/13 14:23:23.287 DEBUG    bldeploy - Fresh start of deployment, deleting any pre-existing configuration file

                        12/12/13 14:23:25.580 DEBUG    bldeploy - Could not open file "C:\Program Files\BMC Software\BladeLogic\RSCD\\params.txt" for reading

                        12/12/13 14:23:25.580 DEBUG    bldeploy -

                        DEPLOYNAME = a6d75188d56d3bf0bd8f9ffdf4c5f6be:

                        DEPLOYPATH = C:\temp\stage\0debe2f816d13fbb82b896dc71fadccc:

                        FQHOST = bbc-pd-mt-05.uk.onbmc.com:

                        HOST = bbc-pd-mt-05:

                        HOSTIP = 10.200.2.36:

                        NAMESPACE = bbc-pd-mt-05.uk.onbmc.com:

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

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

                        WINDIR = C:\Windows:

                        XMLFILEPATH = C:\temp\stage\0debe2f816d13fbb82b896dc71fadccc\bldeploy.xml:

                        12/12/13 14:23:25.580 DEBUG    bldeploy - Full command line C:\Program Files\BMC Software\BladeLogic\RSCD\sbin\bldeploy.exe a6d75188d56d3bf0bd8f9ffdf4c5f6be -N=/temp/stage/0debe2f816d13fbb82b896dc71fadccc -P=bbc-pd-mt-05.uk.onbmc.com -Q=params.txt -PKG=Delta%20Modul%20Installer%20@2013-12-12%2014-19-00-778+0000-37795.1 -DryRun -Xr -V1 -js0 -jr0 -jc0

                        12/12/13 14:23:25.580 DEBUG    bldeploy -  Running as User: bladesvc@onbmc.com

                        12/12/13 14:23:25.580 DEBUG    bldeploy -  Privileges:

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeIncreaseQuotaPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeSecurityPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeTakeOwnershipPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeLoadDriverPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeSystemProfilePrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeSystemtimePrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeProfileSingleProcessPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeIncreaseBasePriorityPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeCreatePagefilePrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeBackupPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeRestorePrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeShutdownPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeDebugPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeSystemEnvironmentPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeChangeNotifyPrivilege - Enabled by default

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeRemoteShutdownPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeUndockPrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeManageVolumePrivilege - Disabled

                        12/12/13 14:23:25.596 DEBUG    bldeploy -   SeImpersonatePrivilege - Enabled by default

                        12/12/13 14:23:25.611 DEBUG    bldeploy -   SeCreateGlobalPrivilege - Enabled by default

                        12/12/13 14:23:25.611 DEBUG    bldeploy -   SeIncreaseWorkingSetPrivilege - Disabled

                        12/12/13 14:23:25.611 DEBUG    bldeploy -   SeTimeZonePrivilege - Disabled

                        12/12/13 14:23:25.611 DEBUG    bldeploy -   SeCreateSymbolicLinkPrivilege - Disabled

                        12/12/13 14:23:25.611 DEBUG    bldeploy - Validating existence of wait lock C:\Program Files\BMC Software\BladeLogic\RSCD\\Transactions\locks\reboot.lck

                        12/12/13 14:23:25.611 DEBUG    bldeploy - Deployment running in multi-job mode

                        12/12/13 14:23:25.627 DEBUG    bldeploy - Read lock acquired release write lock

                        12/12/13 14:23:25.627 DEBUG    bldeploy - Acquired appropriate lock: C:\Program Files\BMC Software\BladeLogic\RSCD\\Transactions\locks\reader\a6d75188d56d3bf0bd8f9ffdf4c5f6be.lck

                        12/12/13 14:23:25.642 DEBUG    bldeploy - Creating directory C:\Program Files\BMC Software\BladeLogic\RSCD\Transactions\a6d75188d56d3bf0bd8f9ffdf4c5f6be

                        12/12/13 14:23:25.642 INFO     bldeploy - Bldeploy "Delta Modul Installer @2013-12-12 14-19-00-778+0000" UUID(a6d75188d56d3bf0bd8f9ffdf4c5f6be) started using file C:\temp\stage\0debe2f816d13fbb82b896dc71fadccc\bldeploy.xml with rollback directory C:\Program Files\BMC Software\BladeLogic\RSCD\\Transactions\a6d75188d56d3bf0bd8f9ffdf4c5f6be

                        12/12/13 14:23:25.658 INFO     bldeploy - Starting dryRun

                        12/12/13 14:23:25.674 DEBUG    bldeploy - [][] Dryrun id =

                        12/12/13 14:23:25.674 DEBUG    bldeploy - [1][Windows Modules Installer] Dryrun id = 1

                        12/12/13 14:23:25.674 ERROR    bldeploy - [1][Windows Modules Installer] PreCondition "SevicePresent" failed - Name = "TrustedInstaller"

                        12/12/13 14:23:25.674 ERROR    bldeploy - Dryrun failed

                        12/12/13 14:23:25.689 DEBUG    bldeploy - Dry-run failure: initialize directory delete to false

                        12/12/13 14:23:25.689 WARN     bldeploy - Deploy failed. Cleaning up staging area.

                        12/12/13 14:23:25.689 DEBUG    bldeploy - DeletePkg = 1 DeleteUndo = 0

                        12/12/13 14:23:25.705 DEBUG    bldeploy - Deleted the folder: C:\temp\stage\0debe2f816d13fbb82b896dc71fadccc

                        12/12/13 14:23:25.720 DEBUG    bldeploy - Bldeploy done - nRet = 9 (DryRun failed) exitCode = -4001 (Deployment failed)

                        • 9. Re: Failed to change Windows Service Start Type
                          Jim Wilson

                          I tested on 8.3SP2 and got the same result as Dan - Access Denied.

                           

                          I confirm what Dan has suggested - the Administrator account does not have Modify permission on the executable, and there is another user TrustedInstaller that has the permission:

                           

                          Screenshot - 12_12_2013 , 20_04_27.pngScreenshot - 12_12_2013 , 20_04_47.png

                          The sc command worked when mapped as Administrator.

                          1 of 1 people found this helpful