Hhogdev.SitecorePackageDeployer – stop auto update package installation on webapp/server restarts

Background:

As a part of Octopus deployment process, we are installing update package to deploy newly created /changed sitecore items on upper environments. These packages are installed using HedgehogDevelopment.TDS.SitecorePackageDeployer.Azure nuget package.

Just before this step, there are two steps: one of the step is to upload the update packages at App_Data/Pacakges folder and after then a step which restarts the CM server.

 

Issue: As soon as CM gets restarts, it started installing the packages which are there under App_Data/Packages folder. and also, the other step will also start the package installation and at the end that steps fail.

 

Debugging Root Cause & Solution:

    • We have explored the TDS Sitecore Package Deployer nuget package and found one configuration file: App_Config\Include\Hhogdev.SitecorePackageDeployer.config
    • In this file, we have checked the agent Tasks.InstallPackage and found its Interval is set to 00:00:00
       <agent type="Hhogdev.SitecorePackageDeployer.Tasks.InstallPackage, Hhogdev.SitecorePackageDeployer" method="Run" interval="00:00:00"/>
      
  • Everything seems good with this file but still packages gets installed on the restart of the webapp which we need to stop.
  • Then we found a comment above this agent.
    </pre>
    <scheduling>
    <!-- Agent to install update packages -->
    <!-- Comment this out if using the OnDemand url to install a package -->
    <agent type="Hhogdev.SitecorePackageDeployer.Tasks.InstallPackage, Hhogdev.SitecorePackageDeployer" method="Run" interval="00:00:00"/>
    
    </scheduling>
    <pre></pre>
    <pre>
  • We then comment out this agent.
  • But still, the packages installation gets started on restart. so the issue was still there.
  • Then, we came across the processor of initialize pipeline mentioned in the same configuration.
     
    &nbsp;&lt;initialize&gt;
            &lt;!-- Processor to execute post steps--&gt;
            &lt;processor type="Hhogdev.SitecorePackageDeployer.Pipelines.Initialize.RunPostInstallSteps, Hhogdev.SitecorePackageDeployer"/&gt;
            
          &lt;/initialize&gt;
    

    We commented out this processor as well.

    And then tried to do a deployment, this time, the package didn’t installed after Webapp restarts. And it gets installed only when – when actual installation steps started in the deployment process.

 

Other information:
Sitecore version: 9.1 update-1
Hhogdev Sitecore Package Deployer Version: 1.10.0.0

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s