Hello,
We deploy to 4 servers as part of our deployment process. During deployment process we are seeing the locking issue happen randomly on any one of the server. The locked file is with in the Octopus folder and we have excluded Anti VIrus for that folder. Please find the error below. When we do a restart on the tentacle service the deployment works fine. Please advise on what could cause the issue.
Deploying package: D:\Octopus\Files\GallagherGlobal91.Release.Web@S3.0.14138@AC4381B335EB7540BE062A189226384E.zip
June 24th 2019 18:57:36
Error
System.IO.IOException: The process cannot access the file ‘D:\Octopus\Applications\CORP-STAGE\GallagherGlobal91.Release.Web\3.0.14138\App_Data\Dianoga Tools\SVGO\node.exe’ because it is being used by another process.
June 24th 2019 18:57:36
Error
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
June 24th 2019 18:57:36
Error
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
June 24th 2019 18:57:36
Error
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
June 24th 2019 18:57:36
Error
at System.IO.File.OpenFile(String path, FileAccess access, SafeFileHandle& handle)
June 24th 2019 18:57:36
Error
at System.IO.File.SetLastWriteTimeUtc(String path, DateTime lastWriteTimeUtc)
June 24th 2019 18:57:36
Error
at System.IO.FileSystemInfo.set_LastWriteTimeUtc(DateTime value)
June 24th 2019 18:57:36
Error
at System.IO.FileSystemInfo.set_LastWriteTime(DateTime value)
June 24th 2019 18:57:36
Error
at SharpCompress.Common.IEntryExtensions.PreserveExtractionOptions(IEntry entry, String destinationFileName, ExtractionOptions options)
June 24th 2019 18:57:36
Error
at SharpCompress.Archives.IArchiveEntryExtensions.WriteToDirectory(IArchiveEntry entry, String destinationDirectory, ExtractionOptions options)
June 24th 2019 18:57:36
Error
at Calamari.Integration.Packages.ZipPackageExtractor.Extract(String packageFile, String directory, Boolean suppressNestedScriptWarning)
June 24th 2019 18:57:36
Error
at Calamari.Deployment.Conventions.ExtractPackageConvention.Install(RunningDeployment deployment)
June 24th 2019 18:57:36
Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
June 24th 2019 18:57:36
Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
June 24th 2019 18:57:36
Error
Running rollback conventions…
June 24th 2019 18:57:37
Error
The process cannot access the file ‘D:\Octopus\Applications\CORP-STAGE\GallagherGlobal91.Release.Web\3.0.14138\App_Data\Dianoga Tools\SVGO\node.exe’ because it is being used by another process.
June 24th 2019 18:57:37
Error
System.IO.IOException
June 24th 2019 18:57:37
Error
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
June 24th 2019 18:57:37
Error
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
June 24th 2019 18:57:37
Error
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
June 24th 2019 18:57:37
Error
at System.IO.File.OpenFile(String path, FileAccess access, SafeFileHandle& handle)
June 24th 2019 18:57:37
Error
at System.IO.File.SetLastWriteTimeUtc(String path, DateTime lastWriteTimeUtc)
June 24th 2019 18:57:37
Error
at System.IO.FileSystemInfo.set_LastWriteTimeUtc(DateTime value)
June 24th 2019 18:57:37
Error
at System.IO.FileSystemInfo.set_LastWriteTime(DateTime value)
June 24th 2019 18:57:37
Error
at SharpCompress.Common.IEntryExtensions.PreserveExtractionOptions(IEntry entry, String destinationFileName, ExtractionOptions options)
June 24th 2019 18:57:37
Error
at SharpCompress.Archives.IArchiveEntryExtensions.WriteToDirectory(IArchiveEntry entry, String destinationDirectory, ExtractionOptions options)
June 24th 2019 18:57:37
Error
at Calamari.Integration.Packages.ZipPackageExtractor.Extract(String packageFile, String directory, Boolean suppressNestedScriptWarning)
June 24th 2019 18:57:37
Error
at Calamari.Deployment.Conventions.ExtractPackageConvention.Install(RunningDeployment deployment)
June 24th 2019 18:57:37
Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
June 24th 2019 18:57:37
Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
June 24th 2019 18:57:37
Error
at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments)
June 24th 2019 18:57:37
Error
at Calamari.Program.Execute(String[] args)
June 24th 2019 18:57:37
Fatal
The remote script failed with exit code 100