For Gaussian software especially for a cluster, you might encounter
"PGFIO/stdio: No space left on devicePGFIO-F-/CLOSE/unit=11/error code returned by host stdio - 28. File name = /scratch/Gaussian-xxx.inp formatted, sequential access record = 57 In source file ml0.f, at line number 203"
As the error message obviously mentioned, it is due to no space available on the scratch file. Depending on how you design your scratch repository. You have to check your scratch directory at your local or shared file system on your Head and Compute Nodes and later issue a parallel script to clean up the files.