Unable to delete P3: ServerError: validation error

Hello,

I am trying to delete the empty project 3 (P3).
Doing that I got an error -

=================================
Unable to delete P3: ServerError: validation error: lock file for P3 at /data/caroline/P3/cs.lock absent or otherwise inaccessible. 
=================================

When trying cryosparcm cli "take_over_project('P3')"

The result is

[cryosparc_user@lvx0862 ~]$ cryosparcm cli "take_over_project('P3')"
Error for "take_over_project" with params ('P3',):
ServerError: [Errno 2] No such file or directory: '/data/caroline/P3/cs.lock'
Traceback (most recent call last):
  File "/home/cryosparc_user/software/cryosparc/cryosparc_master/cryosparc_command/commandcommon.py", line 200, in wrapper
    res = func(*args, **kwargs)
  File "/home/cryosparc_user/software/cryosparc/cryosparc_master/cryosparc_command/command_core/__init__.py", line 8200, in take_over_project
    write_lockfile(lockfile_path_abs)
  File "/home/cryosparc_user/software/cryosparc/cryosparc_master/cryosparc_command/command_core/__init__.py", line 8238, in write_lockfile
    with open(lockfile_path_abs, 'w') as lockfile:
FileNotFoundError: [Errno 2] No such file or directory: '/data/caroline/P3/cs.lock'

Any ideas how to remove it?

Thank you

Sincerely,
Dmitry

@wtempel could you please suggest what is wise to do in this case? Please see above.

Thank you in advance.

Sincerely,
Dmitry

Does this directory exist and is writeable for the Linux account that runs the CryoSPARC instance?
stat /data/caroline/P3

1 Like

Hello @wtempel ,

no this directory does not exist.

There is no /data/caroline/P3

Briefly, the original idea was to more the data on another drive.
But the moving was done as copy/paste.
And the project was removed from /data/caroline/P3

But is seems that the lock and the project image is still in CS.

Is there a way to fix the lock?
Assign back the data existing on the other drive?

Thank you!

Sincerely.
Dmitry

Was the P3 directory removed by an operation outside CryoSPARC without first deleting the project inside CryoSPARC?

1 Like

yes - just removed without keeping the correct procedure.

So copy / paste from one folder to another and removing from the first one.
And this all - outside of the CS

Sincerely,
Dmitry

This sequence of operations might disrupt CryoSPARC operation. Are able to detach the project?

1 Like

@Dmitry You could try:

  1. mkdir /data/caroline/P3
  2. “take over” the project as described in How to delete the project without cs.lock file - #2 by kookjookeem
  3. delete the project inside the CryoSPARC user interface.

Does this work?

1 Like

Hello @wtempel ,

That solution worked very well.

Thank you!

Regards,
Dmitry

1 Like