-
Notifications
You must be signed in to change notification settings - Fork 358
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
AppService Crashing Every 10 minutes #3091
Comments
@Sukhdev841 Was this ever working for this application? This is most likely an app configuration issue. What have you changed regarding your blob storage or app service recently? Have you switched to managed identity? Added or changed a VNET? Changed
|
Hi @jviau, thanks for your comment. The setup has been working previously for us. And yes, we have recently moved to managed identity, but the setup was working with MI as well. Do you think switching to Managed Identity along with disabling SAS on the connected Storage Account could lead to this issue? At the moment I don't have any other information than the stack trace of exception. Will try enabling Trace Logs on AppService to see if any additional related logs can be obtained. |
What order did you perform the migration? Did this start occurring immediately after disabling SAS? |
On a side note, we have a similar PPE setup where Storage SAS is disabled and MI auth is enabled, such crashes were observed in the PPE setup around 1st-3rd July and recently around 17th July, but in Prod setup crashes are happening continuously every 10-15 minutes. |
@Sukhdev841 there should be another log with more details: |
Hi @jviau I tried enabling Request Trace Error logs as well, but no additional logs. Please share if you know which logs I need to check and how to enable them, but I'm guessing you might not have much idea of AppService side of things. |
The logs you need to check depend on your application. The log is produced using Do you use application insights? Or some other logger provider? |
The application insights require Storage Account connectivity with SAS enabled. Due to security reasons we had to disable SAS. The log I shared with you were from internal log files of AppService platform. |
Current app insights does not require storage. |
I see it require code changes and used connection string as a link between Insights resource and AppService. Will evaluate on our end if we can do this. |
Please provide a succinct description of the issue.
We are using WebJob SDK to deploy Time triggered functions on Azure AppService. But the AppService is crashing every 10 minutes and restarting due to the following exception:
Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: Azure.RequestFailedException at Azure.Storage.Blobs.BlobRestClient+d__50.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Azure.Storage.Blobs.Specialized.BlobLeaseClient+d__32.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Azure.Storage.Blobs.Specialized.BlobLeaseClient+d__31.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.Azure.WebJobs.Host.BlobLeaseDistributedLockManager+SingletonLockHandle+d__17.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.Azure.WebJobs.Host.SingletonManager+RenewLeaseCommand+d__4.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Azure.WebJobs.Host.Timers.TaskSeriesTimer+d__14.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()
Repro steps
Just deploying to AppService is reproducing issues. Not sure what is the trigger for the crashes.
Provide the steps required to reproduce the problem
Step A
Step B
Expected behavior
Application deployed in AppService should not crash.
Provide a description of the expected behavior.
Application deployed in AppService should not crash.
Actual behavior
Provide a description of the actual behavior observed.
Known workarounds
Provide a description of any known workarounds.
Related information
Provide any related information
Package version:
"Microsoft.Azure.WebJobs.Extensions" Version="5.0.0"
"Microsoft.Azure.WebJobs.Extensions.Storage" Version="5.3.0"
"Microsoft.Azure.WebJobs.Host.Storage" Version="5.0.0"
"Azure.Storage.Blobs" Version="12.20.0"
"Azure.Identity" Version="1.12.0"
Links to source
The text was updated successfully, but these errors were encountered: