ohadschn/letsencrypt-webapp-renewer

OhadSoft.AzureLetsEncrypt.Renewal.WebJob run fail

ehubcap opened this issue · 2 comments

The renewer was working fine since 2 years ago, it was a case of setting it and forget.
Now... with the phasing of acme-v01.api for the acme-v02.api, I'm struggling mightily with a seemingly easy setup.
The webjob run fail with an error at the end of the process, please need help figuring out whats it is triggering an invalid client error, I reapplied a new secret key but it doesn't seem to help.



[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__60.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 241
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__37.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 508
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__64.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 1014
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.ArmHelper.<GetToken>d__2.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.ArmHelper.d__0.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.<GetKuduRestClient>d__9.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.d__7.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.d__5.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.d__5.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.d__14.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__15.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.d__10.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.d__7.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 76
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 34
[04/16/2020 07:07:25 > 319a7e: INFO] ErrorCode: invalid_client
[04/16/2020 07:07:25 > 319a7e: INFO] StatusCode: 401<---
[04/16/2020 07:07:25 > 319a7e: INFO]
[04/16/2020 07:07:25 > 319a7e: INFO] ---> (Inner Exception #7) Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS7000215: Invalid client secret is provided.
[04/16/2020 07:07:25 > 319a7e: INFO] Trace ID: 1de89f9d-f05f-4055-87e2-d3fde4c90c00
[04/16/2020 07:07:25 > 319a7e: INFO] Correlation ID: 6bb042bf-8cc8-44e2-ab0e-5d6a5858ae16
[04/16/2020 07:07:25 > 319a7e: INFO] Timestamp: 2020-04-16 07:07:15Z ---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: Response status code does not indicate success: 401 (Unauthorized).
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.Identity.Core.OAuth2.OAuthClient.d__181.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 66 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of inner exception stack trace --- [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.Identity.Core.OAuth2.OAuthClient.<GetResponseAsync>d__181.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 116
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.Identity.Core.OAuth2.OAuthClient.d__171.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 0 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttpMessageAsync>d__75.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 405 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendTokenRequestAsync>d__72.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 333 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAndAcquireTokenUsingBrokerAsync>d__62.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 266 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync>d__60.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 241 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenForClientCommonAsync>d__37.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 508 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenAsync>d__64.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 1014 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.ArmHelper.d__2.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.ArmHelper.<GetWebSiteManagementClient>d__0.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.d__9.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.<WriteFile>d__7.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.<EnsureWebConfig>d__5.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.AcmeService.d__5.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.<RequestInternalAsync>d__14.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.d__15.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.<AddCertificate>d__10.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.<RenewCore>d__7.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 76 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.<Renew>d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 34 [04/16/2020 07:07:25 > 319a7e: INFO] ErrorCode: invalid_client [04/16/2020 07:07:25 > 319a7e: INFO] StatusCode: 401<--- [04/16/2020 07:07:25 > 319a7e: INFO] [04/16/2020 07:07:25 > 319a7e: INFO] ---> (Inner Exception #8) Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS7000215: Invalid client secret is provided. [04/16/2020 07:07:25 > 319a7e: INFO] Trace ID: fe560327-df27-4ab3-84e8-25dcdf800d00 [04/16/2020 07:07:25 > 319a7e: INFO] Correlation ID: 500abc1f-3c7e-46b9-b4df-3af3fb6b6907 [04/16/2020 07:07:25 > 319a7e: INFO] Timestamp: 2020-04-16 07:07:17Z ---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: Response status code does not indicate success: 401 (Unauthorized). [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.Identity.Core.OAuth2.OAuthClient.<GetResponseAsync>d__181.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 66
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of inner exception stack trace ---
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.Identity.Core.OAuth2.OAuthClient.d__181.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 116 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.Identity.Core.OAuth2.OAuthClient.<GetResponseAsync>d__171.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 0
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__75.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 405
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__72.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 333
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__62.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 266
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__60.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 241
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__37.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 508
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__64.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 1014
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.ArmHelper.<GetToken>d__2.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.ArmHelper.d__0.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.<GetKuduRestClient>d__9.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.d__7.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.d__5.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.d__5.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.d__14.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__15.MoveNext() [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.d__10.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.d__7.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 76
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 34
[04/16/2020 07:07:25 > 319a7e: INFO] ErrorCode: invalid_client
[04/16/2020 07:07:25 > 319a7e: INFO] StatusCode: 401<---
[04/16/2020 07:07:25 > 319a7e: INFO]
[04/16/2020 07:07:25 > 319a7e: INFO] ---> (Inner Exception #9) Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS7000215: Invalid client secret is provided.
[04/16/2020 07:07:25 > 319a7e: INFO] Trace ID: 8be1a268-e009-4b03-a4f0-5c10873e0c00
[04/16/2020 07:07:25 > 319a7e: INFO] Correlation ID: d4a38b2f-300f-4991-a94d-fdf18f365c89
[04/16/2020 07:07:25 > 319a7e: INFO] Timestamp: 2020-04-16 07:07:19Z ---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: Response status code does not indicate success: 401 (Unauthorized).
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.Identity.Core.OAuth2.OAuthClient.d__181.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 66 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of inner exception stack trace --- [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.Identity.Core.OAuth2.OAuthClient.<GetResponseAsync>d__181.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 116
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.Identity.Core.OAuth2.OAuthClient.d__171.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 0 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttpMessageAsync>d__75.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 405 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendTokenRequestAsync>d__72.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 333 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAndAcquireTokenUsingBrokerAsync>d__62.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 266 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync>d__60.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 241 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenForClientCommonAsync>d__37.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 508 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenAsync>d__64.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 1014 [04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:25 > 319a7e: INFO] at LetsEncrypt.Azure.Core.ArmHelper.d__2.MoveNext()
[04/16/2020 07:07:25 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:25 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:26 > 319a7e: INFO] at LetsEncrypt.Azure.Core.ArmHelper.<GetWebSiteManagementClient>d__0.MoveNext() [04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:26 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.d__9.MoveNext()
[04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:26 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.<WriteFile>d__7.MoveNext() [04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.GetResult() [04/16/2020 07:07:26 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.<EnsureWebConfig>d__5.MoveNext() [04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.GetResult() [04/16/2020 07:07:26 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext() [04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:26 > 319a7e: INFO] at LetsEncrypt.Azure.Core.Services.AcmeService.d__5.MoveNext()
[04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:26 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.<RequestInternalAsync>d__14.MoveNext() [04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:26 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.d__15.MoveNext()
[04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:26 > 319a7e: INFO] at LetsEncrypt.Azure.Core.CertificateManager.<AddCertificate>d__10.MoveNext() [04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.<RenewCore>d__7.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 76 [04/16/2020 07:07:26 > 319a7e: INFO] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: INFO] at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.<Renew>d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 34 [04/16/2020 07:07:26 > 319a7e: INFO] ErrorCode: invalid_client [04/16/2020 07:07:26 > 319a7e: INFO] StatusCode: 401<--- [04/16/2020 07:07:26 > 319a7e: INFO] [04/16/2020 07:07:26 > 319a7e: ERR ] [04/16/2020 07:07:26 > 319a7e: ERR ] Unhandled Exception: System.AggregateException: Encountered exception(s) during cert renewal (and/or notification) ---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS7000215: Invalid client secret is provided. [04/16/2020 07:07:26 > 319a7e: ERR ] Trace ID: 1b17249b-ca33-4e41-b4c8-e50e9abb0b00 [04/16/2020 07:07:26 > 319a7e: ERR ] Correlation ID: 4d099f86-cc6d-43e9-9ba9-90e3ee2918e5 [04/16/2020 07:07:26 > 319a7e: ERR ] Timestamp: 2020-04-16 07:07:02Z ---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: Response status code does not indicate success: 401 (Unauthorized). [04/16/2020 07:07:26 > 319a7e: ERR ] at Microsoft.Identity.Core.OAuth2.OAuthClient.<GetResponseAsync>d__181.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 66
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of inner exception stack trace ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at Microsoft.Identity.Core.OAuth2.OAuthClient.d__181.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 116 [04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at Microsoft.Identity.Core.OAuth2.OAuthClient.<GetResponseAsync>d__171.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:line 0
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__75.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 405
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__72.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 333
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__62.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 266
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__60.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Internal\Flows\AcquireTokenHandlerBase.cs:line 241
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__37.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 508
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__64.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\AuthenticationContext.cs:line 1014
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.ArmHelper.<GetToken>d__2.MoveNext() [04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.ArmHelper.d__0.MoveNext()
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.<GetKuduRestClient>d__9.MoveNext() [04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.d__7.MoveNext()
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
[04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.Services.KuduFileSystemAuthorizationChallengeProvider.d__5.MoveNext()
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
[04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.d__5.MoveNext()
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext() [04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.CertificateManager.d__14.MoveNext()
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() [04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__15.MoveNext() [04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown --- [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
[04/16/2020 07:07:26 > 319a7e: ERR ] at LetsEncrypt.Azure.Core.CertificateManager.d__10.MoveNext()
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.d__7.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 76
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 34
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of inner exception stack trace ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 46
[04/16/2020 07:07:26 > 319a7e: ERR ] --- End of stack trace from previous location where exception was thrown ---
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[04/16/2020 07:07:26 > 319a7e: ERR ] at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.Program.WebJobMain(String webjobName) in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\Program.cs:line 71
[04/16/2020 07:07:26 > 319a7e: ERR ] at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.Program.Main(String[] args) in C:\projects\letsencrypt-webapp-renewer\src\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\Program.cs:line 41
[04/16/2020 07:07:26 > 319a7e: SYS INFO] Status changed to Failed
[04/16/2020 07:07:26 > 319a7e: SYS ERR ] Job failed due to exit code -532462766

Error looks pretty straightforward... I would suggest:

  1. Double check letsencrypt:webAppName-clientId config. You can see in the logs which client ID was selected after resolution of default values etc.
  2. Double check the letsencrypt:webAppName-clientSecret config - recall this should be a connection string (not regular app config)
  3. Go to Active Directory and make sure the above two match and that the key you're using is not expired

Closing due to inactivity, please re-open if the issue persists