flyctl deploy only working from local machine, not github actions

Hi All,

I’m building a docker container with the command:
flyctl deploy --remote-only --build-secret doppler_service_token=xx

It works perfectly on my host machine every time, but when I put it in a github action it gets hung up at:

Error failed to fetch an image or build from source: error connecting to docker: remote builder app unavailable
WARN Remote builder did not start in time. Check remote builder logs with `flyctl logs -a fly-builder-shy-pine-3066

It’s weird, because occasionally it works on github actions but most of the time it doesnt… super weird.

One thing I notice is if I ssh into the builder and do a docker system prune, then re-run the github action – it works. Any idea why this might be the case? Could this be a region issue?

Thanks!

Since it sounds like builds are succeeding after pruning the builder, I’d be curious to see if the Github jobs are failing because the builder needs more space. Would you mind sharing the logs from the builder after a job fails? This might help us narrow things down a bit more.

It actually never even gets to the builder. It’s just stuck “waiting for builder”. It seems to only work from one location or the other. Also I’m deploying with --remote-only in both locations (github and on my own machine), and the builder has 50gb of space I think…