Nuget package restore is failing

bniemyjski's Avatar

bniemyjski

09 Apr, 2015 08:28 PM

My build has been failing for the past hour and nuget isn't down... https://ci.appveyor.com/project/Exceptionless/exceptionless

The packages exist but can't be restored.
https://www.nuget.org/packages/Foundatio.AzureStorage/

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Apr, 2015 08:35 PM

    Feodor Fitsner's Avatar

    Can you re-run with normal or detailed verbosity for nuget restore?

    - Feodor

  2. 2 Posted by bniemyjski on 10 Apr, 2015 12:39 AM

    bniemyjski's Avatar

    It seems to be working now.. I'll do that the next time I run into this issue. Thanks for your time.

  3. Support Staff 3 Posted by Feodor Fitsner on 10 Apr, 2015 01:08 AM

    Feodor Fitsner's Avatar

    Yeah, that's strange. We have automatic "test" builds running every 15 minutes and nuget packages are being restored as part of those builds. As a result, we could immediately notice when those builds are failing due to nuget.org. It was nuget.org outage yesterday, but have noticed nothing today.

  4. 4 Posted by bniemyjski on 10 Apr, 2015 08:46 PM

    bniemyjski's Avatar

    I just ran into this error again: https://ci.appveyor.com/project/Exceptionless/exceptionless and enabled detailed logging. It looks like the client is blowing up.. The packages were just pushed a half hour ago and exist.

  5. 5 Posted by Eric J. Smith on 10 Apr, 2015 08:49 PM

    Eric J. Smith's Avatar

    I am running into the same issue in multiple accounts. Frustrating.

  6. 6 Posted by bniemyjski on 10 Apr, 2015 08:49 PM

    bniemyjski's Avatar

    Restoring NuGet packages for solution C:\projects\exceptionless\Exceptionless.sln.
    WARNING: Unable to connect to the remote server
    WARNING: Unable to connect to the remote server
    WARNING: Unable to connect to the remote server

    System.InvalidOperationException: Unable to find version '3.2.3' of package 'Microsoft.AspNet.Razor'.
       at NuGet.PackageHelper.ResolvePackage(IPackageRepository repository, String packageId, SemanticVersion version)
       at NuGet.Commands.RestoreCommand.RestorePackage(IFileSystem packagesFolderFileSystem, String packageId, SemanticVersion version, Boolean packageRestoreConsent, ConcurrentQueue`1 satellitePackages)
       at NuGet.Commands.RestoreCommand.<>c__DisplayClass5.<>c__DisplayClass7.<ExecuteInParallel>b__2()
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()

    Wonder if it's an issue with the nuget version on this computer or if one of your servers is getting rate limited.

  7. 7 Posted by bniemyjski on 10 Apr, 2015 09:16 PM

    bniemyjski's Avatar
  8. Support Staff 8 Posted by Feodor Fitsner on 10 Apr, 2015 09:18 PM

    Feodor Fitsner's Avatar

    You may try updating the client with this command:

    (New-Object Net.WebClient).DownloadFile('https://www.nuget.org/nuget.exe', 'C:\Tools\NuGet\nuget.exe')
    

    What do you mean by rate limit?

  9. Support Staff 9 Posted by Feodor Fitsner on 10 Apr, 2015 09:23 PM

    Feodor Fitsner's Avatar

    I'm not sure how this error is related to AppVeyor environment or even nuget client: https://ci.appveyor.com/project/Exceptionless/exceptionless/build/2... It's definitely not a connectivity issue. My guess that it hits a node where database changes are not propagated yet.

  10. 10 Posted by bniemyjski on 10 Apr, 2015 09:27 PM

    bniemyjski's Avatar

    I'm not sure but I'm not seeing this issue locally, only on appveyor.. Have you guys considered caching the packages locally / retrying package restore?

    I wasn't sure that if nuget package installs are rate limited by an ip. If this was the case you might see client restores fail as your servers prob do a really really high number of nuget package restore...

  11. Support Staff 11 Posted by Feodor Fitsner on 10 Apr, 2015 09:32 PM

    Feodor Fitsner's Avatar

    Last time we discussed connectivity issues with NuGet team I was told that there is no any rate-limiting mechanism.

    I've just run this on my dev machine:

    C:\Projects\1>nuget install Foundatio
    Unable to find version '1.0.189' of package 'Foundatio'.
    
  12. Support Staff 12 Posted by Feodor Fitsner on 10 Apr, 2015 09:36 PM

    Feodor Fitsner's Avatar

    NuGet cache is here: %LocalAppData%/NuGet/Cache

  13. 13 Posted by bniemyjski on 10 Apr, 2015 09:53 PM

    bniemyjski's Avatar

    So you think this is just an issue with nuget? I updated that package from nuget, so it's working on my machine at least.

  14. Support Staff 14 Posted by Feodor Fitsner on 10 Apr, 2015 09:58 PM

    Feodor Fitsner's Avatar

    I'm 100% sure that this particular issue is the nuget issue as I'm still unable to grab latest Foundatio package locally on my dev machine:

    C:\Projects\1>nuget install Foundatio -Verbosity detailed
    GET https://www.nuget.org/api/v2/FindPackagesById()?$filter=IsLatestVersion&$orderby=Version desc&$top=1&id='Foundatio'
    GET https://www.nuget.org/api/v2/Packages(Id='Foundatio',Version='1.0.189')
    GET https://www.nuget.org/api/v2/Packages(Id='Foundatio',Version='1.0.189.0')
    System.InvalidOperationException: Unable to find version '1.0.189' of package 'Foundatio'.
       at NuGet.PackageRepositoryHelper.ResolvePackage(IPackageRepository sourceRepository, IPackageRepository localRepository, IPackageConstraintProvider
     constraintProvider, String packageId, SemanticVersion version, Boolean allowPrereleaseVersions)
       at NuGet.PackageManager.InstallPackage(String packageId, SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
       at NuGet.Commands.InstallCommand.InstallPackage(IFileSystem fileSystem, String packageId, SemanticVersion version)
       at NuGet.Commands.InstallCommand.ExecuteCommand()
       at NuGet.Commands.Command.Execute()
       at NuGet.Program.Main(String[] args)
    
  15. 15 Posted by bniemyjski on 10 Apr, 2015 09:59 PM

    bniemyjski's Avatar

    I guarantee others are running into this issue on your service and it makes your service look bad even though it's not your problem :(.

  16. 16 Posted by bniemyjski on 10 Apr, 2015 09:59 PM

    bniemyjski's Avatar

    Is there any place we can reach out to nuget and be like wth guys?

    Thanks
    -Blake Niemyjski

  17. Support Staff 17 Posted by Feodor Fitsner on 10 Apr, 2015 10:01 PM

    Feodor Fitsner's Avatar

    Also tried from a clean VM in San-Jose data center - the same result - package not found.

  18. Support Staff 18 Posted by Feodor Fitsner on 10 Apr, 2015 10:04 PM

    Feodor Fitsner's Avatar

    Try asking on their Twitter and I'm emailing NuGet team contacts to you.

  19. Support Staff 19 Posted by Feodor Fitsner on 10 Apr, 2015 10:23 PM

    Feodor Fitsner's Avatar

    Try this command on your local machine:

    nuget install Foundatio -Source https://www.nuget.org/api/v2 -Verbosity detailed -NoCache
    
  20. Support Staff 20 Posted by Feodor Fitsner on 10 Apr, 2015 11:42 PM

    Feodor Fitsner's Avatar

    Seems I'm able to install the latest 1.0.189 now. What did they do to resolve it?

  21. 21 Posted by bniemyjski on 10 Apr, 2015 11:44 PM

    bniemyjski's Avatar

    I don't know but I'm wondering if this has something todo with the recent changes you guys made to nuget support.

  22. Support Staff 22 Posted by Feodor Fitsner on 10 Apr, 2015 11:54 PM

    Feodor Fitsner's Avatar

    I don't think so. Package publishing is an atomic operation - you just basically upload nupkg file and it could have any name. Just imagine if the package 1.0.189 has appeared on the feed and you can browse it at http://www.nuget.org/packages/Foundatio/1.0.189 then it means nuget.org received uploaded nupkg, unpacked it and read meta-data. Right?

  23. 23 Posted by bniemyjski on 10 Apr, 2015 11:56 PM

    bniemyjski's Avatar
  24. Support Staff 24 Posted by Feodor Fitsner on 11 Apr, 2015 12:13 AM

    Feodor Fitsner's Avatar

    Thanks, useful links that explain a lot.

  25. 25 Posted by bniemyjski on 13 Apr, 2015 09:58 PM

    bniemyjski's Avatar

    I don't know but cced them. I'm calling nuget like this:
    https://github.com/exceptionless/Exceptionless/blob/master/appveyor.yml#L28

    Thanks
    -Blake Niemyjski

  26. 26 Posted by Yishai Galatzer on 13 Apr, 2015 10:02 PM

    Yishai Galatzer's Avatar

    Blake,

    If it works locally both from your box and from our machines, and doesn’t work from appveyor this reads like there is some issue on the appveyor side.

    I’d suggest adding more logging (perhaps making restore more verbose), try to hit the nuget.org end points from your script and see if they are blocked by some firewall or proxy etc.

    Yishai

    From: Blake Niemyjski [mailto:[email blocked]]
    Sent: Monday, April 13, 2015 2:57 PM
    To: Ranjini Mathrubootham
    Cc: Yishai Galatzer; Feodor Fitsner
    Subject: Re: Nuget install issues - Possible deployment issue?

    I don't know but cced them. I'm calling nuget like this:https://github.com/exceptionless/Exceptionless/blob/master/appveyor.yml#L28

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 4:55 PM, Ranjini Mathrubootham <[email blocked]<mailto:[email blocked]>> wrote:
    What are the defaults used by appveyor? Did AppVeyor change anything recently? Can you share the defaults used by AppVeyor?

    From: Blake Niemyjski [mailto:[email blocked]<mailto:[email blocked]>]
    Sent: Monday, April 13, 2015 2:52 PM

    To: Yishai Galatzer
    Cc: Ranjini Mathrubootham
    Subject: Re: Nuget install issues - Possible deployment issue?

    It passes locally while trying to install a package locally. I just talked with three different people and its failing for them as well on app veyor using defaults... It would be awesome if you guys created a free appveyor account and trying doing a package restore...

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 4:43 PM, Yishai Galatzer <[email blocked]<mailto:[email blocked]>> wrote:
    Blake,

    I understand you have a problem. But you need to help us help you.

    Please start your own local build, tell us if it is working or not. Share your configuration for feeds and whatever other information you got.

    We can’t do anything without it

    Yishai

    From: Blake Niemyjski [mailto:[email blocked]<mailto:[email blocked]>]
    Sent: Monday, April 13, 2015 2:39 PM
    To: Ranjini Mathrubootham
    Cc: Yishai Galatzer
    Subject: Re: Nuget install issues - Possible deployment issue?

    I'm not sure what's going on locally, I'll get those steps documented but it's failing again on appveyor... ALL Packages: Please help...

    https://ci.appveyor.com/project/Exceptionless/exceptionless/build/2.0.1415

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 2:08 PM, Ranjini Mathrubootham <[email blocked]<mailto:[email blocked]>> wrote:
    Swashbuckle.core installs fine for us. I believe there may be a bug here with package restore will multiple feeds. Can you please enter a bug in out NuGet home repo explaining the issue with the feeds you have and your nuget.config settings to show which feeds are active? Please also give more details about the appveyor builds and we will look into it.

    From: Blake Niemyjski [mailto:[email blocked]<mailto:[email blocked]>]
    Sent: Monday, April 13, 2015 11:37 AM

    To: Yishai Galatzer
    Cc: Ranjini Mathrubootham
    Subject: Re: Nuget install issues - Possible deployment issue?

    I went into my nuget package manager settings inside of vs and removed the one feed that was already unchecked for our myget feed and it worked. It appears there is a bug trying to resolve packages (that feed I had wasn't even related to this package). And it still doesn't explain what was happening on our appveyor builds

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 1:32 PM, Blake Niemyjski <[email blocked]<mailto:[email blocked]>> wrote:
    That package has been out for weeks...

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 1:32 PM, Blake Niemyjski <[email blocked]<mailto:[email blocked]>> wrote:
    Just tried installing https://www.nuget.org/packages/Swashbuckle.Core/5.0.4 from the command line:

    Package Manager Console Host Version 2.8.60318.734

    Type 'get-help NuGet' to see all available NuGet commands.

    PM> Install-Package Swashbuckle.Core -Version 5.0.4
    Install-Package : Unable to find version '5.0.4' of package 'Swashbuckle.Core'.
    At line:1 char:1
    + Install-Package Swashbuckle.Core -Version 5.0.4
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

    PM> Install-Package Swashbuckle.Core -Version 5.0.4
    Install-Package : Unable to find version '5.0.4' of package 'Swashbuckle.Core'.
    At line:1 char:1
    + Install-Package Swashbuckle.Core -Version 5.0.4
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

    PM>

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 11:33 AM, Yishai Galatzer <[email blocked]<mailto:[email blocked]>> wrote:
    Makes sense. We are going to get that gap fixed. Unfortunately it's not a one day type fix. Appreciate you using NuGet and taking time to letting us know how we are doing.

    Keep it up!

    Yishai
    ________________________________
    From: Blake Niemyjski<mailto:[email blocked]>
    Sent: ‎4/‎13/‎2015 9:16 AM
    To: Yishai Galatzer<mailto:[email blocked]>
    Cc: Ranjini Mathrubootham<mailto:[email blocked]>
    Subject: Re: Nuget install issues - Possible deployment issue?
    That was it.. The only odd thing is, we pushed that package to nuget
    (Foundatio packages). And then I updated my packages locally right
    away in the Exceptionless project and it all worked. I then pushed
    those changes and then the build server failed. I have a couple of
    friends and it seemed like we were all having issues most of last week
    regarding package restore.

  27. Support Staff 27 Posted by Feodor Fitsner on 13 Apr, 2015 10:05 PM

    Feodor Fitsner's Avatar

    The following fails locally on my dev machine, right now:

    C:\Projects\1>nuget install OctopusTools
    Unable to find version '2.6.1.52' of package 'OctopusTools'.
    

    That package was there since Feb 05: http://www.nuget.org/packages/OctopusTools/

  28. 28 Posted by bniemyjski on 13 Apr, 2015 10:08 PM

    bniemyjski's Avatar

    can you please reply to the group email using a real email client

    Thanks
    -Blake Niemyjski

  29. Support Staff 29 Posted by Feodor Fitsner on 13 Apr, 2015 10:11 PM

    Feodor Fitsner's Avatar

    This one is even better to try:

    nuget install OctopusTools -Source https://www.nuget.org/api/v2 -Verbosity detailed -NoCache
    
    GET https://www.nuget.org/api/v2/FindPackagesById()?$filter=IsLatestVersion&$orderby=Version desc&$top=1&id='OctopusTools'
    GET https://www.nuget.org/api/v2/Packages(Id='OctopusTools',Version='2.6.1.52')
    System.InvalidOperationException: Unable to find version '2.6.1.52' of package 'OctopusTools'.
       at NuGet.PackageRepositoryHelper.ResolvePackage(IPackageRepository sourceRepository, IPackageRepository localRepository, IPackageConstraintProvider
     constraintProvider, String packageId, SemanticVersion version, Boolean allowPrereleaseVersions)
       at NuGet.PackageManager.InstallPackage(String packageId, SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
       at NuGet.Commands.InstallCommand.InstallPackage(IFileSystem fileSystem, String packageId, SemanticVersion version)
       at NuGet.Commands.InstallCommand.ExecuteCommand()
       at NuGet.Commands.Command.Execute()
       at NuGet.Program.Main(String[] args)
    
  30. 30 Posted by Yishai Galatzer on 13 Apr, 2015 10:15 PM

    Yishai Galatzer's Avatar

    I’m seeing the other emails without a reply to all.

    Like I said installing latest versions for things that rev frequently is not working properly (and never really did).

    I explained that you want to reference a specific version that’s available for a while.

    Yishai

    From: Blake Niemyjski [mailto:[email blocked]]
    Sent: Monday, April 13, 2015 2:57 PM
    To: Ranjini Mathrubootham
    Cc: Yishai Galatzer; Feodor Fitsner
    Subject: Re: Nuget install issues - Possible deployment issue?

    I don't know but cced them. I'm calling nuget like this:https://github.com/exceptionless/Exceptionless/blob/master/appveyor.yml#L28

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 4:55 PM, Ranjini Mathrubootham <[email blocked]<mailto:[email blocked]>> wrote:
    What are the defaults used by appveyor? Did AppVeyor change anything recently? Can you share the defaults used by AppVeyor?

    From: Blake Niemyjski [mailto:[email blocked]<mailto:[email blocked]>]
    Sent: Monday, April 13, 2015 2:52 PM

    To: Yishai Galatzer
    Cc: Ranjini Mathrubootham
    Subject: Re: Nuget install issues - Possible deployment issue?

    It passes locally while trying to install a package locally. I just talked with three different people and its failing for them as well on app veyor using defaults... It would be awesome if you guys created a free appveyor account and trying doing a package restore...

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 4:43 PM, Yishai Galatzer <[email blocked]<mailto:[email blocked]>> wrote:
    Blake,

    I understand you have a problem. But you need to help us help you.

    Please start your own local build, tell us if it is working or not. Share your configuration for feeds and whatever other information you got.

    We can’t do anything without it

    Yishai

    From: Blake Niemyjski [mailto:[email blocked]<mailto:[email blocked]>]
    Sent: Monday, April 13, 2015 2:39 PM
    To: Ranjini Mathrubootham
    Cc: Yishai Galatzer
    Subject: Re: Nuget install issues - Possible deployment issue?

    I'm not sure what's going on locally, I'll get those steps documented but it's failing again on appveyor... ALL Packages: Please help...

    https://ci.appveyor.com/project/Exceptionless/exceptionless/build/2.0.1415

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 2:08 PM, Ranjini Mathrubootham <[email blocked]<mailto:[email blocked]>> wrote:
    Swashbuckle.core installs fine for us. I believe there may be a bug here with package restore will multiple feeds. Can you please enter a bug in out NuGet home repo explaining the issue with the feeds you have and your nuget.config settings to show which feeds are active? Please also give more details about the appveyor builds and we will look into it.

    From: Blake Niemyjski [mailto:[email blocked]<mailto:[email blocked]>]
    Sent: Monday, April 13, 2015 11:37 AM

    To: Yishai Galatzer
    Cc: Ranjini Mathrubootham
    Subject: Re: Nuget install issues - Possible deployment issue?

    I went into my nuget package manager settings inside of vs and removed the one feed that was already unchecked for our myget feed and it worked. It appears there is a bug trying to resolve packages (that feed I had wasn't even related to this package). And it still doesn't explain what was happening on our appveyor builds

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 1:32 PM, Blake Niemyjski <[email blocked]<mailto:[email blocked]>> wrote:
    That package has been out for weeks...

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 1:32 PM, Blake Niemyjski <[email blocked]<mailto:[email blocked]>> wrote:
    Just tried installing https://www.nuget.org/packages/Swashbuckle.Core/5.0.4 from the command line:

    Package Manager Console Host Version 2.8.60318.734

    Type 'get-help NuGet' to see all available NuGet commands.

    PM> Install-Package Swashbuckle.Core -Version 5.0.4
    Install-Package : Unable to find version '5.0.4' of package 'Swashbuckle.Core'.
    At line:1 char:1
    + Install-Package Swashbuckle.Core -Version 5.0.4
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

    PM> Install-Package Swashbuckle.Core -Version 5.0.4
    Install-Package : Unable to find version '5.0.4' of package 'Swashbuckle.Core'.
    At line:1 char:1
    + Install-Package Swashbuckle.Core -Version 5.0.4
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

    PM>

    Thanks
    -Blake Niemyjski

    On Mon, Apr 13, 2015 at 11:33 AM, Yishai Galatzer <[email blocked]<mailto:[email blocked]>> wrote:
    Makes sense. We are going to get that gap fixed. Unfortunately it's not a one day type fix. Appreciate you using NuGet and taking time to letting us know how we are doing.

    Keep it up!

    Yishai
    ________________________________
    From: Blake Niemyjski<mailto:[email blocked]>
    Sent: ‎4/‎13/‎2015 9:16 AM
    To: Yishai Galatzer<mailto:[email blocked]>
    Cc: Ranjini Mathrubootham<mailto:[email blocked]>
    Subject: Re: Nuget install issues - Possible deployment issue?
    That was it.. The only odd thing is, we pushed that package to nuget
    (Foundatio packages). And then I updated my packages locally right
    away in the Exceptionless project and it all worked. I then pushed
    those changes and then the build server failed. I have a couple of
    friends and it seemed like we were all having issues most of last week
    regarding package restore.

Comments are currently closed for this discussion. You can start a new one.

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