I’ve been getting a error all day when trying to deploy a version of my application to fly.io. Everything seems to work up until when the release is about to be created.
==> Verifying app config
--> Verified app config
==> Building image
Searching for image 'tzauth:wb91khgj42k17bdjf2s3lbnrain6dvv1' locally...
image found: sha256:5e5dbcc64481cef126cb47921b36eb6d76d8c2dd570d034326af9d536c63c88c
==> Pushing image to fly
The push refers to repository [registry.fly.io/tzauth-staging]
79145a169272: Layer already exists
deployment-1660243269: digest: sha256:9908a78ae458d33e3bd1f8233bd68d68097387e442c6ce39be68bf37342957b9 size: 528
--> Pushing image done
==> Creating release
Error You ran into an error connecting to the Fly API. If the error persists, keep this request ID to help Fly Support track it down: 01GA73C7Y16BW3JA8761V6566H-fra
on our end, I can see that our API is having trouble with this image, but I don’t know why that is yet. From those logs I’d guess you might be building locally when you deploy. You might be able to workaround this issue by deploying remotely to one of our builders instead. (For newer versions of flyctl that should be the default, but you can explicitly specify this with --remote-only)
what sort of image are you trying to deploy? what options are you passing to fly deploy when you’re deploying?
I’m using nix to build the image, the problems started when I changed to use nix2container because I had issues getting the standard way to come up.
I’m running something like this command: flyctl deploy -c /nix/store/7zar931s25gsaimd8c348axqmr98mm7z-fly.toml -i tzauth:pj35i6z1mj6pmb8b69wnjf523a94gj6h --local-only --verbose
I’m currently trying to get something going at all so that’s why I’m deploying from my local machine. If there’s something wrong with the image I’ll try to revert to the standard way of building docker images with nix.
Glad to see that you found it (and thanks for confirming what the issue was). I’ll see what we can do about that error message. It’s awesome to see so many people using nix to deploy on Fly though