Going through this eShop Aspire Workshop lab but can’t seem to get it to work.
Console output:
info: Aspire.Hosting.DistributedApplication[0] Aspire version: 8.1.0+d304c5f6f15bcd4f34f1841b33870cfab88e6937 info: Aspire.Hosting.DistributedApplication[0] Distributed application starting. info: Aspire.Hosting.DistributedApplication[0] Application host directory is: C:Source Codeeshop-app-aspirelabs1-Create-Catalog-APIsrceShop.AppHost crit: Aspire.Hosting.Dcp.ApplicationExecutor[0] **Watch task over Kubernetes Endpoint resources terminated unexpectedly. Check to ensure dcpd process is running. System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: The remote certificate was rejected by the provided RemoteCertificateValidationCallback.** at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp2ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation
1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at k8s.Kubernetes.SendRequestRaw(String requestContent, HttpRequestMessage httpRequest, CancellationToken cancellationToken)
at k8s.AbstractKubernetes.ICustomObjectsOperations_ListClusterCustomObjectWithHttpMessagesAsync[T](String group, String version, String plural, Nullable1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable
1 limit, String resourceVersion, String resourceVersionMatch, Nullable1 timeoutSeconds, Nullable
1 watch, Nullable1 pretty, IReadOnlyDictionary
2 customHeaders, CancellationToken cancellationToken)
at k8s.AbstractKubernetes.k8s.ICustomObjectsOperations.ListClusterCustomObjectWithHttpMessagesAsync(String group, String version, String plural, Nullable1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable
1 limit, String resourceVersion, String resourceVersionMatch, Nullable1 timeoutSeconds, Nullable
1 watch, Nullable1 pretty, IReadOnlyDictionary
2 customHeaders, CancellationToken cancellationToken)
at k8s.WatcherExt.<>c__DisplayClass1_02.<<MakeStreamReaderCreator>b__0>d.MoveNext() --- End of stack trace from previous location --- at k8s.Watcher
1.<>c.b__21_1[TR](Task1 t) at System.Threading.Tasks.ContinuationResultTaskFromResultTask
2.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
— End of stack trace from previous location —
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
— End of stack trace from previous location —
at k8s.Watcher1.CreateWatchEventEnumerator(Func
1 streamReaderCreator, Action1 onError, CancellationToken cancellationToken)+MoveNext() at k8s.Watcher
1.CreateWatchEventEnumerator(Func1 streamReaderCreator, Action
1 onError, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at Aspire.Hosting.Dcp.KubernetesService.WatchAsync[T](String namespaceParameter, CancellationToken cancellationToken)+MoveNext() in //src/Aspire.Hosting/Dcp/KubernetesService.cs:line 216
at Aspire.Hosting.Dcp.KubernetesService.WatchAsync[T](String namespaceParameter, CancellationToken cancellationToken)+MoveNext() in //src/Aspire.Hosting/Dcp/KubernetesService.cs:line 216
at Aspire.Hosting.Dcp.KubernetesService.WatchAsync[T](String namespaceParameter, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at Aspire.Hosting.Dcp.ApplicationExecutor.<>c__DisplayClass37_11.<<WatchResourceChanges>b__10>d.MoveNext() in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 327 --- End of stack trace from previous location --- at Aspire.Hosting.Dcp.ApplicationExecutor.<>c__DisplayClass37_1
1.<b__10>d.MoveNext() in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 327
— End of stack trace from previous location —
at Polly.ResiliencePipeline.<>c.<b__3_0>d.MoveNext()
— End of stack trace from previous location —
at Polly.Outcome1.GetResultOrRethrow() at Polly.ResiliencePipeline.ExecuteAsync(Func
2 callback, CancellationToken cancellationToken)
at Aspire.Hosting.Dcp.ApplicationExecutor.<>c__DisplayClass37_0.<g__WatchKubernetesResourceAsync|3>d1.MoveNext() in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 325
I tried searching through the github’s repo for similar issues but none of them concerned remote certificates being invalidated. I have Docker Desktop installed and Kubernetes is started and healthy as far as I know. I am on Aspire workload 8.1.
PrimedPaul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.