Automatic plugin updates with staging first and automatic rollback
Last updated
Automatic updates keep plugins current without you clicking anything, while still taking the precautions a careful person would. Every automatic update is backed up first, checked afterwards and rolled back if the site breaks. After that, the site is watched for a while before the update is called a success.
You decide which plugins update automatically, where updates go first (staging or production), and which updates must wait for your approval. This guide explains each choice and how to read the run log.
Where the settings are
There are two places to work with automatic updates:
- Updates & plugins in the left-hand menu, then the Auto Updates tab. This shows the run log for every site, and settings for one site at a time, picked with "Settings for".
- A site’s own page, then Auto-updates in its side menu. This shows the same thing for just that site.
Which plugins update automatically is set per plugin, in the Auto Update column of the All Plugins table on the Updates & plugins page (or the Plugins section of a site).
Choose which plugins update: auto-update groups
Every plugin is in one of three groups. Change a plugin’s group with the drop-down in its Auto Update column; it saves straight away.
| Group | What happens | Good for |
|---|---|---|
| Auto update | Minor and patch versions update automatically, with a backup and health check. | Well-known plugins with large install bases. |
| Auto update with full backup | Like auto update, but a full-site backup is taken first. | Checkout, payment, forms and membership plugins. |
| Manual only | Never updated automatically. Security fixes are still offered for your approval. | Custom or premium plugins, and plugins with known breaking changes. |
A minor or patch version is a small step such as 2.4.1 to 2.4.2 or 2.5. A major version is a bigger jump such as 2.x to 3.0, which is more likely to change how the plugin works.
Per-site settings
The Auto-update settings card has four choices. Change them, then click Save.
Where updates go
- Staging first (recommended): updates run on the site’s staging copy first. Production (the live site) follows only after staging updated cleanly and has had time to settle. Sites without a staging copy update directly.
- Production directly: production updates as soon as the release has settled and its turn comes, without waiting for staging.
- Staging only: only the staging copy updates automatically. Every production update waits for your approval.
Be a canary
Switch this on to receive new plugin versions in the first wave, before most other sites. It suits sites that can tolerate a little risk, such as your own site or a test site.
Show maintenance on status pages
Posts a maintenance window on any status page that shows this site while an update runs.
Pre-update test for risky updates
Before a major version, a full-backup plugin or a plugin your theme depends on reaches production, Gus reads its changelog (the list of what changed), checks your theme and must-use plugins for code that uses it, and tries it on staging first when there is one. If it finds a problem, production waits for your approval with the reasons. Choose Plan default, On or Off. Whether it is on by default depends on your plan; see pricing.
What happens behind the scenes
MaintainHQ looks for new plugin versions across all connected sites regularly through the day. When a new version appears:
- Each site that has the plugin set to auto update gets a planned update, sorted into a lane: Security fix, Normal or Major version.
- New releases wait a while before they are used, so problems other people find show up first. Security fixes move faster.
- Where fleet waves are in use, sites update in waves: canaries first, then a small share of sites, then the rest. A wave only opens once the previous one finished cleanly.
- When a site’s turn comes, the update is backed up, installed, checked and rolled back automatically if the site broke.
- After a successful update, uptime and PHP errors are watched for a while. Trouble in that time also rolls the update back.
If an update has to be rolled back on one site because it broke it, the release is paused for every other site and the reason is recorded, so one bad version does not spread.
Reading the run log
The Automatic updates card lists every plugin update the auto-updater planned or ran, newest first. Each row shows the plugin, the site (on the all-sites view), the version, the lane, the status and when it happened. Use the filter to show All updates, Needs approval, Waiting or running, Updated or Problems.
| Status | Meaning |
|---|---|
| Waiting | Waiting its turn: settling time, wave or staging first. |
| Queued | Ready to run on the next pass. |
| Backing up / Updating / Checking | In progress. |
| Updated, watching | Updated; uptime and PHP errors are being watched before it is kept. |
| Kept | Updated and stayed healthy. |
| Rolled back | The site broke after updating, so the previous version was restored. |
| Rollback failed | The update broke the site and restoring the previous version failed. Check the site now. |
| Failed | The update could not be installed. The site was left on the old version. |
| Needs your approval | This update will not run until you approve it. |
| Skipped | Not needed any more. |
Rows that have been through a pre-update test show a badge: Tested: safe, Tested: caution or Tested: blocked. Click Why? to read what Gus found.
Approving updates
Some updates always wait for a person: major versions, plugins in the Manual only group that have a security fix, production updates on Staging only sites, and updates a pre-update test flagged. A badge on the card title shows how many need approval.
- Choose Needs approval in the filter.
- Read the row’s reason, and the pre-update test result if there is one.
- Click Approve to let it run. It then goes through the same backup, check and rollback steps.
If nothing seems to run
- Check the plugin’s group is Auto update or Auto update with full backup, not Manual only.
- Check the site is connected. Disconnected sites cannot be updated.
- Look at the row’s reason in the run log. "Waiting" rows tell you what they are waiting for.
- If a row says auto-updates are not switched on for the account, contact support.