Setting up Ownership and Permission for the Singularity Cache Directory

Inappropriate file ownership and permissions associated with files in the Singularity cache directory can cause errors when downloading and running containers, such as

  • "Disk quota exceeded"
  • "Error writing blob: unexpected EOF"


Current and perspective users of Singularity containers are advised to run this sequence commands as a once-off, to avoid this issue:

Terminal 1. Set ownership and permissions for Singularity containers
$ mkdir -p $MYGROUP/.singularity
$ chown -hR $USER:$PAWSEY_PROJECT $MYGROUP/.singularity
$ find $MYGROUP/.singularity -type d -exec chmod g+s {} \;