I just performed an upgrade from 3.11.5 to 3.13.0 this morning and out of about 200 tentacle machines we had about 15 or so fail with this particular error.
Having it try to upgrade again worked successfully afterwards.
Here is a sample log entry of one that failed:
09:17:16 Verbose | Host Name:
09:17:16 Verbose | Running As: (Local Administrator: True)
09:17:17 Verbose | Package: C:\Octopus\Work\20170508141715-775\Tentacle.nupkg
09:17:17 Verbose | Destination: C:\Octopus\Upgrade\20170508141702-DTY9T
09:17:17 Verbose | Octopus Deploy: Tentacle version 3.11.5 (3.11.5+Branch.release-3.11.5.Sha.2ec95d93ccfb115671522932f84809b9bb4f3dca) instance Default
09:17:17 Verbose | Environment Information:
09:17:17 Verbose | OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1
09:17:17 Verbose | OsBitVersion: x64
09:17:17 Verbose | Is64BitProcess: True
09:17:17 Verbose | CurrentUser: NT AUTHORITY\SYSTEM
09:17:17 Verbose | MachineName:
09:17:17 Verbose | ProcessorCount: 8
09:17:17 Verbose | CurrentDirectory: C:\Octopus\Work\20170508141715-775
09:17:17 Verbose | TempDirectory: C:\Windows\TEMP\
09:17:17 Verbose | HostProcessName: Tentacle
09:17:17 Verbose | 5 files extracted
09:17:17 Info | Waiting for the upgrade to complete
09:17:17 Verbose | No exit code log exists at ‘C:\Octopus\Upgrade\20170508141702-DTY9T’
09:17:17 Fatal | The remote script failed with exit code 65532
09:17:17 Verbose | The remote script failed with exit code 65532
| Octopus.Shared.Tasks.ActivityFailedException: The remote script failed with exit code 65532
| at Octopus.Worker.Scripting.ScriptResult.EnsureSuccessful() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Worker\Scripting\ScriptResult.cs:line 91
| at Octopus.Worker.Tentacles.TentacleUpgradeMediator.WaitForExitCode(String installId) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Worker\Tentacles\TentacleUpgradeMediator.cs:line 117
| at Octopus.Worker.Tentacles.TentacleUpgradeMediator.PerformUpgrade(TargetManifest targetManifest) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Worker\Tentacles\TentacleUpgradeMediator.cs:line 56
| at Octopus.Server.Orchestration.Health.HealthCheckService.PerformHealthCheck(Machine machine, ExceptionHandling exceptionHandling, Action`2 customAction) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Health\HealthCheckService.cs:line 77
| Octopus.Server version 3.13.0 (3.13.0+Branch.master.Sha.872899cdf487a79ef334d6b3c310d671b65a57df)
09:17:17 Verbose | Recording health check results