Attach project to a new instance

Dear community

I am trying to import a project in my machine//instance that I previously downloaded and compressed from another instance. To do so I first compressed the project using the following command:

tar -cvhf P1.tar ./P1

Once it was compressed I copied it in a hard disk to transfer it later on to my machine. Now I am working with Cryosparc v4.7.1 where I can´t find the option of import projects.
I have seen that I can attach a project, so I looked for the absolute path to the uncompressed project but I got the following error:

``Unable to attach project: ServerError: attach error: project already locked to another instance with id afe9000b-9c9b-4e6a-bf77-6fd456ea071e´´

Since I didn´t detach the project from the original instance, I have ask my collegue to do it and try again. It did not work.

How can I import the whole project?
Please colud you help me with this issue

Thanks in advance

Best

SERGIO BARATA

Please can you provide additional details:

  1. Did your colleague detach the project before another archive of the P1/ directory was prepared?
  2. How did the second attempt at attaching the project fail?

He detached the project (CS-ctd-tub) from his instance and then I tried again to attach it in mine, nothing changed.

What do you mean by before another archive was prepared?

Is it necessary to detach the project before compressing and copying? I have found a cs.lock that might be the problem. Should I delete ?

Thanks

This is recommended to ensure a consistent “settled” state of the project directory.

Only under exceptional circumstances, such as when detaching the project is no longer possible or not practical (see guide about cs.lock). Removing the cs.lock file from the copy of an active project directory before an attachment is sometimes necessary, but an imperfect workaround because detaching a project would have included (under the hood) metadata updates, which help ensure the integrity of the project directory and of the CryoSPARC instance from which the project is being detached. One should never remove the cs.lock file from a project directory that is still attached to a CryoSPARC instance.

1 Like

Do you recommend me to start over? I am not in the lab where original instance is, so I would become a bit complicated. If I import the project without the cs.lick file might not work?

Thanks

You could try it and check whether you can interact with and continue work in the project as expected.

Yes, Thanks
So far it´s working, I hope I will not give me any problems

Thanks