superfly / flyctl

Command line tools for fly.io services
https://fly.io
Apache License 2.0
1.43k stars 241 forks source link

Confusing `fly deploy --remote-only` error with fly.toml `[build]` entry #1686

Open ignoramous opened 1 year ago

ignoramous commented 1 year ago

vvishnu-indian

Hi @andig ,

I was finally able to recreate your exact errors.

  • Deleted my remote builder
  • Added in my fly.toml
    •  +    [build]
       +    image = “evcc/evcc:latest”
      • Did a fly deploy
      • App is not running, deploy
        ==> Building image
        Searching for image ‘evcc/evcc:latest’ remotely…
        Error failed to fetch an image or build from source: Could not find image docker.io/evcc/evcc:latest

        It can be noted that Fly is not launching a new remote builder in this case and is failing.

To fix this, I removed

- [build]
- image = “evcc/evcc:latest”

from my fly.toml and did a deploy and a new builder got created and the image from docker.io got pulled successfully.


From: https://community.fly.io/t/10600/17

andig commented 1 year ago

It seems that the behaviour is such that when image is specified, no build will run? If that's the case, then:

If it's only the builder (here: a remote builder) that notices the problem that there's nothing to build then the builder should probably not error at all?