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 ?
@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?
(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
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