Guide

Update to a new release

See when a new version is out, pull it, and know what happens to your database while the new version starts.

Admins only Checked against v3.1.0 Updated Edit this page Report a problem

Liner notes

At a glance

Who
Admins only
Where
Settings › About
You need
Shell access to the host that runs the container

Updating swaps the image and keeps your data. If the new version changes the database, DroppedNeedle takes a verified backup of it first, then migrates it. Coming from v2 is a different job: follow Upgrading from v2.

Before you start#

  • Check which image tag your compose file uses. :latest follows each release. A version tag such as :v3.1.0 stays put until you change it. See Pick an image tag.
  • If you want a copy of today’s settings anyway, press Back up now under Settings › Backups: Make and restore a backup.

Steps#

  1. See whether an update is out#

    When one is, a banner reads “A new version of DroppedNeedle is available” with the version and a Details button. To check yourself, go to Settings › About and press Check for Updates.

    Result: About reads Update available: with the new version and “You’re on” your current one, with View Release. Or it reads You're on the latest version.

    The check asks GitHub and keeps the answer for an hour. When GitHub can’t be reached it reports no update, so the releases page is the place to confirm.

  2. Read the release notes#

    Press View Release, or look under Release History on Settings › About, for what changed and anything to do before you update.

  3. Change the tag, if you pin a version#

    If your compose file names a version tag, change it to the new version. With :latest, skip this step.

  4. Pull the new image#

    bash
    docker compose pull
  5. Recreate the container#

    bash
    docker compose up -d
  6. Watch it start#

    bash
    docker compose logs droppedneedle

    Result: when the new version changes the database, the log reads schema upgrade pending; taking a backup first, then pre-upgrade backup complete, before it migrates. If that backup fails, the server stops instead of migrating, and the log says why.

Test a pre-release

Pre-releases have their own version tags, such as :v3.1.0-rc.1, and never move :latest. :beta always points at the newest pre-release. A full release doesn’t move :beta, so switch back to :latest once the version you were testing is out.

Go back to the version you ran before

An older image refuses a database the new version has migrated. Stop the container, put back the backup taken before the update, change the image tag back and start it again. Going back after a failed update has the commands.

Check it worked#

  • Settings › About shows the new version in its badge.
  • On the next load, each browser shows a What’s New dialog with the release notes, once per release. Got it closes it.
  • If the database changed, Settings › Backups lists the pre-upgrade backup DroppedNeedle took before migrating.

If something went wrong#

Each heading below is the message DroppedNeedle shows.

database schema version … is newer than this binary's …; restore the backup taken before the upgrade

An older image was started on a database a newer version had already migrated. Either go back to the newer image, or restore the backup taken before the update: see the optional step above. A refused start takes no backup, so restarting doesn’t rotate your older backups away.

database schema version … is a v3 pre-release database older than this version

The data comes from an early v3 pre-release this version can’t carry forward. Restore a newer backup, or start with an empty data folder.

Docs