Tentacle not Extracting full Package on one Environment

Hi
I am facing very weird issue with tentacle on one of my environment. I am deploying a package on different Environment. It extracts all teh files and folder on 2 of my environment but on my third environment its not extracting whole package. many files and few folders missing. I have 20+ other applications, whcih are extracting all files on same machine. Dont knwo why its not working for just 2 Apps. All apps are service Fabric Apps. Dont think so its releted to SF apps. Its something with in teh extraction for that particulat package on thsi machine. Even I tried to copy teh pacakage from teh machine on my local and extract it using 7Zip. It extracts all file. here is the log.

Task ID: ServerTasks-121044
Task status: Failed
Task queued: 16 June 2020 08:32:16
Task started: 16 June 2020 08:32:17
Task completed: 16 June 2020 08:32:26
Task duration: 9 seconds
Server version: 2018.9.7+Branch.master.Sha.bc1aa5ccec678935363ecf0dc4c018f3a4bafb82
Server node: BBAMOCTAPPPRD01

                | == Failed: Deploy Messaging.CharlesRiver.CrBroadcastTradeStatusService release 20200616.1.1 to PreProd ==

08:32:17 Verbose | Step 1: Deployment Start Email does not apply to the current environment, and will not be executed
08:32:17 Verbose | Step 2: Microsoft Teams - Post start message does not apply to the current environment, and will not be executed
08:32:17 Verbose | Step 4: Deployment Successful Email does not apply to the current environment, and will not be executed
08:32:17 Verbose | Step 5: Microsoft Teams - Post success message does not apply to the current environment, and will not be executed
08:32:17 Verbose | Step 6: Deployment Failed Email does not apply to the current environment, and will not be executed
08:32:17 Verbose | Step 7: Microsoft Teams - Post failure message does not apply to the current environment, and will not be executed
08:32:17 Verbose | Guided failure is not enabled for this task
08:32:26 Fatal | The deployment failed because one or more steps failed. Please see the deployment log for details.
|
| == Success: Acquire packages ==
08:32:17 Info | Acquiring packages
08:32:17 Info | Making a list of packages to acquire
08:32:17 Verbose | No packages are required on the Octopus Server
08:32:17 Verbose | Delta compression is enabled for package transfers from the Octopus Server to deployment targets
08:32:17 Verbose | Upload Messaging.CharlesRiver.CrBroadcastTradeStatusService.20200616.1 to PP_SFAPPPRD01_20200615
08:32:17 Verbose | Checking package cache for package Messaging.CharlesRiver.CrBroadcastTradeStatusService v20200616.1
08:32:17 Info | Package Messaging.CharlesRiver.CrBroadcastTradeStatusService v20200616.1 was found in cache. No need to download.
08:32:17 Verbose | Using file: C:\Octopus\Packages\Messaging.CharlesRiver.CrBroadcastTradeStatusService\Messaging.CharlesRiver.CrBroadcastTradeStatusService.20200616.1.nupkg
08:32:22 Info | All packages have been acquired
08:32:22 Verbose | Acquire Packages completed
|
| Success: PP_SFAPPPRD01_20200615
|
| Success: Upload package Messaging.CharlesRiver.CrBroadcastTradeStatusService v20200616.1
08:32:18 Verbose | Starting C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in working directory ‘C:\Scripts\OctopusTentacle\Work\20200616073216-121044-15’ using ‘Western European (DOS)’ encoding running as ‘BLUEBAY\gMSA_SF_PRD$’ with the same environment variables as the launching process
08:32:18 Verbose | Octopus Deploy: Calamari version 4.9.18
08:32:18 Verbose | Environment Information:
08:32:18 Verbose | OperatingSystem: Microsoft Windows NT 10.0.14393.0
08:32:18 Verbose | OsBitVersion: x64
08:32:18 Verbose | Is64BitProcess: True
08:32:18 Verbose | CurrentUser: BLUEBAY\gMSA_SF_PRD$
08:32:18 Verbose | MachineName: BBAMSFAPPPRD01
08:32:18 Verbose | ProcessorCount: 2
08:32:18 Verbose | CurrentDirectory: C:\Scripts\OctopusTentacle\Work\20200616073216-121044-15
08:32:18 Verbose | TempDirectory: C:\Users\gMSA_SF_PRD$\AppData\Local\Temp
08:32:18 Verbose | HostProcessName: Calamari
08:32:18 Verbose | Package Messaging.CharlesRiver.CrBroadcastTradeStatusService version 20200616.1 hash ca3df3b81157e0726a0388a882e933b3f771679c has not been uploaded.
08:32:18 Verbose | Finding earlier packages that have been uploaded to this Tentacle.
08:32:19 Verbose | Found 3 earlier versions of Messaging.CharlesRiver.CrBroadcastTradeStatusService on this Tentacle
08:32:19 Verbose | - 20200615.3: C:\Scripts\OctopusTentacle\Files\Messaging.CharlesRiver.CrBroadcastTradeStatusService@S20200615.3@4D34BD3C8E3E214BAD3089BFBD83F1D7.nupkg
08:32:19 Verbose | - 20200615.2: C:\Scripts\OctopusTentacle\Files\Messaging.CharlesRiver.CrBroadcastTradeStatusService@S20200615.2@B7B9957E2F07DD43A6BEF0AF8AA0BF23.nupkg
08:32:19 Verbose | - 20200615.1: C:\Scripts\OctopusTentacle\Files\Messaging.CharlesRiver.CrBroadcastTradeStatusService@S20200615.1@257FDC8E3E0B19468BA426AA3279A818.nupkg
08:32:19 Verbose | Process C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in C:\Scripts\OctopusTentacle\Work\20200616073216-121044-15 exited with code 0
08:32:19 Verbose | Starting C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in working directory ‘C:\Scripts\OctopusTentacle\Work\20200616073217-121044-16’ using ‘Western European (DOS)’ encoding running as ‘BLUEBAY\gMSA_SF_PRD$’ with the same environment variables as the launching process
08:32:20 Verbose | Octopus Deploy: Calamari version 4.9.18
08:32:20 Verbose | Environment Information:
08:32:20 Verbose | OperatingSystem: Microsoft Windows NT 10.0.14393.0
08:32:20 Verbose | OsBitVersion: x64
08:32:20 Verbose | Is64BitProcess: True
08:32:20 Verbose | CurrentUser: BLUEBAY\gMSA_SF_PRD$
08:32:20 Verbose | MachineName: BBAMSFAPPPRD01
08:32:20 Verbose | ProcessorCount: 2
08:32:20 Verbose | CurrentDirectory: C:\Scripts\OctopusTentacle\Work\20200616073217-121044-16
08:32:20 Verbose | TempDirectory: C:\Users\gMSA_SF_PRD$\AppData\Local\Temp
08:32:20 Verbose | HostProcessName: Calamari
08:32:20 Verbose | Package Messaging.CharlesRiver.CrBroadcastTradeStatusService version 20200616.1 hash ca3df3b81157e0726a0388a882e933b3f771679c has not been uploaded.
08:32:20 Verbose | Finding earlier packages that have been uploaded to this Tentacle.
08:32:20 Verbose | Found 3 earlier versions of Messaging.CharlesRiver.CrBroadcastTradeStatusService on this Tentacle
08:32:20 Verbose | - 20200615.3: C:\Scripts\OctopusTentacle\Files\Messaging.CharlesRiver.CrBroadcastTradeStatusService@S20200615.3@4D34BD3C8E3E214BAD3089BFBD83F1D7.nupkg
08:32:20 Verbose | - 20200615.2: C:\Scripts\OctopusTentacle\Files\Messaging.CharlesRiver.CrBroadcastTradeStatusService@S20200615.2@B7B9957E2F07DD43A6BEF0AF8AA0BF23.nupkg
08:32:20 Verbose | - 20200615.1: C:\Scripts\OctopusTentacle\Files\Messaging.CharlesRiver.CrBroadcastTradeStatusService@S20200615.1@257FDC8E3E0B19468BA426AA3279A818.nupkg
08:32:20 Verbose | Process C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in C:\Scripts\OctopusTentacle\Work\20200616073217-121044-16 exited with code 0
08:32:21 Info | Found matching version 20200615.3: C:\Octopus\Packages\Messaging.CharlesRiver.CrBroadcastTradeStatusService\Messaging.CharlesRiver.CrBroadcastTradeStatusService.20200615.3.nupkg
08:32:21 Info | Building delta for Messaging.CharlesRiver.CrBroadcastTradeStatusService v20200616.1 (34.101 MB)
08:32:21 Info | Using package C:\Octopus\Packages\Messaging.CharlesRiver.CrBroadcastTradeStatusService\Messaging.CharlesRiver.CrBroadcastTradeStatusService.20200615.3.nupkg with hash 1bb3f743f5d300ef2e159fd2c1063257f9a9f694 for creating delta.
08:32:21 Verbose | Signature file Messaging.CharlesRiver.CrBroadcastTradeStatusService.20200615.3.nupkg.octosig already exists, using C:\Octopus\OctopusServer\PackageCache\Messaging.CharlesRiver.CrBroadcastTradeStatusService.20200615.3.nupkg.octosig
08:32:21 Verbose | Delta file Messaging.CharlesRiver.CrBroadcastTradeStatusService.20200615.3_1BB3F743_to_20200616.1_CA3DF3B8.octodelta already exists, using file C:\Octopus\OctopusServer\PackageCache\Messaging.CharlesRiver.CrBroadcastTradeStatusService.20200615.3_1BB3F743_to_20200616.1_CA3DF3B8.octodelta
08:32:21 Info | Original package was 34.101 MB, delta file is 728.664 KB (97.91% size reduction).
08:32:21 Info | Uploading and applying delta Messaging.CharlesRiver.CrBroadcastTradeStatusService.20200615.3_1BB3F743_to_20200616.1_CA3DF3B8.octodelta
08:32:21 Verbose | Starting C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in working directory ‘C:\Scripts\OctopusTentacle\Work\20200616073219-121044-17’ using ‘Western European (DOS)’ encoding running as ‘BLUEBAY\gMSA_SF_PRD$’ with the same environment variables as the launching process
08:32:22 Verbose | Octopus Deploy: Calamari version 4.9.18
08:32:22 Verbose | Environment Information:
08:32:22 Verbose | OperatingSystem: Microsoft Windows NT 10.0.14393.0
08:32:22 Verbose | OsBitVersion: x64
08:32:22 Verbose | Is64BitProcess: True
08:32:22 Verbose | CurrentUser: BLUEBAY\gMSA_SF_PRD$
08:32:22 Verbose | MachineName: BBAMSFAPPPRD01
08:32:22 Verbose | ProcessorCount: 2
08:32:22 Verbose | CurrentDirectory: C:\Scripts\OctopusTentacle\Work\20200616073219-121044-17
08:32:22 Verbose | TempDirectory: C:\Users\gMSA_SF_PRD$\AppData\Local\Temp
08:32:22 Verbose | HostProcessName: Calamari
08:32:22 Info | Applying delta to C:\Scripts\OctopusTentacle\Files\Messaging.CharlesRiver.CrBroadcastTradeStatusService@S20200615.3@4D34BD3C8E3E214BAD3089BFBD83F1D7.nupkg with hash 1bb3f743f5d300ef2e159fd2c1063257f9a9f694 and storing as C:\Scripts\OctopusTentacle\Files\Messaging.CharlesRiver.CrBroadcastTradeStatusService@S20200616.1@3A995031EAE3EB4DAE5BBEE61FBD676A.nupkg
08:32:22 Info | Applying delta: 0%
08:32:22 Info | Applying delta: 10%
08:32:22 Info | Applying delta: 40%
08:32:22 Info | Applying delta: 50%
08:32:22 Info | Applying delta: 60%
08:32:22 Info | Applying delta: 70%
08:32:22 Info | Applying delta: 80%
08:32:22 Info | Applying delta: 90%
08:32:22 Verbose | Process C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in C:\Scripts\OctopusTentacle\Work\20200616073219-121044-17 exited with code 0
08:32:22 Info | Delta for package Messaging.CharlesRiver.CrBroadcastTradeStatusService v20200616.1 successfully uploaded and applied.
|
| == Failed: Step 3: Deploy Package ==
08:32:25 Fatal | The step failed: Activity Deploy Package on PP_SFAPPPRD01_20200615 failed with error ‘The remote script failed with exit code 100’.
08:32:25 Verbose | Deploy Package completed
|
| Failed: PP_SFAPPPRD01_20200615
08:32:23 Verbose | Octopus Server version: 2018.9.7+Branch.master.Sha.bc1aa5ccec678935363ecf0dc4c018f3a4bafb82
08:32:23 Verbose | Environment Information:
| OperatingSystem: Microsoft Windows NT 6.3.9600.0
| OsBitVersion: x64
| Is64BitProcess: True
| CurrentUser: BLUEBAY\svc_OctopusDeployPRD
| MachineName: BBAMOCTAPPPRD01
| ProcessorCount: 2
| CurrentDirectory: C:\Windows\system32
| TempDirectory: C:\Users\svc_OctopusDeployPRD\AppData\Local\Temp
| HostProcessName: Octopus.Server
| PID: 2144
08:32:23 Verbose | Executing Deploy Package (type Deploy a Package) on PP_SFAPPPRD01_20200615
08:32:23 Verbose | Using Calamari 4.9.18
08:32:23 Verbose | Starting C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in working directory ‘C:\Scripts\OctopusTentacle\Work\20200616073221-121044-18’ using ‘Western European (DOS)’ encoding running as ‘BLUEBAY\gMSA_SF_PRD$’ with the same environment variables as the launching process
08:32:24 Verbose | Octopus Deploy: Calamari version 4.9.18
08:32:24 Verbose | Environment Information:
08:32:24 Verbose | OperatingSystem: Microsoft Windows NT 10.0.14393.0
08:32:24 Verbose | OsBitVersion: x64
08:32:24 Verbose | Is64BitProcess: True
08:32:24 Verbose | CurrentUser: BLUEBAY\gMSA_SF_PRD$
08:32:24 Verbose | MachineName: BBAMSFAPPPRD01
08:32:24 Verbose | ProcessorCount: 2
08:32:24 Verbose | CurrentDirectory: C:\Scripts\OctopusTentacle\Work\20200616073221-121044-18
08:32:24 Verbose | TempDirectory: C:\Users\gMSA_SF_PRD$\AppData\Local\Temp
08:32:24 Verbose | HostProcessName: Calamari
08:32:24 Info | Deploying package: C:\Scripts\OctopusTentacle\Files\Messaging.CharlesRiver.CrBroadcastTradeStatusService@S20200616.1@3A995031EAE3EB4DAE5BBEE61FBD676A.nupkg
08:32:24 Verbose | Extracting package to: C:\Scripts\OctopusTentacle\Applications\PreProd\Messaging.CharlesRiver.CrBroadcastTradeStatusService\20200616.1
08:32:24 Error | System.IO.DirectoryNotFoundException: Could not find a part of the path ‘C:\Scripts\OctopusTentacle\Applications\PreProd\Messaging.CharlesRiver.CrBroadcastTradeStatusService\20200616.1\BlueBay.Messaging.CharlesRiver.CrBroadcastTradeStatusServicePkg\Code\BlueBay.Messaging.CharlesRiver.CrBroadcastTradeStatusService.runtimeconfig.json’.
08:32:24 Error | at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
08:32:24 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)
08:32:24 Error | at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)
08:32:24 Error | at SharpCompress.Archives.IArchiveEntryExtensions.WriteToFile(IArchiveEntry entry, String destinationFileName, ExtractionOptions options)
08:32:24 Error | at Calamari.Integration.Packages.NuGet.NupkgExtractor.Extract(String packageFile, String directory, Boolean suppressNestedScriptWarning)
08:32:24 Error | at Calamari.Deployment.Conventions.ExtractPackageConvention.Install(RunningDeployment deployment)
08:32:24 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
08:32:24 Error | at Calamari.Deployment.ConventionProcessor.RunConventions()
08:32:24 Error | Running rollback conventions…
08:32:24 Verbose | Adding journal entry:
08:32:24 Verbose |
08:32:24 Verbose |
08:32:24 Verbose |
08:32:25 Error | Could not find a part of the path ‘C:\Scripts\OctopusTentacle\Applications\PreProd\Messaging.CharlesRiver.CrBroadcastTradeStatusService\20200616.1\BlueBay.Messaging.CharlesRiver.CrBroadcastTradeStatusServicePkg\Code\BlueBay.Messaging.CharlesRiver.CrBroadcastTradeStatusService.runtimeconfig.json’.
08:32:25 Error | System.IO.DirectoryNotFoundException
08:32:25 Error | at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
08:32:25 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)
08:32:25 Error | at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)
08:32:25 Error | at SharpCompress.Archives.IArchiveEntryExtensions.WriteToFile(IArchiveEntry entry, String destinationFileName, ExtractionOptions options)
08:32:25 Error | at Calamari.Integration.Packages.NuGet.NupkgExtractor.Extract(String packageFile, String directory, Boolean suppressNestedScriptWarning)
08:32:25 Error | at Calamari.Deployment.Conventions.ExtractPackageConvention.Install(RunningDeployment deployment)
08:32:25 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
08:32:25 Error | at Calamari.Deployment.ConventionProcessor.RunConventions()
08:32:25 Error | at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments)
08:32:25 Error | at Calamari.Program.Execute(String[] args)
08:32:25 Verbose | Process C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in C:\Scripts\OctopusTentacle\Work\20200616073221-121044-18 exited with code 100
08:32:25 Verbose | Updating manifest with output variables
08:32:25 Verbose | Updating manifest with action evaluated variables
08:32:25 Fatal | The remote script failed with exit code 100
08:32:25 Fatal | The action Deploy Package on PP_SFAPPPRD01_20200615 failed
|

Thanks

Tried Extracting the Pacakge on Machine with 7Zip. It works fine. Extracting all the files. Just failing while Extracting with Octopus Deploy Task

Hi @sunil.bindra,

Thanks for getting in touch!

I just want to confirm I understand the situation here.
These packages extract on other machines fine?
And other packages extract on these two machines fine?
The issue only occurs with these two specific packages on two specific machines?

The first thing to check would be whether there is any anti-virus running on these machines, if there is, scanning the logs to see if it is placing these files in quarantine.

You could also check the windows event log for similar events.

It would also be worth watching the extraction folder during a deployment to see if these files are extracted and then removed or not.

If this is currently a significant blocker for you, you could use a Transfer a Package and Script step to copy the package and manually extract the contents.

Regards,
Paul

Yes Paul

  1. these packages Extracted on Other machines perfectly fine.
  2. Also I have similar type of Packages (Service fabric) around 20 which works fine on this machine as well.
  3. Only 2 projects failing on this machine.
  4. I tried Extracting these packages on teh machine its failing with 7-zip. They are OK.
  5. Nothing in the Event Log related to this.
  6. Cant even see the folder extracted and removed. Just try this.

Thanks

It would be worth running procmon and filter it to monitor the extraction folder. If you then run the deployment this may capture whether the files are being created and what is then happening with them.

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