HELP! this just started happening with upgrade to 2019.3.1 from 2019.3.0. Not sure if thats related. We have elastic environments using AWS autoscaling groups. on machine boot, tentacles are installed,registered, and autodeploy is supposed to kick off.
Server logs yield this:
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:45:57Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:46:27Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:46:57Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:47:27Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:47:58Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:48:28Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:48:58Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:49:28Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:49:59Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:50:29Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:51:00Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Octopus.Server.Schedules.AutoDeployments.MachineFilters.ProjectTenantedDeploymentModeMachineFilter..ctor(ILog log, IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployMachineFiltererFactory.Create(IReadOnlyList`1 projects)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployItemBuilder.Build(IReadOnlyList`1 autoDeployTriggers, IReadOnlyList`1 latestSuccessfulDeployments, IReadOnlyList`1 projects, IReadOnlyList`1 autoDeployMachines)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerDeploymentCreator.ProcessEventsInSpace(IReadOnlyList`1 projects, IReadOnlyList`1 machines)
at Octopus.Core.Spaces.SpaceContextSwitcherExtensions.<>c__DisplayClass0_0`1.<PerformInSpaceContext>b__0(TDependency dependency)
at Octopus.Server.Web.Infrastructure.Spaces.SpaceContextSwitcher.PerformInSpaceContext[TDependency,TReturn](SpacePartitionsDefinition definition, Func`2 action)
at Octopus.Server.Schedules.AutoDeployments.AutoDeployTriggerProcessor.ProcessEvents(Nullable`1 lastPassEventAutoId, Int64 upToEventAutoId)
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger()
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule schedule)
April 12th 2019 02:51:30Error
Error when running scheduled task: Octopus.Server.Schedules.RunOnAScheduleAdapter`1[Octopus.Server.Schedules.ProcessAutoDeployments] System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue .....................................