5.0.7 Cryosparc live: Stuck in Restoration Failed

Hi

A user decided to hard kill the Restoration job of a compacted cryosparc live session. Now the complete session is stuck. It can’t be started, it can’t be marked as completed.

How can we get out of this?

Thanks

You can try this low-level database query (with actual IDs instead of PX, SY):

cryosparcm cli 'db.workspaces.update_one({"project_uid": "PX", "session_uid": "SX"}, {"$set": {"status": "restoration_failed"}})'

This command is intended for recovery from this particular situation, not meant for routine management of CryoSPARC.

Thanks. Unfortuantly it seams not to work:

cryosparcm cli ‘db.workspaces.update_one({“project_uid”: “P285”, “session_uid”: “S13”}, {“$set”: {“status”: “restoration_failed”}})’

Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/opt/cryosparc/cryosparc_master/cli/setup_client.py”, line 29, in
print(result if isinstance(result, str) else json.dumps(result, default=api_default))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/cryosparc/cryosparc_master/.pixi/envs/master/lib/python3.12/json/init.py”, line 238, in dumps
**kw).encode(obj)
^^^^^^^^^^^
File “/opt/cryosparc/cryosparc_master/.pixi/envs/master/lib/python3.12/json/encoder.py”, line 200, in encode
chunks = self.iterencode(o, _one_shot=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/cryosparc/cryosparc_master/.pixi/envs/master/lib/python3.12/json/encoder.py”, line 258, in iterencode
return _iterencode(o, 0)
^^^^^^^^^^^^^^^^^
ValueError: Circular reference detected

@biocit Please can you try these commands instead:

cryosparcm mongo # open a mongo shell
db.workspaces.updateOne({project_uid: "P285", session_uid: "S13"}, {$set: {status: "restoration_failed"}})
exit # back to Linux

Didn’t change something with the job. Here is the output:

MongoDB shell version v4.0.28
connecting to: mongodb://cryosparcmaster.bioc.unizh.ch:39001/meteor?authSource=admin&gssapiServiceName=mongodb
Implicit session: session { “id” : UUID(“99b6f660-e465-478d-b902-427b8c3fa61a”) }
MongoDB server version: 4.0.28
meteor:PRIMARY> db.workspaces.updateOne({project_uid: “P285”, session_uid: “S13”}, {$set: {status: “restoration_failed”}})
{ “acknowledged” : true, “matchedCount” : 1, “modifiedCount” : 0 }
meteor:PRIMARY> exit
bye

As far as i understand the command it sets the job to the restoration_failed status. But the job is already in that status and Cryosparc is then stuck to do something with the job at all

Thanks @biocit for reporting back. Please can you post a screenshot of the workspace associated with session S13?
The workspace should (hopefully) be accessible via the drop-down menu inside the session


or via the browse/P285-W* path at the end of yor CryoSPARC web app url.

Maybe due to this? But there is no job running

that’s the workspace:


If you navigate to the
<your-prefix>/browse/P285-S* URL and select session S13, can you restore the session from the Actions menu near the lower right corner of the UI?

When i do that nothing happen after confirming that i want to restore it.

Please can

  1. Try again pushing Restore Session in the Actions menu.
  2. Confirm.
  3. Immediately afterward, on the CryoSPARC master server, run the command
    cryosparcm snaplogs and email us the resulting tgz file.

I will send you a personal message with the email address.

As I checked today I saw that the job launched. Just with a huge delay.

Now it hangs forever here:

Nothing really happens. The jobs itself complains that no new exposure where found.