We have been deploying the same way for years without issue; however, our latest deployment to production environment has led to file in use errors.
Powershell line causing issue in Octopus Step
[System.IO.Compression.ZipFile]::ExtractToDirectory('c:\installs\' + $Version + '.zip', 'c:\installs\' + $Version)
Error Log related to the code:
Error cannot access the file 'c:\installs\1.34.00.75\Web\WebApplication\***.dll' because it is being used by another process."
This particular error occurs at random (different dll and servers) and some servers seem to work as well. The install directory is unused it’s specific to just unzipping the file and then it’s copied over to the correct folder.
We thought, “Ok maybe it’s our powershell script” so we rewrote it as the built-in Octopus Transfer step:
System.IO.IOException: The process cannot access the file 'C:\Octopus\Applications\****\Web\WorkProcessor\bin\WorkProcessor.exe' because it is being used by another process.
Our best guess is antivirus (Trend) which we do not currently have control over (managed servers).
Unzipping on the server through RDP seems to work fine, however. Just looking for some direction on the issue and if users are still having issue like this post in your forums and if there is a work-around aside from shutting off antivirus?