Skip to Content
Maintenance

Updates

Install a new version of the engine, modules and themes from the admin panel, pick an update channel and go back to the previous version if something breaks.

A new engine version installs from the admin panel with one button. The site downloads and checks the package, copies the database, goes into maintenance for a short while, swaps the files and upgrades the database. If a step breaks, it goes back to the previous version on its own. Modules and themes update on the same screen, one at a time or all at once.

You need the "Full access (owner)" permission (admin.boss) and a connected Flute key. Without a key the screen shows "Updates need a Flute key" and a "Connect Flute key" button: the site never hears about new releases and stays on its current version.

Update the engine

Open the update center

AdminUpdates. When a new version is out, the top block says "Engine update available", with the release date, size and channel next to it. Below it, "What’s new in …" lists the changes.

Update center with no new engine release: the You are up to date line, the Modules and themes list and the Version card

Click "Update to …"

The admin panel asks "Install Flute …? The site goes into maintenance for a short while.", and if you haven't entered your password for a while, it asks you to confirm it.

Wait for the steps

Progress replaces the button, step by step, with an estimate of the time left. You can close the page: the next request to the site or the scheduler finishes the steps. During maintenance visitors see a placeholder page.

Site works, you can cancel

  1. 1Server check
  2. 2Package download

Maintenance

  1. 3File swap
  2. 4Database upgrade
  3. 5Startup check

Site open

  1. 6Done

When it's done you see "Flute … installed" and how long the steps took. When there is nothing to install, the same spot says "You are up to date", and "Check again" asks the update server once more.

If background jobs are running, the update goes into the queue and runs there. Without them it runs inside the request, and the answer comes back once the install is over. "Update queued" with "It starts on the next run of the task scheduler." that stays unchanged for several minutes means the scheduler isn't running: check it on the Scheduler page.

Without the admin panel the engine updates like this:

From the site directory:

php flute update:core

The command installs the latest version from the selected channel. From the console the database copy is made before maintenance, so the site stays closed for less time.

FlagWhat it does
--to=<version>installs that version instead of the latest
--cancelcancels the update while the site is still untouched
--retry-rollbackretries a rollback that got stuck

With no new version, the command prints one line:

The engine is up to date (2.0.0).

Given --to with a version that is not in the update feed, it answers Version 2.0.1 is not in the update feed. and installs nothing. --retry-rollback with no stuck rollback prints No engine update in progress.

Modules and themes

Each row in "Modules and themes" is an extension with a new version out. "Update" installs one, "Update all" installs every row in turn: if one fails, the others still get updated. The name and the "What’s new" link open that version's changelog.

The engine isn't in this list, it has its own button above.

A "Renew updates" badge on a row means the update period for that extension has ended. It keeps working, and new versions come back after a renewal.

Update channel

The "Version" card on the right has a "Channel" switch:

ChannelWhat you get
Stable"Tested releases only."
Early"Early builds before the stable release, for test sites."

After a switch the site checks for updates again right away. The channel change is recorded in the history too.

Go back to the previous version

If an update breaks, the site goes back on its own:

If the rollback fails too, the site stays in maintenance. Fix the cause, such as file permissions or disk space, then run on the server:

php flute update:core --retry-rollback

If the new version installed but doesn't work the way you need, bring the previous one back by hand: the "Restore" button in the "Going back to the previous version" card of the update center. Files of earlier versions are kept after an update.

The database is not rolled back

Going back by hand restores files only. Migrations of the new version stay in the database. Before a big update, dump the database as described in backups.

The copy before an update is controlled by "Create Backups" in AdminSettingsPlatform, group "Updates & backups". It is on by default. When it's off, the update center warns "No backup is made before updates right now" and offers "Create a backup".

Automatic updates

"Automatic updates" in the same "Updates & backups" group installs everything it finds by itself, once a day. It is off by default. It only works while the scheduler runs: the task there is called "Automatic updates of the engine and modules". Auto-update errors go to the cron log.

Update history

"Update history" shows the eight latest events: "Update started", "Installed", "Failed to install" and "Channel changed", with who did it. A failed install shows the reason next to it. "Full journal" opens the journal filtered to updates.

Troubleshooting

For any other message, use the error lookup.

An update is already running. Wait for it to finish.

Only one install runs at a time. Wait for the current one to end: its steps are shown on this same page.

Nothing was changed, PHP cannot write

This comes after "Error during update:" with a list of files. PHP can't write to them, so nothing was touched. Make the user PHP runs as the owner of the site folder and start the update again.

"The update did not start: migrations … have no down() method …" means the new version has a migration that can't be rolled back. The install stopped before any file changed. Tell the author of the release.

"Could not check for updates" with "The Flute update server did not answer: …" shows up when the site couldn't reach the update server. Your site and data are untouched. Click "Retry" later, or check that your host allows outgoing requests.

If you see "Could not install Flute …", the details are in the error log. If the site misbehaves afterwards, bring the previous version back from the backup.

Reference

Next

On this page