Your forum seems to have eaten my post from yesterday. Trying again…
We’re running Octopus 3.0.19.2485. It’s been working fine overall, but a deploy of a particular release is consistently failing due to a StackOverflowException, apparently inside Octopus. I’ve attached the log… the relevant part is here:
Deploying package: C:\Octopus\Files\Pbp.OfflineReporting.WebSchedulerManager.0.0.459.0.nupkg-018b4bc9-40ea-433c-a2e7-ee308ef47468
Using variables from: C:\Octopus\Work\20151125003315-525\Variables.json
Extracting package to: D:\PayByPhone\Releases\Octopus\3.0\staging\Pbp.OfflineReporting.WebSchedulerManager\0.0.459.0
Extracted 136 files
Process is terminated due to StackOverflowException.
The remote script failed with exit code -1073741571
I couldn’t find the file C:\Octopus\Work\20151125003315-525\Variables.json, I assume it’s temporary and Octopus deleted it. I verified that the files were extracted to D:\PayByPhone\Releases\Octopus\3.0\staging\Pbp.OfflineReporting.WebSchedulerManager\0.0.459.0.
This also happens when deploying to a different server, so it’s not specific to the target machine or its tentacle. The failure happens both when deploying to listening tentacles and polling tentacles.
The StackOverflowException happened before our PreDeploy.ps1 contained in the .nupkg logged any output.
After running into this, I tried adding a custom pre-deploy script inline inside the step definition, which just does this:
Write-Host "Test pre-deployment script"
Results (deploying to a different environment):
Extracting package to: D:\PayByPhone\Releases\Octopus3\roadmap-qa\Pbp.OfflineReporting.WebSchedulerManager\0.0.459.0
Extracted 136 files
Executing 'D:\PayByPhone\Releases\Octopus3\roadmap-qa\Pbp.OfflineReporting.WebSchedulerManager\0.0.459.0\Octopus.Action.CustomScripts.PreDeploy.ps1'
Process is terminated due to StackOverflowException.
So it says it’s executing the custom script, but the custom script doesn’t log any output before the process blows up.
The log file C:\Octopus\Logs\OctopusTentacle.txt doesn’t have anything from the date of the deploy.
Please let me know what we should do next to troubleshoot this issue.
Thanks,
Richard
ServerTasks-7434.log.txt (3 KB)