Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-3449

Puppet Agent Upgrade fails on Windows because pxp-agent service is running

    XMLWordPrintable

Details

    • Hide

      CI should go (validly) green once this change lands

      Show
      CI should go (validly) green once this change lands
    • 1
    • Windows 2016-06-15

    Description

      While attempting performing an agent upgrade from 1.4.2 to 1.5.0, the upgrade fails to proceed due to the pxp-agent service running and holding file locks.

      Based on previous testing in PA-65, silent installs were supposed to be unaffected under these circumstances, but apparently they are affected, and will not proceed with an install. See the relevant portion of the MSI log:

      MSI (s) (A0:18) [13:57:31:594]: RESTART MANAGER: Will attempt to shut down and restart applications in no UI modes.
      MSI (s) (A0:18) [13:57:31:594]: RESTART MANAGER: Detected that application with id 2664, friendly name 'pxp-agent', of type RmConsole and status 1 holds file[s] in use.
      MSI (s) (A0:18) [13:57:31:594]: RESTART MANAGER: Detected that application with id 2948, friendly name 'Marionette Collective Server', service short name 'mcollective', of type RmService and status 1 holds file[s] in use.
      MSI (s) (A0:18) [13:57:31:594]: RESTART MANAGER: Detected that the service mcollective will be stopped due to a service control action authored in the package before the files are updated. So, we will not attempt to stop this service using Restart Manager
      MSI (s) (A0:18) [13:57:31:594]: Note: 1: 1708 
      MSI (s) (A0:18) [13:57:31:594]: Product: Puppet Agent (64-bit) -- Installation failed.
      MSI (s) (A0:18) [13:57:31:594]: Windows Installer installed the product. Product Name: Puppet Agent (64-bit). Product Version: 1.5.0. Product Language: 1033. Manufacturer: Puppet Labs. Installation success or error status: 1603.
      MSI (s) (A0:18) [13:57:31:609]: Deferring clean up of packages/files, if any exist
      MSI (s) (A0:18) [13:57:31:609]: MainEngineThread is returning 1603
      MSI (s) (A0:CC) [13:57:31:609]: RESTART MANAGER: Session closed.
      MSI (s) (A0:CC) [13:57:31:609]: No System Restore sequence number for this installation.
      MSI (s) (A0:CC) [13:57:31:609]: User policy value 'DisableRollback' is 0
      MSI (s) (A0:CC) [13:57:31:609]: Machine policy value 'DisableRollback' is 0
      MSI (s) (A0:CC) [13:57:31:609]: Incrementing counter to disable shutdown. Counter after increment: 0
      MSI (s) (A0:CC) [13:57:31:609]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
      MSI (s) (A0:CC) [13:57:31:609]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
      MSI (s) (A0:CC) [13:57:31:609]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 
      MSI (s) (A0:CC) [13:57:31:609]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 
      MSI (s) (A0:CC) [13:57:31:609]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
      MSI (s) (A0:CC) [13:57:31:609]: Restoring environment variables
      MSI (s) (A0:CC) [13:57:31:609]: Destroying RemoteAPI object.
      MSI (s) (A0:28) [13:57:31:609]: Custom Action Manager thread ending.
      MSI (c) (54:D0) [13:57:31:609]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
      MSI (c) (54:D0) [13:57:31:609]: MainEngineThread is returning 1603
      

      Given Puppet will manage the pxp-agent service through the PE configuration module, it has been deemed acceptable to simply shut down the pxp-agent service in the upgrade batch file, so that silent installs may proceed.

      Attachments

        Issue Links

          Activity

            People

              glenn.sarti Glenn Sarti
              ethan Ethan Brown
              Erick Banks Erick Banks
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support