I am trying to kill on very old job listed as active on the interface.
I get the following message,
Unable to kill P2 J14: ServerError: validation error: lock file for P2 at /ourdisk/hpc/bsc/lenthomas/dont_archive/test/P2/cs.lock absent or otherwise inaccessible.
The directory no longer exists which is why it can not find it. How do I kill/remove/delete the Project and job?
Does this error occur on the same CryoSPARC instance that is also the subject of Interface Input to Job Hangs - #10 by lmthomas?
If so, the command is likely to fail because of an underlying database corruption.
Not the same instance. I was clearing old jobs listed as active at the bottom of the interface. Most of those failed for various reasons, usually GPU access problems, but they cleared fine so I figured they might have been contributing to the overall problems we were having.
When I type in the commands I now get this
In [2]: db.jobs.update_one ({'uid': 'J14', 'project_uid': 'P2'}, {'status': 'failed'})
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-c77540a3071e> in <cell line: 1>()
----> 1 db.jobs.update_one ({'uid': 'J14', 'project_uid': 'P2'}, {'status': 'failed'})
/ourdisk/hpc/bsc/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/collection.py in update_one(self, filter, update, upsert, bypass_document_validation, collation, array_filters, hint, session)
1125 """
1126 common.validate_is_mapping("filter", filter)
-> 1127 common.validate_ok_for_update(update)
1128 common.validate_list_or_none("array_filters", array_filters)
1129
/ourdisk/hpc/bsc/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/common.py in validate_ok_for_update(update)
563 first = next(iter(update))
564 if is_document and not first.startswith("$"):
--> 565 raise ValueError("update only works with $ operators")
566
567
ValueError: update only works with $ operators