Hello ,
i’ve been dealing with this problem on guthub actions, so there is a deployment step which i deploy the app using $ flyctl deploy --remote-only . it was working until some point but now it just stucks until the workflow end up with failure due to timeout reached
Waiting for d8d7155b215768 [app] to become healthy: 0/2 217 218 Machine d8d7155b215768 [app] update failed: timeout reached waiting for health checks to pass for machine d8d7155b215768: failed to get VM d8d7155b215768: Get “https://api.machines.dev/v1/apps/fso-cicd-pokedex/machines/d8d7155b215768”: net/http: request canceled 219Error: timeout reached waiting for health checks to pass for machine d8d7155b215768: failed to get VM d8d7155b215768: Get “https://api.machines.dev/v1/apps/fso-cicd-pokedex/machines/d8d7155b215768”: net/http: request canceled 220Your machine never reached the state “%s”. 221 222You can try increasing the timeout with the --wait-timeout flag 223 224Error: Process completed with exit code 1.
so it happens in workflow but when i check the fly dashboard i see deployment actually has been done and okay. so what’s the problem? i’m not really an expert im a student and ive been dealing with a lot in last few days learning ci/cd but this one i don’t know how to solve without having to delete health check.
EDIT . when clicking on the links i get this :
{
error: “You must be authenticated to view this.”
}
is it due to invalid token ? i can’t think of any other auth related thing.
when i deleted health checks from fly.toml the problem solved.
but i want to involve health checks , so i am really looking forward to find the proper solution.
btw this is health checks i wrote in fly.toml:
anyone? i still have the issue. having health checks in my fly.toml file causes running the wokflow in ci stages problems , but when removing health checks everything works fine.
of course is returning http 200. before i open this topic i worked in detail to figure out why the health check is facing problems and it was something more than a mistake from me, unless there are some very specific configuration with fly.io that i don’t know about and hav’nt implemeted and that is causing the problem
Could also be that its not hitting the right path. Do you have logs to see? You can try writing some middleware in your app to log some incoming request.
Hi @crawwwler, I was able to reproduce your error locally. With a health check in place, my deploy failed with the same error message. Without a health check, my deploy succeeded.
I was finally able to get the deploy to pass by adding an X-Forwarded-Proto header to the health check. In your case, that would be the following: