The stack uses stop_grace_period: 90s to give Omada and MongoDB time to stop cleanly.
If MongoDB reports WiredTiger corruption after an unclean shutdown:
- Stop the full stack.
- Backup the current MongoDB volume before attempting repair.
- Run a one-off MongoDB container with the same data volume and
mongod --repair. - Start MongoDB and inspect logs.
- Start the controller only after MongoDB is healthy.
Prefer restoring from a known-good backup when repair output is unclear.
The controller records the last started Omada version in /opt/omada/data/.last_started_version. Starting an older image against newer data exits non-zero.
Only remove this file after restoring from backup or intentionally accepting downgrade risk.
If an Omada upgrade fails:
- Stop the stack.
- Preserve the current volumes before making changes.
- Review controller and MongoDB logs.
- Restore the most recent Omada UI backup or MongoDB dump if the controller cannot start cleanly.
- Rebuild the previous known-good Omada version if needed.
Do not repeatedly start different controller versions against the same data without a backup. Omada upgrades can change persisted state.