Not really sure what’s going on here. I’ve been using Fly for nearly 12 months, and have had zero problems deploying during that time with an existing project. I’ve created a new org and a new app, and the first deployment goes through, but any subsequent attempts to deploy result in the app becoming suspended, with the machine stuck in the “replacing” state.
The logs in the dashboard for that app are littered with
2023-07-13T09:57:32.638 runner[6e82d379c43dd8] lhr [info] Pulling container image registry.fly.io/shiftsync-api:deployment-01H57AAAXV82QMMYMB7GPHZZE8
There was also one instance of this error
2023-07-13T09:48:24.983 runner[6e82d379c43dd8] lhr [error] Pulling image failed, retrying...
And then it just ended up giving me all the same “Pulling container image” logs again.
My deployments are done via a Github Action, and the logs for those are showing
image size: 391 MB
[1/1] Updating 6e82d379c43dd8 [app]
Updating existing machines in 'shiftsync-api' with rolling strategy
Error: failed to update VM 6e82d379c43dd8: request returned non-2xx status, 504
Error: Process completed with exit code 1.
I get the same thing if I try and deploy from my PC as well.
I’ve tried using the --local-only
and --remote-only
flags, but neither seems to make a difference. When doing it remote only, I have also tried deleting the builder app and letting it get recreated, but this also makes no difference.
In an act of desperation, I destroyed the app and created a new one, and the deploy went through, making me think it had just been an odd case with the previous app I’d created, but now once again, any subsequent deployments are failing with all of the above again.
I’ve tried running LOG_LEVEL=debug fly deploy --local-only
, but honestly, I’m not sure what I’m looking for there. I had seen someone say it might tell me what request is giving the 504 error, but there’s nothing I can see that includes that.
This is becoming problematic for me because while it’s in this state, the app is not accessible, and it doesn’t seem like I can even roll back.
Is there anything else I can do or try?