Ошибка при синхронизации: Ошибка проведения миграций

Ошибка проведения миграций: Value cannot be null.
Parameter name: version

Последний действия:

  • Импорт БО на схему ( В пакете только один БО без связей с типами полей строка и целое число)
  • Ранее БО с таким кодом на импортируемой схеме не было

Уверенности в том, что синхронизация проходила до импорта - нет

в лог падает две ошибки:

  1. Error while migrating user schema

at Bars.Alpha.Deployer.AppStatus.NodeState…ctor (System.Guid id, System.String version, System.Nullable1[T] state, System.DateTime lastHeartbeat, System.String ipAddress, System.Int64 lastAckIndex) [0x00042] in /opt/teamcity/buildAgentProj/work/minfin/projects/minfin-9.0/bars.alpha/src/Bars.Alpha.Deployer/AppStatus/NodeState.cs:38 at (wrapper dynamic-method) Bars.Alpha.Deployer.AppStatus.NodeState.Void .ctor(System.Guid, System.String, System.Nullable1[Bars.AKernel.AppStatus.State.NodeExternalStateKind], System.DateTime, System.String, Int64)(object[]) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.Serialization.ObjectConstructor1[T] creator, System.String id) [0x0033b] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateNewObject (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract objectContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id, System.Boolean& createdFromNonDefaultCreator) [0x0008b] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00148] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (System.Collections.IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x0024e] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x002b7] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Linq.JToken.ToObject (System.Type objectType, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00012] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Linq.JToken.ToObject (System.Type objectType) [0x002ff] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Linq.JToken.ToObject[T] () [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Bars.AKernel.Etcd.EtcdStoredStateSerializer.DeserializeFromEtcd[T] (System.Collections.Generic.Dictionary2[TKey,TValue] storedState, T defaultValue) [0x00099] in /opt/teamcity/buildAgentProj/work/minfin/projects/minfin-9.0/bars.alpha/src/Bars.AKernel/Etcd/EtcdStoredStateSerializer.cs:67 at Bars.Alpha.Deployer.Impl.AppStatus.EtcdApplicationStatusStore.WaitForAllNodesAcknowledgeTargetSchemaChange (System.DateTime deadline) [0x0022f] in /opt/teamcity/buildAgentProj/work/minfin/projects/minfin-9.0/bars.alpha/src/Bars.Alpha.Deployer/Impl/AppStatus/EtcdApplicationStatusStore.cs:822 at Bars.Alpha.Deployer.Impl.AppStatus.OverseerActor.DoMigrateUserSchema (Bars.AKernel.AppStatus.State.LocalNodeState localState, Bars.AKernel.AppStatus.State.GlobalApplicationState globalState, System.Threading.CancellationToken cancellationToken) [0x0010b] in /opt/teamcity/buildAgentProj/work/minfin/projects/minfin-9.0/bars.alpha/src/Bars.Alpha.Deployer/Impl/AppStatus/OverseerActor.cs:901 at
2) Error while waiting for cluster nodes state

at Bars.Alpha.Deployer.AppStatus.NodeState…ctor (System.Guid id, System.String version, System.Nullable1[T] state, System.DateTime lastHeartbeat, System.String ipAddress, System.Int64 lastAckIndex) [0x00042] in /opt/teamcity/buildAgentProj/work/minfin/projects/minfin-9.0/bars.alpha/src/Bars.Alpha.Deployer/AppStatus/NodeState.cs:38 at (wrapper dynamic-method) Bars.Alpha.Deployer.AppStatus.NodeState.Void .ctor(System.Guid, System.String, System.Nullable1[Bars.AKernel.AppStatus.State.NodeExternalStateKind], System.DateTime, System.String, Int64)(object[]) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.Serialization.ObjectConstructor1[T] creator, System.String id) [0x0033b] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateNewObject (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract objectContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id, System.Boolean& createdFromNonDefaultCreator) [0x0008b] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00148] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (System.Collections.IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x0024e] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x002b7] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Linq.JToken.ToObject (System.Type objectType, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00012] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Linq.JToken.ToObject (System.Type objectType) [0x002ff] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Linq.JToken.ToObject[T] () [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Bars.AKernel.Etcd.EtcdStoredStateSerializer.DeserializeFromEtcd[T] (System.Collections.Generic.Dictionary2[TKey,TValue] storedState, T defaultValue) [0x00099] in /opt/teamcity/buildAgentProj/work/minfin/projects/minfin-9.0/bars.alpha/src/Bars.AKernel/Etcd/EtcdStoredStateSerializer.cs:67 at Bars.Alpha.Deployer.Impl.AppStatus.EtcdApplicationStatusStore.WaitForAllNodesAcknowledgeTargetSchemaChange (System.DateTime deadline) [0x0022f] in /opt/teamcity/buildAgentProj/work/minfin/projects/minfin-9.0/bars.alpha/src/Bars.Alpha.Deployer/Impl/AppStatus/EtcdApplicationStatusStore.cs:822 at Bars.Alpha.Deployer.Impl.AppStatus.OverseerActor.DoMigrateUserSchema (Bars.AKernel.AppStatus.State.LocalNodeState localState, Bars.AKernel.AppStatus.State.GlobalApplicationState globalState, System.Threading.CancellationToken cancellationToken) [0x0010b] in /opt/teamcity/buildAgentProj/work/minfin/projects/minfin-9.0/bars.alpha/src/Bars.Alpha.Deployer/Impl/AppStatus/OverseerActor.cs:901 at

Эта ситуация была связана с “мусорными” данными в Etcd. Сейчас должно работать.