Restoring lost CryoSPARC data

Hi,

There was a power outage and I lost a lot of data/jobs on the cryosparc interface (I do have all of these files backed up on an external drive). I have tried following the steps outlined here: Restoring cryoSPARC Database After System Upgrade and Reinstallation, but the cryosparc_database did not contain a backup.archive file as the folder was already empty. Is there any way that I can recover the data I lost?

Sorry about this disruption @nmillan. Do I understand correctly that you can still access the CryoSPARC UI and see some jobs?

To answer your question, I was able to see all jobs that were performed before January 2025.

Additionally, I tried logging in to cryosparc just now but I am having issues logging in, stating that the user is not found. So at the moment, I no longer have access to the user interface.

Please can you describe

  • observations following the power outage, but before any recovery steps, that indicated a loss of data
  • recovery steps performed so far, and any observations after each step regarding the state of CryoSPARC-related data

Caution: Restoration of an outdated database backup may corrupt project directories whose contents have changed after that database backup has been created (guide).

After the power outage, I powered on the computer and started cryosparc using cryosparcm start. I logged into cryosparc as normal, but then I noticed that some projects had disappeared and some workspaces within projects had disappeared as well. Then I tried cryosparcm restart and repeated the log in process. I then followed the steps outlined in the discussion I mentioned before:

I did steps 1-2 but then found that the cryosparc_database was empty. I did not move forward with deleting files and directories in the path or running the restore command. At this point I did not know how to move forward and after submitting my initial post I started cryosparc again but I was no longer able to log in. These are all the steps I have taken thus far.

The database currently connected to your CryoSPARC instance may be corrupt or incomplete.
You may want to confirm that storage devices or filesystems have not been damaged by the power outage.
The following steps for rebuilding the database assume that that CryoSPARC has been stopped completely. If the cryosparc_master/ installation has been damaged as a result of the power outage, you may consider a fresh CryoSPARC installation.
The database path should point to robust storage of sufficient size. Based on the number and kinds of jobs stored, a CryoSPARC database (separate from CryoSPARC project directories) may require hundreds of gigabytes or even several terabytes of storage. Ideally, the storage is frequently snapshotted and the snapshots are replicated on a backup server.

Thank you so much, I have successfully been able to restore/attach previous project directories!

I have ran into some separate issues regarding cryosparc, but I am still working on resolving these issues myself.

Update: Everything is working perfectly fine and I am able to run jobs successfully now! Thank you so much for your help.

1 Like