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

[WebToolsE2E][Aspire] After running AspireAzureFunctionsSample, the dashboard shows FailedToStart and CMD shows timeout #7033

Open
v-reinawang opened this issue Jan 7, 2025 · 3 comments
Labels
area-integrations Issues pertaining to Aspire Integrations packages azure Issues associated specifically with scenarios tied to using Azure azure-functions Issues related to the Azure Functions integration untriaged New issue has not been triaged

Comments

@v-reinawang
Copy link

v-reinawang commented Jan 7, 2025

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install Dev17.13 Preview 2.1 [include sdk 9.0.200-preview.0.24575.35]
  3. Install Aspire 9.1.0-preview.1.25056.2
  4. Install Docker desktop [4.37.1]
  5. Install Git [2.47.1.windows.1]

REPRO STEPS

  1. Clone AspireAzureFunctionsSample repo
  2. Update the SDK version in the global.json file to 9.0.200-preview.0.24575.35
  3. Update all Aspire packages to Aspire 9.1.0-preview.1.25056.2
  4. Update the serviceBus part of the Program.cs file of AzureFunctionsTest.AppHost to the following code:
    var serviceBus = builder.AddAzureServiceBus("messaging").RunAsEmulator().WithQueue("myqueue");
  5. Build and run

NOTE:

  1. After cloning the repo, run it directly (Aspire version is 9.0.0-rc.1.24511.1), and this issue will also be reproduced.
  2. Set DCP_IDE_REQUEST_TIMEOUT_SECONDS=240 according to the error message. This issue will also be reproduced.

ACTUAL
The dashboard shows FailedToStart and CMD shows timeout
Image

Image
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds) {"Executable": {"name":"storage-funcapp-fxsxgdep"}, "Reconciliation": 5, "error": "Put "https://localhost:49570/run_session?api-version=2024-04-23\": context deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds) {"Executable": {"name":"apiservice-hwwwxzmm"}, "Reconciliation": 6, "error": "Put "https://localhost:49570/run_session?api-version=2024-04-23\": context deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds) {"Executable": {"name":"http-funcapp-cwrdsftn"}, "Reconciliation": 7, "error": "Put "https://localhost:49570/run_session?api-version=2024-04-23\": context deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds) {"Executable": {"name":"funcapp-dyawzbug"}, "Reconciliation": 8, "error": "Put "https://localhost:49570/run_session?api-version=2024-04-23\": context deadline exceeded"}

EXPECTED
Can run successfully

@joperezr joperezr added the untriaged New issue has not been triaged label Jan 7, 2025
@captainsafia captainsafia added area-integrations Issues pertaining to Aspire Integrations packages azure Issues associated specifically with scenarios tied to using Azure azure-functions Issues related to the Azure Functions integration labels Jan 7, 2025
@captainsafia
Copy link
Member

@v-reinawang Thanks for filing this issue!

What are the log outputs that you see when in the Functions projects? I believe you might be running into a regression in the Azure Functions Core Tools that prevents the target runtime from being detected correctly by the host.

@v-reinawang
Copy link
Author

@captainsafia There is no information in the Console logs of these function projects.

@bradygaster
Copy link
Member

cc @fabiocav fyi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-integrations Issues pertaining to Aspire Integrations packages azure Issues associated specifically with scenarios tied to using Azure azure-functions Issues related to the Azure Functions integration untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

4 participants