umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.46k stars 2.68k forks source link

BootFailed Cannot Connect To Database #17363

Open Emetico opened 2 hours ago

Emetico commented 2 hours ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

7.15.11, 8.18.15, 10.8.7, 13.5.2

Bug summary

We are experiencing issues with our Umbraco solutions hosted at Curanet, where the applications lose connection to the database after the server (either web or SQL) has been restarted. This occurs because IIS starts before SQL Server is ready, resulting in stale connections that are not refreshed. Consequently, this leads to a BootFailed exception when attempting to start the application. The loss of connection is sporadic; it does not happen every time and can affect different solutions at different times. Our Umbraco solutions are running the following versions:

Specifics

Steps to reproduce

1. Environment Setup:

2. Restart the SQL Server:

3. Restart the Web Server:

4. Monitor Startup Sequence:

5. Check Application Logs:

6. Verify Connection Status:

Expected result / actual result

Expected Result:

Actual Result:

Proposed Solution:

To address the database connection issues leading to the BootFailed exception, we suggest the following enhancements for Umbraco:

1. Development of BootFailedNotification:

2. Utilization of ClearPool():

github-actions[bot] commented 2 hours ago

Hi there @Emetico!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face: