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

[8.0] Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes - failed to bind to address http://127.0.0.1:5000 - already in use #92295

Closed
carlossanlop opened this issue Sep 19, 2023 · 6 comments
Assignees
Labels
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Sep 19, 2023

Error Blob

{
  "ErrorMessage": "Unhandled exception. System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in use.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Reproduction Steps

C:\helix\work\workitem\e>dotnet.exe exec xunit.console.dll Wasm.Build.Tests.dll -xml C:\helix\work\workitem\uploads\xharness-output\testResults.xml -class Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests -nocolor -parallel none -verbose -notrait category=IgnoreForCI -notrait category=failing -notrait category=no-workload  
Microsoft.DotNet.XUnitConsoleRunner v2.5.0 (64-bit .NET 8.0.0-rc.1.23414.4)
  Discovering: Wasm.Build.Tests (method display = ClassAndMethod, method display options = None)

==============================================================================================
=============== Running with Workloads ===============
=============== Using webcil-in-wasm ===============
============== Multi-threading runtime pack for net8.0 is available ==============
==============================================================================================

  Discovered:  Wasm.Build.Tests (found 1 of 114 test case)
  Starting:    Wasm.Build.Tests (parallel test collections = off, max threads = 2)
   Wasm.Build.Tests: Using random seed for test cases: 2054180226
   Wasm.Build.Tests: Using random seed for collections: 2054180226
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: False) [STARTING]
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: False) [FINISHED] Time: 120.0987238s
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: True) [STARTING]
   Wasm.Build.Tests: [Long Running Test] 'Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes', Elapsed: 00:02:01
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: True) [FAIL]
       Expected 0 exit code but got -532462766: C:\helix\work\workitem\e\dotnet-latest\dotnet.exe run -c Debug --no-build
      Standard Output:
      [] WasmAppHost --use-staticwebassets --runtime-config C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\bin\Debug\net8.0\WasmBasicTestApp.runtimeconfig.json
      [] Unhandled exception. System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in use.
      []  ---> Microsoft.AspNetCore.Connections.AddressInUseException: Only one usage of each socket address (protocol/network address/port) is normally permitted.
      []  ---> System.Net.Sockets.SocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted.
      []    at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
      []    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
      []    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      []    --- End of inner exception stack trace ---
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
      [] --- End of stack trace from previous location ---
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      []    --- End of inner exception stack trace ---
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.DefaultAddressStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
      []    at Microsoft.WebAssembly.AppHost.DevServer.DevServer.StartAsync(DevServerOptions options, ILogger logger, CancellationToken token)
      []    at Microsoft.WebAssembly.AppHost.BrowserHost.StartWebServerAsync(BrowserArguments args, String[] urls, CancellationToken token)
      []    at Microsoft.WebAssembly.AppHost.BrowserHost.RunAsync(ILoggerFactory loggerFactory, CancellationToken token)
      []    at Microsoft.WebAssembly.AppHost.BrowserHost.InvokeAsync(CommonConfiguration commonArgs, ILoggerFactory loggerFactory, ILogger logger, CancellationToken token)
      []    at Microsoft.WebAssembly.AppHost.WasmAppHost.Main(String[] args)
      []    at Microsoft.WebAssembly.AppHost.WasmAppHost.<Main>(String[] args)
      
      Stack Trace:
============== DELETING THE BUILDS =============
        /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs(44,0): at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput)
        /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs(28,0): at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput)
        /_/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs(81,0): at Wasm.Build.Tests.BrowserRunner.RunAsync(ToolCommand cmd, String args, Boolean headless, Action`1 onConsoleMessage, Action`1 onError, Func`2 modifyBrowserUrl)
        /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BlazorWasmTestBase.cs(190,0): at Wasm.Build.Tests.BlazorWasmTestBase.BlazorRunTest(String runArgs, String workingDirectory, BlazorRunOptions runOptions)
        /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BlazorWasmTestBase.cs(210,0): at Wasm.Build.Tests.BlazorWasmTestBase.BlazorRunTest(String runArgs, String workingDirectory, BlazorRunOptions runOptions)
        /_/src/mono/wasm/Wasm.Build.Tests/TestAppScenarios/AppTestBase.cs(68,0): at Wasm.Build.Tests.TestAppScenarios.AppTestBase.RunSdkStyleApp(RunOptions options)
        /_/src/mono/wasm/Wasm.Build.Tests/TestAppScenarios/DownloadResourceProgressTests.cs(31,0): at Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(Boolean failAssemblyDownload)
        --- End of stack trace from previous location ---
      Output:
        
        ** -------- publish -------- **
        
        Binlog path: C:\helix\work\workitem\uploads\xharness-output\logs\DownloadResourceProgressTests_True_vmcdzba0_pme\DownloadResourceProgressTests_True_vmcdzba0_pme-publish.binlog
        [] Executing (Captured Output) - C:\helix\work\workitem\e\dotnet-latest\dotnet.exe publish -bl:C:\helix\work\workitem\uploads\xharness-output\logs\DownloadResourceProgressTests_True_vmcdzba0_pme\DownloadResourceProgressTests_True_vmcdzba0_pme-publish.binlog -p:Configuration=Debug -nr:false /warnaserror -p:BlazorEnableCompression=false   -  in pwd C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme
        	[DOTNET_ROOT] = C:\helix\work\workitem\e\dotnet-latest
        	[DOTNET_INSTALL_DIR] = C:\helix\work\workitem\e\dotnet-latest
        	[DOTNET_MULTILEVEL_LOOKUP] = 0
        	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
        	[PATH] = C:\helix\work\workitem\e\dotnet-latest;C:\helix\work\workitem\e\\dotnet-latest;D:\a\_work\1\s\artifacts\bin\chromedriver\chromedriver_win32;C:\helix\work\correlation\dotnet-latest;C:\helix\work\correlation\xharness-cli;C:\helix\work\correlation\dotnet-cli;C:\helix\work\correlation\chrome-win;C:\helix\work\correlation\chromedriver_win32;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\ContainerAdministrator\AppData\Local\Microsoft\WindowsApps;C:\Python;C:\python\scripts;C:\Program Files\nodejs\;C:\7z;C:\git\cmd;C:\Users\ContainerAdministrator\AppData\Roaming\npm;C:\Users\ContainerAdministrator\.jsvu\bin
        	[EM_WORKAROUND_PYTHON_BUG_34780] = 1
        	[NUGET_PACKAGES] = C:\helix\work\workitem\e\wbt\nuget\DownloadResourceProgressTests_True_vmcdzba0_pme
        [] MSBuild version 17.7.0+5785ed5c2 for .NET
        []   Determining projects to restore...
        []   Restored C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\WasmBasicTestApp.csproj (in 2.54 sec).
        [] C:\helix\work\workitem\e\dotnet-latest\sdk\8.0.100-rc.1.23415.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\WasmBasicTestApp.csproj]
        []   WasmBasicTestApp -> C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\bin\Debug\net8.0\WasmBasicTestApp.dll
        []   ** MicrosoftNetCoreAppRuntimePackDir : 'C:\helix\work\workitem\e\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.0-ci'
        []   WasmBasicTestApp -> C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\bin\Debug\net8.0\publish\
        [] 
        [] Workload updates are available. Run `dotnet workload list` for more information.
        [] Executing - C:\helix\work\workitem\e\dotnet-latest\dotnet.exe run -c Debug --no-build  in pwd C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme
        	[DOTNET_ROOT] = C:\helix\work\workitem\e\dotnet-latest
        	[DOTNET_INSTALL_DIR] = C:\helix\work\workitem\e\dotnet-latest
        	[DOTNET_MULTILEVEL_LOOKUP] = 0
        	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
        	[PATH] = C:\helix\work\workitem\e\dotnet-latest;C:\helix\work\workitem\e\\dotnet-latest;D:\a\_work\1\s\artifacts\bin\chromedriver\chromedriver_win32;C:\helix\work\correlation\dotnet-latest;C:\helix\work\correlation\xharness-cli;C:\helix\work\correlation\dotnet-cli;C:\helix\work\correlation\chrome-win;C:\helix\work\correlation\chromedriver_win32;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\ContainerAdministrator\AppData\Local\Microsoft\WindowsApps;C:\Python;C:\python\scripts;C:\Program Files\nodejs\;C:\7z;C:\git\cmd;C:\Users\ContainerAdministrator\AppData\Roaming\npm;C:\Users\ContainerAdministrator\.jsvu\bin
        	[EM_WORKAROUND_PYTHON_BUG_34780] = 1
        [] WasmAppHost --use-staticwebassets --runtime-config C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\bin\Debug\net8.0\WasmBasicTestApp.runtimeconfig.json
        [] Unhandled exception. System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in use.
        []  ---> Microsoft.AspNetCore.Connections.AddressInUseException: Only one usage of each socket address (protocol/network address/port) is normally permitted.
        []  ---> System.Net.Sockets.SocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted.
        []    at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
        []    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
        []    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
        []    --- End of inner exception stack trace ---
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
        [] --- End of stack trace from previous location ---
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
        []    --- End of inner exception stack trace ---
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.DefaultAddressStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
        []    at Microsoft.WebAssembly.AppHost.DevServer.DevServer.StartAsync(DevServerOptions options, ILogger logger, CancellationToken token)
        []    at Microsoft.WebAssembly.AppHost.BrowserHost.StartWebServerAsync(BrowserArguments args, String[] urls, CancellationToken token)
        []    at Microsoft.WebAssembly.AppHost.BrowserHost.RunAsync(ILoggerFactory loggerFactory, CancellationToken token)
        []    at Microsoft.WebAssembly.AppHost.BrowserHost.InvokeAsync(CommonConfiguration commonArgs, ILoggerFactory loggerFactory, ILogger logger, CancellationToken token)
        []    at Microsoft.WebAssembly.AppHost.WasmAppHost.Main(String[] args)
        []    at Microsoft.WebAssembly.AppHost.WasmAppHost.<Main>(String[] args)
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: True) [FINISHED] Time: 72.710017s
  Finished:    Wasm.Build.Tests
=== TEST EXECUTION SUMMARY ===
   Wasm.Build.Tests  Total: 2, Errors: 0, Failed: 1, Skipped: 0, Time: 192.874s

Report

Build Definition Test Pull Request
425414 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.AbortStartupOnError #92637
425025 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.LoadLibraryInitializer #92904
421412 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.LoadLibraryInitializer
421371 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.LoadLibraryInitializer #92745
421097 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.LazyLoadingTests.LoadLazyAssemblyBeforeItIsNeeded #92702
416040 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.LazyLoadingTests.LoadLazyAssemblyBeforeItIsNeeded #92406
414506 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.AbortStartupOnError #92280

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 2 7

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=411591
Error message validated: Unhandled exception. System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in use.
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 9/19/2023 7:06:47 PM UTC

@carlossanlop carlossanlop added arch-wasm WebAssembly architecture os-windows blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' untriaged New issue has not been triaged by the area owner Known Build Error Use this to report build issues in the .NET Helix tab labels Sep 19, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 19, 2023
@ghost
Copy link

ghost commented Sep 19, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Error Blob

{
  "ErrorMessage": "Unhandled exception. System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in use.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Reproduction Steps

C:\helix\work\workitem\e>dotnet.exe exec xunit.console.dll Wasm.Build.Tests.dll -xml C:\helix\work\workitem\uploads\xharness-output\testResults.xml -class Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests -nocolor -parallel none -verbose -notrait category=IgnoreForCI -notrait category=failing -notrait category=no-workload  
Microsoft.DotNet.XUnitConsoleRunner v2.5.0 (64-bit .NET 8.0.0-rc.1.23414.4)
  Discovering: Wasm.Build.Tests (method display = ClassAndMethod, method display options = None)

==============================================================================================
=============== Running with Workloads ===============
=============== Using webcil-in-wasm ===============
============== Multi-threading runtime pack for net8.0 is available ==============
==============================================================================================

  Discovered:  Wasm.Build.Tests (found 1 of 114 test case)
  Starting:    Wasm.Build.Tests (parallel test collections = off, max threads = 2)
   Wasm.Build.Tests: Using random seed for test cases: 2054180226
   Wasm.Build.Tests: Using random seed for collections: 2054180226
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: False) [STARTING]
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: False) [FINISHED] Time: 120.0987238s
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: True) [STARTING]
   Wasm.Build.Tests: [Long Running Test] 'Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes', Elapsed: 00:02:01
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: True) [FAIL]
       Expected 0 exit code but got -532462766: C:\helix\work\workitem\e\dotnet-latest\dotnet.exe run -c Debug --no-build
      Standard Output:
      [] WasmAppHost --use-staticwebassets --runtime-config C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\bin\Debug\net8.0\WasmBasicTestApp.runtimeconfig.json
      [] Unhandled exception. System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in use.
      []  ---> Microsoft.AspNetCore.Connections.AddressInUseException: Only one usage of each socket address (protocol/network address/port) is normally permitted.
      []  ---> System.Net.Sockets.SocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted.
      []    at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
      []    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
      []    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      []    --- End of inner exception stack trace ---
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
      [] --- End of stack trace from previous location ---
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      []    --- End of inner exception stack trace ---
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.DefaultAddressStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
      []    at Microsoft.WebAssembly.AppHost.DevServer.DevServer.StartAsync(DevServerOptions options, ILogger logger, CancellationToken token)
      []    at Microsoft.WebAssembly.AppHost.BrowserHost.StartWebServerAsync(BrowserArguments args, String[] urls, CancellationToken token)
      []    at Microsoft.WebAssembly.AppHost.BrowserHost.RunAsync(ILoggerFactory loggerFactory, CancellationToken token)
      []    at Microsoft.WebAssembly.AppHost.BrowserHost.InvokeAsync(CommonConfiguration commonArgs, ILoggerFactory loggerFactory, ILogger logger, CancellationToken token)
      []    at Microsoft.WebAssembly.AppHost.WasmAppHost.Main(String[] args)
      []    at Microsoft.WebAssembly.AppHost.WasmAppHost.<Main>(String[] args)
      
      Stack Trace:
============== DELETING THE BUILDS =============
        /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs(44,0): at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput)
        /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs(28,0): at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput)
        /_/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs(81,0): at Wasm.Build.Tests.BrowserRunner.RunAsync(ToolCommand cmd, String args, Boolean headless, Action`1 onConsoleMessage, Action`1 onError, Func`2 modifyBrowserUrl)
        /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BlazorWasmTestBase.cs(190,0): at Wasm.Build.Tests.BlazorWasmTestBase.BlazorRunTest(String runArgs, String workingDirectory, BlazorRunOptions runOptions)
        /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BlazorWasmTestBase.cs(210,0): at Wasm.Build.Tests.BlazorWasmTestBase.BlazorRunTest(String runArgs, String workingDirectory, BlazorRunOptions runOptions)
        /_/src/mono/wasm/Wasm.Build.Tests/TestAppScenarios/AppTestBase.cs(68,0): at Wasm.Build.Tests.TestAppScenarios.AppTestBase.RunSdkStyleApp(RunOptions options)
        /_/src/mono/wasm/Wasm.Build.Tests/TestAppScenarios/DownloadResourceProgressTests.cs(31,0): at Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(Boolean failAssemblyDownload)
        --- End of stack trace from previous location ---
      Output:
        
        ** -------- publish -------- **
        
        Binlog path: C:\helix\work\workitem\uploads\xharness-output\logs\DownloadResourceProgressTests_True_vmcdzba0_pme\DownloadResourceProgressTests_True_vmcdzba0_pme-publish.binlog
        [] Executing (Captured Output) - C:\helix\work\workitem\e\dotnet-latest\dotnet.exe publish -bl:C:\helix\work\workitem\uploads\xharness-output\logs\DownloadResourceProgressTests_True_vmcdzba0_pme\DownloadResourceProgressTests_True_vmcdzba0_pme-publish.binlog -p:Configuration=Debug -nr:false /warnaserror -p:BlazorEnableCompression=false   -  in pwd C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme
        	[DOTNET_ROOT] = C:\helix\work\workitem\e\dotnet-latest
        	[DOTNET_INSTALL_DIR] = C:\helix\work\workitem\e\dotnet-latest
        	[DOTNET_MULTILEVEL_LOOKUP] = 0
        	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
        	[PATH] = C:\helix\work\workitem\e\dotnet-latest;C:\helix\work\workitem\e\\dotnet-latest;D:\a\_work\1\s\artifacts\bin\chromedriver\chromedriver_win32;C:\helix\work\correlation\dotnet-latest;C:\helix\work\correlation\xharness-cli;C:\helix\work\correlation\dotnet-cli;C:\helix\work\correlation\chrome-win;C:\helix\work\correlation\chromedriver_win32;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\ContainerAdministrator\AppData\Local\Microsoft\WindowsApps;C:\Python;C:\python\scripts;C:\Program Files\nodejs\;C:\7z;C:\git\cmd;C:\Users\ContainerAdministrator\AppData\Roaming\npm;C:\Users\ContainerAdministrator\.jsvu\bin
        	[EM_WORKAROUND_PYTHON_BUG_34780] = 1
        	[NUGET_PACKAGES] = C:\helix\work\workitem\e\wbt\nuget\DownloadResourceProgressTests_True_vmcdzba0_pme
        [] MSBuild version 17.7.0+5785ed5c2 for .NET
        []   Determining projects to restore...
        []   Restored C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\WasmBasicTestApp.csproj (in 2.54 sec).
        [] C:\helix\work\workitem\e\dotnet-latest\sdk\8.0.100-rc.1.23415.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\WasmBasicTestApp.csproj]
        []   WasmBasicTestApp -> C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\bin\Debug\net8.0\WasmBasicTestApp.dll
        []   ** MicrosoftNetCoreAppRuntimePackDir : 'C:\helix\work\workitem\e\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.0-ci'
        []   WasmBasicTestApp -> C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\bin\Debug\net8.0\publish\
        [] 
        [] Workload updates are available. Run `dotnet workload list` for more information.
        [] Executing - C:\helix\work\workitem\e\dotnet-latest\dotnet.exe run -c Debug --no-build  in pwd C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme
        	[DOTNET_ROOT] = C:\helix\work\workitem\e\dotnet-latest
        	[DOTNET_INSTALL_DIR] = C:\helix\work\workitem\e\dotnet-latest
        	[DOTNET_MULTILEVEL_LOOKUP] = 0
        	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
        	[PATH] = C:\helix\work\workitem\e\dotnet-latest;C:\helix\work\workitem\e\\dotnet-latest;D:\a\_work\1\s\artifacts\bin\chromedriver\chromedriver_win32;C:\helix\work\correlation\dotnet-latest;C:\helix\work\correlation\xharness-cli;C:\helix\work\correlation\dotnet-cli;C:\helix\work\correlation\chrome-win;C:\helix\work\correlation\chromedriver_win32;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\ContainerAdministrator\AppData\Local\Microsoft\WindowsApps;C:\Python;C:\python\scripts;C:\Program Files\nodejs\;C:\7z;C:\git\cmd;C:\Users\ContainerAdministrator\AppData\Roaming\npm;C:\Users\ContainerAdministrator\.jsvu\bin
        	[EM_WORKAROUND_PYTHON_BUG_34780] = 1
        [] WasmAppHost --use-staticwebassets --runtime-config C:\helix\work\workitem\e\wbt\DownloadResourceProgressTests_True_vmcdzba0_pme\bin\Debug\net8.0\WasmBasicTestApp.runtimeconfig.json
        [] Unhandled exception. System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in use.
        []  ---> Microsoft.AspNetCore.Connections.AddressInUseException: Only one usage of each socket address (protocol/network address/port) is normally permitted.
        []  ---> System.Net.Sockets.SocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted.
        []    at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
        []    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
        []    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
        []    --- End of inner exception stack trace ---
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
        [] --- End of stack trace from previous location ---
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
        []    --- End of inner exception stack trace ---
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.DefaultAddressStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
        []    at Microsoft.WebAssembly.AppHost.DevServer.DevServer.StartAsync(DevServerOptions options, ILogger logger, CancellationToken token)
        []    at Microsoft.WebAssembly.AppHost.BrowserHost.StartWebServerAsync(BrowserArguments args, String[] urls, CancellationToken token)
        []    at Microsoft.WebAssembly.AppHost.BrowserHost.RunAsync(ILoggerFactory loggerFactory, CancellationToken token)
        []    at Microsoft.WebAssembly.AppHost.BrowserHost.InvokeAsync(CommonConfiguration commonArgs, ILoggerFactory loggerFactory, ILogger logger, CancellationToken token)
        []    at Microsoft.WebAssembly.AppHost.WasmAppHost.Main(String[] args)
        []    at Microsoft.WebAssembly.AppHost.WasmAppHost.<Main>(String[] args)
    Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.DownloadProgressFinishes(failAssemblyDownload: True) [FINISHED] Time: 72.710017s
  Finished:    Wasm.Build.Tests
=== TEST EXECUTION SUMMARY ===
   Wasm.Build.Tests  Total: 2, Errors: 0, Failed: 1, Skipped: 0, Time: 192.874s
Author: carlossanlop
Assignees: -
Labels:

arch-wasm, os-windows, blocking-clean-ci, untriaged, Known Build Error

Milestone: -

@maraf maraf self-assigned this Sep 20, 2023
@maraf maraf added this to the 9.0.0 milestone Sep 20, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Sep 20, 2023
@carlossanlop
Copy link
Member Author

carlossanlop commented Sep 21, 2023

@maraf I found a very similar failure in 8.0. Is it the same root cause as the one initially reported in this issue? This one was reported for windows, while the one I just found happens in linux:

Output (expand)
    Wasm.Build.Tests.Blazor.WorkloadRequiredTests.WorkloadNotRequiredForInvariantGlobalization(config: "Release", invariant: False, publish: False) [FAIL]
       Expected 0 exit code but got 134: /root/helix/work/workitem/e/dotnet-none/dotnet run -c Release --no-build
      Standard Output:
      [] fail: Microsoft.Extensions.Hosting.Internal.Host[11]
      []       Hosting failed to start
      []       System.IO.IOException: Failed to bind to address http://127.0.0.1:5145: address already in use.
      []        ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
      []        ---> System.Net.Sockets.SocketException (98): Address already in use
      []          at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
      []          at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
      []          at System.Net.Sockets.Socket.Bind(EndPoint localEP)
      []          at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
      []          at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      []          --- End of inner exception stack trace ---
      []          at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      []          at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
      []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
      []          at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
      []       --- End of stack trace from previous location ---
      []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      []          --- End of inner exception stack trace ---
      []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      []          at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
      []          at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
      []          at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
      []          at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
      []          at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
      []          at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
      [] Unhandled exception. System.IO.IOException: Failed to bind to address http://127.0.0.1:5145: address already in use.
      []  ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
      []  ---> System.Net.Sockets.SocketException (98): Address already in use
      []    at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
      []    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
      []    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      []    --- End of inner exception stack trace ---
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
      [] --- End of stack trace from previous location ---
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      []    --- End of inner exception stack trace ---
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
      []    at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
      []    at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
      []    at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
      []    at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
      []    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
      []    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
      []    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
      []    at Microsoft.AspNetCore.Components.WebAssembly.DevServer.Program.Main(String[] args)
      
      Stack Trace:
        /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs(44,0): at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput)
        /_/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs(81,0): at Wasm.Build.Tests.BrowserRunner.RunAsync(ToolCommand cmd, String args, Boolean headless, Action`1 onConsoleMessage, Action`1 onError, Func`2 modifyBrowserUrl)
        /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BlazorWasmTestBase.cs(190,0): at Wasm.Build.Tests.BlazorWasmTestBase.BlazorRunTest(String runArgs, String workingDirectory, BlazorRunOptions runOptions)
        /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BlazorWasmTestBase.cs(210,0): at Wasm.Build.Tests.BlazorWasmTestBase.BlazorRunTest(String runArgs, String workingDirectory, BlazorRunOptions runOptions)
        /_/src/mono/wasm/Wasm.Build.Tests/Blazor/WorkloadRequiredTests.cs(120,0): at Wasm.Build.Tests.Blazor.WorkloadRequiredTests.WorkloadNotRequiredForInvariantGlobalization(String config, Boolean invariant, Boolean publish)
        --- End of stack trace from previous location ---
      Output:
        [] Executing (Captured Output) - /root/helix/work/workitem/e/dotnet-none/dotnet new blazorwasm  -  in pwd /root/helix/work/workitem/e/wbt/props_req_workload_build_ljp2cd1e_hub
        [] The template "Blazor WebAssembly App" was created successfully.
        [] This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/8.0-third-party-notices for details.
        [] 
        [] Processing post-creation actions...
        [] Restoring /root/helix/work/workitem/e/wbt/props_req_workload_build_ljp2cd1e_hub/props_req_workload_build_ljp2cd1e_hub.csproj:
        []   Determining projects to restore...
        []   Restored /root/helix/work/workitem/e/wbt/props_req_workload_build_ljp2cd1e_hub/props_req_workload_build_ljp2cd1e_hub.csproj (in 632 ms).
        [] Restore succeeded.
        [] 
        [] 
        Updated counter.razor: @page "/counter"
        
        <PageTitle>Counter</PageTitle>
        
        <h1>Counter</h1>
        
        <p role="status">Current count: @currentCount</p>
        
        <button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
        
        @code {
            private int currentCount = 0;
        
            private void IncrementCount()
            {
                currentCount++;
        TestInvariantCulture();
            }
        }
        @code {
            public int TestInvariantCulture()
            {
                // https://github.com/dotnet/runtime/blob/main/docs/design/features/globalization-invariant-mode.md#cultures-and-culture-data
                try
                {
                    System.Globalization.CultureInfo culture = new ("es-ES", false);
                    System.Console.WriteLine($"es-ES: Is-LCID-InvariantCulture: {culture.LCID == System.Globalization.CultureInfo.InvariantCulture.LCID}, NativeName: {culture.NativeName}");
                }
                catch (System.Globalization.CultureNotFoundException cnfe)
                {
                    System.Console.WriteLine($"Could not create es-ES culture: {cnfe.Message}");
                }
        
                System.Console.WriteLine($"CurrentCulture.NativeName: {System.Globalization.CultureInfo.CurrentCulture.NativeName}");
                return 42;
            }
        }
        
        ** -------- build -------- **
        
        Binlog path: /root/helix/work/workitem/uploads/xharness-output/logs/props_req_workload_build_ljp2cd1e_hub/props_req_workload_build_ljp2cd1e_hub-build.binlog
        [] Executing (Captured Output) - /root/helix/work/workitem/e/dotnet-none/dotnet build -bl:/root/helix/work/workitem/uploads/xharness-output/logs/props_req_workload_build_ljp2cd1e_hub/props_req_workload_build_ljp2cd1e_hub-build.binlog -p:Configuration=Release -nr:false /warnaserror -p:BlazorEnableCompression=false   -  in pwd /root/helix/work/workitem/e/wbt/props_req_workload_build_ljp2cd1e_hub
        	[DOTNET_ROOT] = /root/helix/work/workitem/e/dotnet-none
        	[DOTNET_INSTALL_DIR] = /root/helix/work/workitem/e/dotnet-none
        	[DOTNET_MULTILEVEL_LOOKUP] = 0
        	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
        	[PATH] = /root/helix/work/workitem/e/dotnet-none:./dotnet-none:/__w/1/s/artifacts/bin/chromedriver/chromedriver_linux64:/root/helix/work/correlation/dotnet-none:/root/helix/work/correlation/xharness-cli:/root/helix/work/correlation/dotnet-cli:/root/helix/work/correlation/chrome-linux:/root/helix/work/correlation/chromedriver_linux64:/home/helixbot/.jsvu/bin:/home/helixbot/node-v16.19.0-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        	[EM_WORKAROUND_PYTHON_BUG_34780] = 1
        	[NUGET_PACKAGES] = /root/helix/work/workitem/e/wbt/nuget/props_req_workload_build_ljp2cd1e_hub
        [] MSBuild version 17.7.0+5785ed5c2 for .NET
        []   Determining projects to restore...
        []   Restored /root/helix/work/workitem/e/wbt/props_req_workload_build_ljp2cd1e_hub/props_req_workload_build_ljp2cd1e_hub.csproj (in 3.63 sec).
        [] /root/helix/work/workitem/e/dotnet-none/sdk/8.0.100-rc.1.23415.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/helix/work/workitem/e/wbt/props_req_workload_build_ljp2cd1e_hub/props_req_workload_build_ljp2cd1e_hub.csproj]
        []   props_req_workload_build_ljp2cd1e_hub -> /root/helix/work/workitem/e/wbt/props_req_workload_build_ljp2cd1e_hub/bin/Release/net8.0/props_req_workload_build_ljp2cd1e_hub.dll
        []   props_req_workload_build_ljp2cd1e_hub (Blazor output) -> /root/helix/work/workitem/e/wbt/props_req_workload_build_ljp2cd1e_hub/bin/Release/net8.0/wwwroot
        []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/wbt/nuget/props_req_workload_build_ljp2cd1e_hub/microsoft.netcore.app.runtime.mono.browser-wasm/8.0.0-ci'
        [] 
        [] Build succeeded.
        []     0 Warning(s)
        []     0 Error(s)
        [] 
        [] Time Elapsed 00:00:11.98
        [] Executing - /root/helix/work/workitem/e/dotnet-none/dotnet run -c Release --no-build  in pwd /root/helix/work/workitem/e/wbt/props_req_workload_build_ljp2cd1e_hub
        	[DOTNET_ROOT] = /root/helix/work/workitem/e/dotnet-none
        	[DOTNET_INSTALL_DIR] = /root/helix/work/workitem/e/dotnet-none
        	[DOTNET_MULTILEVEL_LOOKUP] = 0
        	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
        	[PATH] = /root/helix/work/workitem/e/dotnet-none:./dotnet-none:/__w/1/s/artifacts/bin/chromedriver/chromedriver_linux64:/root/helix/work/correlation/dotnet-none:/root/helix/work/correlation/xharness-cli:/root/helix/work/correlation/dotnet-cli:/root/helix/work/correlation/chrome-linux:/root/helix/work/correlation/chromedriver_linux64:/home/helixbot/.jsvu/bin:/home/helixbot/node-v16.19.0-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        	[EM_WORKAROUND_PYTHON_BUG_34780] = 1
        [] fail: Microsoft.Extensions.Hosting.Internal.Host[11]
        []       Hosting failed to start
        []       System.IO.IOException: Failed to bind to address http://127.0.0.1:5145: address already in use.
        []        ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
        []        ---> System.Net.Sockets.SocketException (98): Address already in use
        []          at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
        []          at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
        []          at System.Net.Sockets.Socket.Bind(EndPoint localEP)
        []          at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
        []          at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
        []          --- End of inner exception stack trace ---
        []          at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
        []          at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
        []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
        []          at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
        []       --- End of stack trace from previous location ---
        []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
        []          --- End of inner exception stack trace ---
        []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
        []          at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
        []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
        []          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
        []          at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
        []          at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
        []          at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
        []          at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
        []          at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
        [] Unhandled exception. System.IO.IOException: Failed to bind to address http://127.0.0.1:5145: address already in use.
        []  ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
        []  ---> System.Net.Sockets.SocketException (98): Address already in use
        []    at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
        []    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
        []    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
        []    --- End of inner exception stack trace ---
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
        []    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
        [] --- End of stack trace from previous location ---
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
        []    --- End of inner exception stack trace ---
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
        []    at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
        []    at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
        []    at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
        []    at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
        []    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
        []    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
        []    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
        []    at Microsoft.AspNetCore.Components.WebAssembly.DevServer.Program.Main(String[] args)

@maraf
Copy link
Member

maraf commented Sep 22, 2023

Yes, different test, but the same root cause.

@radical
Copy link
Member

radical commented Sep 22, 2023

Looks like some previous test did not end the process correctly, or dotnet was still running?

@MihaZupan MihaZupan removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 25, 2023
@radical
Copy link
Member

radical commented Oct 6, 2023

Fixed by #92906 .

@radical radical closed this as completed Oct 6, 2023
@radical radical removed 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 Oct 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Nov 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants