Troubleshooting the CryoSPARC Live File Engine

Hi Structura / CryoSPARC Community,

Is there any straightforward way to determine why the CS Live File Engine is not matching glob patterns for new files? We have an issue with a session where no exposures are being found, but we’ve tested the glob pattern in a bash shell and it has returned the expected list of files to be processed.

We’ve tried numerous adjustments to the exposure group settings (related to file size / mtime) but nothing has stuck. At one point, 17 exposures matching the glob were seemingly randomly detected and processed.

The dataset has been collected with SerialEM, its data is in TIFF format, and it is transferred over from our camera computer via a shell script running as a daemon that repeatedly invokes an rsync command. The rsync command produces some temporary files, and this might possibly be contributing to our troubles, but it’s unclear how exactly.

Let us know if there is anything we can do to dig deeper into this and identify a root cause.

Many thanks,

John Pellman

Often when this happens to out users, there is a problem with file permissions. The linux user running the master process needs read access to files and folders and execution permissions for the folders.

Thanks @jpellman for the report.

May we ask for the following details:

  • the tgz file created with the command
    cryosparcm snaplogs
  • an “inventory” of the directory holding the raw files relevant to the particular Live session, using a command like
    find /path/to/raw/data/ -ls > /suitable/path/find_raw.txt
    
  • information about the absolute path to raw data for this session
    findmnt -T /path/to/raw/data/
    namei -l /path/to/raw/data/
    
  • group memberships of the CryoSPARC-designated Linux user:
    groups $(stat -c %U /path/to/cryosparc_master/bin/cryosparcm)
    
  • session and exposure documents (in a fresh shell)
    cd $(mktemp -d)
    project_uid="P99" # replace with actual id
    session_uid="S99" # replace with actual id
    eval (cryosparcm env)
    dburi=$(python -c "from core import database_management; print(database_management.get_mongo_uri('meteor'))")
    mongoexport --uri="$dburi" -c workspaces -q "{project_uid: '$project_uid', session_uid: '$session_uid'}" --pretty -o session_${project_uid}_${session_uid}.json
    mongoexport --uri="$dburi" -c exposures -q "{project_uid: '$project_uid', session_uid: '$session_uid'}" --pretty -o exposures_${project_uid}_${session_uid}.json
    gzip *.json
    realpath *.gz # retrieve these files
    exit
    

I will send you a personal message regarding the sending of the information.

1 Like

Thanks @jpellman for sharing the information requested and the stat output for the movies.
Is it possible that movies that, notwithstanding a file name pattern match, are not being detected have a modification time in the future, either due to an incorrect system time or system time zone?

Hi @wtempel ,

Indeed it seems that the mtime is several hours in the future for images that are acquired with this particular camera computer. Given that the camera computer is more or less vendor-managed and (I believe) using its own internal NTP server, we’ll have to find a way on our end to ensure that the mtimes reflect our own clocks. Thanks for the help.

As a workaround, you may try a suitable Minimum Last Modified Time Delta setting for the exposure groups. Option to ignore last modified time - #2 by wtempel. Caution: The time delta and File name wildcard filter need to be carefully chosen to avoid the “ingestion” of movies that are still in the process of being received.