Update:
I made a fresh installation of cryosparc V4.6 and rebooted the server, but the issue remains the same.
Before importing any old project, the web application works perfectly fine.
After importing my old project (created with V4.5.3) the web application is lagging and the project window remains blank. The imported project contains only an empty workspace (no thumbnails). I can still launch jobs in other projects, but the navigation in the web application is very slow (I need to refresh my navigator after clicking on any button).
After detaching the imported old project, cryosparc is no longer lagging and back to normal!
FYI, the issue is not specific to the new Cryosparc version V4.6 as I had the same issue after importing the same old project in cryosparc V4.5.3.
Please find below the log of the command cryosparcm log command_core
2024-09-30 17:16:45,903 import_project INFO | Importing project from /srv/CS_projects/CS-XXXX
2024-09-30 17:16:45,974 import_project INFO | Created project P5
2024-09-30 17:16:46,007 import_workspaces INFO | Created workspace W1 in P5
2024-09-30 17:16:46,010 import_project_run ERROR | Unable to import project from /srv/CS_projects/CS-XXXX
2024-09-30 17:16:46,010 import_project_run ERROR | Traceback (most recent call last):
2024-09-30 17:16:46,010 import_project_run ERROR | File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/command_core/init.py”, line 4620, in import_project_run
2024-09-30 17:16:46,010 import_project_run ERROR | import_workspaces(workspaces_doc_data, abs_path_export_project_dir, new_project_uid, owner_user_id, notification_id)
2024-09-30 17:16:46,010 import_project_run ERROR | File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/command_core/init.py”, line 4702, in import_workspaces
2024-09-30 17:16:46,010 import_project_run ERROR | if workspace[‘workspace_type’] == ‘live’:
2024-09-30 17:16:46,010 import_project_run ERROR | KeyError: ‘workspace_type’
2024-09-30 17:16:46,014 dump_project INFO | Exporting project P5
2024-09-30 17:16:46,019 dump_project INFO | Exported project P5 to /srv/CS_projects/CS-XXXX/project.json in 0.01s
2024-09-30 17:16:46,080 run ERROR | POST-RESPONSE-THREAD ERROR at import_project_run
2024-09-30 17:16:46,080 run ERROR | Traceback (most recent call last):
2024-09-30 17:16:46,080 run ERROR | File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/commandcommon.py”, line 73, in run
2024-09-30 17:16:46,080 run ERROR | self.target(*self.args)
2024-09-30 17:16:46,080 run ERROR | File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/command_core/init.py”, line 4620, in import_project_run
2024-09-30 17:16:46,080 run ERROR | import_workspaces(workspaces_doc_data, abs_path_export_project_dir, new_project_uid, owner_user_id, notification_id)
2024-09-30 17:16:46,080 run ERROR | File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/command_core/init.py”, line 4702, in import_workspaces
2024-09-30 17:16:46,080 run ERROR | if workspace[‘workspace_type’] == ‘live’:
2024-09-30 17:16:46,080 run ERROR | KeyError: ‘workspace_type’
**custom thread exception hook caught something
**** handle exception rc
Traceback (most recent call last):
File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_compute/jobs/runcommon.py”, line 2304, in run_with_except_hook
run_old(*args, **kw)
File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/commandcommon.py”, line 73, in run
self.target(*self.args)
File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/command_core/init.py”, line 4620, in import_project_run
import_workspaces(workspaces_doc_data, abs_path_export_project_dir, new_project_uid, owner_user_id, notification_id)
File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/command_core/init.py”, line 4702, in import_workspaces
if workspace[‘workspace_type’] == ‘live’:
KeyError: ‘workspace_type’
Traceback (most recent call last):
File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_compute/jobs/runcommon.py”, line 2304, in run_with_except_hook
run_old(*args, **kw)
File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/commandcommon.py”, line 73, in run
self.target(*self.args)
File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/command_core/init.py”, line 4620, in import_project_run
import_workspaces(workspaces_doc_data, abs_path_export_project_dir, new_project_uid, owner_user_id, notification_id)
File “/srv/cryosparcuser/cryosparc/cryosparc_master/cryosparc_command/command_core/init.py”, line 4702, in import_workspaces
if workspace[‘workspace_type’] == ‘live’:
KeyError: ‘workspace_type’
The error seems to be connected to this message:
if workspace[‘workspace_type’] == ‘live’:
KeyError: ‘workspace_type’
The imported project was not a live project.
Here is the content of the workspaces.json
file of my project:
[
{
"id": {
"$oid": "XXXXXXXXXX"
},
"updated_at": {
"$date": "2024-09-23T14:14:05.190Z"
},
"created_at": {
"$date": "2024-08-30T12:43:46.075Z"
},
"dumped_at": {
"$date": "2024-09-23T14:14:05.190Z"
},
"autodump": false,
"uid": "W1",
"project_uid": "P5",
"created_by_user_id": "XXXXXXXXXXX",
"title": "027d_XXXX_Artica_New_processing",
"last_accessed": {
"name": "Pierre",
"accessed_at": {
"$date": "2024-09-23T14:14:02.192Z"
}
},
"workspace_stats": {
"updated_at": {
"$date": "2024-09-20T19:14:43.419Z"
},
"job_count": 34,
"job_sections": {
"import": 1,
"motion_correction": 2,
"ctf_estimation": 1,
"exposure_curation": 3,
"particle_picking": 4,
"extraction": 4,
"particle_curation": 11,
"reconstruction": 1,
"refinement": 6,
"local_refinement": 1
},
"job_status": {
"completed": 34
},
"job_types": {
"class_2D_new": 6,
"nonuniform_refine_new": 5,
"select_2D": 5,
"extract_micrographs_multi": 4,
"curate_exposures_v2": 2,
"inspect_picks_v2": 2,
"patch_ctf_estimation_multi": 1,
"denoise_train": 1,
"blob_picker_gpu": 1,
"patch_motion_correction_multi": 1,
"new_local_refine": 1,
"local_motion_correction_multi": 1,
"hetero_refine": 1,
"homo_abinit": 1,
"import_movies": 1,
"template_picker_gpu": 1
}
},
"imported": true,
"uid_num": 1,
"project_uid_num": 5,
"last_exported": {
"$date": "2024-09-23T11:39:37.189Z"
}
}
I am running Cryosparc on a standalone configuration.
Any help to import my old project would be greatly appreciated.