Ray's Knowledge Base
Unlock

flux submit --flags=waitable is refused outside your own instance, so wait with flux job status

PitfallVerified 8 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

A script that runs flux submit --flags=waitable ... and then flux job wait --all stops at the first submit with [Errno 22] only the instance owner can submit with FLUX_JOB_WAITABLE. Nothing is submitted.

Cause#

The waitable flag is allowed only for the owner of the Flux instance. On a login node the default instance is the system instance, which the user does not own. Inside an allocation the user owns the instance, and the flag works.

Fix#

Either run the script inside your own allocation (flux alloc, flux batch, or flux proxy <jobid> bash script.sh), or drop the flag and wait on the job ids: id=$(flux submit ...), keep the ids in an array, then flux job status "${ids[@]}", which waits for the jobs and returns the highest exit code. In the system instance also pass -t, -q and -B, because the defaults may reject the job.

Evidence#

User run on a login node of an LC cluster: ./gen_genesis_trace.sh printed exactly [Errno 22] only the instance owner can submit with FLUX_JOB_WAITABLE. The flux job status replacement was given to the user but I could not run it on the cluster, so that part of the fix comes from the Flux docs and not from a run.

Also found by searching

  • [Errno 22] only the instance owner can submit with FLUX_JOB_WAITABLE
  • flux submit --flags=waitable fails on the login node
  • how do I wait for several flux jobs I submitted to the system instance
  • flux job wait --all does not work in the system instance