I’m getting the error in the headline recently for an app/config that used to build perfectly two months ago with: fly deploy --local-only
The app builds and deploys fine when I remove the --local-only
any ideas what the cause might be?
I’m getting the error in the headline recently for an app/config that used to build perfectly two months ago with: fly deploy --local-only
The app builds and deploys fine when I remove the --local-only
any ideas what the cause might be?
What is your OS? Do you have Docker installed?
Can you share the full logs before Error: failed to fetch an image or build from source: docker is unavailable to build the deployment image
?
Latest macOS.
$ docker info
Client:
Version: 24.0.5
Context: desktop-linux
fly deploy --debug --local-only
==> Verifying app config
Validating /Users/.../dev/app/fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
Error: failed to fetch an image or build from source: docker is unavailable to build the deployment image
Stacktrace:
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x64
github.com/superfly/flyctl/internal/cli.printError(0x1400012a000, 0x140005aa8c0?, 0x105f7ec40?, {0x106355220, 0x140005aa8c0})
github.com/superfly/flyctl/internal/cli/cli.go:126 +0x2b4
github.com/superfly/flyctl/internal/cli.Run({0x106370a68?, 0x140008d3ac0?}, 0x1400012a000, {0x1400004c0d0?, 0x3, 0x3})
github.com/superfly/flyctl/internal/cli/cli.go:84 +0x5d4
main.run()
github.com/superfly/flyctl/main.go:47 +0x1a8
main.main()
github.com/superfly/flyctl/main.go:26 +0x20
Having the same issue. ANd I’m getting this stacktrace as well
Stacktrace:
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x64
github.com/superfly/flyctl/internal/cli.printError(0x1400012a000, 0x140005aa8c0?, 0x105f7ec40?, {0x106355220, 0x140005aa8c0})
github.com/superfly/flyctl/internal/cli/cli.go:126 +0x2b4
github.com/superfly/flyctl/internal/cli.Run({0x106370a68?, 0x140008d3ac0?}, 0x1400012a000, {0x1400004c0d0?, 0x3, 0x3})
github.com/superfly/flyctl/internal/cli/cli.go:84 +0x5d4
main.run()
github.com/superfly/flyctl/main.go:47 +0x1a8
main.main()
github.com/superfly/flyctl/main.go:26 +0x20
Indeed that works. Thanks!
Edit:
Not sure this is the proper solution. I think ticking or unticking that box triggers something that fly requires to function. I had uninstalled/re-installed docker and the box was unticked and fly not working. Ticked it and it started working… weird.
Edit 2:
After disabling the experimental features which seemed to be on by default here docker now finally works reliably again.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.