Exception 'Object reference not set to an instance of an object.' running deployment in new version 2018.5.3

Hi,

We’ve just updated to version 2018.5.3 and now get the below exception running a deploy.

Seems to be related to loading variables, not sure how to debug this? Any suggestions on what could be the cause?

Thanks,
Joe

Task ID:        ServerTasks-29893
Task status:    Failed
Task queued:    Monday, May 28, 2018 6:30:28 AM
Task started:   Monday, May 28, 2018 6:30:28 AM
Task completed: Monday, May 28, 2018 6:30:28 AM
Task duration:  less than a second
Server version: 2018.5.3+Branch.master.Sha.fb1782a022ed9fa327b4be39b4907c403117f70c
Server node:    ISM-DEV-TC

                | == Failed: Deploy Ism.TvcRecognition release 1.0.320.5 to Production ==
06:30:28   Verbose  |   Step 1: Deploy Ism.TvcRecognition.App does not apply to the current environment, and will not be executed
06:30:28   Verbose  |   Step 2: Deploy to cluster old does not apply to the current environment, and will not be executed
06:30:28   Fatal    |   Object reference not set to an instance of an object.
                |   System.NullReferenceException
                |   at Octopus.Server.Orchestration.Deploy.ExpandVariableService.<>c__DisplayClass0_0`1.<LoadAndValidateExpandVariable>b__5(T element)
                |   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
                |   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
                |   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
                |   at Octopus.Server.Orchestration.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.Steps.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.Steps.Manifest.MachineVariableCollector.CollectMachineScopedVariables(IEnumerable`1 environmentMachines, String environmentId)
                |   at Octopus.Core.Orchestration.ServerTasks.Deploy.MachinePlanner.EnrichManifestWithMachineVariables(DeploymentManifest manifest, Deployment deployment, DeploymentProcess deploymentProcess, ITenantTagTester tenantTagTester)
                |   at Octopus.Core.Orchestration.ServerTasks.Deploy.DeploymentPlan.Initialize()
                |   at Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentPlanService.CreateOrResumePlan(String deploymentId, ITaskContext taskContext, LogContext taskLogContext)
                |   at Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentTaskController.Execute()
                |   at Octopus.Server.Orchestration.ServerTasks.RunningTask.RunMainThread()
                | 
                |   == Pending: Acquire packages ==
                |   
                |   == Pending: Step 3: Deploy to cluster ==

More info: It seems that this is specifically related to a “Deploy to Service Fabric Cluster” step.

Hi Joseph,

Thanks for getting in touch and sorry for the delay in responding. We have had several reports of this issue, and we’re currently trying to get to the cause of the regression. There’s an issue on GitHub that you can follow for progress.

Apologies for the inconvenience.

Regards
Shannon

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