Deployment failed

I am trying to deploy an application in AWS. But the deployment failed. Please see the deployment log for details. What is the exact issue and how to resolve that?

> Extracting package 'C:\Octopus\Packages\Spaces-1\feeds-builtin\RandomQuotes-1\RandomQuotes-1.0.0.zip' to 'C:\Octopus\Work\20200702052343-91-19\RandomQuotes-1'
July 2nd 2020 10:54:00

Info

Performing JSON variable replacement on 'C:\Octopus\Work\20200702052343-91-19\RandomQuotes-1\RandomQuotes-1.0.0\RandomQuotes\appsettings.json'

July 2nd 2020 10:55:14

Error

PermissionDenied: The process cannot access the file 'C:\Octopus\OctopusServer\Tools\Calamari.Cloud.netfx\12.1.1\AlphaFS.dll' because it is being used by another process.

July 2nd 2020 10:55:14

Error

At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:697 char:30

July 2nd 2020 10:55:14

Error

+ ... sArchived = ZipArchiveHelper $subDirFiles.ToArray() $destinationPath ...

July 2nd 2020 10:55:14

Error

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

July 2nd 2020 10:55:14

Error

at ZipArchiveHelper, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1: line 803

July 2nd 2020 10:55:14

Error

at CompressSingleDirHelper, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1: line 697

July 2nd 2020 10:55:14

Error

at CompressArchiveHelper, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1: line 608

July 2nd 2020 10:55:14

Error

at Compress-Archive<End>, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1: line 217

July 2nd 2020 10:55:14

Error

at <ScriptBlock>, C:\Octopus\Work\20200702052343-91-19\Script.ps1: line 98

July 2nd 2020 10:55:14

Error

at <ScriptBlock>, C:\Octopus\Work\20200702052343-91-19\Bootstrap.Script.ps1: line 1574

July 2nd 2020 10:55:14

Error

at <ScriptBlock>, <No file>: line 1

July 2nd 2020 10:55:14

Error

at <ScriptBlock>, <No file>: line 1

July 2nd 2020 10:55:16

Fatal

The remote script failed with exit code 1

July 2nd 2020 10:55:16

Fatal

The action deploy on the Octopus Server failed

Hi @neethacnair,

Thanks for getting in touch!

It looks like something is locking the file that octopus is attempting to use during the deployment.

We’ve often seen the cause of these issues been sure to antivirus so one option could be to temporarily disable the any AV on that machine and test the deployment to see if the issue persists.

Other than that, you may need to use something like Procmon to monitor the folder and determine what is locking the file.

Regards,
Paul

Thanks for the quick response. Actually I am not using any other antivirus software other than Windows Defender. So I am stuck on this issue.

In that case using Procmon to determine what is using that file is the best option.

I’m assuming that you’re not running multiple deployments at the same time that could be conflicting with each other?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.