Unable to deploy: An item with the same key has already been added

I am trying to deploy something which I have many times before. Suddenly this error appears. Looks like internal to Octopus Deploy to me.

An item with the same key has already been added.
System.ArgumentException: An item with the same key has already been added.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Octopus.Server.Orchestration.Deploy.Acquire.DownloadOnTentaclesOrchestrator.<ReceiveAsync>d__5.MoveNext() in     c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Orchestration\Deploy\Acquire\DownloadOnTentaclesOrchestrator.cs:line 82

I can send the raw log if needed. Just need somewhere to send it.

Aha, I think I solved it. It was related to my other issue: http://help.octopusdeploy.com/discussions/problems/18747-warn-this-machine-shares-its-endpoint

After removing the duplicated machines, this runs through.

Although a better error message would be appreciated here :slight_smile:

Thanks for the heads-up, we’ll fix this.

Nick