Object reference not set to an instance of an object when deploying

We’re using Octopus 3.0.24, and for the package deploy task, we’re getting -

Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
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 21
at Octopus.Server.Orchestration.Deploy.Guidance.Execute(Action callback) in Y:\work\refs\heads\master\source\Octopus.Server\Orchestration\Deploy\Guidance.cs:line 51
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 192
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.24.0 (3.0.24+Branch.master.Sha.b1f228f5d4aee7be52d7c207516b5a5f2193ad52)

Hi,

Thanks for getting in touch. Could you please send us a full deployment log so we can see what was going on in your deployment at the time or the error?

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

Thanks,

Dalmiro