Hello,
I’ve inherited the management of an Octopus Deploy 2.6.5.1010 instance; the person who originally configured it for us has since left the company.When trying to view the dashboard or the overview of any configured project, an error message appears on the screen: “The given key was not present in the dictionary.” Looking into the Diagnostics page reveals a page full of the following:
Error 2015-07-28 13:39:35
Unhandled error on request: http://sfsvcoctsrv1/api/dashboard by Adam_D : The given key was not present in the dictionary.
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at Octopus.Server.Web.Api.Components.DashboardBuilder.<>c__DisplayClass30.b__2b(Project project) in y:\work\refs\heads\master\source\Octopus.Server\Web\Api\Components\DashboardBuilder.cs:line 178
at System.Linq.Enumerable.<>c__DisplayClass123.<CombineSelectors>b__11(TSource x) at System.Linq.Enumerable.WhereSelectListIterator
2.MoveNext()
at System.Linq.Enumerable.d__142.MoveNext() at Octopus.Platform.Model.ReferenceCollection.ReplaceAll(IEnumerable
1 newItems) in y:\work\refs\heads\master\source\Octopus.Platform\Model\ReferenceCollection.cs:line 35
at Octopus.Server.Web.Api.Components.DashboardBuilder.GetEnvironmentIds(ProjectGroup projectGroup, Dictionary2 lifecyclesById, List
1 allProjects) in y:\work\refs\heads\master\source\Octopus.Server\Web\Api\Components\DashboardBuilder.cs:line 175
at Octopus.Server.Web.Api.Components.DashboardBuilder.<>c__DisplayClass27.b__17(ProjectGroup p) in y:\work\refs\heads\master\source\Octopus.Server\Web\Api\Components\DashboardBuilder.cs:line 149
at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Collections.Generic.List
1…ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable
1 source)
at Octopus.Server.Web.Api.Components.DashboardBuilder.LoadFreshDashboard(ILog log, IDocumentStore store) in y:\work\refs\heads\master\source\Octopus.Server\Web\Api\Components\DashboardBuilder.cs:line 149
at Octopus.Server.Web.Api.Components.DashboardBuilder.GetCachedDashboard() in y:\work\refs\heads\master\source\Octopus.Server\Web\Api\Components\DashboardBuilder.cs:line 84
at Octopus.Server.Web.Api.Components.DashboardBuilder.BuildDashboard(DashboardConfiguration configuration, IOctopusPrincipal principal) in y:\work\refs\heads\master\source\Octopus.Server\Web\Api\Components\DashboardBuilder.cs:line 57
at Octopus.Server.Web.Api.Actions.DashboardViewAction.Execute() in y:\work\refs\heads\master\source\Octopus.Server\Web\Api\Actions\DashboardViewAction.cs:line 28
at Octopus.Platform.Web.Api.Responder1.Respond(TDescriptor options, NancyContext context) in y:\work\refs\heads\master\source\Octopus.Platform.Web\Api\Responder.cs:line 163 at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at CallSite.Target(Closure , CallSite , Object , Object , NancyContext ) at Octopus.Server.Web.Api.OctopusRestApiModule.<>c__DisplayClass5.<.ctor>b__2(Object o) in y:\work\refs\heads\master\source\Octopus.Server\Web\Api\OctopusRestApiModule.cs:line 47 at CallSite.Target(Closure , CallSite , Func
2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)
So far, I’ve tried restoring the oldest backup I have, repairing the RavenDB indexes, and reinstalling the Octopus Windows Service, none of which has helped. Is there anything else I can do to fix this error, short of uninstalling and reinstalling the server? I’d prefer not to take that step, because the boxes that the tentacles are installed on are not under my control, and I’d have to coordinate with the team that does control them to update their configuration with the new key for the reinstalled server.
Octopus_Errors.docx (174 KB)