Fly deploy release command failed

Hello,

So I’ve had no problems with deploying to fly.io up until now, where seemingly randomly I’m now having this error whilst trying to update a live site:

Running myapp release_command: /app/bin/migrate

-------
 ✖ release_command failed
-------
Error release_command failed running on machine e82d61dc769468 with exit code 127.
Check its logs: here's the last 100 lines below, or run 'fly logs -i e82d61dc769468':
  Pulling container image registry.fly.io/fileai:deployment-01J2W788F91DZTJ292W5F7HX6Q
  Successfully prepared image registry.fly.io/fileai:deployment-01J2W788F91DZTJ292W5F7HX6Q (10.04221721s)
  Configuring firecracker
  2024-07-15T22:14:49.949137306 [01J2W7CJGB768EZ8RWHC5TQQQT:main] Running Firecracker v1.7.0
  [    0.278833] PCI: Fatal: No config space access function found
   INFO Starting init (commit: 0071a4c2)...
   INFO Preparing to run: `/app/bin/migrate` as nobody
   INFO [fly api proxy] listening at /.fly/api
  2024/07/15 22:14:50 INFO SSH listening listen_address=[fdaa:5:8355:a7b:1b2:78ad:3fcd:2]:22 dns_server=[fdaa::3]:53
: not founduncher: 2: /app/releases/0.1.0/env.sh:
  Machine created and started in 12.282s
   INFO Main child exited normally with code: 127
   INFO Starting clean up.
   WARN could not unmount /rootfs: EINVAL: Invalid argument
  [    1.622447] reboot: Restarting system
  machine restart policy set to 'no', not restarting
-------
Error: release command failed - aborting deployment. error release_command machine e82d61dc769468 exited with non-zero status of 127

Before this I had a file not found error.

So far I’ve tried:

  • Completely deleting the app, builder and database
  • Cloned to my linux laptop and tried to deploy - same error except the error status is 1 not 127

I’ve seen a related post or two but none that helped me…

Any insight would be much appreciated. Cheers!