Cannot Arm In Mission Mode with SITL

I am trying to test a mission using SITL but whenever I try to arm I get an error that:

“Arming denied: Resolve system health failures first”

I get no other details about why the arming checks failed. When I run ‘commander status’ in a mavlink console in QGC, I get the following output:

INFO [commander] Disarmed
INFO [commander] navigation mode: Land
INFO [commander] user intended navigation mode: Land
INFO [commander] in failsafe: no
commander: cycle: 249880 events, 88000us elapsed, 0.35us avg, min 0us max 8000us 39.198us rms
commander: preflight check: 27798 events, 28000us elapsed, 1.01us avg, min 0us max 4000us 63.460us rms

My system configuration is as follows:

  • Fresh installation of Ubuntu 24.04
  • PX4 built from source (v1.15.4)
  • PX4 run with command: HEADLESS=1 make px4_sitl gz_x500_baylands
  • Game controller attached as joystick and calibrated

You have to know where they are, click on the red (or yellow) part in the top bar to get a list of the failures, see screenshot below:

Thank you for your response. Before I try to arm I get the following message when I select mission mode:

Once I try to arm with MAV_CMD_COMPONENT_ARM_DISARM I get the following messages:

I have no trouble arming and simulating a flight using manual controls with the following modes (and maybe others that I have not tried): manual, altitude, position.

Do you have a valid mission uploaded when you try to do this?