Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install packages even though they exist #23

Open
danpowell88 opened this issue Mar 20, 2019 · 3 comments
Open

Failed to install packages even though they exist #23

danpowell88 opened this issue Mar 20, 2019 · 3 comments
Assignees

Comments

@danpowell88
Copy link

Just wanted to get some ideas on this as there seem to be a few people facing the same issue and most of them are using teamcity

NuGet/Home#7699

I downloaded the latest Nuget 4.9.4 and wrote a small Powershell script to continually loop and delete, clear caches and restore packages and it did not log a single error about not being able to pull packages, unfortunately when run using the teamcity nuget step it almost seems to be 50/50 whether the issue will occur or not.

Script (run from .net project root directory)

while($true)
{
  Remove-Item packages -Recurse -ErrorAction Ignore
  nuget locals global-packages -clear
  nuget restore -NoCache
  
  $native_call_success = $?
if (-not $native_call_success)
{
    throw 'error making native call'
}
  Start-Sleep 10
}

and run like
.\restoretest.ps1 2>> error.log 3>> warning.log

There are no firewalls enabled proxies that I'm aware of on that machine/network that would intermittently effect network connectivity.

@danpowell88
Copy link
Author

It now seems to have changed slightly with more error detail

[11:16:02] [restore] WARNING: Unable to find version '1.5.1' of package 'WebActivator'.
[11:16:02] [restore] E:\nuget\packages: Package 'WebActivator.1.5.1' is not found on source 'E:\nuget\packages'.
[11:16:02] [restore] C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package 'WebActivator.1.5.1' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages'.
[11:16:02] [restore] https://api.nuget.org/v3/index.json: Problem starting the plugin 'C:\Program Files\BuildAgent\plugins\nuget-agent\bin\credential-plugin\net46\CredentialProvider.TeamCity.exe'. A task was canceled.
[11:16:02] [restore] http://nuget.ebgames.com.au/nuget: Package 'WebActivator.1.5.1' is not found on source 'http://nuget.ebgames.com.au/nuget'.
[11:16:02] [restore]

@danpowell88
Copy link
Author

NuGet/Home#7699 (comment)

seems to suggest this was fixed in the microsoft credentials provider, any update on getting it working here?

@danpowell88
Copy link
Author

any update on this, its crippling our workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants