KB-3926933

Recover after a failed RadiusStack upgrade

Distinguish automatic source rollback from database recovery and decide when old services can safely return.

15 views

Keep writers stopped until the failure phase is known

Use the current installation’s Compose file set and the actual upgrade transcript under upgrade-backups. Preserve the transcript privately along with the exact versioned snapshot directory. In the 6.2.2 script, a failure after the change starts and before completion can stop the newer services and restore selected source paths from the code subdirectory, leaving writers stopped. The schema is not restored by this action. Failures during early preflight may leave the old workload running; check instead of assuming downtime.[8]

docker compose ps -a
docker compose logs --no-color --tail=100 db-migrate api radius web_ui

Read logs locally; upgrade diagnostic files and service logs can contain sensitive values. Look for the earliest failing phase, whether a migration was attempted or reported successful, and the rollback message. A source marker showing the old version cannot prove schema compatibility. The updater’s SQL dump is database.sql in its actual snapshot directory; the debug folder is separate.[8]

Make the rollback decision explicit

In a clone at 203.0.113.53, a candidate upgrade applies migrations but fails web readiness. Resolve whether the fault is a web bind mount, routing issue or database contract change before you select recovery. If the older release is proven compatible with the resulting schema in rehearsal, restarting that source may be possible under your local change plan. If not, recover the pre-change database in a clean isolated MariaDB instance against the matching pre-change source and configuration. Do not import a dump over the only live database or use the forward updater as a downgrade command.[4][8]

Verify the chosen recovery

Compare restored schema and selected record counts with the pre-change baseline, then check management sign-in and a known test NAS authentication and accounting pair. Determine how to handle transactions recorded after the backup rather than silently dropping them. If the database backup cannot be read or the only copy shows unexplained differences, preserve the current data and stay fenced or follow your tested continuity plan. A working login screen alone does not authorize reopening writers or returning NAS traffic.

References