Dynamic Package Feed broken after Octopus server upgrade

Sandeep Koniki's Avatar

Sandeep Koniki

16 Jan, 2018 05:40 AM

After an Octopus Server upgrade from v3.17.4 to v4.1.8 the one project using a dynamic package feed is now broken. When creating a release the server throws the following error:

2018-01-16 03:41:28.9575 4012 247 ERROR Unhandled error on request: http://campmon.com:8080/octopus/api/releases?ignoreChannelRules=false e9dd1355ad7844c1bedc26112fcff96a by [email blocked] : The feed resource '#{NugetFeedId}' was not found. Ensure that the feed is not specified using a variable expression.
Octopus.Server.Web.Api.Rules.SelectedPackagesPassChannelRules+FeedNotFoundException: The feed resource '#{NugetFeedId}' was not found. Ensure that the feed is not specified using a variable expression.
   at Octopus.Server.Web.Api.Rules.SelectedPackagesPassChannelRules.<>c__DisplayClass10_0.<GetStepsWithPackageRuleViolations>b__7(String feedId)
   at Octopus.Server.Web.Api.Rules.SelectedPackagesPassChannelRules.<>c__DisplayClass10_0.<GetStepsWithPackageRuleViolations>b__2(PackageStepVersion package)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Octopus.Server.Web.Api.Rules.SelectedPackagesPassChannelRules.AfterMapBeforeStore(Release model, ReleaseResource resource, ISpecialRuleContext context)
   at Octopus.Server.Web.Infrastructure.Api.Responder`1.ExecuteRegisteredRules[TRule](Action`2 ruleCallback)
   at Octopus.Server.Web.Infrastructure.Api.CreateResponseDescriptor`2.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 CallSite.Target(Closure , CallSite , Object , Object , NancyContext )
   at Octopus.Server.Web.Infrastructure.OctopusNancyModule.<>c__DisplayClass14_0.<get_Routes>b__1(Object x)
   at CallSite.Target(Closure , CallSite , Func`2 , Object )
   at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)

The project is setup as described in the "Different package feed for each environment" scenario at https://octopus.com/docs/deployment-process/deploying-packages/dynamically-selecting-packages

Has something drastically changed in the way dynamic packages need to be setup between version 3 and 4?

  1. 1 Posted by andreas.schmidt on 16 Jan, 2018 11:07 AM

    andreas.schmidt's Avatar

    We are experiencing similar issues with all projects containing dynamic feeds, after upgrading to 4.1.8 (from 4.0.11).

  2. 2 Posted by oliver.hanappi on 16 Jan, 2018 11:46 AM

    oliver.hanappi's Avatar

    We are also experiencing the same issue.

  3. Support Staff 3 Posted by Robert Wagner on 16 Jan, 2018 11:33 PM

    Robert Wagner's Avatar

    Hi All,

    Please try downgrading to 4.1.7 while we work to resolve this issue. Since it is a patch version difference, there are no database changes, so it should be straight forward.

    Rob W

  4. Support Staff 4 Posted by Tom Williams on 17 Jan, 2018 05:44 AM

    Tom Williams's Avatar

    Hi All,

    Thanks for reaching out, we were able to reproduce the issue on our end and I have raised a bug for it which you can track here.
    We are aiming to have a new release tomorrow which will fix the issue.

    I hope this helps, let me know if you have any further questions.

    Kind Regards,
    Tom

  5. Support Staff 5 Posted by Tom Williams on 18 Jan, 2018 06:38 AM

    Tom Williams's Avatar

    Hi All,

    We have managed to fix this issue internally, however the next release of Octopus wont be shipping until Monday.
    A temporary work around for this issue would be to create another Channel for the release that does not have any Version Rules.

    Kind Regards,
    Tom

  6. 6 Posted by Sandeep on 23 Jan, 2018 01:20 AM

    Sandeep's Avatar

    Unfortunately the workaround didn't work us. Any updates on the release?

  7. Support Staff 7 Posted by Tom Williams on 23 Jan, 2018 04:02 AM

    Tom Williams's Avatar

    Hi All,

    We have just released a new version of Octopus (4.1.10) which should fix the above issue. Please let me know if you still experience any issues after upgrading.

    Kind Regards,
    Tom W

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac