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

[9.0] System.Net.Security tests failing to authenticate on the remote side #112370

Open
carlossanlop opened this issue Feb 10, 2025 · 2 comments
Open
Labels
area-System.Net.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab untriaged New issue has not been triaged by the area owner

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Feb 10, 2025

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=942015
Build error leg or test failing: System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Array.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
Pull request: #111826

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Authentication failed on the remote side (the stream might still be available for additional authentication attempts)",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Output:

C:\h\w\AE53099C\w\B5910A09\e>"C:\h\w\AE53099C\p\dotnet.exe" exec --runtimeconfig System.Net.Security.Tests.runtimeconfig.json --depsfile System.Net.Security.Tests.deps.json xunit.console.dll System.Net.Security.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Net.Security.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Net.Security.Tests (found 440 of 518 test cases)
  Starting:    System.Net.Security.Tests (parallel test collections = on [2 threads], stop on fail = off)
    System.Net.Security.Tests.SslStreamCertificateTrustTest.SslStream_SendCertificateTrust_CertificateCollection_ThrowsOnWindows [SKIP]
      Condition(s) not met: "SupportsSendingCustomCANamesInTls"
    System.Net.Security.Tests.SslStreamCertificateTrustTest.SslStream_SendCertificateTrust_CertificateStore [SKIP]
      Condition(s) not met: "SupportsSendingCustomCANamesInTls"
    System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails [FAIL]
      System.AggregateException : One or more errors occurred. (Authentication failed, see inner exception.) (Authentication failed on the remote side (the stream might still be available for additional authentication attempts).)
      ---- System.Security.Authentication.AuthenticationException : Authentication failed, see inner exception.
      -------- System.ComponentModel.Win32Exception : The credentials supplied to the package were not recognized
      ---- System.Security.Authentication.AuthenticationException : Authentication failed on the remote side (the stream might still be available for additional authentication attempts).
      -------- System.ComponentModel.Win32Exception : The credentials supplied to the package were not recognized
      Stack Trace:
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(88,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(55,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/NegotiateStreamStreamToStreamTest.cs(213,0): at System.Net.Security.Tests.NegotiateStreamStreamToStreamTest.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails()
        --- End of stack trace from previous location ---
        ----- Inner Stack Trace #1 (System.Security.Authentication.AuthenticationException) -----
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(927,0): at System.Net.Security.NegotiateStream.SendAuthResetSignalAndThrowAsync[TIOAdapter](Byte[] message, Exception exception, CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(842,0): at System.Net.Security.NegotiateStream.SendBlobAsync[TIOAdapter](Byte[] message, CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(914,0): at System.Net.Security.NegotiateStream.ReceiveBlobAsync[TIOAdapter](CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(855,0): at System.Net.Security.NegotiateStream.SendBlobAsync[TIOAdapter](Byte[] message, CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(734,0): at System.Net.Security.NegotiateStream.AuthenticateAsync[TIOAdapter](CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(177,0): at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(171,0): at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/NegotiateStreamStreamToStreamTest.cs(403,0): at System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.<>c__DisplayClass0_0.<AuthenticateAsClientAsync>b__0()
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2396,0): at System.Threading.Tasks.Task.InnerInvoke()
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2384,0): at System.Threading.Tasks.Task.<>c.<.cctor>b__292_0(Object obj)
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs(264,0): at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
        --- End of stack trace from previous location ---
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs(289,0): at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2346,0): at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
        ----- Inner Stack Trace -----
        
        ----- Inner Stack Trace #2 (System.Security.Authentication.AuthenticationException) -----
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(933,0): at System.Net.Security.NegotiateStream.ThrowCredentialException(Int64 error)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(878,0): at System.Net.Security.NegotiateStream.ReceiveBlobAsync[TIOAdapter](CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(855,0): at System.Net.Security.NegotiateStream.SendBlobAsync[TIOAdapter](Byte[] message, CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(914,0): at System.Net.Security.NegotiateStream.ReceiveBlobAsync[TIOAdapter](CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(734,0): at System.Net.Security.NegotiateStream.AuthenticateAsync[TIOAdapter](CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(139,0): at System.Net.Security.NegotiateStream.AuthenticateAsServer(NetworkCredential credential, ExtendedProtectionPolicy policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStream.cs(134,0): at System.Net.Security.NegotiateStream.AuthenticateAsServer(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/NegotiateStreamStreamToStreamTest.cs(406,0): at System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.<>c__DisplayClass1_0.<AuthenticateAsServerAsync>b__0()
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2396,0): at System.Threading.Tasks.Task.InnerInvoke()
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2384,0): at System.Threading.Tasks.Task.<>c.<.cctor>b__292_0(Object obj)
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs(264,0): at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
        --- End of stack trace from previous location ---
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs(289,0): at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2346,0): at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
        ----- Inner Stack Trace -----

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=942015
Error message validated: [Authentication failed on the remote side (the stream might still be available for additional authentication attempts)]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/10/2025 9:56:57 PM UTC

Report

Build Definition Test Pull Request
947948 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_BeginEnd_TestOverloadProtectionLevel.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
947915 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112012
947748 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_TestOverloadNullBinding.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112394
947649 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
947524 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_TestOverloadNullBinding.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112382
947530 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_TestOverloadProtectionLevel.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112381
947593 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory_NotEncrypted.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
947435 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #111483
947381 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_BeginEnd_TestOverloadNullBinding.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112340
947434 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_BeginEnd.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
947346 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_TestOverloadProtectionLevel.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112221
947342 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Array.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #111434
947335 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #111410
947309 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_TestOverloadAllParameters.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112219
947293 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_TestOverloadProtectionLevel.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112261
947290 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_BeginEnd_TestOverloadNullBinding.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112225
947316 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory_NotEncrypted.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
947329 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
947319 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
947102 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
946906 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Array.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
946280 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_BeginEnd_TestOverloadNullBinding.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #112340
942253 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_BeginEnd.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
942015 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_TestOverloadProtectionLevel.NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails #111826

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
21 24 24
@carlossanlop carlossanlop added area-System.Net.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Feb 10, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 10, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

@wfurt
Copy link
Member

wfurt commented Feb 10, 2025

9.0 duplicate of #112312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Net.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants