Using: Octopus 3.13.8
I’m trying to deploy my azure cloude service. Per the log below, it keeps trying to lookup the cert with a null value for the thumbprint. I have a thumbprint value in the cscfg file. I’m not sure if this is a cscfg file problem or something I need to address in my Octopus instance? Let me know what details I need to provide for us to collaborate on this.
Thanks,
Lane
Octopus Server version: 3.13.8+Branch.master.Sha.c11ea2ad773baf04a1998efdaefc7db88f62ac02
September 26th 2017 13:33:08Verbose
Environment Information:
OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1
OsBitVersion: x64
Is64BitProcess: True
CurrentUser: NT AUTHORITY\SYSTEM
MachineName: SEA-CHRIS-TEST1
ProcessorCount: 1
CurrentDirectory: C:\Windows\system32
TempDirectory: C:\Windows\TEMP
HostProcessName: Octopus.Server
September 26th 2017 13:33:08Verbose
Using account ID 'Octopus Deploy’
September 26th 2017 13:33:09Verbose
Octopus Deploy: Calamari.Azure version 3.7.70+Branch.master.Sha.20b49d10257f6fe09bc9cbf191174ae1cb5490de
September 26th 2017 13:33:09Verbose
Environment Information:
September 26th 2017 13:33:09Verbose
OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1
September 26th 2017 13:33:09Verbose
OsBitVersion: x64
September 26th 2017 13:33:09Verbose
Is64BitProcess: True
September 26th 2017 13:33:09Verbose
CurrentUser: NT AUTHORITY\SYSTEM
September 26th 2017 13:33:09Verbose
MachineName: SEA-CHRIS-TEST1
September 26th 2017 13:33:09Verbose
ProcessorCount: 1
September 26th 2017 13:33:09Verbose
CurrentDirectory: C:\Octopus\Work\20170926203308-6
September 26th 2017 13:33:09Verbose
TempDirectory: C:\Windows\TEMP
September 26th 2017 13:33:09Verbose
HostProcessName: Calamari.Azure
September 26th 2017 13:33:09Info
Deploying package: C:\Octopus\Packages\PPA.CCEP.CloudService\PPA.CCEP.CloudService.1.5.0.1470.nupkg
September 26th 2017 13:33:10Verbose
Name Value
September 26th 2017 13:33:10Verbose
September 26th 2017 13:33:10Verbose
PSVersion 5.1.14409.1012
September 26th 2017 13:33:10Verbose
PSEdition Desktop
September 26th 2017 13:33:10Verbose
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
September 26th 2017 13:33:10Verbose
BuildVersion 10.0.14409.1012
September 26th 2017 13:33:10Verbose
CLRVersion 4.0.30319.42000
September 26th 2017 13:33:10Verbose
WSManStackVersion 3.0
September 26th 2017 13:33:10Verbose
PSRemotingProtocolVersion 2.3
September 26th 2017 13:33:10Verbose
SerializationVersion 1.1.0.1
September 26th 2017 13:33:10Verbose
PowerShell Environment Information:
September 26th 2017 13:33:10Verbose
OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1
September 26th 2017 13:33:10Verbose
OsBitVersion: x64
September 26th 2017 13:33:10Verbose
Is64BitProcess: True
September 26th 2017 13:33:10Verbose
CurrentUser: NT AUTHORITY\SYSTEM
September 26th 2017 13:33:10Verbose
MachineName: SEA-CHRIS-TEST1
September 26th 2017 13:33:10Verbose
ProcessorCount: 1
September 26th 2017 13:33:10Verbose
CurrentDirectory: C:\Windows\system32\config\systemprofile\AppData\Local\Calamari.Azure\Temp\b402e9d6-d544-4789-9506-6a9950c01dcd
September 26th 2017 13:33:10Verbose
CurrentLocation: C:\Windows\system32\config\systemprofile\AppData\Local\Calamari.Azure\Temp\b402e9d6-d544-4789-9506-6a9950c01dcd
September 26th 2017 13:33:10Verbose
TempDirectory: C:\Windows\TEMP
September 26th 2017 13:33:10Verbose
HostProcessName: powershell
September 26th 2017 13:33:10Verbose
TotalPhysicalMemory: 4193848 KB
September 26th 2017 13:33:10Verbose
AvailablePhysicalMemory: 2769100 KB
September 26th 2017 13:33:10Verbose
Adding bundled Azure PowerShell modules to PSModulePath
September 26th 2017 13:33:12Verbose
Authenticating with Service Principal
September 26th 2017 13:33:12Verbose
WARNING: Parameter ‘Environment’ is obsolete. This parameter is only for
September 26th 2017 13:33:12Verbose
backwards compatibility; users should use EnvironmentName instead.
September 26th 2017 13:33:12Verbose
Environment : AzureCloud
September 26th 2017 13:33:12Verbose
Account : ea75d658-54c3-4c90-9b81-c43586b46daa
September 26th 2017 13:33:12Verbose
TenantId : bcace1c8-076d-40ee-818d-41c366765fdd
September 26th 2017 13:33:12Verbose
SubscriptionId : 138b3aae-f4e4-4f0e-bc1e-fd4841029298
September 26th 2017 13:33:12Verbose
SubscriptionName : PPA-PreProd-EA
September 26th 2017 13:33:12Verbose
CurrentStorageAccount :
September 26th 2017 13:33:12Verbose
Invoking target script “C:\Windows\system32\config\systemprofile\AppData\Local\Calamari.Azure\Temp\b402e9d6-d544-4789-9506-6a9950c01dcd\SwapAzureCloudServiceDeployment.ps1” with parameters
September 26th 2017 13:33:12Verbose
Extracting package to: C:\Octopus\Work\20170926203308-6\staging
September 26th 2017 13:33:12Verbose
Extracted 8 files
September 26th 2017 13:33:12Verbose
Ensuring cloud-service-package is V20120315 format.
September 26th 2017 13:33:12Verbose
Package is Legacy format. Converting to V20120315 format.
September 26th 2017 13:33:45Verbose
Extracting Cloud Service package: 'C:\Octopus\Work\20170926203308-6\staging\PPA.CCEP.CloudService.ccproj.cspkg’
September 26th 2017 13:33:53Verbose
Found Azure Cloud Service Configuration file: C:\Octopus\Work\20170926203308-6\staging\ServiceConfiguration.uat.cscfg
September 26th 2017 13:33:53Verbose
Loading certificate with thumbprint:
September 26th 2017 13:33:53Error
System.ArgumentNullException: Value cannot be null.
September 26th 2017 13:33:54Error
Parameter name: findValue
September 26th 2017 13:33:54Error
at System.Security.Cryptography.X509Certificates.X509Certificate2Collection.FindCertInStore(SafeCertStoreHandle safeSourceStoreHandle, X509FindType findType, Object findValue, Boolean validOnly)
September 26th 2017 13:33:54Error
at System.Security.Cryptography.X509Certificates.X509Certificate2Collection.Find(X509FindType findType, Object findValue, Boolean validOnly)
September 26th 2017 13:33:54Error
at Calamari.Integration.Certificates.CalamariCertificateStore.GetOrAdd(String thumbprint, String bytes, X509Store store) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\Certificates\CalamariCertificateStore.cs:line 32
September 26th 2017 13:33:54Error
at Calamari.Azure.Integration.SubscriptionCloudCredentialsFactory.GetCredentials(String subscriptionId, String certificateThumbprint, String certificateBytes) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\SubscriptionCloudCredentialsFactory.cs:line 17
September 26th 2017 13:33:54Error
at Calamari.Azure.Deployment.Conventions.ConfigureAzureCloudServiceConvention.UpdateConfigurationWithCurrentInstanceCount(XContainer localConfigurationFile, String configurationFileName, VariableDictionary variables) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\ConfigureAzureCloudServiceConvention.cs:line 81
September 26th 2017 13:33:54Error
at Calamari.Azure.Deployment.Conventions.ConfigureAzureCloudServiceConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\ConfigureAzureCloudServiceConvention.cs:line 36
September 26th 2017 13:33:54Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
September 26th 2017 13:33:54Error
at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 28
September 26th 2017 13:33:54Error
Running rollback conventions…
September 26th 2017 13:33:54Error
Value cannot be null.
September 26th 2017 13:33:54Error
Parameter name: findValue
September 26th 2017 13:33:54Error
System.ArgumentNullException
September 26th 2017 13:33:54Error
at System.Security.Cryptography.X509Certificates.X509Certificate2Collection.FindCertInStore(SafeCertStoreHandle safeSourceStoreHandle, X509FindType findType, Object findValue, Boolean validOnly)
September 26th 2017 13:33:54Error
at System.Security.Cryptography.X509Certificates.X509Certificate2Collection.Find(X509FindType findType, Object findValue, Boolean validOnly)
September 26th 2017 13:33:54Error
at Calamari.Integration.Certificates.CalamariCertificateStore.GetOrAdd(String thumbprint, String bytes, X509Store store) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\Certificates\CalamariCertificateStore.cs:line 32
September 26th 2017 13:33:54Error
at Calamari.Azure.Integration.SubscriptionCloudCredentialsFactory.GetCredentials(String subscriptionId, String certificateThumbprint, String certificateBytes) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\SubscriptionCloudCredentialsFactory.cs:line 17
September 26th 2017 13:33:54Error
at Calamari.Azure.Deployment.Conventions.ConfigureAzureCloudServiceConvention.UpdateConfigurationWithCurrentInstanceCount(XContainer localConfigurationFile, String configurationFileName, VariableDictionary variables) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\ConfigureAzureCloudServiceConvention.cs:line 81
September 26th 2017 13:33:54Error
at Calamari.Azure.Deployment.Conventions.ConfigureAzureCloudServiceConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\ConfigureAzureCloudServiceConvention.cs:line 36
September 26th 2017 13:33:54Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
September 26th 2017 13:33:54Error
at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 50
September 26th 2017 13:33:54Error
at Calamari.Azure.Commands.DeployAzureCloudServiceCommand.Execute(String[] commandLineArguments) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Commands\DeployAzureCloudServiceCommand.cs:line 98
September 26th 2017 13:33:54Error
at Calamari.Program.Execute(String[] args) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Program.cs:line 45
September 26th 2017 13:33:54Verbose
Updating manifest with output variables
September 26th 2017 13:33:54Verbose
Updating manifest with action evaluated variables
September 26th 2017 13:33:54Fatal
The remote script failed with exit code 100
September 26th 2017 13:33:54Verbose
at Octopus.Worker.Scripting.ScriptResult.EnsureSuccessful()
at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.<>c__DisplayClass28_0.b__0()
at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteWithTransientErrorDetection(Action action, Machine machine)
at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteActionAndInitLoggingContext(PlannedStep step, Machine machine, PlannedAction action)
September 26th 2017 13:33:54Fatal
deploy cloud service on the Octopus Server