Console icon indicating copy to clipboard operation
Console copied to clipboard

Package installation fails trying to delete PowerShell.zip

Open michaellwest opened this issue 5 years ago • 3 comments

You may encounter an issue when installing with the following message:

Background process failed: Failed to delete the file 'D:\Sites\scms\sitecore\shell\Themes\Standard\PowerShell.zip'

image

As seen in the log file:

ManagedPoolThread #6 10:39:31 ERROR Installation failed: System.Exception: Background process failed: Failed to delete the file 'D:\Sites\scms\sitecore\shell\Themes\Standard\PowerShell.zip' ---> System.Exception: Failed to delete the file 'D:\Sites\scms\sitecore\shell\Themes\Standard\PowerShell.zip' ---> System.IO.IOException: The process cannot access the file 'D:\Sites\scms\sitecore\shell\Themes\Standard\PowerShell.zip' because it is being used by another process.

michaellwest avatar Sep 26 '20 15:09 michaellwest

This issue appears to prevent any file in the folder from getting deleted.

The IIS Worker process has locked the folder "$($AppPath)\sitecore\shell\Themes\Standard\"

michaellwest avatar Sep 26 '20 16:09 michaellwest

The easiest fix is to stop the w3wp.exe for that given Sitecore instance and then manually delete the zip.

michaellwest avatar Sep 26 '20 16:09 michaellwest

Another easy fix is to simply skip the item during package installation when the confirmation dialog appears.

michaellwest avatar Sep 27 '20 21:09 michaellwest