Help

A restore is stuck

Profiling or a run waits on a restore that never finishes. Take a fresh snapshot and try again.

Profiling and every run start by restoring a copy of the database from its latest snapshot, in the isolated Washery network in your source account. A restore usually finishes in under 15 minutes, even for a 100 GB database. Rarely, AWS cannot restore from a snapshot and the copy stays in creating until someone stops it.

How to tell

  • The step Restore a copy in the isolated network is still in progress long after it usually finishes, and the RDS status it shows is creating.
  • In RDS, open the instance named on that step (it starts with washery-), then Logs & events. A healthy restore logs "Restored from snapshot" within minutes. A stuck one logs nothing.

With the AWS CLI:

aws rds describe-events --region <region> --source-type db-instance \
  --source-identifier <washery instance name> --duration 120

Why it happens

The case we have seen: the snapshot was taken while RDS was still changing the database. After you increase storage, RDS spends hours in storage-optimization, and a snapshot taken then may not restore.

Fix it

  1. In RDS, check that the database is Available, with no pending changes and no storage optimization under way.
  2. Select the database and choose Actions, then Take snapshot. Wait until the snapshot is Available.
  3. Stop the stuck restore. For a run, choose Cancel run on the run page. For profiling, delete the washery- instance named on the step in RDS, without a final snapshot. Washery then marks profiling as failed.
  4. Choose Try again on the database page, or start the run again. Washery uses the newest available snapshot, so it restores from the one you just took.

Once nothing restores from the old snapshot, you can delete it. AWS refuses while a restore still uses it.

Avoid it

  • After you change storage, wait until the database shows Available again before you take a snapshot for Washery.
  • If automated backups ran during that time, take a manual snapshot afterwards. Washery picks the newest one.

Related

Still stuck

Tell us what you were doing and what you saw.

Email support@washery.io