DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

URGENT: Intermittent Site-Wide 500 Errors Post-Migration (SQL Network Drop & Pool Exhaustion)

 1 Replies
 0 Subscribed to this topic
 24 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 1
New Around Here
New Member
New Member
You are a new member!
New Poster
New Poster
Congrats on posting!

We are experiencing critical, random website outages. The site goes down completely, returning 500 Internal Server Errors to all visitors. We urgently need your assistance to review our architecture and pinpoint the cause of these database disconnections.

Here are the specific fatal errors we are capturing simultaneously during a crash:

1. Hard Network Drop (Named Pipes Error)

System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception (0x80004005): The specified network name is no longer available

2. Connection Pool Exhaustion (Cascading Effect)

System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

3. Cascading Application Failure

DotNetNuke.Common.Initialize - The connection to the database has failed, however, the application is already completely installed, a 500 error page will be shown to visitors

 

What we have verified/attempted so far:

  • Connection Strings: Verified and tested. The site runs perfectly fine until these random drops occur.

  • Pool Size: We have already increased our Max Pool Size to 500, but the pool is still maxing out entirely when the network drop occurs.

 

Growing Member
Posts: 80
Growing Member
7 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
8 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
3 Most Liked
Most Liked
Congrats, your posts are really liked!

I realize you posted this a few days ago and I hope you've already made progress. If not, its obviously hard to tell much from those errors without better understanding your setup. Is the SQL Server local or remote?

In general it looks like the problem is not DNN related and instead, the initial connection cannot even be established. So focus on debugging your networking first. If the connection is SMB/Named Pipes, check DNS, the path, or is their simply a LAN issue. If its not network, then something is causing SQL to stop listening. I would dig in an after noting the exact time the problem starts, carefully examine your SQL logs to see what is going on.

Please share more details as you never know what clue is going to trigger someone's memory of a similar situation. Cheers!

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy. 
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved