Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,220 of 9,220 pages
About the help in other languages
All help pages

Upgrade check and file consistency

What the upgrade check in the Exponential administration proves to a business, how the file and database consistency checks work, how to read their findings, and when to run them, before and after an upgrade and after…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/businesses/reliability/upgrade-check-and-file-consistency.md

On this page

Upgrade check and file consistency

This page is for managers who want proof that a site's files and database match the release they think it runs, and for the administrator who runs the checks. It explains what the upgrade check compares, what each finding means for a business, and when to run it. The full guide is The upgrade check; the manifest behind it is described in File consistency check.

The upgrade check with the file and database consistency checks
The upgrade check with the file and database consistency checks

Contents

  1. What it proves
  2. The two checks
  3. Reading the file findings
  4. Reading the database findings
  5. When to run it
  6. From a shell
  7. Safety
  8. Checklist

What it proves

Every release of Exponential ships a list of checksums of its files, share/filelist.md5. The upgrade check compares the installation with that list and with the schema of the release. For a business the result answers three questions (File consistency check, why you want it):

  • Before an upgrade: has anyone changed release files by hand, which an upgrade would overwrite?
  • After an upgrade: was anything left behind or edited by hand?
  • After an incident: was a file modified without anyone noticing?

The two checks

Both are on Setup > Upgrade check (/setup/systemupgrade), which needs the setup/setup policy (The upgrade check):

CheckComparesTypical time on the demonstration server
Check file consistencyEvery file in share/filelist.md5, and in the manifest of each active extension that carries one, with its checksumAbout 8,600 files in about one second with a warm file cache
Check database consistencyThe tables, fields and indexes of the database with the schema files of Exponential and the active extensionsAbout 0.1 seconds on SQLite

Times are from the guide (sections 3 and 6); a larger site or a busy server takes longer. Each check shows its own duration.

"Both checks only read. No file is written and no SQL is run. The SQL the database check shows is text for you to read" (The upgrade check, in short).

Reading the file findings

From The upgrade check, each finding and what to do, in business terms:

FindingWhat it means for the businessWhat to do
ModifiedA release file differs from what was shipped. An upgrade will replace it, and the change will be lost.If it was changed on purpose, have your developer move the change into an override, a design or an extension of your own. If nobody meant to change it, restore it from the release.
MissingA release file is not there; something may fail.Copy it back from the release.
UnreadableThe web server cannot read a file.Fix owner and mode.
Not listed, Malformed lines, Out of orderNotes about the list itself.Nothing on an installed site; they do not stop an upgrade.

The result line is green ("File consistency check OK.") or amber ("Warning: it is not safe to upgrade without checking the modifications done to the following files").

Tip

A list of "modified" files is also a map of where your site depends on hand changes. Each one is a future upgrade cost. Ask your developer to move them into your own extension or design over time.

Reading the database findings

From The upgrade check, database consistency:

FindingWhat it meansWhat to do
Missing tableA feature that uses it fails until it is thereRun its CREATE statement, after a backup
Table not in the schemaUsually a table of your own extension, or of a removed oneLeave it unless you know its data is no longer needed
Table of an extension that is not activeBelongs to an installed, inactive extensionLeave it, or activate the extension
Changed tableFields or indexes differ from the shipped definitionRead each statement; statements marked Removes something can remove data
Engine notesDifferences the engine writes no SQL forNothing; they do not fail the check

The page never runs any SQL. Every statement is reviewed by a person and run, if at all, after a backup.

When to run it

MomentWhy
Before planning an upgradeHand changes become tasks in the plan (Upgrades without surprises)
On the rehearsal copy, after the upgradeProves the rehearsal left nothing behind
On the live site, after the upgradeThe guide's verification step (Upgrading, verify the upgrade)
After a security incidentShows whether release files were modified (Incident response for small teams)
Once a quarterA quick health check of the installation

Download the report each time (Download CSV or Download text for the files, Download SQL for the database) and keep it with the upgrade record. It is the evidence that the check was done and what it found.

From a shell

The same file findings, from the installation root (The upgrade check, from a shell):

php bin/php/checkmanifest.php --all                 # exit 0 when nothing is modified or missing
php bin/php/checkmanifest.php --all --extensions    # also every extension with its own manifest
php bin/php/checkmanifest.php --all --extensions --csv > report.csv

The command needs no kernel, settings or database, and uses the same class as the page, so the findings agree. Its exit status makes it usable in an automated check after every deploy.

Safety

From The upgrade check, safety:

  • Both checks and all downloads only read; the page has no button that writes a file or changes the database.
  • Each run and each download is written to the audit trail as system.upgrade.run, with the outcome and the number of differences (Audit trail for operations).

Checklist

  • To do: The upgrade check is run and its report saved before every upgrade.
  • To do: Every Modified file has an owner and a plan: keep, move into your own code, or restore.
  • To do: The check is run again after the upgrade, on the copy and on the live site.
  • To do: Database statements are only run after a backup, and after a person has read them.
  • To do: After a security incident, the file check is part of the investigation.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x