V5.0.7: cryosparcm database backup, database export-instance-config and database export fail with “Failed to mongo export” (deprecated backup --dir works)

Cryo Team,

On our v5.0.7 master the documented v5 backup and export commands fail with a MongoException, while mongodump through the deprecated cryosparcm backup works. I could not find the cause from the CLI output, so asking here.


Environment

  • CryoSPARC v5.0.7 master - single master on a physical server - Rocky Linux 9
  • Database on a local XFS volume (CRYOSPARC_DB_PATH), CRYOSPARC_DB_ENABLE_AUTH=true
  • Installation under the service account’s home directory on a shared GPFS filesystem
  • Commands run as the UNIX user that owns the installation - on the master - while CryoSPARC was running and in normal use

What Fails:

$ cryosparcm database backup --output <dir>/backup.archive
WARNING: Could not start CryoSPARC database - already running.
WARNING: Could not start CryoSPARC cache - already running.
Checking database... OK
WARNING: Could not start CryoSPARC database - already running.
ERROR: MongoException: Failed to mongo export config to /tmp/tmp7e64buv6/config.json

$ cryosparcm database export-instance-config -o /tmp/cfgtest
WARNING: Could not start CryoSPARC database - already running.
ERROR: MongoException: Failed to mongo export config to /tmp/tmpqjle_44e/config.json

$ cryosparcm database export users -o /tmp/cfgtest
WARNING: Could not start CryoSPARC database - already running.
ERROR: MongoException: Failed to mongo export users to /tmp/cfgtest/users_export_2026_10_24_07h54.json

Each fails after about 3 seconds and writes no output. In the database backup case a zero-byte cryosparc_instance_config_<timestamp>.tar is left in the output directory.

What Works:

  • cryosparcm backup --dir=<dir> (listed as deprecated): an archive of about 1.2 TB in about 33 minutes - five runs so far (Oct 20 to Nov 4). It accepts --dir although the reference lists only --help for it.
  • The hourly cryosparc_instance_config_*.tar that the running instance writes to cryosparc_master/run/ (about 1.5 MB, a valid tar).

Misc.

  • mongoexport and mongodump both exist under cryosparc_master/deps/external/mongodb/bin (via cryosparcm call which mongoexport mongodump).
  • /tmp (16 GB) and /var have plenty of free space.
  • The first export-instance-config attempt stopped with Directory ‘/tmp/cfgtest’ does not exist, so it does not create the output directory.

Observations/Questions

  • The reference describes database backup as a mongodump, but the error and the stray file suggest it also runs the instance config export. Is that intended?
  • The “Could not start CryoSPARC database - already running” warnings appear on every call, even though the reference says the instance can be running (and I’ve verified it can be running).
  • The error text does not include mongoexport’s own message.
  • Is there a way to see the underlying mongoexport error (a verbose flag or a log)?
  • Do cryosparcm update or patch use the same export step?
  • After verification, can you update the documentation regarding database commands?

I can provide logs/reports if needed - thank you so much!!

  • JB

Thanks @fourzerosix For sharing your observations. Please can you post the outputs of these commands for your CryoSPARC master host:

uname -a 
free -h
df -hT /tmp/
ls -ldZ /tmp/
lsattr -d /tmp
1 Like
$ uname -a ;echo "";free -h; echo "";df -hT /tmp/;echo "";ls -ldZ /tmp/;echo "";lsattr -d /tmp;echo FINISH
2026-11-05 11:27:07

Linux host.fully.qualified.domain.name 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 12 18:04:19 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux

               total        used        free      shared  buff/cache   available
Mem:           251Gi        20Gi       199Gi       357Mi        33Gi       230Gi
Swap:           15Gi       0.0Ki        15Gi

Filesystem             Type  Size  Used Avail Use% Mounted on
/dev/mapper/system-tmp xfs    16G  148M   16G   1% /tmp

drwxrwxrwt. 11 root root system_u:object_r:tmp_t:s0 4096 Nov  5 11:26 /tmp/

---------------------- /tmp
FINISH