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

SSL issues after running nuget locals --clear #7321

Closed
livarcocc opened this issue Sep 21, 2018 · 15 comments
Closed

SSL issues after running nuget locals --clear #7321

livarcocc opened this issue Sep 21, 2018 · 15 comments

Comments

@livarcocc
Copy link

From @aeos on September 21, 2018 16:52

Steps to reproduce

We have a mono project which consists of multiple projects structured like so:
/root
/root/nuget_packages
/root/ProjectA/ProjectA.csproj
/root/ProjectB/ProjectB.csproj
/root/ProjectC/ProjectC.csproj

we build each project, pack them and push them to the /root/nuget_packages folder so that they can depend on each other. Any change we make in a dependency requires a new build/pack/push however we don't update the version number in the csproj because we are doing local development. If another project pulls a dependency, nuget cache sees the same version number and returns the cached package. To avoid this, we first run dotnet nuget locals all --clear. Then when we restore it gets the updated package. This might be a bad practice, there may be a better way.

However, this has worked fine up until we moved to 2.0.

Expected behavior

Prior to dotnet 2.0 this worked without problems

Actual behavior

After updating to 2.0 we receive a stream of errors and a long delay before the restore completes. The errors look like this:

Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.configuration.azurekeyvault/index.json'. The SSL connection could not be established, see inner exception. Authentication failed because the remote party has closed the transport stream. Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.configuration.environmentvariables/index.json'. The SSL connection could not be established, see inner exception. Authentication failed because the remote party has closed the transport stream. Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.configuration.keyperfile/index.json'. The SSL connection could not be established, see inner exception.

Environment data

dotnet --info output:
.NET Core SDK (reflecting any global.json):
Version: 2.1.302
Commit: 9048955601

Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.302\

Host (useful for support):
Version: 2.1.2
Commit: 811c3ce6c0

.NET Core SDKs installed:
1.0.4 [C:\Program Files\dotnet\sdk]
2.0.0 [C:\Program Files\dotnet\sdk]
2.1.302 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Copied from original issue: dotnet/cli#10035

@livarcocc
Copy link
Author

Moved to NuGet for initial investigation.

@Eilon
Copy link

Eilon commented Sep 27, 2018

Looks like ASP.NET Core's build hit this as well 2 days ago:

.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : Failed to retrieve information about 'Microsoft.Extensions.Logging.TraceSource' from remote source 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging.tracesource/index.json'. [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : The SSL connection could not be established, see inner exception. [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : Authentication failed because the remote party has closed the transport stream. [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : NuGet.Protocol.Core.Types.FatalProtocolException: Failed to retrieve information about 'Microsoft.Extensions.Logging.TraceSource' from remote source 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging.tracesource/index.json'. ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream. [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Security.SslStream.BeginAuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken, AsyncCallback asyncCallback, Object asyncState) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Security.SslStream.<>c.<AuthenticateAsClientAsync>b__47_0(SslClientAuthenticationOptions arg1, CancellationToken arg2, AsyncCallback callback, Object state) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl[TArg1,TArg2](Func`5 beginMethod, Func`2 endFunction, Action`1 endAction, TArg1 arg1, TArg2 arg2, Object state, TaskCreationOptions creationOptions) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Threading.Tasks.TaskFactory.FromAsync[TArg1,TArg2](Func`5 beginMethod, Action`1 endMethod, TArg1 arg1, TArg2 arg2, Object state, TaskCreationOptions creationOptions) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Threading.Tasks.TaskFactory.FromAsync[TArg1,TArg2](Func`5 beginMethod, Action`1 endMethod, TArg1 arg1, TArg2 arg2, Object state) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Security.SslStream.AuthenticateAsClientAsync(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : --- End of inner exception stack trace --- [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Threading.Tasks.ValueTask`1.get_Result() [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Threading.Tasks.ValueTask`1.get_Result() [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask`1 creationTask) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Threading.Tasks.ValueTask`1.get_Result() [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.ServerWarningLogHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.HttpSourceAuthenticationHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.TimeoutUtility.StartWithTimeout[T](Func`2 getTask, TimeSpan timeout, String timeoutMessage, CancellationToken token) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.HttpRetryHandler.SendAsync(HttpRetryHandlerRequest request, ILogger log, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.HttpSource.GetThrottledResponse(Func`1 requestFactory, TimeSpan requestTimeout, TimeSpan downloadTimeout, Int32 maxTries, Guid sessionId, ILogger log, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.HttpSource.<>c__DisplayClass14_0`1.<<GetAsync>b__0>d.MoveNext() [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : --- End of stack trace from previous location where exception was thrown --- [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T](String filePath, Func`2 action, CancellationToken token) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.HttpSource.GetAsync[T](HttpSourceCachedRequest request, Func`2 processAsync, ILogger log, CancellationToken token) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FindPackagesByIdAsync(String id, SourceCacheContext cacheContext, ILogger logger, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : --- End of inner exception stack trace --- [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FindPackagesByIdAsync(String id, SourceCacheContext cacheContext, ILogger logger, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.EnsurePackagesAsync(String id, SourceCacheContext cacheContext, ILogger logger, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.GetAllVersionsAsync(String id, SourceCacheContext cacheContext, ILogger logger, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Commands.SourceRepositoryDependencyProvider.GetAllVersionsAsync(String id, SourceCacheContext cacheContext, ILogger logger, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Commands.SourceRepositoryDependencyProvider.FindLibraryCoreAsync(LibraryRange libraryRange, NuGetFramework targetFramework, SourceCacheContext cacheContext, ILogger logger, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Commands.SourceRepositoryDependencyProvider.<>c__DisplayClass18_0.<<FindLibraryAsync>b__0>d.MoveNext() [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : --- End of stack trace from previous location where exception was thrown --- [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Commands.SourceRepositoryDependencyProvider.FindLibraryAsync(LibraryRange libraryRange, NuGetFramework targetFramework, SourceCacheContext cacheContext, ILogger logger, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.DependencyResolver.ResolverUtility.<>c__DisplayClass7_1.<<FindLibraryFromSourcesAsync>b__0>d.MoveNext() [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : --- End of stack trace from previous location where exception was thrown --- [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.DependencyResolver.ResolverUtility.FindLibraryFromSourcesAsync(LibraryRange libraryRange, IEnumerable`1 providers, Func`2 action) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.DependencyResolver.ResolverUtility.FindLibraryByVersionAsync(LibraryRange libraryRange, NuGetFramework framework, IEnumerable`1 providers, SourceCacheContext cacheContext, ILogger logger, CancellationToken token) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.DependencyResolver.ResolverUtility.FindLibraryMatchAsync(LibraryRange libraryRange, NuGetFramework framework, GraphEdge`1 outerEdge, IEnumerable`1 remoteProviders, IEnumerable`1 localProviders, IEnumerable`1 projectProviders, SourceCacheContext cacheContext, ILogger logger, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.DependencyResolver.ResolverUtility.FindLibraryEntryAsync(LibraryRange libraryRange, NuGetFramework framework, GraphEdge`1 outerEdge, RemoteWalkContext context, CancellationToken cancellationToken) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.DependencyResolver.RemoteDependencyWalker.CreateGraphNode(LibraryRange libraryRange, NuGetFramework framework, String runtimeName, RuntimeGraph runtimeGraph, Func`2 predicate, GraphEdge`1 outerEdge) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.DependencyResolver.RemoteDependencyWalker.CreateGraphNode(LibraryRange libraryRange, NuGetFramework framework, String runtimeName, RuntimeGraph runtimeGraph, Func`2 predicate, GraphEdge`1 outerEdge) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.DependencyResolver.RemoteDependencyWalker.CreateGraphNode(LibraryRange libraryRange, NuGetFramework framework, String runtimeName, RuntimeGraph runtimeGraph, Func`2 predicate, GraphEdge`1 outerEdge) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [Xyz.csproj]
.dotnet\x64\sdk\2.1.400\NuGet.targets(114,5): error : at NuGet.Commands.ProjectRestoreCommand.WalkDependenciesAsync(LibraryRange projectRange, NuGetFramework framework, String runtimeIdentifier, RuntimeGraph runtimeGraph, RemoteDependencyWalker walker, RemoteWalkContext context, CancellationToken token) [...\AzureIntegration\extensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\obj\rs.csproj] [...\Az

@rrelyea
Copy link
Contributor

rrelyea commented Oct 1, 2018

Related to this report as well?
https://twitter.com/michaelwanke/status/1046872955207049217

@rrelyea
Copy link
Contributor

rrelyea commented Oct 1, 2018

Tracking on nugetgallery repo

@rrelyea rrelyea closed this as completed Oct 1, 2018
@karelz
Copy link

karelz commented Oct 3, 2018

@aeos how often does it happen for you?
You mention you upgraded to 2.0. Can you please double check you running truly on 2.0 and NOT on 2.1?
I would not expect the problem to happen on 2.0.

@rrelyea
Copy link
Contributor

rrelyea commented Oct 3, 2018

@aeos has full version in his first message. 2.1.302 is the SDK being used. His post lists all the runtimes and sdks installed.

@karelz
Copy link

karelz commented Oct 3, 2018

@rrelyea how does it answer which .NET Core was used with the nuget client? Why does it comment on "migrating to 2.0" then?

@rrelyea
Copy link
Contributor

rrelyea commented Oct 4, 2018

I think that:
"NET Core SDK (reflecting any global.json):
Version: 2.1.302"

means that the user ran dotnet restore with 2.1.302 ---
no idea about the moving to 2.0 comment.

@aeos
Copy link

aeos commented Oct 4, 2018

Sorry for that typo. You are correct. Moving to 2.1

@aeos
Copy link

aeos commented Oct 4, 2018

Here is how I reproduce the issue.

using this simple csproj:

  
    netcoreapp2.1
    Proj.Authority
    1.0.0
    
  
  
    
  

first run dotnet nuget locals all --clear then run dotnet restore
I confirmed with 2 other coworkers that they experience the same thing. One of our coworkers is not seeing the issue.

@karelz
Copy link

karelz commented Oct 4, 2018

How often does it happen? Is it 100% repro?
Do you have a repro you can share with us to try it locally?
cc @wfurt

@aeos
Copy link

aeos commented Oct 4, 2018

It happens 100% for me and one other. It does not happen to a third. If I use a different package reference there is no errors. I use that csproj file with nothing else to replicate it however xml doesn't appear to work in comments.

@karelz
Copy link

karelz commented Oct 5, 2018

If it is 100%, then it is likely something slightly different than the intermittent thing we're chasing down.
You can create your own repo and put the project there, or you can post here step by step instructions how to create such project. You can also post xml via code block: https://help.github.com/articles/creating-and-highlighting-code-blocks/ (the language name is "xml" :)).

@wfurt
Copy link

wfurt commented Oct 5, 2018

note that the behavior may also depend on your network e.g. do you use proxy, uplink speed and behavior, firewall setting etc. If you have 100% repro @aeos , could you provide packet capture?
(dns, http, https) That should be pretty small for your simple project.

Also note that 2.1.403 is out. Include 2.1.5 runtime had some HTTP fixes regarding proxy and authentication.

@dtivel
Copy link
Contributor

dtivel commented Oct 24, 2018

I believe #7314 fixes this.

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

7 participants