{"id":15220,"date":"2026-12-03T18:00:39","date_gmt":"2026-12-03T12:30:39","guid":{"rendered":"https:\/\/www.mconnectmedia.com\/blog\/?p=15220"},"modified":"2026-12-03T18:00:39","modified_gmt":"2026-12-03T12:30:39","slug":"magento-health-check","status":"publish","type":"post","link":"https:\/\/www.mconnectmedia.com\/blog\/magento-health-check\/","title":{"rendered":"A 14-Point Magento Health Check to Run Before Something Breaks"},"content":{"rendered":"\n<p>A Magento health check is a short list of things to look at before a customer finds the problem for you. Most store failures are quiet. Cron stops and order emails stop with it. An indexer goes invalid and products drop out of category pages. Someone switches off the full page cache while debugging and forgets to switch it back on. Nothing crashes, so nobody notices until sales dip or a customer writes in.<\/p>\n\n\n\n<p>Below are the 14 checks our team runs when we pick up a Magento 2 store, with the commands and SQL to run each one by hand. At the end we cover a free module we wrote that runs all 14 for you, in the admin or from <code>bin\/magento<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why a Magento health check matters more than an uptime monitor<\/h2>\n\n\n\n<p>An uptime monitor tells you the home page loads. It can&#8217;t tell you that the last cron job ran two days ago, that the catalog search index needs a rebuild, or that <code>var\/log\/system.log<\/code> is 9 GB and the disk is close to full. A store can return a 200 response all day while checkout emails, price rules and sitemaps have stopped working behind it.<\/p>\n\n\n\n<p>Run the commands below from the Magento root, as the user that owns the files. For the SQL, use a MySQL client connected to the store database. Magento stores cron and admin dates in UTC, so the queries use <code>UTC_TIMESTAMP()<\/code> instead of <code>NOW()<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cron: the first thing to check<\/h2>\n\n\n\n<p>Almost everything that happens in the background in Magento runs through cron: queued emails, indexing on schedule, catalog price rules, currency rates, sitemaps and cleanup jobs. When it stops, the store keeps loading, which is why it often goes unnoticed for days.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">When did cron last run?<\/h3>\n\n\n\n<p><code>SELECT MAX(executed_at) FROM cron_schedule;<\/code><\/p>\n\n\n\n<p>Magento&#8217;s cron runs every minute, so this should be a few minutes old at most. If it&#8217;s hours old or empty, run <code>crontab -l<\/code> as the web server user. If the Magento lines are missing, <code>bin\/magento cron:install<\/code> adds them. Running <code>bin\/magento cron:run<\/code> once by hand shows any error straight away. Adobe&#8217;s guide to <a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/configuration-guide\/cli\/configure-cron-jobs\" target=\"_blank\" rel=\"noopener\">configuring cron jobs<\/a> covers the setup in detail.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Jobs stuck in running<\/h3>\n\n\n\n<p><code>SELECT job_code, executed_at FROM cron_schedule WHERE status = 'running' AND executed_at &lt; UTC_TIMESTAMP() - INTERVAL 1 HOUR;<\/code><\/p>\n\n\n\n<p>A row that has said &#8220;running&#8221; for hours usually means the PHP process died, often from a memory limit or a server restart. Check <code>ps aux | grep cron<\/code> to see whether anything is still working, and read <code>var\/log\/cron.log<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Jobs that failed in the last day<\/h3>\n\n\n\n<p><code>SELECT job_code, COUNT(*) FROM cron_schedule WHERE status = 'error' AND scheduled_at &gt;= UTC_TIMESTAMP() - INTERVAL 1 DAY GROUP BY job_code;<\/code><\/p>\n\n\n\n<p>The <code>messages<\/code> column holds the error text for each failed run. One job failing every few minutes is usually a broken third-party module or a missing API credential.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Indexers, cache and deploy mode<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Indexers.<\/strong> <code>bin\/magento indexer:status<\/code> lists every indexer. Any line that says &#8220;Reindex required&#8221; needs <code>bin\/magento indexer:reindex &lt;indexer_id&gt;<\/code>. If the same ones keep going invalid, set them to &#8220;Update by Schedule&#8221; and check that cron runs. Adobe&#8217;s page on <a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/configuration-guide\/cli\/manage-indexers\" target=\"_blank\" rel=\"noopener\">managing indexers<\/a> lists the commands.<\/li><li><strong>Cache types.<\/strong> <code>bin\/magento cache:status<\/code> shows each cache type with 1 (on) or 0 (off). On a live store every line should be 1. A disabled <code>full_page<\/code> cache makes every page view hit PHP and the database.<\/li><li><strong>Deploy mode.<\/strong> <code>bin\/magento deploy:mode:show<\/code> should say production on a live store. Developer mode is slower and can show error details to visitors.<\/li><\/ul>\n\n\n\n<p>If speed is the worry, our <a href=\"https:\/\/www.mconnectmedia.com\/blog\/magento-black-friday-speed-checklist\/\">Magento speed checklist<\/a> goes further than cache and mode.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Admin security basics<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Admin URL.<\/strong> <code>bin\/magento info:adminuri<\/code> prints the admin path. If it&#8217;s <code>\/admin<\/code>, bots find the login page on the first try. Change it with <code>bin\/magento setup:config:set --backend-frontname=&lt;new_path&gt;<\/code>.<\/li><li><strong>Two-factor authentication.<\/strong> <code>bin\/magento module:status Magento_TwoFactorAuth<\/code> should say the module is enabled. Developers sometimes disable it on staging and the setting travels to live with the next deploy.<\/li><li><strong>Unused admin accounts.<\/strong> <code>SELECT username, logdate FROM admin_user WHERE is_active = 1 AND (logdate &lt; UTC_TIMESTAMP() - INTERVAL 90 DAY OR logdate IS NULL);<\/code> lists active accounts nobody has used in 90 days. Old agency and freelancer logins are an easy way in if a password leaks. Deactivate them in System &gt; Permissions &gt; All Users.<\/li><\/ul>\n\n\n\n<p>These checks are basic hygiene, not a security review. Our post on <a href=\"https:\/\/www.mconnectmedia.com\/blog\/magento-sessionreaper-patch-lessons\/\">what happened to stores that didn&#8217;t patch SessionReaper in time<\/a> shows why missing patches matter more than any single setting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Versions, disk and database<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Magento version.<\/strong> <code>bin\/magento --version<\/code> prints it. Compare it with the latest patch for your release line on Adobe&#8217;s <a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/release\/versions\" target=\"_blank\" rel=\"noopener\">released versions<\/a> page. If you&#8217;re planning a move to 2.4.9, read <a href=\"https:\/\/www.mconnectmedia.com\/blog\/magento-2-4-9-upgrade-what-breaks\/\">what breaks in a 2.4.9 upgrade<\/a> first.<\/li><li><strong>PHP version.<\/strong> <code>php -v<\/code> shows the CLI version only. The web server often runs a different PHP build, so check that one too, for example from your hosting panel.<\/li><li><strong>Log files.<\/strong> <code>ls -lhS var\/log | head<\/code> lists the largest logs first. A log that grows by gigabytes usually points to one repeated error. Fix the cause, then rotate the file.<\/li><li><strong>Search engine.<\/strong> Magento 2.4 needs OpenSearch or Elasticsearch to show category and search results. In the admin, open Stores &gt; Configuration &gt; Catalog &gt; Catalog &gt; Catalog Search and click &#8220;Test Connection&#8221;.<\/li><\/ul>\n\n\n\n<p>Some tables grow without limit unless cleanup is configured. This query shows their size:<\/p>\n\n\n\n<p><code>SELECT TABLE_NAME, TABLE_ROWS, ROUND((DATA_LENGTH + INDEX_LENGTH) \/ 1048576) AS mb FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME IN ('customer_visitor', 'report_event', 'report_viewed_product_index', 'cron_schedule', 'quote', 'magento_bulk', 'magento_operation');<\/code><\/p>\n\n\n\n<p><code>TABLE_ROWS<\/code> is an InnoDB estimate, which is fine for spotting a table with tens of millions of rows. The cleanup settings live under Stores &gt; Configuration, in Customers &gt; Customer Configuration &gt; Online Customers Options, Advanced &gt; System &gt; Cron, and Sales &gt; Checkout &gt; Shopping Cart. Take a backup before deleting rows by hand.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Run all 14 checks with our free module<\/h2>\n\n\n\n<p>Running 14 checks by hand every week is the kind of job that gets skipped. So we wrote <strong>Magento 2 Store Health Check<\/strong>, a free module that runs all of the checks above and reports OK, WARN or FAIL for each one, with a short note on how to fix it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Check<\/th><th>Flags it when<\/th><\/tr><\/thead><tbody><tr><td>Cron last run<\/td><td>WARN over 15 minutes, FAIL over 60 minutes or never run<\/td><\/tr><tr><td>Cron jobs stuck<\/td><td>Jobs in &#8220;running&#8221; for more than 1 hour<\/td><\/tr><tr><td>Cron errors<\/td><td>Jobs ended with &#8220;error&#8221; in the last 24 hours<\/td><\/tr><tr><td>Indexers<\/td><td>FAIL when any indexer needs a reindex<\/td><\/tr><tr><td>Cache types<\/td><td>Any cache type is disabled<\/td><\/tr><tr><td>Deploy mode<\/td><td>Developer mode<\/td><\/tr><tr><td>Admin URL path<\/td><td>Path is &#8220;admin&#8221;<\/td><\/tr><tr><td>Admin 2FA<\/td><td>Magento_TwoFactorAuth disabled or missing<\/td><\/tr><tr><td>Magento version<\/td><td>Release line older than 2.4.6<\/td><\/tr><tr><td>PHP version<\/td><td>Below PHP 8.1<\/td><\/tr><tr><td>Large tables<\/td><td>Over 1,000,000 rows or 1,024 MB (configurable)<\/td><\/tr><tr><td>Log files<\/td><td>A file in var\/log over 500 MB (configurable)<\/td><\/tr><tr><td>Unused admin accounts<\/td><td>No login in 90 days<\/td><\/tr><tr><td>Search engine<\/td><td>FAIL when it doesn&#8217;t answer a ping<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You see the report in the admin under System &gt; Tools &gt; Store Health Check. On the command line, <code>bin\/magento mconnect:health<\/code> prints a table and <code>bin\/magento mconnect:health --format=json<\/code> prints JSON. The command exits with 1 when any check fails, so you can call it from your own monitoring or a cron script and get alerted.<\/p>\n\n\n\n<p>It&#8217;s free and MIT licensed. Get it from <a href=\"https:\/\/github.com\/mcsventures\/magento2-store-health-check\" target=\"_blank\" rel=\"noopener\">GitHub<\/a> or from <a href=\"https:\/\/www.mconnectmedia.com\/magento-2-store-health-check.html\">its page on our site<\/a>. To install with Composer:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>composer config repositories.magento2-store-health-check vcs https:\/\/github.com\/mcsventures\/magento2-store-health-check<\/code><\/li><li><code>composer require mconnect\/module-store-health-check:^1.0<\/code><\/li><li><code>bin\/magento module:enable Mconnect_StoreHealthCheck<\/code><\/li><li><code>bin\/magento setup:upgrade<\/code><\/li><li><code>bin\/magento setup:di:compile<\/code> (production mode only)<\/li><li><code>bin\/magento cache:flush<\/code><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">It reports, it doesn&#8217;t repair<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>It changes nothing. It doesn&#8217;t reindex, clear caches, delete rows or rotate logs. It tells you where to look.<\/li><li>It doesn&#8217;t know the latest Magento patch number. We left out a built-in version list because it would go out of date. It links to Adobe&#8217;s release page instead.<\/li><li>The PHP version it reports is the one running the check. Run it from the admin and the CLI to see both.<\/li><li>It isn&#8217;t a security scan. It doesn&#8217;t look for malware, changed core files or missing patches.<\/li><li>It sends no data to any outside server.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">When a WARN needs more than a quick fix<\/h2>\n\n\n\n<p>Most WARN lines take a few minutes to fix. Some don&#8217;t: cron that dies every night, indexers that never stay valid, a <code>quote<\/code> table with tens of millions of rows, a store that needs a release line upgrade. Those are the jobs our team does every week.<\/p>\n\n\n\n<p>When the cause turns out to be a custom module, our <a href=\"https:\/\/www.mconnectmedia.com\/magento-module-development\">Magento module development<\/a> team can fix it or write a replacement.<\/p>\n\n\n\n<p><strong>Want us to fix what the report finds? Our <a href=\"https:\/\/www.mconnectmedia.com\/magento-support-services\">Magento support plans<\/a> start at $599 a month. For a slow store, see our <a href=\"https:\/\/www.mconnectmedia.com\/magento-speed-optimization\">Magento speed optimization<\/a> service, and for patches and break-in checks, our <a href=\"https:\/\/www.mconnectmedia.com\/magento-security-audit\">Magento security audit<\/a>. Starting prices in USD, final quote after a short call. <a href=\"https:\/\/www.mconnectmedia.com\/contact\">Contact us<\/a>.<\/strong><\/p>\n\n\n\n<p>The source code, issue tracker and full README are on <a href=\"https:\/\/github.com\/mcsventures\/magento2-store-health-check\" target=\"_blank\" rel=\"noopener\">the module&#8217;s GitHub page<\/a>. The download and changelog are on the <a href=\"https:\/\/www.mconnectmedia.com\/magento-2-store-health-check.html\">Magento 2 Store Health Check product page<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sources<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/configuration-guide\/cli\/configure-cron-jobs\" target=\"_blank\" rel=\"noopener\">Adobe: Configure and run cron jobs<\/a><\/li><li><a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/configuration-guide\/cli\/manage-indexers\" target=\"_blank\" rel=\"noopener\">Adobe: Manage the indexers<\/a><\/li><li><a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/release\/versions\" target=\"_blank\" rel=\"noopener\">Adobe: Released versions<\/a><\/li><li><a href=\"https:\/\/github.com\/mcsventures\/magento2-store-health-check\" target=\"_blank\" rel=\"noopener\">Magento 2 Store Health Check on GitHub<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">More free extensions from our team<\/h2>\n\n\n<ul><!-- mcm-free-ext -->\n<li><a href=\"https:\/\/www.mconnectmedia.com\/magento-2-payflow-guard.html\">Magento 2 Payflow Guard<\/a> (free, <a href=\"https:\/\/github.com\/mcsventures\/magento2-payflow-guard\" target=\"_blank\" rel=\"noopener\">source on GitHub<\/a>)<\/li>\n<!-- \/mcm-free-ext --><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A Magento health check is a short list of things to look at before a customer finds the problem for you. Most store failures are<\/p>\n","protected":false},"author":1,"featured_media":15219,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[2584,2601],"tags":[2627,2626,138,2628],"class_list":["post-15220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2","category-magento-extensions","tag-cron","tag-extensions","tag-magento","tag-maintenance"],"_links":{"self":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts\/15220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/comments?post=15220"}],"version-history":[{"count":2,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts\/15220\/revisions"}],"predecessor-version":[{"id":15240,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts\/15220\/revisions\/15240"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/media\/15219"}],"wp:attachment":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/media?parent=15220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/categories?post=15220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/tags?post=15220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}