Skip to content
Monitoring & incident response

Shopware system check: what system:check reports and misses

Shopware ships its own system check, system:check. What its exit codes, contexts and HTTP endpoint report, what it cannot see and how to evaluate it safely.

19 min read MonitoringShopwareHealth-CheckUpdates

In short and in plain language

Shopware has its own test for the shop. It is called the system check. You start it with a command on the server. Or you ask for it at an address on the web.

At the end the test gives a number. 0 means: all is fine. 1 means: something is not fine. 2 means: the command was wrong.

Many parts of the test only run with one extra word in the command. Without it they are skipped. A skipped part has checked nothing.

Some things the test does not see at all. That includes the payment, the mails and the whole purchase. For these you need a check from outside.

After each update the test should run first. Only then should the shop sell again.

Since version 6.6.6.0, Shopware has shipped its own system check: the system:check command and the /api/_info/system-health-check endpoint (Shopware changelog). To many shop operators that sounds like ready-made monitoring. A green run, however, is not automatically a healthy shop. The command knows three exit codes (Shopware documentation), the HTTP endpoint answers with the status of the request rather than the result of the checks, and most built-in checks only run in one particular execution context. This article shows what the system check actually tests, how to read exit codes and status values, where the traps lie when evaluating them, what the check cannot see by design and where it belongs in the update routine and next to external monitoring. It is based on the Shopware documentation, the changelog and the source code of version 6.7.16.0, released on November 2, 2026 (GitHub).

Key takeaways

  • bin/console system:check exits with 0 when all checks are healthy, 1 when one is not, and 2 for an invalid call (Shopware documentation). The command has existed since Shopware 6.6.6.0 (Shopware changelog).
  • Without an option the command runs in the cli context. There, 6.7.16.0 only allows the locale check; administration, sales channels, product and category pages are checked only with --context=pre_rollout, written with an underscore (Shopware source code).
  • A check skipped because of its context does not count as healthy and sets the exit code to 1, while the product and category checks report SKIPPED with healthy true when there is nothing to test (Shopware source code). Evaluate each check, not just the exit code.
  • The /api/_info/system-health-check endpoint returns the result in its JSON body; its HTTP status only shows whether the request succeeded (Shopware documentation). Since 6.7.4.0 it accepts a static token as well as a bearer token (Shopware changelog).
  • The core does not check payment providers, mail delivery, the path from cart to completed order or certificate lifetimes. That takes custom checks or external monitoring that measures from outside, independent of the shop server.
  • After every update, run system:check --context=pre_rollout --format=json before go-live, then measure home, product and category pages over HTTP from outside and place a test order through to the confirmation email.

What the system check is

Shopware introduced the system check with version 6.6.6.0 (Shopware changelog). The changelog entry lists the check structure in the Shopware\Core\Framework\SystemCheck namespace, the system:check command that runs all checks, and the /api/_info/system-health-check endpoint that returns the health status. The reasoning is laid out in an architecture decision record: there had been rollouts in which an error in certain functions was only noticed once the system was live (Shopware architecture decision record). The system check is meant to surface such errors earlier and can be extended with custom checks.

The documentation assigns every check to a type (Shopware documentation). Readiness checks run before a system accepts traffic. Health checks run periodically, by hand or from a monitoring system. Long-running checks are health checks that may take a long time and should run in the background. For health checks, the architecture decision record requires that they be fast and inexpensive and not block the system (Shopware architecture decision record). It sets no such requirement for readiness checks.

Each check also carries a category: SYSTEM for the backbone of the software, such as the database connection, FEATURE for individual functions like the payment system, EXTERNAL for outside services like the mail server and AUXILIARY for auxiliary services like background tasks (Shopware documentation). A result consists of a status, a message, optional extra data and the healthy field. The defined statuses are OK, SKIPPED, UNKNOWN, WARNING, ERROR and FAILURE. According to the documentation, healthy is the only subjective value: true if the system can still function normally, false if it cannot, and null if that cannot be determined (Shopware documentation).

Two ways in: command and endpoint

The command runs wherever the Shopware console is available, so on the server, in the container or in the pipeline. Without further options it works in the cli execution context; the --context option changes that (Shopware documentation). Since version 6.6.7.0, --format=json produces machine-readable output (Shopware changelog). According to the source code, the command only prints a check's extra data, such as response times or the list of invalid locale codes, with the -v option; without it the extra field stays empty in the JSON output (Shopware source code).

Calls on the console
# default run in the cli context
bin/console system:check

# readiness check before go-live, machine-readable, with extra data
bin/console system:check --context=pre_rollout --format=json -v

# show the exit code of the last command
echo $?

The second way in is the HTTP endpoint /api/_info/system-health-check. It requires authentication: a valid Admin API bearer token or, since version 6.7.4.0, a static token in the header Authorization: Static … (Shopware changelog). The static token lives in the configuration under shopware.api.static_token.health_check; the changelog recommends setting it as an environment variable because it should stay secret (Shopware changelog). By default the value is empty (Shopware source code). Anyone who enters the token into a monitoring tool should treat it like any other access key; how to store and rotate such secrets is covered in API keys and secret rotation.

Not to be confused with it is the older /api/_info/health-check endpoint. It has existed since version 6.5.5.0; according to the changelog it checks the basic availability of the application and is intended for container health checks (Shopware changelog). It requires no authentication and answers with an empty body (Shopware source code). It is useful for a simple availability measurement. It says nothing about the individual checks of the system check, because it does not run them at all.

Reading exit codes correctly

For the command, the documentation defines three exit codes: 0 if all checks are healthy, 1 if a check is marked as unhealthy, and 2 if the call is invalid (Shopware documentation). The values follow the constants of the Symfony console framework the command is built on: SUCCESS equals 0, FAILURE 1 and INVALID 2 (Symfony documentation). A script, a pipeline or a monitoring agent can therefore evaluate the value directly.

Exit codeMeaning per documentationWhat the source code has behind it
0All checks healthyEvery result carries healthy with the value true, including a check that measured nothing for lack of something to test
1At least one check not healthyA real finding, an exception inside a check, or a check that was skipped in the chosen context
2Invalid callUnknown context or unknown output format, for example pre-rollout with a hyphen

The source code is stricter at one point than the documentation sounds. The command returns FAILURE as soon as a result's healthy is not explicitly true (Shopware source code). That also applies to checks that are not allowed to run in the chosen context: they appear as SKIPPED with the message Check not allowed to run in this execution context, and their healthy field is null (Shopware source code). Anyone calling system:check without a context may therefore see a 1 even though the only check that ran is green. Conversely, a 0 is no proof that anything essential was tested.

Underscore, not hyphen

The documentation writes the context as pre-rollout (Shopware documentation). In version 6.7.16.0 the command expects the value pre_rollout with an underscore (Shopware source code). With a hyphen it stops with the message Invalid context provided and exit code 2, without running a single check. An update script that treats every non-zero value the same takes that for a red check rather than a typo.

What the HTTP status leaves out

For the endpoint, the documentation states that the HTTP response code only indicates the status of the request, not the status of the checks (Shopware documentation). That matches the HTTP standard: status 200 means that the request has succeeded (RFC 9110). A response with status 200 can therefore report FAILURE for the administration in its body. Monitoring that only looks at the status code stays green in that case. The same pattern is familiar from availability checks: the home page answers, the purchase still fails. More on this in checkout monitoring.

Then there is the context. For the HTTP call, the documentation names the web context (Shopware documentation). In the core of version 6.7.16.0, however, no check is enabled for that context: the locale check runs in cli, recurrent and pre_rollout, all others only in pre_rollout (Shopware source code). Without a parameter the endpoint therefore reports every core check as skipped. The 6.7.16.0 source code does accept a context parameter (Shopware source code). But then the readiness checks run on every call and send requests to home, product and category pages. They are not built for polling every minute: the architecture decision record intends them for infrastructure teams who check whether a system is ready to be rolled out (Shopware architecture decision record).

For the evaluation this means: read the JSON body, not the status code. Under checks there is one entry per check with name, status, message, healthy and extra data (Shopware source code). A run is only healthy when every name that should run in the chosen context is present and none of them reports anything other than true for healthy. If a name is missing, the check did not run, and that is a finding, not an all-clear.

What the core actually checks

In the source code of version 6.7.16.0, the following checks are registered with the shopware.system_check tag (Shopware source code). Extensions or custom development can add more; the table shows the state of the core.

CheckCategoryContextWhat it checks
LocalesReadinessSYSTEMcli, recurrent, pre_rolloutwhether all stored locale codes are valid; invalid ones produce WARNING and count as not healthy
AdministrationReadinessFEATUREpre_rolloutwhether the administration's start page answers without an error status and its JavaScript bundles exist
SalesChannelsReadinessFEATUREpre_rolloutwhether the home page of each active storefront sales channel answers without an error status
ProductDetailReadinessFEATUREpre_rolloutthe product page of the first active, visible product in stock per sales channel
ProductListingReadinessFEATUREpre_rolloutone category page with a product listing per sales channel

The administration check was added with version 6.7.4.0 (Shopware changelog). It is the only one that checks the build state: if the built administration files are missing after an update, it reports FAILURE. That makes it a useful gate after every change in the build chain, for example after a new Node.js version, as described in Node.js in the shop build.

The storefront checks do not send their requests through the web server and the network but directly through the kernel of the process running the check. A comment in the source code notes that a call from the command line has no HTTP request (Shopware source code). Web server, reverse proxy, certificate and DNS are therefore outside of what these checks see. An exception while building the page is written to the log as Error during systemcheck, and the check counts the call as failed (Shopware source code).

In our test installations exactly this design produced false alarms: the product and category checks reported FAILURE on the console while the same pages answered over HTTP with status 200 and complete content. The log showed messages about a missing sales channel context (project experience). A red result from these checks is therefore first of all a reason to open the page from outside and read the log, not to rebuild anything in the shop.

Not every skip is the same skip

The SKIPPED status comes about in different ways in the source code, and each means something else (Shopware source code):

  1. Not allowed in the context: the check may not run in the chosen context. The message reads Check not allowed to run in this execution context, healthy is null, and the command exits with 1.
  2. Stopped after a system failure: if a check in the SYSTEM category reports not healthy, the following categories no longer run (Shopware documentation). The message reads Check is not run due to previous failed checks., healthy is null. In the 6.7.16.0 core only the locale check belongs to this category: a single invalid locale code is enough for all other checks to be skipped (Shopware source code).
  3. Nothing to test: if the product or the category check finds no active product in stock or no category with a product listing in any sales channel, it reports SKIPPED with healthy set to true. The command can then exit with 0 although nothing was measured at this point.

For evaluation this yields a simple rule: a SKIPPED is not a measurement but the information that nothing was measured. Anyone building a script around the system check keeps a list of the names that should run in the chosen context and treats every SKIPPED among them as a finding. In our test installations, HTML occasionally followed the JSON output as well, and a reader that parsed the whole output as JSON failed on it (project experience). It is more robust to read only the first complete JSON object and discard the rest, as in this sketch:

Evaluation per check (sketch)
import json
import subprocess

run = subprocess.run(
    ['bin/console', 'system:check', '--context=pre_rollout', '--format=json'],
    capture_output=True, text=True)

# read only the first complete JSON object, discard trailing text
data, _ = json.JSONDecoder().raw_decode(run.stdout.lstrip())
results = {check['name']: check for check in data['checks']}

expected = ['LocalesReadiness', 'AdministrationReadiness', 'SalesChannelsReadiness',
            'ProductDetailReadiness', 'ProductListingReadiness']

# missing, skipped or not healthy counts as a finding
findings = [name for name in expected
            if name not in results
            or results[name]['status'] == 'SKIPPED'
            or results[name]['healthy'] is not True]

print('exit code', run.returncode, 'findings', findings)

What the check cannot see

The concepts page names checks for the database connection, the payment system and the mail server as examples (Shopware documentation). The core of version 6.7.16.0 contains no dedicated check for payment or the mail server, and the EXTERNAL and AUXILIARY categories have no entry there (Shopware source code). The database only shows up indirectly, because the locale check reads from it. Much of what customers experience while shopping therefore lies outside the built-in checks:

Payment

Whether the payment provider responds, whether webhooks arrive and whether a payment makes it to the paid status is not checked by the core. What matters with interface changes and webhook failures is covered in maintaining payment APIs.

Mail delivery

Order confirmation and shipping mail depend on mail sending and on DNS records. Whether the mail arrives is invisible to the system check; what counts for that is described in DMARC and deliverability.

Order path

The storefront checks open the home, product and category pages. Cart, checkout, payment selection and order completion are not part of them. Only a purchase replayed from outside tests this path.

Certificate and domain

Because the checks do not go through the network, an expired certificate or a wrong DNS record goes unnoticed there. Both are only measured by a check that opens the shop the way a visitor does.

With certificates the gap grows. Ballot SC-081v3, adopted by the CA/Browser Forum, reduces the maximum validity of public TLS certificates step by step from 398 to 47 days (CA/Browser Forum). The steps began in March 2026 and end in March 2029 (CA/Browser Forum). Every additional renewal is another opportunity for an outage that the built-in system check does not report; how to automate and monitor renewal is covered in 47-day certificates.

On top of that comes a fundamental point: the system check runs inside the shop itself. If the server is unreachable, the database hangs or the disk fills up, it may not be able to report anything at all. Monitoring that measures from outside catches exactly this case. How to set it up and route alerts is described in uptime monitoring setup.

Adding custom checks

The system check is built as a framework. A custom check extends the BaseCheck class, defines category, name and allowed contexts and is registered as a service with the shopware.system_check tag (Shopware documentation). The documentation demonstrates this with a disk space check that reports WARNING when a threshold is undercut and still leaves healthy at true. The following excerpt sketches a mail server check along the same lines; the actual connection test is project code.

Sketch of a custom check (excerpt)
class MailServerCheck extends BaseCheck
{
    public function category(): Category
    {
        return Category::EXTERNAL;
    }

    public function name(): string
    {
        return 'MailServerReachable';
    }

    protected function allowedSystemCheckExecutionContexts(): array
    {
        // connecting takes time: long-running contexts only
        return SystemCheckExecutionContext::longRunning();
    }

    public function run(): Result
    {
        $reachable = $this->connectToMailServer(); // project-specific logic

        return new Result(
            name: $this->name(),
            status: $reachable ? Status::OK : Status::ERROR,
            message: $reachable ? 'Mail server reachable' : 'Mail server not reachable',
            healthy: $reachable,
        );
    }
}

The choice of context matters. A check that may also run in the web context is executed on the HTTP call and, according to the architecture decision record, has to be fast and inexpensive (Shopware architecture decision record). Slow checks belong in the long-running contexts cli, recurrent and pre_rollout. And the healthy field is set deliberately: the documentation calls it subjective and dependent on the specific shop's criteria (Shopware documentation). A warning the shop can keep selling with gets true; a state in which no order goes through gets false. Whether an unreachable mail server falls into that category is the operator's decision.

Sensible candidates for custom checks are the age of the oldest message in the queue, the last run of scheduled tasks, free disk space and the reachability of the mail server. Why background jobs in particular fail silently and how to monitor their runs is covered in silent job failures in the shop.

The check in the update routine

The system check is most useful where the architecture decision record places it: before the rollout. As a consequence it states that the check helps detect issues at the time of deployment and keep them from reaching end users (Shopware architecture decision record). After every update, whether core, extension or theme, it therefore runs on staging and once more on production before the shop is released again. A routine in six steps:

  1. Apply the update on staging, clear caches, rebuild administration and storefront.
  2. Run bin/console system:check --context=pre_rollout --format=json -v and keep both exit code and output.
  3. Evaluate status and healthy per expected name; treat missing names and every SKIPPED as a finding.
  4. On a FAILURE from a storefront check, open the page from outside and search var/log for Error during systemcheck before changing anything.
  5. Measure home, product and category pages over HTTP from outside and run a test order through to the confirmation email.
  6. Only then go live and watch the external monitoring more closely for the first hours.

How staging, tests and a way back fit together is covered in installing Shopware updates safely and update testing after shop updates. The system check replaces none of these steps, it makes one of them measurable. Its result goes into the maintenance log with date and Shopware version, so the next update can be compared against it.

Working together with external monitoring

The system check and external monitoring answer different questions. The system check looks at the application from inside and knows terms like sales channel and administration. External monitoring looks from outside, the way a customer reaches the shop, and measures network, certificate, response time and content. Only together do they give a complete picture.

QuestionSystem checkExternal monitoring
Is the shop reachable from outside?no, it runs inside the shopyes, over the network like a visitor
Is the administration fully built?yes, in the pre_rollout contextonly indirectly by opening /admin
Do product and category pages answer?yes, as an internal request without web serveryes, through web server, proxy and network
Is the certificate about to expire?not included yes, with remaining lifetime
Does the order confirmation arrive?only with a custom checkonly with a test order
Does it report a total server outage?not included included

To combine both, let the monitoring query the endpoint with a static token and evaluate the JSON body. For that to measure anything in the web context, you need a custom, fast check that is allowed to run there; the readiness checks stay in the update routine. Alerts from both sources belong in the same escalation chain, as described in log monitoring and alerting.

What we make of it in maintenance

In Shopware maintenance we can build the system check into the update routine as a gate: with the pre_rollout context, with an evaluation per check and with an HTTP cross-check from outside before a shop starts selling again after an update. Alongside it, our shop monitoring checks status code, response content and response time over HTTP and HTTPS and watches the SSL certificates. Which check intervals and response times apply is set out in the SLA maintenance contract. Custom checks for payment, mail or the queue are set up where a shop needs them.

Sources

This article is based on data from: Shopware documentation, System Checks pages in the Guides and Concepts sections and Add Custom Check (developer.shopware.com); Shopware architecture decision record System Health Checks in Shopware (developer.shopware.com); Shopware changelog, entries for versions 6.5.5.0, 6.6.6.0, 6.6.7.0 and 6.7.4.0 (GitHub); Shopware source code in version 6.7.16.0, classes SystemCheckCommand, SystemChecker, Result, SystemCheckExecutionContext, HealthCheckController and the bundled checks (GitHub); release v6.7.16.0 (GitHub); Symfony documentation, Console Commands page (symfony.com); RFC 9110 HTTP Semantics (rfc-editor.org); CA/Browser Forum, Ballot SC-081v3 (cabforum.org). All sources accessed on November 3, 2026.

Related Articles

Maintenance & updates

Composer blocks the update: resolving the security block

Composer blocks the update over a security advisory? How to read the message, find the dependency path, move to the patched version and set dated exceptions.

17 min read
Maintenance & updates

Custom Mail Templates in Your Shop: Where Updates Stop

Shopware changed its order confirmation three times in fall 2026, but customized templates kept the old version. How to check mail templates after updates.

18 min read
Maintenance & updates

Shopware Updates: Safe Deployment

Plan and deploy Shopware updates safely: staging environment, regression testing, rollback plans and plugin compatibility for live operations.

14 min read