Error using automatic release creation

Hi!

I’m trying to trigger an automatic release creation when I upload a NuGet package to the Octopus internal NuGet server. The package is created in and automatically uploaded by a TeamCity server. The upload it self seems to be working as I can find the uploaded package in C:\Octopus\OctopusServer\Repository\Packages<package name><package name>.nupkg on the Octopus server.

After uploading a new build however, a new release is not created, and I get the following errors in the server logs:

2015-01-27 20:51:10.6550 ERROR Error in Octopus.PackageEvaluator@SQ-BE-DEV-001-96C77E10 while receiving d3bb0624-a65d-11e4-a285-000c29fd99d8
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate)
at Octopus.Server.Communications.Packages.PackageEvaluator.Evaluate(String packageId, String packageVersion) in y:\work\refs\heads\release\source\Octopus.Server\Communications\Packages\PackageEvaluator.cs:line 107
at Pipefish.Actor.OnReceivingTyped[TBody](Message message) in y:\work\3cbe05672d69a231\source\Pipefish\Actor.cs:line 113
2015-01-27 20:51:10.6550 ERROR Caught exception while receiving: Octopus.Server.Communications.Packages.PackagePushedEvent
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate)
at Octopus.Server.Communications.Packages.PackageEvaluator.Evaluate(String packageId, String packageVersion) in y:\work\refs\heads\release\source\Octopus.Server\Communications\Packages\PackageEvaluator.cs:line 107
at Pipefish.Actor.OnReceivingTyped[TBody](Message message) in y:\work\3cbe05672d69a231\source\Pipefish\Actor.cs:line 113

… and a new release has not been generated.

The package I am uploading does not have any dependencies, and has the fields Id, Version, Title, Authors, Owners, Copyright and Description. This is the first time I’m trying to configure Octopus, so please let me know if you need more information about configuration. Creating a release and deploying manually works fine.

regards,
Øyvind

Well… Strangely this has suddenly started working. I have not changed anything in the NuGet package or the build in TeamCity. I have switched the automatic release creation on and off once. Not sure if that was what helped, but it works now at least…

Hi Oeyvind,

I am glad you got this sorted. Please update us if it happens again.

Vanessa

Same happening to me right now.

what fixed it for me is doing a manual release. After that pushes started doing automatic releases again. Not sure for how long. Oh and by the way, it stopped working when I renamed the nuget package step.

Hi Andrew,

Thanks for letting us know what you did to get the automatic release creation working for you.

I have raised a bug to get this looked at and fixed, you can track the progress of it here https://github.com/OctopusDeploy/Issues/issues/1477.

Thank you and warm regards,
Henrik