I have a Web Application running in Azure and I've had a few outages where the server is unresponsive. When I look in the IIS log, I see HTTP 500 errors with a sc-substatus
of 121 and a sc-win32-status
of 0.
Omitting all other fields, the logs look like this, in this order:
sc-status sc-substatus sc-win32-status
500 121 0
I can't find reference to a 500.121 error anywhere online.
We saw the same issue.
TLDR
Symptoms
Logging
Reproduction
MS Support Issue
Consider the following scenario:
You have Microsoft .NET Framework applications that use Always Encrypted in SQL Server 2016 or Azure SQL Database. The column master keys for these applications are stored in the Azure Key Vault.
In this scenario, the applications experience deadlocks. Therefore, the applications become unresponsive (hang) or time out.
The deadlocks may occur during attempts to acquire or refresh an authentication token for the Azure Key Vault.
Azure Key Vault Provider v2.1.0 Release Notes
This release addresses a bug existing in all previous releases which can cause deadlocks in multi-threaded applications.
I just got this from one of the Azure Software Engineers:
121 is a timeout event which basically means that the request spent 230 seconds on the worker VM without initiating any read/write IO on the connection. It is highly likely for this to be an application issue, but doesn’t necessarily have to be so.
The IIS logs all have a time-taken value hovering around 230 seconds. Mystery solved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With