I’ve just started trying to use fly.io but so far it’s been quite buggy. Right now the problem I’m having is that my app isn’t deploying - if I try deploy from my computer CLI, it times out after 5-10 minutes:
➜ go git:(main) fly deploy --config fly.backend.toml
==> Verifying app config
Validating fly.backend.toml
✓ Configuration is valid
--> Verified app config
WARN POSTHOG_PERSONAL_API_KEY may be a potentially sensitive environment variable. Consider setting it as a secret, and removing it from the [env] section: https://fly.io/docs/apps/secrets/
==> Building image
==> Building image
Error: failed to fetch an image or build from source: error building: deadline_exceeded: context deadline exceeded
And whenever it deploys from the UI, it times out and gives no logs, errors or context:
Have the same problem in ARN region. First deployment made it to fly and failed, (the instance says its stopped but i can still reach and use the server). Now i am not getting past the “waiting for depot builder…” on flyctl deploy
Trying to bypass depot with FLY_REMOTE_BUILDER_REGION=sin fly deploy --depot=false
fails with the following error:
WARN Failed to start remote builder heartbeat: failed to launch VM: request returned non-2xx status: 504: upstream request timeout
==> Building image
WARN Failed to start remote builder heartbeat: Validation failed: Name has already been taken
Error: failed to fetch an image or build from source: Validation failed: Name has already been taken (Request ID: 01KBMQK6YVC4X3AYQNRTJSJC98-bom) (Trace ID: 33dd9cfc560a5e8725853d0f724159bc
Ok - I’m not sure if it’s died again or if my issue is different (likely since this is my first time).
It appears any build triggered by a webhook from GitHub fails to build. Doing fly deploy locally from the same location as I have set in Settings -> Current Working Directory deploys the application fine.
It’s annoying because there’s no logs for me to look at, nor reason it tells me why it’s failed to build (are other parts of the platform designed this badly?)…
Since your CWD is already go/ your can change your .toml file to just fly.backend.toml
You’re correct, the settings should have been clearer too and should have validated this before you even was able to save.
And there’s the missing log from UI.
I’ll take a look at both now, thanks. Feel free to add more feedback in our forum too, preferrably in a new topic since this one is related to something else.
If I change it to just fly.backend.toml it says the file doesn’t exist (both if i try run the deployment with that value previously set, and if I try update it in the settings). The file was also in the location specified at the time of that error.
I can only trigger the deployment again once I revert the the Config Path back to go/fly.backend.toml, at which point it fails like previously seen (assume still the same error, have emailed the deployment link again just in case it’s changed).