Skip to content

[8.0] [wasm] WorkloadNotRequiredForInvariantGlobalization timeout waiting for web server url #91143

@carlossanlop

Description

@carlossanlop

Error Blob

Tagging this for KnownBuildError in case it's happening consistently and we need to fix this in 8.0.

Reproduction Steps

    Wasm.Build.Tests.Blazor.WorkloadRequiredTests.WorkloadNotRequiredForInvariantGlobalization(config: "Debug", invariant: True, publish: False) [FAIL]
      System.Exception : Timed out waiting for the web server url
      Stack Trace:
        /_/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs(86,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_de5ndmlg_kcp
        [] 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_de5ndmlg_kcp/props_req_workload_build_de5ndmlg_kcp.csproj:
        []   Determining projects to restore...
        []   Restored /root/helix/work/workitem/e/wbt/props_req_workload_build_de5ndmlg_kcp/props_req_workload_build_de5ndmlg_kcp.csproj (in 6.98 sec).
        [] 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_de5ndmlg_kcp/props_req_workload_build_de5ndmlg_kcp-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_de5ndmlg_kcp/props_req_workload_build_de5ndmlg_kcp-build.binlog -p:Configuration=Debug -nr:false /warnaserror -p:BlazorEnableCompression=false   -  in pwd /root/helix/work/workitem/e/wbt/props_req_workload_build_de5ndmlg_kcp
        	[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_de5ndmlg_kcp
        [] MSBuild version 17.7.0+5785ed5c2 for .NET
        []   Determining projects to restore...
        []   Restored /root/helix/work/workitem/e/wbt/props_req_workload_build_de5ndmlg_kcp/props_req_workload_build_de5ndmlg_kcp.csproj (in 3.83 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_de5ndmlg_kcp/props_req_workload_build_de5ndmlg_kcp.csproj]
        []   props_req_workload_build_de5ndmlg_kcp -> /root/helix/work/workitem/e/wbt/props_req_workload_build_de5ndmlg_kcp/bin/Debug/net8.0/props_req_workload_build_de5ndmlg_kcp.dll
        []   props_req_workload_build_de5ndmlg_kcp (Blazor output) -> /root/helix/work/workitem/e/wbt/props_req_workload_build_de5ndmlg_kcp/bin/Debug/net8.0/wwwroot
        []   ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/wbt/nuget/props_req_workload_build_de5ndmlg_kcp/microsoft.netcore.app.runtime.mono.browser-wasm/8.0.0-ci'
        [] 
        [] Build succeeded.
        []     0 Warning(s)
        []     0 Error(s)
        [] 
        [] Time Elapsed 00:00:17.67
        [] Executing - /root/helix/work/workitem/e/dotnet-none/dotnet run -c Debug --no-build  in pwd /root/helix/work/workitem/e/wbt/props_req_workload_build_de5ndmlg_kcp
        	[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:5175: 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:5175: 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)

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=421412&view=results
Error message validated: System.IO.IOException: Failed to bind to address http://127.0.0.1:5000
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/2/2023 9:30:07 PM UTC

Report

Build Definition Test Pull Request
425414 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.WorkItemExecution #92637
425025 dotnet/runtime Workloads-Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.WorkItemExecution #92904
425004 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.TestAppScenarios.AppSettingsTests.WorkItemExecution #92503
423529 dotnet/runtime Workloads-Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.WorkItemExecution
422409 dotnet/runtime Wasm.Build.Tests.Blazor.WorkloadRequiredTests.WorkloadNotRequiredForInvariantGlobalization #91633
421412 dotnet/runtime Workloads-Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.WorkItemExecution
421371 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.WorkItemExecution #92745
421097 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.TestAppScenarios.LazyLoadingTests.WorkItemExecution #92702
420785 dotnet/runtime Workloads-Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.WorkItemExecution #88479
417062 dotnet/runtime Wasm.Build.Tests.Blazor.BuildPublishTests.DefaultTemplate_WithoutWorkload #92489
416040 dotnet/runtime Workloads-Wasm.Build.Tests.TestAppScenarios.LazyLoadingTests.WorkItemExecution #92406
414888 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.Blazor.IcuTests.WorkItemExecution
414729 dotnet/runtime Workloads-Wasm.Build.Tests.TestAppScenarios.AppSettingsTests.WorkItemExecution #92401
414506 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests.WorkItemExecution #92280
413445 dotnet/runtime Wasm.Build.Tests.Blazor.WorkloadRequiredTests.WorkloadNotRequiredForInvariantGlobalization
411591 dotnet/runtime Workloads-Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.WorkItemExecution #92277
411449 dotnet/runtime Wasm.Build.Tests.Blazor.BuildPublishTests.DefaultTemplate_WithoutWorkload #92057
408123 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.WasmTemplateTests.WorkItemExecution #92143
404027 dotnet/runtime Workloads-Wasm.Build.Tests.TestAppScenarios.DownloadResourceProgressTests.WorkItemExecution #91913
400499 dotnet/runtime Wasm.Build.Tests.TestAppScenarios.LazyLoadingTests.LoadLazyAssemblyBeforeItIsNeeded #91482

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 4 20

Known Issue Error Message

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

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "System.IO.IOException: Failed to bind to address http://127.0.0.1:5000",
  "ExcludeConsoleLog": false
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions