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] [Unstable] When running aspire application, we sometimes see KubeConfigException : kubeconfig file not found when the host is trying to start up #2542

Closed
balachir opened this issue Feb 29, 2024 · 5 comments

Comments

@balachir
Copy link

REPRO STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install VS 17.10 Preview 1 (includes Aspire 8.0 P3)
  3. Open VS > New Aspire Starter Application > AspireStarterApp2 > Build and Ctrl+F5 > works fine
  4. Update to VS 17.10 Preview 2 (includes Aspire 8.0 P4 version 8.0.0-preview.4.24128.4) + Apply feeds
  5. Open VS > open AspireStarterApp2, build and Ctrl+F5 again

ACTUAL
Hosting failed to start - kubeconfig file not found
image

Workaround: Close the VS debug console window, build and ctrl+F5 again, and it works fine

EXPECTED
No error in VS debug console when we do Ctrl+F5

@balachir
Copy link
Author

@karolz-ms @davidfowl , I've run into this issue a couple of times this week. So I went ahead and filed an issue but the repro is unstable and hard to reproduce consistently. I set the milestone as preview 4 in case the cause is something obvious, but we can move it out to P5 if needed. The workaround is simply to run it again.

@davidfowl
Copy link
Member

davidfowl commented Feb 29, 2024

I'll be in preview5 for sure. I've seen it too.

@karolz-ms
Copy link
Member

This should be fixed (in Aspire P5) by #2435 Please re-open if you still see this issue.

@davidfowl
Copy link
Member

@karolz-ms is it?

@karolz-ms
Copy link
Member

karolz-ms commented Mar 2, 2024

@davidfowl I have good reasons to believe it did because I have finally realized what is causing this pattern:

  1. older version of DCP --> works
  2. install new version --> first run cannot reach DCP (timeout in ExecuteWithRetry which is part of Aspire.Hosting DCP client)
  3. subsequent runs --> work

The answer is: this is caused by "advanced threat protection" antivirus software. On my dev machine it can take close to 10 seconds for the AV to scan new version of DCP binaries. DCP won't launch until the scan is finished.

The old code in DCP hosting client had a timeout of 5 seconds. The PR bumps it up to 20 seconds. Only first ever ("arctic") run is affected. This is why it is so hard to reproduce this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants