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

Improve retries (first run always errors) #78

Open
Jogai opened this issue May 11, 2019 · 1 comment
Open

Improve retries (first run always errors) #78

Jogai opened this issue May 11, 2019 · 1 comment
Labels

Comments

@Jogai
Copy link

Jogai commented May 11, 2019

It seems to me that the first run will always error out.

What I did was:

  1. Run with 1 group configured: 2 minutes running => failed
  2. Run without changing anything: 28 seconds running => succes
  3. Run with 8 other groups enabled: 3 minutes running => success

I'm pasting the error below, but I'm not sure it will help because runs right after the first fail tend to succeed. It has something to do with that first run, but I cant think of a reason.

[05/11/2019 06:46:21 > bcf09c: INFO] AzureLetsEncryptRenewer.exe Information: 0 : Answer should now be browsable at http://www.example.com/.well-known/acme-challenge/Jw29L6qSjgSTXje4ggI_GzV0jRH2i1EVRS-zX2eaF-o
[05/11/2019 06:48:02 > bcf09c: INFO] AzureLetsEncryptRenewer.exe Error: 0 : Encountered exception: System.Threading.Tasks.TaskCanceledException: A task was canceled.
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.CertificateManager.<RequestInternalAsync>d__16.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__17.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.CertificateManager.<AddCertificate>d__12.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.<RenewCore>d__7.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 75
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.<Renew>d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 34
[05/11/2019 06:48:02 > bcf09c: INFO] AzureLetsEncryptRenewer.exe Error: 0 : Unexpected exception: System.AggregateException: Encountered exception(s) during cert renewal (and/or notification) ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.CertificateManager.<RequestInternalAsync>d__16.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__17.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.CertificateManager.<AddCertificate>d__12.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.<RenewCore>d__7.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 75
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.<Renew>d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 34
[05/11/2019 06:48:02 > bcf09c: INFO]    --- End of inner exception stack trace ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.<Renew>d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 46
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.Program.WebJobMain(String webjobName) in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\Program.cs:line 55
[05/11/2019 06:48:02 > bcf09c: INFO] ---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.CertificateManager.<RequestInternalAsync>d__16.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__17.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: INFO]    at LetsEncrypt.Azure.Core.CertificateManager.<AddCertificate>d__12.MoveNext()
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.<RenewCore>d__7.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 75
[05/11/2019 06:48:02 > bcf09c: INFO] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: INFO]    at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.<Renew>d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 34<---
[05/11/2019 06:48:02 > bcf09c: INFO] 
[05/11/2019 06:48:02 > bcf09c: ERR ] 
[05/11/2019 06:48:02 > bcf09c: ERR ] Unhandled Exception: System.AggregateException: Encountered exception(s) during cert renewal (and/or notification) ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: ERR ]    at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: ERR ] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05/11/2019 06:48:02 > bcf09c: ERR ]    at LetsEncrypt.Azure.Core.Services.BaseHttpAuthorizationChallengeProvider.<Authorize>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: ERR ] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: ERR ]    at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext()
[05/11/2019 06:48:02 > bcf09c: ERR ] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: ERR ]    at LetsEncrypt.Azure.Core.CertificateManager.<RequestInternalAsync>d__16.MoveNext()
[05/11/2019 06:48:02 > bcf09c: ERR ] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: ERR ]    at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__17.MoveNext()
[05/11/2019 06:48:02 > bcf09c: ERR ] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
[05/11/2019 06:48:02 > bcf09c: ERR ]    at LetsEncrypt.Azure.Core.CertificateManager.<AddCertificate>d__12.MoveNext()
[05/11/2019 06:48:02 > bcf09c: ERR ] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.<RenewCore>d__7.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 75
[05/11/2019 06:48:02 > bcf09c: ERR ] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.<Renew>d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 34
[05/11/2019 06:48:02 > bcf09c: ERR ]    --- End of inner exception stack trace ---
[05/11/2019 06:48:02 > bcf09c: ERR ]    at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.<Renew>d__4.MoveNext() in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 46
[05/11/2019 06:48:02 > bcf09c: ERR ] --- End of stack trace from previous location where exception was thrown ---
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[05/11/2019 06:48:02 > bcf09c: ERR ]    at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.Program.WebJobMain(String webjobName) in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\Program.cs:line 60
[05/11/2019 06:48:02 > bcf09c: ERR ]    at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.Program.Main(String[] args) in C:\projects\letsencrypt-webapp-renewer\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\Program.cs:line 35
[05/11/2019 06:48:02 > bcf09c: SYS INFO] Status changed to Failed
[05/11/2019 06:48:02 > bcf09c: SYS ERR ] Job failed due to exit code -532462766
@ohadschn ohadschn changed the title First run always errors always First run always errors May 11, 2019
@ohadschn
Copy link
Owner

ohadschn commented May 11, 2019

This is the issue you are facing:
sjkp/letsencrypt-siteextension#277
sjkp/letsencrypt-siteextension#166

Quoting Simon:

This error happens when the extension is unable to request the challenge file successfully. After the extension has written the challenge file to disk, it tries to request it the same way that letsencrypt would, and for some reason your site fails to respond to that request [...] I would encourage you to check if you can browse the challenge file yourself, from the .well-known/acme-challenge/ folder.

Simon added retries, which might have helped your case (Seeing as subsequent attempts succeed), but unfortunately he did so in a fashion that doesn't catch this specific error. I've opened an issue on his repository : sjkp/letsencrypt-siteextension#312.

@ohadschn ohadschn changed the title First run always errors Improve retries (first run always errors) Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants