Suddenly unable to find packages in feed

We have had our Team City and Octopus setup running for a few years now (up to about 30 projects in Octo). Both have up to date versions. Octo is on 3.7.11, and team city on 2017.1. Our infrastructure is a CI server with Team City, and Oct. A Test Server, and Prod server.

The developer who setup our CI system is off for a few weeks, and all our Octo deployments stopped working yesterday, so I am trying to fix the issue despite not having an intimate knowledge of either system.

The Octopus deployment fails in the Aquire Packages step: Unable to download package: Downloading package MYPACKAGE 3.2.0.29 from feed: https://ci.ourdomain.com:8001/httpAuth/app/nuget/v1/FeedService.svc/. Could not find package MYPACKAGE in feed.

If I go to External Feeds, and test the feed, then search for MYPACKAGE, I get a result however it is for a different version. It is also odd that I see only 1 version, when there should many different versions?

Out of desperation, I have tried restarting CI server, and the test server. After restarting the test server, I was able to do deployments there (could have been coincidence?). But I can’t restart the production server, as we have many live customers there. I tried restarting the Octo service on the production server but it did not make a difference.

It is odd that they deployments have been working find since last upgrade (and before that too), that they have just started to fail.

Any help or suggestions?

Hi there,

Thanks for gettting in touch! A couple of questions:

  • I got a bit confused by this paragraph: Out of desperation, I have tried restarting CI server, and the test server. After restarting the test server, I was able to do deployments there (could have been coincidence?). But I can't restart the production server, as we have many live customers there. I tried restarting the Octo service on the production server but it did not make a difference.. You have 2 VMs, one for Dev and another for Prod, each running TC and Octopus at the same time. Is that correct?

  • If you directly browse the feed using its URL (and not through Octopus), can you see the expected package versions or just 1 like when your test it from Octopus?

  • Could you send me a full deployment log so I can see the whole context of the error? https://octopus.com/docs/how-to/get-the-raw-output-from-a-task

Thanks,
Dalmiro

1 server running TC
1 server running Octopus
1 server running as Dev environment
1 server running as the Prod environment

I could not see the package when directly browsing the feed. Does that mean the problem is with TC?

Here is a full deployment log for one failure:
Deploy Ferus-CNG release 3.14.10.99 to Test
May 4th 2017 11:37:03Fatal
The deployment failed because one or more steps failed. Please see the deployment log for details.
Acquire packages
May 4th 2017 11:37:03Error
Unable to download package: Could not find package FieldCap.UserSite in feed: 'https://ci.fieldcap.ca:8001/httpAuth/app/nuget/v1/FeedService.svc/'
Could not find package FieldCap.UserSite in feed: 'https://ci.fieldcap.ca:8001/httpAuth/app/nuget/v1/FeedService.svc/'
Octopus.Shared.ControlledFailureException: Could not find package FieldCap.UserSite in feed: 'https://ci.fieldcap.ca:8001/httpAuth/app/nuget/v1/FeedService.svc/'
at Octopus.Core.Packages.PackageDownloader.FindPackage(Int32 attempt, PackageIdentifier packageIdentifier, IFeed feed) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Core\Packages\PackageDownloader.cs:line 181
at Octopus.Core.Packages.PackageDownloader.AttemptToFindAndDownloadPackage(Int32 attempt, PackageIdentifier packageIdentifier, IFeed feed, String cacheDirectory, IPackage& downloadedPackage, String& path) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Core\Packages\PackageDownloader.cs:line 157
at Octopus.Core.Packages.PackageDownloader.AttemptToDownload(PackageIdentifier packageIdentifier, IFeed feed) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Core\Packages\PackageDownloader.cs:line 114
Octopus.Server version 3.7.11 (3.7.11+Branch.master.Sha.37a91196c2b7fa16bd0e99906037e73b68cc955c)
May 4th 2017 11:37:03Fatal
The step failed: Activity failed with error ‘The package could not be downloaded. If you are getting a package verification error, try switching to a Windows File Share package repository to see if that helps.’.

Dalmiro,

This is the output from https://ci.fieldcap.ca:8001/httpAuth/app/nuget/v1/FeedService.svc

Default Packages

Hi,

Sorry I should have mentioned that you need to browse the feed using nuget.exe list. The use of the word “browse” in this context led to that confusion, so it was totally my bad :).

If you go to that URL from the browser you’ll always get that XML you sent me, without any trace of the packages. You’ll need to use Nuget.exe list to list the packages. Check the attached screenshot as reference,

Thanks!
Dalmiro

It is saying no packages found?

[cid:image001.png@01D2C80B.43346B70]

image001.png

It all points to a problem with the TC feed or your permissions to see the packages on it I’m afraid.

Dalmiro,

Thank you for confirming. I’ll know how to troubleshoot that for next time. 

I appreciate the help.

~Shea M