Help · Your Mygration server

Rolling back to an earlier version

Going back to the version you ran before an update, from the server's command line.

Last updated

If a new version causes you a problem, you can go back to the one before. A rollback is only done from the server's command line, never from the panel.

Important

A rollback undoes every fix made since that version, security fixes included. Use it to get going again, then update once the problem is fixed.

Before you start #

  • Find the version to go back to: System → Updates lists every version with its date. The one before the version marked Installed is usually the one you ran.
  • Pick a quiet moment. Running migrations hand their work back and carry on after the restart, but it's kinder to roll back between passes.

Roll back #

  1. Sign in to the server.

  2. Run the update command with the older version:

    sudo mygration update 0.38.3
  3. It warns that this rolls back, and asks you to type roll back to 0.38.3. Type it exactly and press Enter. Anything else changes nothing.

  4. Watch the progress until it says Updated to 0.38.3.

A backup is taken first, as with any update. The panel and the workers on this server then start again on the older version, in a few minutes.

An older version asked for any other way is refused with … is older than the … running, so nothing was changed, and the message says to roll back from the server.

Afterwards #

  • Check System → Updates says the version you wanted is Installed.
  • Roll back any workers at customer sites to the same version: see Updating Mygration, with the older version's number.
  • When a fixed version is out, update as usual from System → Updates.

Note

If the panel won't start at all after an update, sudo mygration status shows what's running and sudo mygration logs panel shows why. Roll back as above, then collect a support bundle for whoever helps you.