PMImport fails. The process cannot access the file 'C:\Altiris\Patch Management\packages\windowsvulnerabilityscan\WindowsPatchData.zip' because it is being used by another process.

book

Article ID: 184748

calendar_today

Updated On:

Products

Management Platform (Formerly known as Notification Server) Patch Management Solution

Issue/Introduction

PMImport failing. 

Checked the Computer Manager> Shared folders> Open files, and there were too many open files for WindowsPatch.Data.zip files and too many other patch files. as soon as deleting them. they were coming back. 
Also we could not delete the files in VulnerablityScan folder.  The WindowsPatchData.zip and catalog were reappearing after deleting. 

Failed to update Tools\WindowsPatchData.zip

The process cannot access the file 'D:\Altiris\Patch Management\packages\windowsvulnerabilityscan\WindowsPatchData.zip' because it is being used by another process.
   [System.IO.IOException @ mscorlib]
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
   at Altiris.PatchManagement.Tasks.WindowsImportTask.DownloadPackageFiles(ICollection`1 listOfFiles, String destination)

Exception logged from:
   at Altiris.PatchManagement.Tasks.WindowsImportTask.DownloadPackageFiles(System.Collections.Generic.ICollection<Altiris.PatchManagementCore.Tasks.Server.PMResourceImportTask+FilePathAndHash>, String)
   at Altiris.PatchManagement.Tasks.WindowsImportTask.UpdateAssesmentPackage(System.Collections.Generic.ICollection<Altiris.PatchManagementCore.Tasks.Server.PMResourceImportTask+FilePathAndHash>)
   at Altiris.PatchManagement.Tasks.WindowsImportTask.RunImport(String)
   at Altiris.PatchManagementCore.Tasks.Server.PMResourceImportTask.ExecuteTask(Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance)
   at Altiris.PatchManagementCore.Tasks.Server.PMResourceImportTask.OnExecuteSingleton(Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance)
   at Altiris.PatchManagementCore.Tasks.Server.SerializingBaseSingletonServerTask<TContent,TControl>.OnExecute(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()

User [VBANK\fmpatch], Auth [VBANK\fmpatch], AppDomain [AtrsHost.exe]

Cause

Many open files of WindowsPatchData.zip and  other packages in shaerd folder.

Resolution

Stop all Altiris Services:

  1. Altiris Support Service
  2. Altiris Client Message Dispatcher
  3. Altiris File Receiver
  4. Altiris Event Receiver
  5. Altiris Service
  6. Altiris Object Host Service
  7. Altiris Service Hoster
  8. Altiris Event Engine

Stop IIS

Stop Symantec Management agent

 

After stopping Altiris Services, Symantec agent and IIS, we could delete the files from WindowsVulnerablityScan folder and fully refresh assessment scan. How to fully refresh the Patch Assessment Scan files

 

Also deleting the files in Computer Manager> Shared folders> Open files.

 

Run the PMImport again