Specifying your own directory for temporary files can help you avoid the problem.
Page contents
Interactive use
In interactive use on the login nodes, the default TMPDIR is /glade/scratch/$USER. You can change that by running the commands shown below on your command line when you log in or by setting the TMPDIR variable in your start file.
Batch use
For batch use, CISL recommends setting TMPDIR within each batch script for all batch jobs. Include these commands as the first two executable lines of your batch script after the #PBS directives or #SBATCH directives.
For bash and ksh users
export TMPDIR=/glade/scratch/$USER/temp mkdir -p $TMPDIR
For csh and tcsh users
setenv TMPDIR /glade/scratch/$USER/temp mkdir -p $TMPDIR