Skip to content

Hang on building image webfrontend #15484

@tonyqus

Description

@tonyqus

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I followed this tutorial to create my first aspire project. Docker compose is added.

However, when I run aspire deploy -d. It hangs while building webfrontend image. The issue looks similar to #9233.

There is no further debugging info after Building image: webfrontend. This makes me impossible to debug. If it's docker-compose, there must be some error message shown. Aspire doesn't show anything further.

I'm in China (with national firewall). How does Aspire work inside to build the image? Do I need to enable proxy for Aspire somewhere?

Expected Behavior

There is no hang while building the webfrontend image

Steps To Reproduce

run aspire deploy -d

Exceptions (if any)

No response

.NET Version info

10.0.201

Anything else?

Aspire version: 13.1.3
IDE: Rider
Docker Destkop installed.

[22:28:03] [dbug] DotNetCliRunner: dotnet(10260) stdout: AspireApp.ServiceDefaults -> D:\playground\aspire\AspireApp\AspireApp.ServiceDefaults\bin\Debug\net10.0\AspireApp.ServiceDefaults.dll
[22:28:04] [dbug] DotNetCliRunner: dotnet(10260) stdout: AspireApp.ApiService -> D:\playground\aspire\AspireApp\AspireApp.ApiService\bin\Debug\net10.0\AspireApp.ApiService.dll
[22:28:04] [dbug] DotNetCliRunner: dotnet(10260) stdout: AspireApp.Web -> D:\playground\aspire\AspireApp\AspireApp.Web\bin\Debug\net10.0\AspireApp.Web.dll
[22:28:04] [dbug] DotNetCliRunner: dotnet(10260) stdout: AspireApp.AppHost -> D:\playground\aspire\AspireApp\AspireApp.AppHost\bin\Debug\net10.0\AspireApp.AppHost.dll
[22:28:04] [dbug] DotNetCliRunner: dotnet(10260) stdout:
[22:28:04] [dbug] DotNetCliRunner: dotnet(10260) stdout: 已成功生成。
[22:28:04] [dbug] DotNetCliRunner: dotnet(10260) stdout: 0 个警告
[22:28:04] [dbug] DotNetCliRunner: dotnet(10260) stdout: 0 个错误
[22:28:04] [dbug] DotNetCliRunner: dotnet(10260) stdout:
[22:28:04] [dbug] DotNetCliRunner: dotnet(10260) stdout: 已用时间 00:00:02.91
[22:28:04] [dbug] DotNetCliRunner: dotnet process with PID: 10260 has exited with code: 0
[22:28:04] [dbug] DotNetCliRunner: Running dotnet with args: run --no-build --no-launch-profile --project D:\playground\aspire\AspireApp\AspireApp.AppHost\AspireApp.AppHost.csproj -- --operation publish --step deploy
[22:28:04] [dbug] DotNetCliRunner: Starting backchannel connection to AppHost at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:04] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:04] [dbug] DotNetCliRunner: Started dotnet with PID: 21484
[22:28:04] [dbug] DotNetCliRunner: Waiting for dotnet process to exit with PID: 21484
[22:28:04] [dbug] DotNetCliRunner: Starting to forward stream with identifier 'stdout' on process '21484' to logger
[22:28:04] [dbug] DotNetCliRunner: Starting to forward stream with identifier 'stderr' on process '21484' to logger
🛠 Executing step deploy
[22:28:04] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:04] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:04] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:04] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:04] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:04] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:04] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:04] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: info: Aspire.Hosting.Docker.DockerComposeInfrastructure[0]
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: Creating Docker Compose resource for env-dashboard
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: info: Aspire.Hosting.Docker.DockerComposeInfrastructure[0]
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: Creating Docker Compose resource for apiservice
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: info: Aspire.Hosting.Docker.DockerComposeInfrastructure[0]
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: Creating Docker Compose resource for webfrontend
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: info: Aspire.Hosting.DistributedApplication[0]
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: Aspire version: 13.1.3+1a4acf7da09a01ca4312f0dd6e6b72965a15e889
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Connected to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: info: Aspire.Hosting.Publishing.PipelineExecutor[807050189]
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: Generating Compose output
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: info: Aspire.Hosting.Publishing.PipelineExecutor[0]
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: Initializing deployment for environment 'Production'
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: info: Aspire.Hosting.Publishing.PipelineExecutor[0]
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: Setting default deploy tag 'aspire-deploy-20260322142805' for compute resource(s).
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: info: Aspire.Hosting.Publishing.ResourceContainerImageManager[0]
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: Building container image for resource apiservice
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: info:
Aspire.Hosting.Publishing.ResourceContainerImageManager[0]
[22:28:05] [dbug] DotNetCliRunner: dotnet(21484) stdout: Building container image for resource webfrontend
[22:28:05] [dbug] AppHostCliBackchannel: Requesting publishing activities.
[22:28:05] [dbug] DotNetCliRunner: Connected to AppHost backchannel at C:\Users\tonyq.aspire\cli\backchannels\cli.sock.442ef33b17c94ed0a19a2ed4f4558184
[22:28:05] [dbug] AppHostCliBackchannel: Received publishing activities.
[DEBUG] Step 1: pipeline-execution
[DEBUG] Step 2: publish-env
[DEBUG] Step 3: process-parameters
[DEBUG] Step 4: push-prereq
[DEBUG] Step 7c06ebcd-27ac-4d45-b194-18be9e7e9bba: COMPLETED - push-prereq completed successfully
[14:28:05] [INF] Generating Compose output
[DEBUG] Step 32af3eee-fbfc-4509-a9fe-24974320ab61: COMPLETED - process-parameters completed successfully
[DEBUG] Step 5: deploy-prereq
[DEBUG] Step 6: build-prereq
[DEBUG] Step 97c93ac9-1dcf-4962-992f-2ceea03d430d: COMPLETED - build-prereq completed successfully
[14:28:05] [INF] Initializing deployment for environment 'Production'
[14:28:05] [INF] Setting default deploy tag 'aspire-deploy-20260322142805' for compute resource(s).
[DEBUG] Step 9c58ffa1-2675-4421-bea2-0e8fb5b803f4: COMPLETED - deploy-prereq completed successfully
[DEBUG] Step 7: build-apiservice
[DEBUG] Step 8: build-webfrontend
[DEBUG] Task cebc0d83-ed4a-4f15-becc-04352299b329 (0d65d62f-b26f-49b4-9c6f-f1be1dc76e9f): Writing the Docker Compose file to the output path.
[14:28:05] [INF] Building container image for resource apiservice
[14:28:05] [INF] Building container image for resource webfrontend
[DEBUG] Task cebc0d83-ed4a-4f15-becc-04352299b329 (0d65d62f-b26f-49b4-9c6f-f1be1dc76e9f): COMPLETED - Writing the Docker Compose file to the output path.
[DEBUG] Docker Compose file written successfully to D:\playground\aspire\AspireApp\AspireApp.AppHost\aspire-output\docker-compose.yaml.
[DEBUG] Step 0d65d62f-b26f-49b4-9c6f-f1be1dc76e9f: COMPLETED - publish-env completed successfully
[DEBUG] Step 9: publish
[DEBUG] Step 6289fb2c-9e89-48b8-8fb5-dff713d5f07a: COMPLETED - publish completed successfully
[22:28:06] [dbug] DotNetCliRunner: dotnet(21484) stdout: info: Aspire.Hosting.Publishing.ResourceContainerImageManager[0]
[22:28:06] [dbug] DotNetCliRunner: dotnet(21484) stdout: Building image: webfrontend
[14:28:06] [INF] Building image: webfrontend

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions