Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John P Scott 14 posts 71 karma points
    Sep 25, 2018 @ 09:39
    John P Scott
    0

    How can you code a page/handler independent of Umbraco to detect if the Umbraco database is available.

    Hi,

    We have a need to provide a service check handler inside our website which returns the status of the web application and the Umbraco database when polled from an external service. Note: if the website is unavailable then we are happy for it to return 404.

    My attempts to implement this with a handler result in a YSOD when the database is stopped/unavailable.

    'Cannot open database "xxxxxx" requested by the login...'

    Is it possible to code a page/handler which can be called before Umbraco intercepts it. Ideally the code needs to be able to return the website id using 'System.Environment.MachineName' too.

    Any help will be gratefully received.

    Scotty

  • Yakov Lebski 591 posts 2346 karma points
    Sep 25, 2018 @ 20:52
    Yakov Lebski
    0

    I created the custom controller that doing connectivity check, like DB, Umbraco DB (by using Content Service), external services

Please Sign in or register to post replies

Write your reply to:

Draft