I recently Archived a project and copy all the project directory data to an archive location and delete it from the workstation where the project was originally created. Then I copied the whole project directory to a different workstation and tried to attach it as a new project. I then got an error message saying that the project could not be attached and something about the lock file but it gave no clear alternatives about how to proceed.
I just renamed the lock file cs.lock to csXX,XXlock in the project directory (rather than delete it) and then I was able to attach the project and continue working on it with no apparent problems except that the tree view did not show the jobs connection properly. The card view do shows the ancestor jobs properly though. Thus, at this point I am not sure whether and how how this workspace data may have been corrupted?
So my question is what is the proper way to transfer a a project/workspace between different workstations and/or archiving space? E.g. Detaching, Archiving or doing nothing form Workstation 1 and copy all project files and directory to workstation 2 and then reattaching the project in workstation 2 ?
The typical use case for the CryoSPARC project Archive function is the expected future Unarchive action for the same project on the same CryoSPARC instance. It is therein assumed that neither the project directory’s contents (but, possibly, its path) nor the project’s database records are modified between the Archive and Unarchive functions.
To transfer a project from CryoSPARC instance 1 to a different CryoSPARC instance 2, one should detach the project from 1 and attach it to 2.
Please can you let us know:
the CryoSPARC version of instance 1
the CryoSPARC version of instance 2
whether any jobs were deleted from the project that may have been ancestors of jobs still present in the project
Both instances 1 and 2 are running cryoSPARC 4.6. There were some jobs deleted in instance 1 but not the ones that were ancestor to the later jobs. The strange thing is that after I reattached the project in instance 2 some jobs and connections do not appear in the tree view but all the jobs do appear in the card view and selecting the ancestor jobs in the card view also appears to properly select all related ancestor jobs.
I was also trying to detach another project and got the following error:
Unable to detach P9: ServerError: validation error: lock file for P9 at /data/XX/cs.lock absent or otherwise inaccessible.
Ttying to create a new jo in this project also results in an error;
Unable to create job: ServerError: validation error: lock file for P9 at /data/XX/X2/cs.lock absent or otherwise inaccessible.
How can i recover or restore the cs lock (or else) to be able to contibue working in this project ??