Receiving connection timeouts to SQL Server from app running in staging deployment slot

Jacob Page 0 Reputation points
2023-10-29T18:35:10.88+00:00

For some reason, I'm receiving new connection timeout issues in a deployment slot for my Azure app service. This is despite me having not changed anything network-wise, the primary deployment slot not having a connection issue, and me being able to connect to the database from my workstation just fine. I am not using any vnets.

Any idea how this could be happening?

 ConnectionError: Failed to connect to <mydb>.database.windows.net:1433 in 15000ms
 at /home/site/wwwroot/node_modules/mssql/lib/tedious/connection-pool.js:85:17
 at Connection.onConnect (/home/site/wwwroot/node_modules/tedious/lib/connection.js:1012:9)
 at Object.onceWrapper (node:events:629:26)
 at Connection.emit (node:events:514:28)
 at Connection.emit (/home/site/wwwroot/node_modules/tedious/lib/connection.js:1040:18)
 at Connection.connectTimeout (/home/site/wwwroot/node_modules/tedious/lib/connection.js:1254:10)
 at Timeout._onTimeout (/home/site/wwwroot/node_modules/tedious/lib/connection.js:1199:12)
 at listOnTimeout (node:internal/timers:569:17)
 at process.processTimers (node:internal/timers:512:7) {
 code: 'ETIMEOUT',
 originalError: ConnectionError: Failed to connect to ifhc.database.windows.net:1433 in 15000ms
 at Connection.connectTimeout (/home/site/wwwroot/node_modules/tedious/lib/connection.js:1254:26)
 at Timeout._onTimeout (/home/site/wwwroot/node_modules/tedious/lib/connection.js:1199:12)
 at listOnTimeout (node:internal/timers:569:17)
 at process.processTimers (node:internal/timers:512:7) {
 code: 'ETIMEOUT',
 isTransient: undefined
 }
 }
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,158 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,043 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Konstantinos Passadis 19,276 Reputation points MVP
    2023-10-29T19:00:31.1333333+00:00

    Hello @Jacob Page !

    Welcome to Microsoft QnA!

    Facing some issues on WebApp connectivity considering nothing has changed could have a lot of reasons.

    First of all examine all your logs and try to activate Application Insights for a period of time to drill better into logging

    Use the "Diagnose and solve problems" , https://learn.microsoft.com/en-us/azure/app-service/overview-diagnostics

    Check Service Status for you region might be something else on Azure not your fault

    Check Service Limits , it could be a limit you reached , highy unlikely but worth checking https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits

    Upgrade your Plan to another Tier and check the behavior , you can do that easily !

    https://learn.microsoft.com/en-us/azure/app-service/app-service-plan-manage#move

    If nothing comes up , check with Azure Support !


    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.