Error when trying to deploy a release

Hi Support,

I have just completed a new installation:

Octopus Deployment Manager (Windows 2012 R2)
Tentacle configured on separate server (Windows 2012 R2) - the latest version of Calamari has been installed on the Tentacle and passes the health check via the Octopus Manager portal

I am getting the following error when clicking on the ‘Deploy Now’ when trying to deploy an initial release in an environment.

2017-08-03 11:45:47.7167 7360 30 ERROR Unhandled error on request: http://localhost:8070/api/deployments 331ae70a7bc748fb8c457d819bb46c2b by mstevenson_admin@ERM.LOCAL : Object serialized to Array. JObject instance expected.
System.ArgumentException: Object serialized to Array. JObject instance expected.
at Newtonsoft.Json.Linq.JObject.FromObject(Object o, JsonSerializer jsonSerializer)
at Octopus.Core.RelationalStorage.VariableConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)
at Nevermore.RelationalTransaction.InstanceToParameters(Object instance, DocumentMap mapping, String prefix)
at Nevermore.RelationalTransaction.Insert[TDocument](String tableName, TDocument instance, String customAssignedId, String tableHint, Nullable1 commandTimeoutSeconds) at Nevermore.RelationalTransaction.Insert[TDocument](TDocument instance, String customAssignedId) at Octopus.Server.Orchestration.Deploy.DeploymentFactory.CreateDeployment(IRelationalTransaction transaction, Deployment deployment, User user, DateTimeOffset queueTime, Nullable1 queueTimeExpiry, ILifecycleProgressionEvaluator lifecycleProgressionEvaluator, ILifecycleService lifecycleService, IDeploymentSummaryService deploymentSummaryService, Func2 promptedVariableProvider) at Octopus.Server.Web.Api.Actions.DeploymentCreateAction.Execute() at Octopus.Server.Web.Infrastructure.Api.Responder1.Respond(TDescriptor options, NancyContext context)
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at Octopus.Server.Web.Infrastructure.OctopusNancyModule.<>c__DisplayClass14_0.<get_Routes>b__1(Object x)
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)


That does not look right!
What exact versions of Tentacle and Octopus Server are you running ?
Would it be possible for you to export both the release and the project and send it to us ?
Here are the instructions to export -



I just wanted to follow up to see if you are still encountering this error?


Hi Guys,

Ended up blowing away the VM that Octopus was initially installed on and reinstalling from scratch.

Not currently having any issues.

Michael S

Hi Michael,

Thanks for the update, and I am glad it is all working now.