Why a Mautic update stalls and when to recover it
An update that stops partway leaves a Mautic instance in an in-between state: the code on disk may already be on the new release while the database schema is still on the old one, or the admin screen may show a pending schema update or an error page. Marketing sends may be affected until the instance is consistent again, so the first question is whether scheduled campaigns, segment updates and queued emails are still running. Recovery steps depend on the release you have installed, so start by confirming the exact version from the admin area and from the codebase before you run any command.
Mautic is a PHP application built on Symfony, and an update changes two things at once: the application code and the database schema that code expects. Each release line has its own requirements. The Mautic 7.0 requirements call for PHP 8.2, 8.3, 8.4 or 8.5, MySQL 5.7 or higher with InnoDB, or MariaDB 10.2 or higher, and npm from Mautic 5.0 onward. A stalled update often traces back to a server that no longer meets the requirements for the target release, or to a PHP or database version that changed under the application. Check the Mautic requirements page against your current stack before deciding the failure is in the application itself. Also confirm that your release is still under security support, using the Mautic releases page, because the recovery path for an unsupported line may be different from the one for a supported line.
Bring in outside help when the failure involves production data, when the instance is serving live campaigns and you cannot take it offline, or when the cause is not clear after the first checks. Also consider a partner if the hosting is shared or under-resourced, since the project states that Mautic should not run on shared hosting and recommends a VPS or dedicated server instead. Before any repair, confirm that you have a recent database and file backup that you have tested in a separate environment, because every recovery step modifies the schema or the code. Ask any partner to confirm how they will verify the instance after recovery, including cron jobs, queue consumers and a test send, rather than only confirming that the admin screen loads.
Recovery options and when each fits
This table compares five ways to recover a stalled Mautic update, from the admin notice to escalating to a partner. Read each row for the situation it suits, the risk it carries and what to confirm before you start, and treat a tested backup and an agreed maintenance window as the baseline for anything that changes the database or code.
| Recovery option | Best suited to | Main risk | Confirm first |
|---|---|---|---|
| Check the admin schema update notice | The update finished its code change but the admin area still asks you to update the database schema | Clicking the prompt on a busy instance can run schema changes while users and campaigns are active | Current release and target release, a recent database backup, and whether cron and queue workers are paused |
| Clear the cache | The site shows errors or stale screens after files were replaced, with no sign that migrations failed | Clearing cache does not repair a half-applied database change, so the error may return | That the error appears after the cache is cleared, and that file ownership is correct for the web server user |
| Rerun migrations from the command line | The web update timed out or stopped partway, and the schema check still reports pending changes | A run interrupted mid-migration can leave tables in an inconsistent state that needs manual repair | A verified backup of the database, a maintenance window, and the migration status output from the console |
| Restore a tested backup and roll back the code | Migrations fail repeatedly, data looks wrong, or the instance cannot be brought to a working state | Data created after the backup is lost, and restore steps that were never rehearsed often fail under pressure | A restore already tested in a separate environment, the exact code version to return to, and who approves data loss |
| Escalate to a partner | The cause is unclear, the instance is business critical, or the hosting resources are the likely problem | Delay and cost if the scope is not agreed in writing before access is given | Access rights, a written scope, the Mautic and PHP versions in use, and logs from the failed attempts |
Recovery sequence after a stalled update
This sequence brings a stalled Mautic update back to a known state by pausing activity, confirming the release and PHP version, backing up, repairing the schema and cache, and checking that core functions work again. Each step ends with a check so you know whether to continue.
Pause sends and background jobs
Before touching the code, stop anything that writes to contacts or sends email. Disable the cron entries for segment updates, campaign updates, campaign triggers and the broadcasts command, and stop the messenger consumer if queued email is running. Your administrator or the person on call should confirm in writing which jobs were paused so nobody restarts them mid-repair. Done means the scheduler shows no active Mautic jobs and the queue has stopped draining.
Confirm release and PHP version
Record the Mautic version currently installed and the PHP version the web server actually runs, which can differ from the command-line PHP. Compare both against the Mautic requirements page, including the supported PHP range, database version and web server listed for your release line. Also confirm the release you were upgrading to. Done means you have a written pair of versions that the requirements page lists as compatible; if the PHP version is outside that range, stop and fix it before continuing.
Take a full backup of database and files
Create a database dump and a copy of the application files, configuration and media folders before running any repair command. Store the backup outside the server being repaired and record its timestamp and checksum. Your team should restore it to a separate environment to confirm it is usable. Done means the restore test completes and the restored instance loads, so you have a known fallback point.
Check the schema status
Run the Mautic database schema status check from the command line in the application directory with the same PHP user the web server uses. Read the output to see whether migrations are pending, partly applied or reporting errors. Keep the full output for the incident record. Done means you know whether the database is behind the code, and you have a list of pending migrations or the exact error that stopped them.
Clear the cache
Clear the Symfony cache through Mautic's console so stale compiled containers and configuration do not mask the real state. Check that the cache directory is writable by the web server user, since permission errors here often look like update failures. Done means the cache clear command finishes without errors and the cache directory is rebuilt with correct ownership.
Rerun migrations from the command line
Run the Mautic database migration command from the application directory, watching the output for each migration and any error. If a migration fails, do not retry blindly; capture the error, check resource limits and database locks, and compare against the schema status from the earlier step. Run the schema check again afterward. Done means the schema status reports no pending migrations and the migration command exits cleanly.
Verify login, segments, campaigns and cron
Sign in through the browser with an administrator account and confirm the dashboard loads without error messages. Open a segment and a campaign and confirm they display their contact counts and status. Re-enable the cron jobs one at a time, staggered as the cron documentation describes, and confirm each runs and logs completion. Restart the messenger consumer only after a test message sends. Done means login works, segments and campaigns load, and each cron job completes once without errors.
Review hosting capacity before the next update
If the update stalled because of timeouts, memory errors or a slow database, the cause is often under-sized hosting rather than the update itself. The Mautic requirements page states that Mautic should not run on shared hosting and recommends a VPS or dedicated server. Ask your platform team to confirm CPU, memory and database capacity against the project's guidance and record the findings. Done means the capacity review is documented and any gaps are assigned before the next upgrade is scheduled.
Why under-resourced hosting causes update failures
The Mautic project states that Mautic should not be installed on shared hosting and recommends a VPS or dedicated server instead. The reason is structural: shared plans cap PHP execution time, memory and process counts for every site on the machine, and the provider often sets those limits without notice. A schema migration is a long, single-threaded job that holds database locks and writes many rows, so it is the first thing to hit a ceiling. Shared environments also frequently restrict command-line access, which means the migration commands described on this page may not run at all.
- Execution limits: a web request or cron job may be killed mid-migration, leaving the schema half updated.
- Memory caps: the provider's per-account limit can be lower than what the update needs, and the failure appears as a generic fatal error.
- No shell access: without SSH and the ability to run the Mautic console, the recovery steps in this topic cannot be performed.
- Shared database load: other tenants can slow the database during the migration, extending locks.
Before planning any recovery on shared hosting, confirm whether you have shell access and the PHP version and limits in writing. In most cases the realistic fix is a move to a VPS or dedicated server rather than a retry.
A VPS is the project's recommended class of host, but a VPS sized for a small instance can still fail during an update. The usual pattern is that the application runs well day to day, then the migration or cache rebuild exhausts memory, disk or database connections. Update work is burstier than normal traffic: it loads more code, rebuilds caches and writes large amounts of data. The failure often looks like a stalled progress bar, a blank page or a process killed by the operating system, and it may not appear in the web server error log at all.
- PHP memory limit: the
memory_limitsetting inphp.inican be too low for the migration, and the CLI and web SAPI may use different values. - Execution time:
max_execution_timeapplies to web requests, so long operations should run from the command line instead of a browser. - Disk space: the database, temporary files and the cache directory all grow during an update, so a full volume can halt it.
- Out-of-memory kills: the kernel can terminate MySQL or PHP-FPM workers when RAM runs short, leaving no PHP error.
Ask your provider or operations team to confirm the RAM, free disk space, and the effective PHP limits for both the web and CLI contexts, and check the database buffer and connection settings before retrying.
A dedicated server has the hardware for Mautic, but it can still fail if resource limits are applied at another layer. Container memory limits, cgroup CPU quotas, ulimits, hypervisor caps, and database connection limits all sit between the application and the hardware. Many of these are set once during provisioning and forgotten, so the server looks healthy under normal load while the update quietly hits a boundary. Because the limit is outside PHP, changing php.ini alone does not solve it.
- Container or cgroup caps: a Docker or systemd memory limit can kill the migration process even when the host has free RAM.
- File descriptor and process limits: low
ulimitvalues can break workers that open many files or connections during schema changes. - Database connection limits:
max_connectionson MySQL or MariaDB may be exhausted by queue workers that keep running during the update. - Backup and snapshot jobs: scheduled snapshots or backups running at the same time compete for disk and I/O.
Before retrying, ask the team that manages the server to confirm every limit in the path, pause scheduled jobs and workers during the attempt, and confirm that a current backup exists and was restored in a separate environment.
Security and operational risks during recovery
A half-finished update leaves Mautic in a state nobody fully controls: code, schema, configuration and background workers may disagree. The cards below cover the exposures that appear during that window and the checks to run before you consider the instance back in service.
Admin interface left reachable
A stalled update often leaves the application in maintenance or partial state, yet the login page and admin routes still answer requests. Anyone who finds the domain can probe an instance that is running mismatched code. Restrict the admin paths to your management network or VPN until the schema check passes, and confirm that your web server and proxy rules still apply after you change the vhost or reload the server.
Cron and messenger running on old code
Segment updates, campaign triggers and the messenger consumer keep firing while you repair the database. If they load a different code version than the web tier, they can write rows the schema no longer expects or send duplicate campaign actions. Pause the scheduled jobs and stop the consumer processes first, then restart them only after the version and migrations match on every node.
Mautic cron docsCredentials and config edited mid-recovery
Recovery work often involves editing the local configuration file, database settings or mailer and integration credentials. Changes made in a hurry can leave a stale copy on one server, expose secrets in shell history or tickets, or point the application at a database that is not the one you intend to repair. Record every change, keep secrets out of commands you paste into chat, and compare the config file across nodes before you resume traffic.
Backups with weaker controls
Teams often copy a database dump and the files directory to a scratch host to test a fix, and that copy can contain contact records, consent history and API tokens. It should carry the same access controls, encryption and retention rules as production. Confirm who can read the copy, where it is stored, and when it is deleted, and treat it as personal data for any contacts it holds.
Staff access beyond their role
During an incident, administrators often share one account or grant broad roles so that several people can work in parallel. Those grants usually outlive the incident and let users see or export contacts they do not need. Use named accounts with the minimum user role that allows the task, and review the user list and API credentials once the instance is stable again.
Questions teams ask before recovering a Mautic update
How much effort does recovering a failed Mautic update take?
Effort depends on how far the update got before it stalled. A stall before any database change is usually a matter of clearing cache, checking file ownership and rerunning the update from the command line. A stall partway through migrations takes longer because the engineer must confirm which schema changes applied, repair the rest and verify that contacts, segments and campaigns still behave correctly. Other drivers include the number of custom plugins, the size of the contact table, how many PHP and web server settings need changing, and whether a clean test copy of the instance exists. Ask any partner to break its estimate into diagnosis, repair, verification and handover so you can see where the hours go.
Can an in-house admin recover a Mautic update without outside help?
A competent administrator with shell access, database access and Mautic's documentation can often recover a simple stall. The work becomes risky when the database is partly migrated, when a plugin blocks the update, or when no recent backup exists. Before attempting recovery, confirm that your team can read the Mautic logs, run the console commands as the correct web server user, and restore the database if a step goes wrong. If any of those skills are thin, the cost of a mistake on a live marketing database usually outweighs the cost of bringing in an engineer for the recovery window.
How long does the recovery window need to be?
The window depends on instance size and environment, so no fixed duration applies to every case. Larger contact tables, slower database storage, limited memory and CPU on the host, and a large number of queued messages all extend migrations and cache rebuilds. Plan for campaign triggers, segment updates and broadcast jobs to stay paused during the work so they do not run against a half-updated schema. Ask for the expected window in writing, and ask what would extend it, such as a failed restore test or an incompatible plugin.
What does recovery need from our team?
Recovery needs administrator access to the server, a database account that can alter tables, read access to Mautic logs and a way to see the current version and PHP version. It also needs a recent backup of the database and the files, ideally tested in a separate environment before any change is made to production. Name a business owner who can approve pausing email sends and campaigns, and agree a contact for decisions during the window. Before work begins, confirm which accounts, credentials and change windows are required so access is not the bottleneck.
Should we bring in a partner when the database is partly migrated?
Yes, in most cases a partly migrated database justifies outside help. Partial schema changes are hard to reason about, and a wrong manual step can leave contact data, consent records or campaign history inconsistent. A partner should first take a full copy, identify which migrations completed, and document the state before changing anything. If your team holds the knowledge and a verified backup exists, you may handle the repair internally, but agree the decision and the rollback point before the first command runs.
How does recovery relate to planned Mautic upgrades?
Recovery repairs an update that already failed, while a planned upgrade moves a healthy instance to a supported release. The two share checks: confirming the PHP version and database requirements, testing against a copy and verifying backups. Mautic publishes a release cadence with monthly patch releases, minor releases every three months and major releases every two years, and support windows differ by release line. Keeping the instance on a supported line reduces the chance that a future update stalls in the first place, so treat recovery as a signal to review the upgrade plan rather than a one-off fix.
Can under-resourced hosting cause an update to fail?
Yes. Mautic is a PHP application on Symfony with a database behind it, and migrations and cache rebuilds need enough memory, execution time and disk. The Mautic project states that it should not be installed on shared hosting and recommends a VPS or dedicated server instead. Check PHP memory and execution limits, database performance and free disk space during the diagnosis. Also confirm that the server meets the requirements for your target release, including the supported PHP versions and MySQL or MariaDB versions published on the Mautic requirements page.
Decision path from stalled update to working instance
The path starts when an update stops partway, with a full backup taken before any change. Next, check the target release and its requirements against the running PHP, database and web server. From there, choose between clearing the cache and rerunning migrations from the command line, depending on what the failure shows. Each fix ends in the same checks: the admin login, contact pages, segments, campaigns and email sending. If those checks still fail, escalate or restore from the backup.
Decision path for recovering a stalled Mautic update, from backup to verification.
How DeployOpen scopes and recovers a stalled Mautic update
DeployOpen plans and implements self-hosted open-source platforms inside the client's own infrastructure, so a stalled Mautic update is handled in the environment your team already controls: your cloud account, data center or private network. Recovery work starts with a written scope that covers four parts: diagnosis of the stalled state, verification of a usable backup, the recovery steps themselves, and a verification pass that confirms the instance serves pages, sends email and runs its cron jobs and queue consumers again. Confirm in that scope which Mautic version and PHP version are running, which database engine is in use, and whether the failed update left the instance in maintenance mode.
The scope also needs to name who holds each decision. Rerunning migrations from the command line changes the production database, so the written plan should state who approves that step, where the backup is restored first for a test, and what rollback looks like if the rerun fails partway. Ask for the diagnosis findings in writing before any change is made to the live system, and confirm whether the hosting capacity review is included or billed separately. Ongoing support, upgrades and continuous checks are available as retainers, which suits teams that want the same engineers to know the instance over several release cycles.
DeployOpen does not publish a price list. A quote follows from the written scope, so the fastest way to get an accurate figure is to describe the instance, the failed update, the backup status and the outcome you need, then ask for a fixed-scope proposal with deliverables and timelines agreed in writing before work starts. Each cost component should appear as a separate line in that proposal: diagnosis, backup verification, recovery, verification, and any retainer. Ask which items are one-time and which recur, and what would change the price if the diagnosis finds resource limits on the host rather than a software fault.

