Skip to content

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

Description

@carlossanlop

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions