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 -dIf 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.
- Stop Songstress:
docker compose down. - Copy the newest file in
data/pre-updateoverdata/data.db. - Delete
data/data.db-walanddata/data.db-shmif they are there. - Set
SONGSTRESS_TAGin.envto the release you were on, likev0.48.0. - Start it:
docker compose up -d.
Anything people played, liked or changed after the update isn't in that copy.