NullReferenceException in Nuget Package Deployment

I updated to 3.0.2.2077 today, but I am still experiencing the following error, which causes the Process step to fail:

Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Octopus.Shared.Diagnostics.AbstractLog.PlanFutureBlock(String messageText) in y:\work\refs\heads\master\source\Octopus.Shared\Diagnostics\AbstractLog.cs:line 72
   at Octopus.Server.Orchestration.Deploy.DeploymentPlan.RetentionRequired(String machineId, List`1 retentionTokens) in y:\work\refs\heads\master\source\Octopus.Server\Orchestration\Deploy\DeploymentPlan.cs:line 363
   at Octopus.Server.Orchestration.Deploy.ActionCommand.ApplyRetentionPolicy(Machine machine) in y:\work\refs\heads\master\source\Octopus.Server\Orchestration\Deploy\ActionCommand.cs:line 79
   at Octopus.Server.Orchestration.Deploy.Package.PackageActionHandler.Execute(ActionCommand command, Machine machine) in y:\work\refs\heads\master\source\Octopus.Server\Orchestration\Deploy\Package\PackageActionHandler.cs:line 27
   at Octopus.Server.Orchestration.Deploy.Guidance.Execute(Action callback) in y:\work\refs\heads\master\source\Octopus.Server\Orchestration\Deploy\Guidance.cs:line 50
   at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteActions(PlannedStep step, Machine machine) in y:\work\refs\heads\master\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 196
   at Octopus.Shared.Tasks.OctoThreadClosure`1.Execute() in y:\work\refs\heads\master\source\Octopus.Shared\Tasks\OctoThreadClosure.cs:line 28
Octopus.Server version 3.0.2.2077

Everything in the Nuget Package process step completes successfully, but it does throw this error at the end and causes the deployment to fail. We are using the built-in Octopus feed.

Hi,

Thanks for reaching out. Sorry to hear you are experiencing this issue. Could you please provide us a full deployment log so we can check what might be going on?

http://docs.octopusdeploy.com/display/OD/Get+the+raw+output+from+a+task

Thanks,

Dalmiro

Here is the scrubbed raw output.

ServerTasks-1702.log.txt (11 KB)

Hi,

This matches one of the bugs we found today for deployments with manual interventions https://github.com/OctopusDeploy/Issues/issues/1701 . Removing the manual intervention steps seems to let the deployment finish successfully.

We’re already working on a fix for this one, which we plan to release really soon.

Sorry for the inconveniences

Dalmiro

Thank you. I’ve downloaded and installed 3.0.5 and this is no longer an issue.