Open rgamage opened 4 years ago
I am having the same problem. The setup with this extension and Azure App Service had been running with no problems for over a year and then started failing with this error on 05/23/2020 03:47 after having run with no problems 24 hours earlier.
It has now failed with this error 5 times in a row and switched over to getting a 429 "Error creating new cert :: too many certificates already issued for exact set of domains: *****.com: see https://letsencrypt.org/docs/rate-limits/" response from the server. I assume this is due to the authentication failing 5 times in a row due to the original error and then hitting the LetsEncrypt rate limit of 5 failed authentications in a row.
I am also hitting this.
I also had the problem with version 0.6.7! Don't panic 😃, you have two options to solve the issue:
I found out, that there is a newer version of the extension - 1.0.5.
Update to this version!
Deinstall your current version and then install the extension again - before doing this, write down your configuration entries, just in case!
There are two versions now in the extensions list -> ### Azure Let's Encrypt and Azure Let's Encrypt (No WebJos)
In my case I (was) am using Azure Let's Encrypt
The nice thing is, that your previous entries are persisted and they are already filled in!
The downside - this version needs a storage connection string, to store some settings. If you don't have one, you need to create one and get the connection string and add it to the settings of the extension.
I also needed to add manually two connection strings in my application settings for the storage: AzureWebJobsStorage and AzureWebJobsDashboard. You can use the same connection string of course.
ooor the good news is this: I found out, that even though the update with the (old/current) version fails because of the empty location parameter, the certificate is created - it is just not bound, which you can do manually.
So, how and where:
Thank you @sjkp for this wonderful and helpful extension!
1.0.2? The OP is referring to version 1.0.5
@JimBobSquarePants You are right! My mistake (it was late as I wrote the answer) - I see now that the latest version in Azure (and the one that I installed) is 1.0.5. I got the exact error as described from the OP with the old version (0.6.x) and IMO the certificate is created and can be used, regardless of the error with 1.0.5.
Thank you for the work-around, I will give it a try. I am using the very latest version as far as I can tell, so not sure what the actual solution will be.
Randy
On Thu, May 28, 2020 at 1:57 PM keenthinker notifications@github.com wrote:
I also had the problem with version 0.6.7! Don't panic 😃, you have two options to solve the issue:
-
I found out, that there is a newer version of the extension - 1.0.2. Update to this version! Deinstall your current version and then install the extension again - before doing this, write down your configuration entries, just in case! There are two versions now in the extensions list -> ### Azure Let's Encrypt and Azure Let's Encrypt (No WebJos) In my case I (was) am using Azure Let's Encrypt The nice thing is, that your previous entries are persisted and they are already filled in! The downside - this version needs a storage connection string, to store some settings. If you don't have one, you need to create one and get the connection string and add it to the settings of the extension. I also needed to add manually two connection strings in my application settings for the storage: AzureWebJobsStorage and AzureWebJobsDashboard. You can use the same connection string of course.
ooor the good news is this: I found out, that even though the update with the (old/current) version fails because of the empty location parameter, the certificate is created - it is just not bound, which you can do manually.
So, how and where:
- go to your application TLS/SSL Settings
- go to private key certificates -> you should find at least one new certificate
- write the number of the new certificate you want to use (normally the first couple of characters are enough)
- go to bindings and click your domain binding
- select your new certificate from the dropdown private certificate thumbnail and click ok
- et voila - enjoy your 3 months let's encrypt certificate 😃
Thank you @sjkp https://github.com/sjkp for this wonderful and helpful extension!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sjkp/letsencrypt-siteextension/issues/370#issuecomment-635603812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAGYEEIMGKYDSIAWMU3LJLRT3F5BANCNFSM4NJ2IQBQ .
I was also running a (very) old version when i first hit this error. After updating to the latest version and giving it some time to get past the too many certificate (error code: 429) error it is now running without problems.
I hit this error this morning, after using it for many years with no issues.
I had the exact same experience as most people here. Been running fine for 2+ years and suddenly it started failing now.
I didn't even have to uninstall the extension first. Just updated it, entered the newly required connection strings and then I hit the "too many certificates already issued for exact set of domains" error.
There was a bunch of valid certs already sitting in my website so all I had to do was manually bind one of them, like @keenthinker mentioned.
Hopefully the renewal process works fine 🤞
Same thing here, been using Azure Let's Encrypt (No Web Jobs) for years without issues. Got the location null exception, saw this issue and updated to version 1.0.5. Inserted the newly required fields DashboardConnectionString and StorageConnectionString and after hitting next it asks me to wait while app settings are being applied. Problem is this never finishes, have waited for up to 15 minutes:
Clicking "click here" tells me DashboardConnectionString and StorageConnectionString are required.
UPDATE: I had inserted AzureWebJobsDashboard and AzureWebJobsStorage into Application settings by mistake, they should be in Connection strings. Once inserted there, it started working again just as before 👍
I am using Azure app service, with LE extension 1.05 installed. I have used LE successfully for this app in the past. I have an existing certificate that I am unable to renew (will expire next week). When I go through the steps in the extension wizard, I get this stack trace on the last step:
Server Error in '/letsencrypt' Application. 'Location' cannot be null. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.Rest.ValidationException: 'Location' cannot be null.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace: [ValidationException: 'Location' cannot be null.] Microsoft.Azure.Management.WebSites.Models.Resource.Validate() +61 Microsoft.Azure.Management.WebSites.Models.SiteConfig.Validate() +32 Microsoft.Azure.Management.WebSites.Models.Site.Validate() +30 Microsoft.Azure.Management.WebSites.d214.MoveNext() +202
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
Microsoft.Azure.Management.WebSites.d 419.MoveNext() +322
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
LetsEncrypt.Azure.Core.SiteSlotExtensions.BeginCreateOrUpdateSiteOrSlot(IWebAppsOperations sites, String resourceGroupName, String webAppName, String siteSlotName, Site s) in D:\a\1\s\LetsEncrypt.SiteExtension.Core\SiteSlotExtensions.cs:77
LetsEncrypt.Azure.Core.Services.WebAppCertificateService.Install(ICertificateInstallModel model) in D:\a\1\s\LetsEncrypt.SiteExtension.Core\Services\WebAppCertificateService.cs:82
LetsEncrypt.Azure.Core.d14.MoveNext() in D:\a\1\s\LetsEncrypt.SiteExtension.Core\CertificateManager.cs:206
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
LetsEncrypt.SiteExtension.Controllers.d 7.MoveNext() in D:\a\1\s\LetsEncrypt-SiteExtension\Controllers\HomeController.cs:229
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +97
System.Web.Mvc.Async.<>cDisplayClass37.b 36(IAsyncResult asyncResult) +17
System.Web.Mvc.Async.WrappedAsyncResultb3d() +50
System.Web.Mvc.Async.<>cDisplayClass46.b3f() +228
System.Web.Mvc.Async.<>cDisplayClass33.b32(IAsyncResult asyncResult) +10
System.Web.Mvc.Async.WrappedAsyncResultb1c() +26
System.Web.Mvc.Async.<>cDisplayClass21.b1e(IAsyncResult asyncResult) +100
System.Web.Mvc.Async.WrappedAsyncResultb 1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
System.Web.Mvc.Async.WrappedAsyncVoidb15(IAsyncResult asyncResult, Controller controller) +12
System.Web.Mvc.Async.WrappedAsyncVoidb 5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
System.Web.Mvc.Async.WrappedAsyncVoid
1.CallEndDelegate(IAsyncResult asyncResult) +10 System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +49 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32 System.Web.Mvc.Async.AsyncInvocationWithFilters.1.CallEndDelegate(IAsyncResult asyncResult) +10 System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +49 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34 System.Web.Mvc.Async.<>cDisplayClass2b.1.CallEndDelegate(IAsyncResult asyncResult) +10 System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +49 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27 System.Web.Mvc.Controller.1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +49 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36 System.Web.Mvc.Controller.1.CallEndDelegate(IAsyncResult asyncResult) +22 System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +49 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26 System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10 System.Web.Mvc.MvcHandler.1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +49 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.InvokeEndHandler(IAsyncResult ar) +152 System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +125Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3535.0