Platform: Backups, updates and security

How do I install an update, and what happens if it fails?

Press Install on System, Updates and keep the page open. The update backs up the database first, and if a later step fails it puts the previous version back by itself.

All help articles

Before a big update, check that System health shows a recent Database backup, press Back up now under System, Backups, download that backup, and make sure the backup key is in your password manager.

Installing

On System, Updates, press the Install version button and enter your password if asked. Keep the page open until it says it has finished. The update runs in short steps so it stays within shared hosting time limits:

  1. It downloads the new version and checks it against the signed checksum from our licence server. A file that does not match is never used.
  2. It unpacks it and checks that it is a complete package.
  3. It takes an encrypted backup of the database.
  4. It puts the site in maintenance mode and swaps in the new code. Visitors see a short notice; the back office keeps working.
  5. It applies the database changes one at a time.
  6. It checks that the database and the home page answer, then ends maintenance mode.

If you close the page or lose the connection, open System, Updates again and the update carries on from where it stopped.

If something fails

If a step fails before the new code goes in, nothing has changed and the screen says why. If a later step fails, the update puts the previous code, web files and database back by itself and says what went wrong. The previous version's code stays in site/storage/updates/previous until the next update. Clear this message tidies the screen afterwards.

If the screen says the previous version could not be put back completely, copy the Diagnostics report from System health and contact us.

When your host blocks downloads

Download the new zip from your account, upload it to your home folder, and run php site/bin/console update:apply new-version.zip in your hosting panel's Terminal. It runs the same steps. If it stops part way, run php site/bin/console update:apply --continue.