Stuck flyctl deploy

Hi guys, I’m using MAC and I have some issues like this :

==> Verifying app config
Validating /Users/mac/Desktop/go-postgres-crud/fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
Remote builder fly-builder-morning-sunset-7373 ready
==> Building image with Buildpacks
--> docker host: 20.10.12 linux x86_64
base: Pulling from paketobuildpacks/builder
Digest: sha256:17ea21162ba8c7717d3ead3ee3836a368aced7f02f2e59658e52029bd6d149e7
Status: Image is up to date for paketobuildpacks/builder:base
base-cnb: Pulling from paketobuildpacks/run
Digest: sha256:1af9935d8987fd52b2266d288200c9482d1dd5529860bbf5bc2d248de1cb1a38
Status: Image is up to date for paketobuildpacks/run:base-cnb
latest: Pulling from paketo-buildpacks/go
Digest: sha256:8792c9e74940359580c81a9e49ac5293772fc92ddb0afa6db93bf7ecfbae8223
Status: Image is up to date for gcr.io/paketo-buildpacks/go:latest
WARNING: image with reference gcr.io/paketo-buildpacks/go was found but does not match the specified platform: wanted linux/amd64, actual: linux

I stuck on here almost 2 Hours, so how to fix this problem ? and what should I do ?

Thankyou guys.

I get the same issue.

@makudonaru how did you run your deploy? e.g. fly deploy --remote-only --detach --verbose?

everything I already try e.g fly deploy

@makudonaru I’m assuming you’re using mac. Did you try deploying it with --remote-only option? seems like the entire log is truncated, especially on this part:

...but does not match the specified platform: wanted linux/amd64, actual: linux

what’s after the wanted linux/amd64, actual: linux?

I’m seeing the same on an M2 Macbook Air:

(devenv) bash-5.2$ fly deploy --remote-only 
==> Verifying app config
Validating /Users/raghavsood/r/local/dev/github.com/merklepath/socksink/fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
Remote builder fly-builder-misty-sun-1464 ready
==> Building image with Buildpacks
--> docker host: 20.10.12 linux x86_64
base: Pulling from paketobuildpacks/builder
Digest: sha256:17ea21162ba8c7717d3ead3ee3836a368aced7f02f2e59658e52029bd6d149e7
Status: Image is up to date for paketobuildpacks/builder:base
base-cnb: Pulling from paketobuildpacks/run
Digest: sha256:1af9935d8987fd52b2266d288200c9482d1dd5529860bbf5bc2d248de1cb1a38
Status: Image is up to date for paketobuildpacks/run:base-cnb
latest: Pulling from paketo-buildpacks/go
Digest: sha256:8792c9e74940359580c81a9e49ac5293772fc92ddb0afa6db93bf7ecfbae8223
Status: Image is up to date for gcr.io/paketo-buildpacks/go:latest
WARNING: image with reference gcr.io/paketo-buildpacks/go was found but does not match the specified platform: wanted linux/amd64, actual: linux
^C
^C^C^C^C^C^C^C^C^CWARN failed to finish build in graphql: Post "https://api.fly.io/graphql": context canceled

That is the entirety of the error message, nothing truncated - just a bunch of ctrl+c to kill it

hmm I only have guesstimates on these logs. You could:

  • fly deploy --remote-only --no-cache --detach --verbose OR
  • delete the runner, then fly deploy --remote-only --detach --verbose

Not sure if that helps. What framework are you deploying? Phoenix? RoR? ...?

So after some more time playing around with it and running verbosely, I still don’t know what’s going on, but I did succeed in deploying.

What I do see is an inordinate delay between that error being printed and the rest of the build - this is a golang app, so the build after the error goes through the typical go modules installation and then compilation steps

For some fly deploy, roughly 1/5, it just gets stuck on the error and doesn’t proceed - the logs for the builder continuously print out HTTP requests to check if the docker container is alive, and nothing else.

The rest of the builds “freeze” and then pick up after 3-5 minutes, and wrap up pretty quickly once they pick up again

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.