Skip to content

Updates and operation ​

Goal: Change versions and verify that inventory and files remain complete. Use a separate test installation for your first exercise.

1. Record version and data location ​

Open Settings > General > Updates and record the current version. A published release may differ from the main development branch. An offered download does not install the update automatically.

Update settings with the current RailKeeper version and manual check.
Actual browser UI from the local demo. This picture does not show a Windows or Docker update being performed. Captured with RailKeeper v0.3.0.

On the same settings page, open Storage usage. As Admin, record the active data path and storage mode. Also check the actual startup or Compose configuration.

Storage usage with the separate demo's active data path and storage mode.
This path belongs to the synthetic test installation. Use the actual paths and volumes shown in your Windows or Docker environment. Captured with RailKeeper v0.3.0.

2. Back up before replacement ​

  1. Export an application backup and keep it outside the installation.
  2. Validate the file without restoring it. A restore exercise on a second installation helps establish the recovery procedure.
  3. Also take a consistent copy of the complete data directory or volume, including local authentication and configuration. Stop the application or use a suitable consistent snapshot.
  4. Record startup options, public URL, port, image tag or ZIP version.
  5. Read target release notes and plan downtime without simultaneous edits.

3. Update Windows ​

Download the ZIP and checksums.txt from the same release. Run the following in PowerShell from the download folder. Use the GitHub CLI to verify the build attestation.

powershell
$tag = Read-Host 'Release tag (including v)'
$zip = "RailKeeper-windows-x64-$tag.zip"
$checksum = @(Get-Content -LiteralPath .\checksums.txt |
    Where-Object { $_ -cmatch ('^[0-9a-f]{64}  ' + [regex]::Escape($zip) + '$') })
$hash = (Get-FileHash -LiteralPath $zip -Algorithm SHA256).Hash.ToLowerInvariant()
if ($checksum.Count -ne 1 -or $checksum[0] -cne "$hash  $zip") {
    throw 'SHA-256 check failed.'
}
gh attestation verify $zip --repo ichwars/RailKeeper `
    --signer-workflow ichwars/RailKeeper/.github/workflows/windows-standalone.yml `
    --source-ref "refs/tags/$tag" --deny-self-hosted-runners
if ($LASTEXITCODE -ne 0) { throw 'GitHub attestation verification failed.' }

Extract the ZIP after both checks pass. Older releases may predate these verification files and attestations.

StepActionCheck
Choose a packageDownload the matching Windows-x64 ZIP from GitHub ReleasesIntended version and architecture
Stop the applicationShut down RailKeeper, not just its browser tabOld process is no longer running
Extract separatelyExtract the entire ZIP into a new application directoryStartup file and bundled subdirectories are complete
StartOpen Start RailKeeper.exe in the new folder, or run start-railkeeper.bat for older packagesBrowser shows the new version
Check dataVerify the same data path and storage modeNo accidental empty inventory

The default data directory is %LOCALAPPDATA%\RailKeeper\data; explicit configuration or portable mode can differ. Keep the old application directory and backups. If old and new databases both exist, assess them separately. Do not merge their directories.

4. Update Docker ​

Work in the existing Compose configuration directory. Retain the data volume and environment. Check the image tag or digest before replacement:

sh
docker compose config --images
docker compose pull
docker compose up -d
docker compose ps
docker compose logs --tail=100

Check configuration and log output for private information before sharing it. The automatic pre-migration safety copy resides inside the data directory and is not an external backup.

5. Recheck the same checkpoints ​

CheckExpected result
Version and /healthIntended version and successful health response
AuthenticationYour existing local account works
Inventory and setKnown vehicles and members remain present
Picture and attachmentActually open each, rather than counting thumbnails
CVs and functionsReadings, index pages, provenance and manual choices retained
Maintenance and master dataKnown records remain present
New backupSuccessful export and validation
Station, if usedReachable from the RailKeeper server; start with a connection test

For failures, record version, error and affected step. Check data path and logs. An older application is not automatically compatible with a migrated database. For rollback, restore the matching application, data and configuration snapshot together.

Evidence boundary: The UI and restore exercise were tested in the local demo. Instructions were checked against startup/migration code and the runbook; these pictures are not Windows or Docker update acceptance. Detailed runbook.