Service Fabric deploy error with 2018.6

cloud

(Chris Robison) #1

We just upgraded to 2018.6 and our SF deploy steps are failing with the following:

Octopus Server version: 2018.6.0+Branch.master.Sha.1ef5501cf13600f7caf477202815ed17d666b144 
June 11th 2018 09:34:41Verbose
Environment Information:
  OperatingSystem: Microsoft Windows NT 6.3.9600.0
  OsBitVersion: x64
  Is64BitProcess: True
  CurrentUser: NT AUTHORITY\SYSTEM
  MachineName: XPRMW1POCT01
  ProcessorCount: 2
  CurrentDirectory: C:\windows\system32
  TempDirectory: C:\windows\TEMP\
  HostProcessName: Octopus.Server
  PID: 4836 
June 11th 2018 09:34:41Verbose
Executing Deploy Package (type Deploy a Service Fabric App) on Octopus Server  
June 11th 2018 09:34:41Verbose
Using Calamari.Cloud 4.7.7 
June 11th 2018 09:34:41Verbose
Using Octopus.Dependencies.AzureCmdlets 5.7.0 
June 11th 2018 09:34:41Verbose
Running this script as the Octopus Server (NT AUTHORITY\SYSTEM) 
June 11th 2018 09:34:41Verbose
Starting C:\windows\system32\WindowsPowershell\v1.0\PowerShell.exe in working directory 'E:\Octopus\Work\20180611153441-15932-7' using 'OEM United States' encoding running as 'NT AUTHORITY\SYSTEM' with the same environment variables as the launching process 
June 11th 2018 09:34:41Verbose
Octopus Deploy: Calamari version 4.7.7 
June 11th 2018 09:34:41Verbose
Environment Information: 
June 11th 2018 09:34:41Verbose
  OperatingSystem: Microsoft Windows NT 6.3.9600.0 
June 11th 2018 09:34:41Verbose
  OsBitVersion: x64 
June 11th 2018 09:34:41Verbose
  Is64BitProcess: True 
June 11th 2018 09:34:41Verbose
  CurrentUser: NT AUTHORITY\SYSTEM 
June 11th 2018 09:34:41Verbose
  MachineName: XPRMW1POCT01 
June 11th 2018 09:34:41Verbose
  ProcessorCount: 2 
June 11th 2018 09:34:41Verbose
  CurrentDirectory: E:\Octopus\Work\20180611153441-15932-7 
June 11th 2018 09:34:41Verbose
  TempDirectory: C:\windows\TEMP\ 
June 11th 2018 09:34:41Verbose
  HostProcessName: Calamari 
June 11th 2018 09:34:42Info
Deploying package:    E:\Octopus\OctopusServer\PackageCache\feeds-xactprm-platform-dev\REFS.Platform.Email.App@S1.0.12@D3D6EF9B1A8CCB418B14986CB1D2C1D2.nupkg 
June 11th 2018 09:34:42Verbose
Extracting package to: E:\Octopus\Work\20180611153441-15932-7\staging 
June 11th 2018 09:34:42Verbose
Extracted 93 files 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\REFS.Platform.EmailServicePkg\Code\REFS.Platform.EmailService.exe.config' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\ApplicationManifest.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\ApplicationParameters\Cloud.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\ApplicationParameters\Local.1Node.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\ApplicationParameters\Local.5Node.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\PublishProfiles\BLWT.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\PublishProfiles\Cloud.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\PublishProfiles\jejwt.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\PublishProfiles\Local.1Node.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\PublishProfiles\Local.5Node.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\REFS.Platform.EmailServicePkg\ServiceManifest.xml' 
June 11th 2018 09:34:42Verbose
Performing variable substitution on 'E:\Octopus\Work\20180611153441-15932-7\staging\REFS.Platform.EmailServicePkg\Config\Settings.xml' 
June 11th 2018 09:34:42Verbose
Found existing certificate with thumbprint '5A7DA64F76AED2C8618602A8E53AA1B2D38D615C' in Cert:\LocalMachine\My 
June 11th 2018 09:34:43Verbose
Name                           Value                                            
June 11th 2018 09:34:43Verbose
----                           -----                                            
June 11th 2018 09:34:43Verbose
PSVersion                      5.1.14409.1012                                   
June 11th 2018 09:34:43Verbose
PSEdition                      Desktop                                          
June 11th 2018 09:34:43Verbose
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                          
June 11th 2018 09:34:43Verbose
BuildVersion                   10.0.14409.1012                                  
June 11th 2018 09:34:43Verbose
CLRVersion                     4.0.30319.42000                                  
June 11th 2018 09:34:43Verbose
WSManStackVersion              3.0                                              
June 11th 2018 09:34:43Verbose
PSRemotingProtocolVersion      2.3                                              
June 11th 2018 09:34:43Verbose
SerializationVersion           1.1.0.1                                          
June 11th 2018 09:34:43Verbose
PowerShell Environment Information: 
June 11th 2018 09:34:43Verbose
  OperatingSystem: Microsoft Windows NT 6.3.9600.0 
June 11th 2018 09:34:43Verbose
  OsBitVersion: x64 
June 11th 2018 09:34:43Verbose
  Is64BitProcess: True 
June 11th 2018 09:34:43Verbose
  CurrentUser: NT AUTHORITY\SYSTEM 
June 11th 2018 09:34:43Verbose
  MachineName: XPRMW1POCT01 
June 11th 2018 09:34:43Verbose
  ProcessorCount: 2 
June 11th 2018 09:34:43Verbose
  CurrentDirectory: E:\Octopus\Work\20180611153441-15932-7\staging 
June 11th 2018 09:34:43Verbose
  CurrentLocation: E:\Octopus\Work\20180611153441-15932-7\staging 
June 11th 2018 09:34:43Verbose
  TempDirectory: C:\windows\TEMP\ 
June 11th 2018 09:34:43Verbose
  HostProcessName: powershell 
June 11th 2018 09:34:43Verbose
  TotalPhysicalMemory: 4193780 KB 
June 11th 2018 09:34:43Verbose
  AvailablePhysicalMemory: 1900568 KB 
June 11th 2018 09:34:43Verbose
Loading connection parameters for the 'Client Certificate' security mode. 
June 11th 2018 09:34:43Verbose
Authenticating with Service Fabric. 
June 11th 2018 09:34:43Verbose
Using ConnectionParameters: 
June 11th 2018 09:34:43Verbose
ServerCertThumbprint=7e69015b9804e9af85698d3f4419af51cb7678f7   
June 11th 2018 09:34:43Verbose
ConnectionEndpoint=xprmw1dproc01:19000   
June 11th 2018 09:34:43Verbose
StoreLocation=LocalMachine   
June 11th 2018 09:34:43Verbose
FindType=FindByThumbprint   
June 11th 2018 09:34:43Verbose
X509Credential=True   
June 11th 2018 09:34:43Verbose
FindValue=5A7DA64F76AED2C8618602A8E53AA1B2D38D615C   
June 11th 2018 09:34:43Verbose
StoreName=MY 
June 11th 2018 09:34:44Verbose
Invoking target script "E:\Octopus\Work\20180611153441-15932-7\staging\DeployToServiceFabric.ps1" with  parameters. 
June 11th 2018 09:34:44Verbose
Importing ServiceFabricSDK modules from C:\Program Files\Microsoft SDKs\Service Fabric\Tools\PSModule\ServiceFabricSDK 
June 11th 2018 09:34:44Error
Invoke-Expression : A parameter cannot be found that matches parameter name  
June 11th 2018 09:34:44Error
'System.Collections.Hashtable'. 
June 11th 2018 09:34:44Error
At E:\Octopus\Work\20180611153441-15932-7\staging\Octopus.AzureServiceFabricCon 
June 11th 2018 09:34:44Error
text.ps1:234 char:1 
June 11th 2018 09:34:44Error
+ Invoke-Expression ". $OctopusFabricTargetScript $OctopusFabricTargetS ... 
June 11th 2018 09:34:44Error
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
June 11th 2018 09:34:44Error
    + CategoryInfo          : InvalidArgument: (:) [Invoke-Expression], Parame  
June 11th 2018 09:34:44Error
   terBindingException 
June 11th 2018 09:34:44Error
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Comm  
June 11th 2018 09:34:44Error
   ands.InvokeExpressionCommand 
June 11th 2018 09:34:44Error
 
June 11th 2018 09:34:44Error
Script 'E:\Octopus\Work\20180611153441-15932-7\staging\DeployToServiceFabric.ps1' returned non-zero exit code: 1 
June 11th 2018 09:34:44Error
Running rollback conventions... 
June 11th 2018 09:34:44Error
Script 'E:\Octopus\Work\20180611153441-15932-7\staging\DeployToServiceFabric.ps1' returned non-zero exit code: 1 
June 11th 2018 09:34:44Verbose
Process C:\windows\system32\WindowsPowershell\v1.0\PowerShell.exe in E:\Octopus\Work\20180611153441-15932-7 exited with code 1 
June 11th 2018 09:34:44Verbose
Updating manifest with output variables 
June 11th 2018 09:34:44Verbose
Updating manifest with action evaluated variables 
June 11th 2018 09:34:44Fatal
The remote script failed with exit code 1 
June 11th 2018 09:34:44Fatal
The action Deploy Package on the Octopus Server failed 

Any suggestions?


(Chris Robison) #2

I upgraded the step to use the new Azure Service Fabric deployment targets, but now I get a different error:

Certificate 'Service Fabric - Dev' is not scoped to environment '<unknown>'. It is currently referenced by variable 'certificates-service-fabric-dev'. Either scope the certificate to the environment or change the value of the variable.
Once you have corrected these problems you can try again.
If the problem is related to a variable you will need to update the variables for this release or recreate the release for the changes to take effect.
If the problem is related to the deployment process you will need to create a new release for the changes to take effect.
Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentCreationFailedException
   at Octopus.Server.Orchestration.ServerTasks.Deploy.ExpandVariableService.LoadAndValidateExpandVariable[T](String singleName, String pluralName, IReadOnlyList`1 variableTypes, IRelationalTransaction transaction, VariableCollection projectVariables, VariableCollection libraryVariables, VariableCollection tenantVariables, VariableCollection machineVariables, Project project, DeploymentEnvironment environment, Tenant tenant, ITenantTagTester tenantTagTester)
   at Octopus.Server.Orchestration.ServerTasks.Deploy.Manifest.MachineVariableCollector.CollectMachineScopedVariables
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Octopus.Server.Orchestration.ServerTasks.Deploy.Manifest.MachineVariableCollector.CollectMachineScopedVariables(IEnumerable`1 environmentMachines, String environmentId)
   at Octopus.Server.Orchestration.ServerTasks.Deploy.MachinePlanner.EnrichManifestWithMachineVariables(DeploymentManifest manifest, Deployment deployment, DeploymentProcess deploymentProcess, ITenantTagTester tenantTagTester)
   at Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentPlan.Initialize()
   at Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentPlanService.CreateOrResumePlan(String deploymentId, ITaskContext taskContext, LogContext taskLogContext, IWorkerLeaserFactory leaserFactory)
   at Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentTaskController.Execute()
   at Octopus.Server.Orchestration.ServerTasks.RunningTask.RunMainThread() 

I have everything scoped properly. The SF deployment targets are tagged with a role and I’m scoping the certificate to that role.


(Chris Robison) #3

So I removed all scopes on that cert and now we have this error:

13:59:51   Info     |       Adding certificate 'CN=ServiceFabricDevClusterClient' into Cert:\LocalMachine\My
13:59:51   Info     |       Certificate 'CN=ServiceFabricDevClusterClient' already exists in store 'My'.
13:59:52   Verbose  |       Name                           Value
13:59:52   Verbose  |       ----                           -----
13:59:52   Verbose  |       PSVersion                      5.1.14409.1012
13:59:52   Verbose  |       PSEdition                      Desktop
13:59:52   Verbose  |       PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
13:59:52   Verbose  |       BuildVersion                   10.0.14409.1012
13:59:52   Verbose  |       CLRVersion                     4.0.30319.42000
13:59:52   Verbose  |       WSManStackVersion              3.0
13:59:52   Verbose  |       PSRemotingProtocolVersion      2.3
13:59:52   Verbose  |       SerializationVersion           1.1.0.1
13:59:52   Verbose  |       PowerShell Environment Information:
13:59:52   Verbose  |       OperatingSystem: Microsoft Windows NT 6.3.9600.0
13:59:52   Verbose  |       OsBitVersion: x64
13:59:52   Verbose  |       Is64BitProcess: True
13:59:52   Verbose  |       CurrentUser: NT AUTHORITY\SYSTEM
13:59:52   Verbose  |       MachineName: XPRMW1POCT01
13:59:52   Verbose  |       ProcessorCount: 2
13:59:52   Verbose  |       CurrentDirectory: E:\Octopus\Work\20180611195950-15948-16\staging
13:59:52   Verbose  |       CurrentLocation: E:\Octopus\Work\20180611195950-15948-16\staging
13:59:52   Verbose  |       TempDirectory: C:\windows\TEMP\
13:59:52   Verbose  |       HostProcessName: powershell
13:59:53   Verbose  |       TotalPhysicalMemory: 4193780 KB
13:59:53   Verbose  |       AvailablePhysicalMemory: 1860068 KB
13:59:53   Verbose  |       Loading connection parameters for the 'Client Certificate' security mode.
13:59:53   Verbose  |       Authenticating with Service Fabric.
13:59:53   Verbose  |       Using ConnectionParameters:
13:59:53   Verbose  |       ServerCertThumbprint=7e69015b9804e9af85698d3f4419af51cb7678f7
13:59:53   Verbose  |       ConnectionEndpoint=xprmw1dproc01:19000
13:59:53   Verbose  |       StoreLocation=LocalMachine
13:59:53   Verbose  |       FindType=FindByThumbprint
13:59:53   Verbose  |       X509Credential=True
13:59:53   Verbose  |       FindValue=5A7DA64F76AED2C8618602A8E53AA1B2D38D615C
13:59:53   Verbose  |       StoreName=My
13:59:53   Verbose  |       Invoking target script "E:\Octopus\Work\20180611195950-15948-16\staging\DeployToServiceFabric.ps1" with  parameters.
13:59:53   Verbose  |       Importing ServiceFabricSDK modules from C:\Program Files\Microsoft SDKs\Service Fabric\Tools\PSModule\ServiceFabricSDK
13:59:54   Error    |       Invoke-Expression : A parameter cannot be found that matches parameter name
13:59:54   Error    |       'System.Collections.Hashtable'.
13:59:54   Error    |       At E:\Octopus\Work\20180611195950-15948-16\staging\Octopus.AzureServiceFabricCo
13:59:54   Error    |       ntext.ps1:234 char:1
13:59:54   Error    |       + Invoke-Expression ". $OctopusFabricTargetScript $OctopusFabricTargetS ...
13:59:54   Error    |       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13:59:54   Error    |       + CategoryInfo          : InvalidArgument: (:) [Invoke-Expression], Parame
13:59:54   Error    |       terBindingException
13:59:54   Error    |       + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Comm
13:59:54   Error    |       ands.InvokeExpressionCommand
13:59:54   Error    |       Script 'E:\Octopus\Work\20180611195950-15948-16\staging\DeployToServiceFabric.ps1' returned non-zero exit code: 1
13:59:54   Error    |       Running rollback conventions...
13:59:54   Error    |       Script 'E:\Octopus\Work\20180611195950-15948-16\staging\DeployToServiceFabric.ps1' returned non-zero exit code: 1
13:59:54   Verbose  |       Process C:\windows\system32\WindowsPowershell\v1.0\PowerShell.exe in E:\Octopus\Work\20180611195950-15948-16 exited with code 1
13:59:54   Verbose  |       Updating manifest with output variables
13:59:54   Verbose  |       Updating manifest with action evaluated variables
13:59:54   Fatal    |       The remote script failed with exit code 1
13:59:54   Fatal    |       The action Deploy package on XPRM - SF - Dev failed

(Ben Pearce) #4

Hi Chris,

Thanks for getting in touch, sorry you are having an issue with the Service Fabric step.

The 2018.6 release requires an update to the Service Fabric SDK. This breaking change was missed off the release notes, I apologise for the missed communication, the release notes have been updated.
The latest SDK is available here.

In relation to the second error you encountered for the scoping, we have already raised an issue and there is a fix coming in a patch soon.

Regards
Ben


(Chris Robison) #5

So we did update the SDK to the latest and that didn’t seem to fix the issue, we still got the same error. We restarted the Octopus service, but that didn’t seem to have any effect. Does the machine need to be restarted for the update to take effect?


(Ben Pearce) #6

Hi Chris,

The Service Fabric SDK installs in to the GAC, which is why we can’t provide it bundled out of the box.
It will require a reboot due to the GAC installation, which I would suggest should be done during a maintenance outage.

Regards
Ben


(Chris Robison) #7

We restarted, we still get the following error:

Task ID:        ServerTasks-16047
Task status:    Failed
Task queued:    Tuesday, June 12, 2018 11:30:06 AM
Task started:   Tuesday, June 12, 2018 11:30:07 AM
Task completed: Tuesday, June 12, 2018 11:30:12 AM
Task duration:  6 seconds
Server version: 2018.6.1+Branch.master.Sha.859bf533da450d5c269a3750091876d00f6220ff
Server node:    XPRMW1POCT01

                    | == Failed: Deploy REFS - SVC - Email release 1.0.12 to XPRM - Platform - Dev ==
11:30:07   Verbose  |   Step 1: Ask for manual approval does not apply to the current environment, and will not be executed
11:30:07   Verbose  |   Guided failure is not enabled for this task
11:30:12   Fatal    |   The deployment failed because one or more steps failed. Please see the deployment log for details.
                    | 
                    |   == Success: Acquire packages ==
11:30:07   Info     |     Acquiring packages
11:30:07   Info     |     Making a list of packages to acquire
11:30:07   Verbose  |     No packages are required on any deployment targets
11:30:07   Verbose  |     Acquire REFS.Platform.Email.App.1.0.12 on Octopus Server
11:30:07   Verbose  |     Checking package cache for package REFS.Platform.Email.App v1.0.12
11:30:07   Info     |     Package REFS.Platform.Email.App v1.0.12 was found in cache. No need to download.
11:30:07   Verbose  |     Using file: E:\Octopus\OctopusServer\PackageCache\feeds-xactprm-platform-dev\REFS.Platform.Email.App@S1.0.12@D3D6EF9B1A8CCB418B14986CB1D2C1D2.nupkg
11:30:08   Info     |     All packages have been acquired
11:30:08   Verbose  |     Acquire Packages completed
                    |   
                    |     Success: Octopus Server
                    |     
                    |       Success: Download package REFS.Platform.Email.App v1.0.12 from NuGet feed 'XactPRM Platform Dev' at https://proget.xactware.com/nuget/xprm-platform-dev-releases/
11:30:07   Info     |         Successfully downloaded REFS.Platform.Email.App 1.0.12 (3.786 MB)
11:30:07   Verbose  |         Stored package in E:\Octopus\OctopusServer\PackageCache\feeds-xactprm-platform-dev\REFS.Platform.Email.App@S1.0.12@D3D6EF9B1A8CCB418B14986CB1D2C1D2.nupkg
                    |       
                    |   == Failed: Step 2: Deploy package ==
11:30:12   Fatal    |     The step failed: Activity Deploy package on XPRM - SF - Dev failed with error 'The remote script failed with exit code 1'.
11:30:12   Verbose  |     Deploy package completed
                    |   
                    |     Failed: Octopus Server on behalf of XPRM - SF - Dev
11:30:08   Verbose  |       Octopus Server version: 2018.6.1+Branch.master.Sha.859bf533da450d5c269a3750091876d00f6220ff
11:30:08   Verbose  |       Environment Information:
                    |       OperatingSystem: Microsoft Windows NT 6.3.9600.0
                    |       OsBitVersion: x64
                    |       Is64BitProcess: True
                    |       CurrentUser: NT AUTHORITY\SYSTEM
                    |       MachineName: XPRMW1POCT01
                    |       ProcessorCount: 2
                    |       CurrentDirectory: C:\windows\system32
                    |       TempDirectory: C:\windows\TEMP\
                    |       HostProcessName: Octopus.Server
                    |       PID: 1260
11:30:08   Verbose  |       Executing Deploy package (type Deploy a Service Fabric App) on Octopus Server
11:30:08   Verbose  |       Using Calamari.Cloud 4.7.7
11:30:08   Verbose  |       Using Octopus.Dependencies.AzureCmdlets 5.7.0
11:30:08   Verbose  |       Running this script as the Octopus Server (NT AUTHORITY\SYSTEM)
11:30:08   Verbose  |       Starting C:\windows\system32\WindowsPowershell\v1.0\PowerShell.exe in working directory 'E:\Octopus\Work\20180612173008-16047-3' using 'OEM United States' encoding running as 'NT AUTHORITY\SYSTEM' with the same environment variables as the launching process
11:30:09   Verbose  |       Octopus Deploy: Calamari version 4.7.7
11:30:09   Verbose  |       Environment Information:
11:30:09   Verbose  |       OperatingSystem: Microsoft Windows NT 6.3.9600.0
11:30:09   Verbose  |       OsBitVersion: x64
11:30:09   Verbose  |       Is64BitProcess: True
11:30:09   Verbose  |       CurrentUser: NT AUTHORITY\SYSTEM
11:30:09   Verbose  |       MachineName: XPRMW1POCT01
11:30:09   Verbose  |       ProcessorCount: 2
11:30:09   Verbose  |       CurrentDirectory: E:\Octopus\Work\20180612173008-16047-3
11:30:09   Verbose  |       TempDirectory: C:\windows\TEMP\
11:30:09   Verbose  |       HostProcessName: Calamari
11:30:09   Info     |       Deploying package:    E:\Octopus\OctopusServer\PackageCache\feeds-xactprm-platform-dev\REFS.Platform.Email.App@S1.0.12@D3D6EF9B1A8CCB418B14986CB1D2C1D2.nupkg
11:30:09   Verbose  |       Extracting package to: E:\Octopus\Work\20180612173008-16047-3\staging
11:30:09   Verbose  |       Extracted 93 files
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\REFS.Platform.EmailServicePkg\Code\REFS.Platform.EmailService.exe.config'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\ApplicationManifest.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\ApplicationParameters\Cloud.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\ApplicationParameters\Local.1Node.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\ApplicationParameters\Local.5Node.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\PublishProfiles\BLWT.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\PublishProfiles\Cloud.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\PublishProfiles\jejwt.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\PublishProfiles\Local.1Node.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\PublishProfiles\Local.5Node.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\REFS.Platform.EmailServicePkg\ServiceManifest.xml'
11:30:09   Verbose  |       Performing variable substitution on 'E:\Octopus\Work\20180612173008-16047-3\staging\REFS.Platform.EmailServicePkg\Config\Settings.xml'
11:30:09   Info     |       Adding certificate 'CN=ServiceFabricDevClusterClient' into Cert:\LocalMachine\My
11:30:09   Info     |       Certificate 'CN=ServiceFabricDevClusterClient' already exists in store 'My'.
11:30:10   Verbose  |       Name                           Value
11:30:10   Verbose  |       ----                           -----
11:30:10   Verbose  |       PSVersion                      5.1.14409.1012
11:30:10   Verbose  |       PSEdition                      Desktop
11:30:10   Verbose  |       PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
11:30:10   Verbose  |       BuildVersion                   10.0.14409.1012
11:30:10   Verbose  |       CLRVersion                     4.0.30319.42000
11:30:10   Verbose  |       WSManStackVersion              3.0
11:30:10   Verbose  |       PSRemotingProtocolVersion      2.3
11:30:10   Verbose  |       SerializationVersion           1.1.0.1
11:30:10   Verbose  |       PowerShell Environment Information:
11:30:10   Verbose  |       OperatingSystem: Microsoft Windows NT 6.3.9600.0
11:30:10   Verbose  |       OsBitVersion: x64
11:30:10   Verbose  |       Is64BitProcess: True
11:30:10   Verbose  |       CurrentUser: NT AUTHORITY\SYSTEM
11:30:10   Verbose  |       MachineName: XPRMW1POCT01
11:30:10   Verbose  |       ProcessorCount: 2
11:30:10   Verbose  |       CurrentDirectory: E:\Octopus\Work\20180612173008-16047-3\staging
11:30:10   Verbose  |       CurrentLocation: E:\Octopus\Work\20180612173008-16047-3\staging
11:30:10   Verbose  |       TempDirectory: C:\windows\TEMP\
11:30:10   Verbose  |       HostProcessName: powershell
11:30:10   Verbose  |       TotalPhysicalMemory: 4193780 KB
11:30:11   Verbose  |       AvailablePhysicalMemory: 2322016 KB
11:30:11   Verbose  |       Loading connection parameters for the 'Client Certificate' security mode.
11:30:11   Verbose  |       Authenticating with Service Fabric.
11:30:11   Verbose  |       Using ConnectionParameters:
11:30:11   Verbose  |       ServerCertThumbprint=7e69015b9804e9af85698d3f4419af51cb7678f7
11:30:11   Verbose  |       ConnectionEndpoint=xprmw1dproc01:19000
11:30:11   Verbose  |       StoreLocation=LocalMachine
11:30:11   Verbose  |       FindType=FindByThumbprint
11:30:11   Verbose  |       X509Credential=True
11:30:11   Verbose  |       FindValue=5A7DA64F76AED2C8618602A8E53AA1B2D38D615C
11:30:11   Verbose  |       StoreName=My
11:30:11   Verbose  |       Invoking target script "E:\Octopus\Work\20180612173008-16047-3\staging\DeployToServiceFabric.ps1" with  parameters.
11:30:12   Verbose  |       Importing ServiceFabricSDK modules from C:\Program Files\Microsoft SDKs\Service Fabric\Tools\PSModule\ServiceFabricSDK
11:30:12   Error    |       Invoke-Expression : A parameter cannot be found that matches parameter name
11:30:12   Error    |       'System.Collections.Hashtable'.
11:30:12   Error    |       At E:\Octopus\Work\20180612173008-16047-3\staging\Octopus.AzureServiceFabricCon
11:30:12   Error    |       text.ps1:234 char:1
11:30:12   Error    |       + Invoke-Expression ". $OctopusFabricTargetScript $OctopusFabricTargetS ...
11:30:12   Error    |       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11:30:12   Error    |       + CategoryInfo          : InvalidArgument: (:) [Invoke-Expression], Parame
11:30:12   Error    |       terBindingException
11:30:12   Error    |       + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Comm
11:30:12   Error    |       ands.InvokeExpressionCommand
11:30:12   Error    |       Script 'E:\Octopus\Work\20180612173008-16047-3\staging\DeployToServiceFabric.ps1' returned non-zero exit code: 1
11:30:12   Error    |       Running rollback conventions...
11:30:12   Error    |       Script 'E:\Octopus\Work\20180612173008-16047-3\staging\DeployToServiceFabric.ps1' returned non-zero exit code: 1
11:30:12   Verbose  |       Process C:\windows\system32\WindowsPowershell\v1.0\PowerShell.exe in E:\Octopus\Work\20180612173008-16047-3 exited with code 1
11:30:12   Verbose  |       Updating manifest with output variables
11:30:12   Verbose  |       Updating manifest with action evaluated variables
11:30:12   Fatal    |       The remote script failed with exit code 1
11:30:12   Fatal    |       The action Deploy package on XPRM - SF - Dev failed

(Shaun Marx) #8

Hi Chris,

We are currently experiencing an issue with Service Fabric deployments after a recent change in response to another issue to add support for RegisterApplicationTypeTimeoutSec.

We are currently investigating and looking to provide a fix as soon as possible. As a potential workaround, it may be possible to get around the problem by using a custom DeployToServiceFabric.ps1 service fabric script.

We have raised a corresponding issue here which you can track the progress.

Sorry for any inconvenience this has caused!

Regards,
Shaun


(Chris Robison) #9

So do you have any timeline on this? We have a lot of service fabric jobs and I don’t really want to switch them all over to using that powershell script directly.


(Shaun Marx) #10

Hi Chris,

I may have linked the wrong issue originally. The issue I mean to link is here. It will be going out as part of 2018.6.4 which should be released in the next 24 hours.

Sorry for the delays!

Regards,
Shaun


(Ben Pearce) #11

Hi Chris,

This update is available for download now.

Regards
Ben