Database backup to NFS file system incorrectly claims directory is not writable

Hi all,

After upgrading to cryosparc v5.0.4 we can no longer backup the cryosparc database to our NFS file system as it throws an error.

Paths have been obscured for security

$ cryosparcm database backup --output /path/to/nfs/cryosparc_database_backups/
Usage: cryosparcm database backup [OPTIONS]
Try 'cryosparcm database backup --help' for help.
╭─ Error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid value for '--output' / '-o': Path '/path/to/nfs/cryosparc_database_backups/' is not writable.                        │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

This issue seems reminiscent of the issue raised in this topic but for database backups.

I’m still trying to find where this is coming from using strace but I need more coffee :grinning_face:

My original solution/workaround was to have my script write the dump to a guaranteed unique temporary directory in /tmp and copy the resulting files to the NFS directory but the host does not have enough space in /tmp to accomplish this.

Would this be able to be fixed or patched?

If you require more information I’m happy to provide as much as possible.

Hi @clil16, thanks for reporting this, we added an option in the latest v5.0.5 release to suppress this error. Please add the following line to your cryosparc_master/config.sh and cryosparc_worker/config.sh files:

export CRYOSPARC_CLI_SKIP_ACCESS_CHECK=true

Please let me know if this works and if you see encounter any further issues!