I have a certain issue with 1 of the 60+ projects I have on my Octopus installation. For reasons unknown, when my build server pushes a release package to the built-in repository, it doesn’t create a release automatically despite the fact that I have a trigger setup to automatically create one.
I didn’t find one in the Audit logs through the web portal for my instance, but a teammate found the following logs inside the serverlogs:
2022-01-25 11:12:06.3328 3432 193 ERROR Unable to automatically create a release for project ‘PROJECT’ when package PACKAGE version XYZ-1.2.33 was pushed to the built in feed for space Default: Sequence contains no matching element
System.InvalidOperationException: Sequence contains no matching element
1 source, Func2 predicate)
1.SetVersionFromVersioningStrategy(IOctopusQueryExecutor queryExecutor, Project project, Release release, IEnumerable1 candidateVersioningSteps, VariableCollection variables) in C:\BuildAgent\work\c42ca9d2b8233f1c\source\Octopus.Server\Communications\Packages\SnapshotCreationFactory.cs:line 146
1.<>c__DisplayClass10_0.<FillAndCreateSnapshot>b__6(Release r) in C:\BuildAgent\work\c42ca9d2b8233f1c\source\Octopus.Server\Communications\Packages\SnapshotCreationFactory.cs:line 88 at Octopus.Core.Model.Projects.SnapshotMatchExtensionMethods.<>c__DisplayClass0_0.<Switch>b__0(Release d) in C:\BuildAgent\work\c42ca9d2b8233f1c\source\Octopus.Core\Model\Projects\ISnapshot.cs:line 31 at Octopus.Core.Model.Projects.SnapshotMatchExtensionMethods.Switch(ISnapshot snapshot, Action1 releaseAction, Action
1 runbookSnapshotAction) in C:\BuildAgent\work\c42ca9d2b8233f1c\source\Octopus.Core\Model\Projects\ISnapshot.cs:line 39 at Octopus.Server.Communications.Packages.SnapshotCreationFactory1.FillAndCreateSnapshot(IOctopusQueryExecutor queryExecutor, Project project, IProcess process, TSnapshot snapshot, IOctopusPrincipalInternal octopusPrincipal)
at Octopus.Server.Communications.Packages.AutomaticReleaseCreationPackageUploadProcessor.CreateRelease(String packageId, IVersion packageVersion, IReadOnlyList`1 projects, Release release, IOctopusQueryExecutor asSystemRunner, BuiltInFeed builtInFeed) in C:\BuildAgent\work\c42ca9d2b8233f1c\source\Octopus.Server\Communications\Packages\AutomaticReleaseCreationPackageUploadProcessor.cs:line 176
I’ve got automatic triggers on other projects and they work just fine. I also am able to manually create a release without error. The issue is only when I am trying to use the automated trigger on this one project.
- Tried switching the channel it goes to
- Tried deleting and recreating the trigger
neither of these work.
For reference, I am running 2021.1 build 7316