search cancel

Error while creating a Software Update Policy. Software Update Distribution Task Completed: Failed

book

Article ID: 216111

calendar_today

Updated On:

Products

Patch Management Solution

Issue/Introduction

The customer is having issues with Patch Management Solution when creating packages. The following message is displayed every time they try to create a package for a Software Update Policy:

"Software Update Distribution Task Completed: Failed". 

Anytime when he tries right-click>Recreate Package, the following type of error message happens:

Error downloading software update [CHROME-210525][GoogleChromeStandaloneEnterprise_91.0.4472.77_x64.msi] {462dc89a-5d9a-4260-92f3-a9da0de0d914} - System.UnauthorizedAccessException: Could not access the path for package: 'GoogleChromeStandaloneEnterprise_91.0.4472.77_x64.msi' (125a177a-eeac-7c9e-d024-01c18c6029a8), path=D:\Patch Management\Packages\Updates\CHROME-210525\{462dc89a-5d9a-4260-92f3-a9da0de0d914} ---> System.UnauthorizedAccessException: Access to path 'D:\Patch Management\Packages\Updates\CHROME-210525\{462dc89a-5d9a-4260-92f3-a9da0de0d914}' has been denied.
   at Altiris.Common.IO.LongPathDirectory.Exists(String path)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.<>c__DisplayClass24_0.<ValidatePackageForMdp>b__0()
   --- End of inner exception stack trace ---
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.<>c__DisplayClass24_0.<ValidatePackageForMdp>b__0()
   at Altiris.NS.StandardItems.SoftwareDelivery.AccPackageAreaExtensions.Execute(IAccPackageArea area, Action action)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.DistributionPointsPackageArea.Enter(PackageItem pkgItem, Boolean snapshotOnly)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.ManageDistributionPoints(PackageItem pkgItem, Boolean snapshotOnly, ICollection`1 agentGuids)
   at Altiris.PatchManagementCore.Resources.PatchSoftwareUpdateResource.CreatePackage(List`1 stagedLcid, Boolean staged)
   at Altiris.PatchManagementCore.Tasks.Server.DownloadSWUPackageTask.PostDownloadProcessing(PatchSoftwareUpdateResource softwareUpdate, Boolean isDownloadSuccessful)
   at Altiris.PatchManagementCore.Tasks.Server.DownloadSWUPackageTask.ProcessPackages(ProcessPackagesRezult rezult)

Could not access the path for package: 'GoogleChromeStandaloneEnterprise_91.0.4472.77_x64.msi' (125a177a-eeac-7c9e-d024-01c18c6029a8), path=D:\Patch Management\Packages\Updates\CHROME-210525\{462dc89a-5d9a-4260-92f3-a9da0de0d914}
   [System.UnauthorizedAccessException @ Altiris.NS.StandardItems]
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.<>c__DisplayClass24_0.<ValidatePackageForMdp>b__0()
   at Altiris.NS.StandardItems.SoftwareDelivery.AccPackageAreaExtensions.Execute(IAccPackageArea area, Action action)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.DistributionPointsPackageArea.Enter(PackageItem pkgItem, Boolean snapshotOnly)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.ManageDistributionPoints(PackageItem pkgItem, Boolean snapshotOnly, ICollection`1 agentGuids)
   at Altiris.PatchManagementCore.Resources.PatchSoftwareUpdateResource.CreatePackage(List`1 stagedLcid, Boolean staged)
   at Altiris.PatchManagementCore.Tasks.Server.DownloadSWUPackageTask.PostDownloadProcessing(PatchSoftwareUpdateResource softwareUpdate, Boolean isDownloadSuccessful)
   at Altiris.PatchManagementCore.Tasks.Server.DownloadSWUPackageTask.ProcessPackages(ProcessPackagesRezult rezult)

Access to path 'D:\Patch Management\Packages\Updates\CHROME-210525\{462dc89a-5d9a-4260-92f3-a9da0de0d914}' has been denied.
   [System.UnauthorizedAccessException @ Altiris.Common]
   at Altiris.Common.IO.LongPathDirectory.Exists(String path)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.<>c__DisplayClass24_0.<ValidatePackageForMdp>b__0()

Exception logged from: 
   at Altiris.PatchManagementCore.Tasks.Server.DownloadSWUPackageTask.ProcessPackages(Altiris.PatchManagementCore.Tasks.Server.DownloadSWUPackageTask+ProcessPackagesRezult)
   at Altiris.PatchManagementCore.Tasks.Server.DownloadSWUPackageTask.OnExecuteSingleton(Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance)
   at Altiris.PatchManagementCore.Tasks.Server.SerializingBaseSingletonServerTask<TContent,TControl>.OnExecute(Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance)
   at Altiris.TaskManagement.SingletonTask.SingletonTaskContext.Execute(Altiris.TaskManagement.IBaseTask, System.Func<Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance,Altiris.TaskManagement.Common.Execution.ExecutionResult>, Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance)
   at Altiris.TaskManagement.ServerTasks.BaseServerTask.OnExecute(Altiris.TaskManagement.Common.Execution.Engine.ITaskExecutionEngine, Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance, Altiris.TaskManagement.Common.Execution.Engine.TaskInstanceRequest)
   at Altiris.TaskManagement.ServerTasks.BaseServerTask.Execute(Altiris.TaskManagement.Common.Execution.Engine.ITaskExecutionEngine, Altiris.TaskManagement.Common.Data.IBaseTaskExecutionInstance, Altiris.TaskManagement.Common.Execution.Engine.TaskInstanceRequest)
   at Altiris.TaskManagement.Common.Execution.Engine.TaskEngineExecutionThread.ExecuteTaskHandler()
   at Altiris.TaskManagement.ServerTasks.ServerTaskExecutionThread.ExecuteTaskHandler()
   at Altiris.TaskManagement.Common.Execution.Engine.TaskEngineExecutionThread.Execute()
   at Altiris.TaskManagement.Common.Execution.Engine.TaskExecutionEngine.ProcessTaskExecuteOperation(Altiris.TaskManagement.Common.Execution.Engine.TaskInstanceRequest, Altiris.TaskManagement.Common.Execution.Engine.TaskEngineExecutionThread)
   at Altiris.TaskManagement.ServerTasks.ServerTaskManager.ProcessTaskExecuteOperation(Altiris.TaskManagement.Common.Execution.Engine.TaskInstanceRequest, Altiris.TaskManagement.Common.Execution.Engine.TaskEngineExecutionThread)
   at Altiris.TaskManagement.Common.Execution.Engine.TaskExecutionEngine.ProcessTaskExecuteOperation(Object)
   at Altiris.DotNetLib.Threading.AtrsThreadPoolEx.ProcessWorkToDo(System.Threading.Thread, Altiris.DotNetLib.Threading.AtrsThreadPoolWorkItemEx)
   at Altiris.DotNetLib.Threading.AtrsThreadPoolEx.ProcessWorkToDo()
   at Altiris.DotNetLib.Threading.AtrsThreadPoolEx.WorkerThreadRun()
   at Altiris.DotNetLib.Threading.AtrsThreadPoolEx.WorkerThreadProc()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at System.Threading.ThreadHelper.ThreadStart()

-----------------------------------------------------------------------------------------------------
Date: 2021-05-27 2:10:07.7198642 PM, Tick Count: 82692343 (22:58:12.3430000), Size: 6.60 KB
Process: AtrsHost (14040), Thread ID: 33, Module: Altiris.PatchManagementCore.dll
Priority: 1, Source: Altiris.PatchManagementCore.Tasks.Server.DownloadSWUPackageTask.ProcessPackages

 

Environment

ITMS 8.5, 8.6

Cause

"Authenticated Users" didn't have the proper rights to access the destination path. In this particular instance, the issue was under:

Access to path 'D:\Patch Management\Packages\Updates\CHROME-210525\{462dc89a-5d9a-4260-92f3-a9da0de0d914}' has been denied.

The Symantec Management Platform (SMP) Server uses Anonymous Authentication (IUSR) when calling the PMImport download and when downloading Software Bulletins to the SMP Server.

Resolution

The customer was using a custom location to store their patch packages:

  1. Validate if they have a custom location under Settings>All Settings>Software>Patch Management>Core Services (under the Locations tab).
  2. Go to the destination folder and check if "Authenticated Users" has "Read" permissions under the "Patch Management" folder (and any subfolder under it).
  3. By default as well, we need that "System" and "Administrators" have Full Control under the "Patch Management" folder (and any subfolder under it).

Attachments