The build is failing to connect the app with Postgres or Redis, later on the below occured.
fly deploy
==> Verifying app config
Validating C:\Users\Dell\Documents\railsapp\fly.toml
Platform: machines
✓ Configuration is valid
→ Verified app config
==> Building image
WARN Failed to start remote builder heartbeat: failed building options: upstream service is unavailable
Error: failed to fetch an image or build from source: error connecting to docker: failed building options: upstream service is unavailable
That issue resolved but I am facing this error
[build 7/7] RUN SECRET_KEY_BASE=DUMMY ./bin/rails assets:precompile: #0 0.259 /bin/sh: 1: ./bin/rails: not found
Error: failed to fetch an image or build from source: error building: failed to solve: executor failed running [/bin/sh -c SECRET_KEY_BASE=DUMMY ./bin/rails assets:precompile]: exit code: 127
It still happens sporadically. It went away for me for a bit. Started again today. The builder is: fly-builder-billowing-shape-7045, dfw region.
I tried to restart but issue persists (it’s flakey, does not happen every time). It shows up because we are using fly.io at large scale, as well as in automated integration tests (that is, we fly deploy multiple apps routinely, so flakes show up - very annoying!).