We’ve upgraded our Octopus to 2019.4.0 and after the upgrade we started getting errors on creating releases in existing projects. Not all projects are affected, only some of them.
The stack trace is this:
Octopus v2019.4.0
Sequence contains no matching element
System.InvalidOperationException
at System.Linq.Enumerable.Single[TSource](IEnumerable1 source, Func
2 predicate)
at Octopus.Server.Communications.Packages.ReleaseCreation.ReleasePackageMetadataCalculator.<>c__DisplayClass5_3.b__11(PackageReference packageReference)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.SelectManyIterator at System.Collections.Generic.List
1…ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable
1 source)
at Octopus.Server.Communications.Packages.ReleaseCreation.ReleasePackageMetadataCalculator.DeterminePackageMetadata(IOctopusQueryExecutor queryExecutor, Project project, IEnumerable1 releaseSelectedPackages, IList
1 packageActions)
at Octopus.Server.Web.Api.Rules.ReleaseWorkItemsRule.AfterMapBeforeStore(Release model, ReleaseResource resource, ISpecialRuleContext context)
at Octopus.Server.Web.Infrastructure.Api.Responder1.ExecuteRegisteredRules[TRule](Action
2 ruleCallback)
at Octopus.Server.Web.Infrastructure.Api.CreateResponseDescriptor2.Responder.ExecuteRegistered() at Octopus.Server.Web.Infrastructure.Api.Responder
1.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)