You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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
@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 I have good reasons to believe it did because I have finally realized what is causing this pattern:
older version of DCP --> works
install new version --> first run cannot reach DCP (timeout in ExecuteWithRetry which is part of Aspire.Hosting DCP client)
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.
REPRO STEPS
ACTUAL
Hosting failed to start - kubeconfig file not found
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
The text was updated successfully, but these errors were encountered: