Skip to Content
Documentation

Update and roll back

Move to a new release, and go back to the one before if you need to.

Know when an update is out

When a new release is out, admins see a dot on Settings and Update available. What's new shows what it brings, with Copy the update command for the install script. For a compose file you run yourself, the command is under Other ways to update. The server looks a minute after it starts, then every six hours, and only reads the public list of releases. To stop it, set UPDATE_CHECK=off in .env.

Update

Use the way you installed.

  • Docker Compose:

    Terminal
    cd ~/songstress
    docker compose pull && docker compose up -d

    If you pinned a version in SONGSTRESS_TAG, change it to the new one first.

  • The setup script: run the install command again. See Install with the setup script.

The database and the server update together, and the first start after an update moves your data forward by itself.

The apps update on their own: the desktop app asks to restart, and the phones update from their store. An app newer than your server says Your server needs an update until you update it.

The copy kept before each update

When an update is about to change the database, Songstress first keeps a copy of it in data/pre-update, named with the date and time. It keeps the two newest copies. Your logs say when it makes one.

Roll back

You need the release you were on, its compose file, and the copy from before the update.

  1. Stop Songstress: docker compose down.
  2. Copy the newest file in data/pre-update over data/data.db.
  3. Delete data/data.db-wal and data/data.db-shm if they are there.
  4. Set SONGSTRESS_TAG in .env to the release you were on, like v0.48.0.
  5. Start it: docker compose up -d.

Anything people played, liked or changed after the update isn't in that copy.

On this page