Why do I receive an `allocation revoked` error when submitting a job with `srun --pty /bin/bash`?

When I submit an interactive job like srun --pty /bin/bash, regardless of other flags or parameters, I get an error like the following.

$srun --pty /bin/bas
srun: Force Terminated job 16127178
srun: PrologSlurmctld failed, job killed
srun: error: Job allocation 16127178 has been revoked

What is happening and what can be done about it?

It isn’t 100% clear exactly what causes this error, and it should be very rare. Please try again to see if the issue reoccurs. If it does, please see our Support page.

A possible explanation is that the job receives a SIGHUP (hangup signal) mistakenly and the job is terminated. It isn’t clear where the signal might come from. Please see this schedmd bug report for more details.