Umbraco stuck in boot failure after temporary data...
# help-with-umbraco
k
Is there any way to** make Umbraco automatically unstuck from the permanent "failed to boot" that comes from SQL connectivity failures**? We have problems with intermittent loss of database connectivity, and sometimes this puts Umbraco in the permanent failed-to-boot state. We currently don't have an easy way to detect and restart Umbraco when this happens. What will happen is * SQL network glitch * Error in some Umbraco recurring task or something else that triggers database access * Umbraco SQL connection fail (in e.g.,
Umbraco.Cms.Persistence.SqlServer.Services.SqlServerSyntaxProvider.GetSetVersion
) * Permanent "Umbraco failed to boot" (even though Umbraco or the IIS application pool aren't rebooting or restarting at all)
I know this has been discussed previously, but my question now is if anyone knows a trick to make Umbraco unstuck automatically.
d
I guess you could make a background job to monitor the runtime state of umbraco. There is a boot failed state if I remember correctly. Whenever you detect boot failed for more than X minutes or seconds, you could call for a shutdown of the application with
IHostApplicationLifetime
. If I remember correctly, IIS automatically reboots the website when your app shuts down. Just a thought
k
Thanks. Ideally, I'd like Umbraco to not reboot and fail in the first place. Is there no way to do that?
12 Views