NotImplementedError: database objects do not implement truth value testing or bool ()

Hi everybody,
We are using CryoSPARC v4.6.2, and my colleague got the following error on the 4xxth instance of exposure curation :

[cryosparc@master:bin]$ cryosparcm filterlog command_core   
2025-04-24 13:44:29,144 set_job_status       INFO     | Status changed for P4.J8 from waiting to failed
2025-04-24 13:44:29,151 set_job_status       ERROR    | Could not complete on-finished job clean up
2025-04-24 13:44:29,151 set_job_status       ERROR    | Traceback (most recent call last):
2025-04-24 13:44:29,151 set_job_status       ERROR    |   File "/opt/cryosparc/cryosparc_master/cryosparc_command/command_core/__init__.py", line 7541, in set_job_status
2025-04-24 13:44:29,151 set_job_status       ERROR    |     builder.on_finished()
2025-04-24 13:44:29,151 set_job_status       ERROR    |   File "/opt/cryosparc/cryosparc_master/cryosparc_compute/jobs/interactive/build.py", line 185, in on_finished
2025-04-24 13:44:29,151 set_job_status       ERROR    |     assert job.db, "Requires database to handle ended curate exposures job"
2025-04-24 13:44:29,151 set_job_status       ERROR    |   File "/opt/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.10/site-packages/pymongo/database.py", line 1342, in __bool__
2025-04-24 13:44:29,151 set_job_status       ERROR    |     raise NotImplementedError(
2025-04-24 13:44:29,151 set_job_status       ERROR    | NotImplementedError: Database objects do not implement truth value testing or bool(). Please compare with None instead: database is not None
2025-04-24 13:44:29,154 app_stats_refresh    INFO     | Calling app stats refresh url http://xxx.xxx.xxx.xx:61000/api/actions/stats/refresh_job for project_uid P4, workspace_uid None, job_uid J8 with body {'projectUid': 'P4', 'jobUid': 'J8'}

Does anyone have an idea of what it means, and how it could be avoided ?

Welcome to the forum @gcartier .

Please can you

  1. clarify what you meant by
  2. describe the circumstances/actions that lead to failure of job P4 J8
  3. let us know how many exposures the dataset being curated contained
  4. let us know the RAM configuration of the CryoSPARC master host, from the command
    free -h
  5. let us know the typical number of concurrent interactive jobs on this CryoSPARC instance
  6. let us know the output of the command
    sudo journalctl | grep -i oom