This issue may occur if the directory that was previously set no longer exists and was manually removed. For example, the directory was set to the location /vmfs/volumes/9a086243-6ace771a/scratch, but the scratch directory was removed and no longer exists.