Teamcity Nuget returns 404

edward.su's Avatar

edward.su

16 Oct, 2017 08:12 PM

Our deployment suddenly stopped working yesterday with Octopus throwing error 404 when trying to download nuget package from Teamcity server (which we configure as nuget server)

The V2 feed at 'http://[TEAMCITY_SERVER]/httpAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='unsupported'&includePrerelease=true&$skip=0&$top=10' returned an unexpected status code '404 Not Found'.

When i test the feed (from Octopus Library - External feeds), i got:
The V2 feed at 'http://[TEAMCITY_SERVER]/httpAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='unsupported'&includePrerelease=true&$skip=0&$top=10' returned an unexpected status code '404 Not Found'.

NuGet.Protocol.Core.Types.FatalProtocolException: The V2 feed at 'http://apddccidp001/httpAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='unsupported'&includePrerelease=true&$skip=0&$top=10' returned an unexpected status code '404 Not Found'.
   at NuGet.Protocol.V2FeedParser.<QueryV2Feed>d__50.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Protocol.V2FeedParser.<Search>d__44.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Protocol.PackageSearchResourceV2Feed.<SearchAsync>d__4.MoveNext()

Any idea? If i test the url from Visual Studio, i can see the list of the packages, so that means the nuget server is working..
There has been no updates to TeamCity or Octopus as our server cannot connect to internet, so i don't know what is going on

  1. 1 Posted by edward.su on 16 Oct, 2017 11:42 PM

    edward.su's Avatar

    i have managed to find workaround by changing the nuget feed url to http://localhost because the Octopus and TeamCity are in the same server.

    Referencing to the dns name seems to fail somehow.Might be something related to the windows update installed recently, but not sure.

    For now i just use localhost in Octopus external feeds configuration.

  2. Support Staff 2 Posted by Mark Rydstrom on 17 Oct, 2017 01:59 AM

    Mark Rydstrom's Avatar

    Hi,

    I'm glad you got things working. I've seen similar issues caused by changes to corporate firewalls/networking, so that might be something to look in to if required.

    Regards,
    Mark

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