This error message also appears if the previous compute job did not finish normally but was terminated abruptly. In that case, the file gxx.inp has to be manually removed/deleted from the Gaussian folder that is called "scratch" (it is generally recommended to not just delete a file but to keep a copy at a different location - just in case).