I’m deploying machines using the Fly Machines API, and I’m currently experiencing repeated failures when launching machines in the Tokyo (nrt) and Singapore (sin) regions.
Here’s what I’m seeing:
During machine startup, the init process panics with:
thread 'main' panicked at init/src/main.rs:790:25: removal index (is 0) should be < len (is 0)
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00006500
...
Virtual machine exited abruptly
Then the VM reboots and exits abruptly.
After several retries, the proxy starts reporting:
[PM01] machines API returned an error: "rate limit exceeded"
[PR03] could not find a good candidate within 1 attempts at load balancing.
Machines created via the Fly.io CLI or GitHub deployment workflow can start successfully in the NRT region and run normally.
However, machines created through the Machines API consistently fail to start in NRT and SIN.
I’d like to resolve this issue because my project relies on automated daily deployments that switch regions based on timezone requirements.
Could you please help check if there’s a platform-level issue affecting these regions or the Machines API?
(Assumes Bash syntax—and many of the output lines were elided.)
Odds are good that it’s instead a glitch in the JSON config object that you were passing in your other attempt; a missing cmd, perhaps, .
If you want, you can try posting the output of fly m status -d, applied to one of the Machines that exits abruptly, and perhaps one of us fellow users here in the community forum will spot the source of the trouble…
Yes — it fails for every machine created through the Machines API under this account, but works fine when I create machines via the CLI or GitHub deployment workflow (using a different image, but in the same region).
Here’s the JSON payload I’m sending in my API request (from my script that runs daily to switch regions based on timezone):
Following your suggestion, I just changed the image name. The deployment is now successful, and everything is running smoothly.
Thank you very much for your help!