Hello, Fly newbie here, for testing and learning the service I’m trying to launch a basic Phoenix app (no Postgres) following the Elixir instructions, but I got the could not retrieve volume with id
docker error.
My steps:
Setting up the Phoenix app
$ mix phx.new hello_elixir --no-ecto --install
$ cd hello_elixir
Trying to deploy the app
$ fly auth login
Opening https://fly.io/app/auth/cli/eafb9626b4c9497c1ae418076fdd7ff0 ...
Waiting for session... Done
successfully logged in as ...
$
$ fly launch
[...]
Services
TCP 80/443 ⇢ 8080
Error error connecting to docker: could not fulfill resource requirements: could not retrieve volume with id '44346':
Lets view the status
$ fly status
App
Name = my-phx-test
Owner = personal
Version = 0
Status = pending
Hostname = my-phx-test.fly.dev
App has not been deployed yet.
Lets get some debug info
$ LOG_LEVEL=debug fly deploy
DEBUG Loaded flyctl config from/Users/Development/.fly/config.yml
DEBUG determined hostname: "MacBookAir.local"
DEBUG determined working directory: "/Users/Development/hello_elixir"
DEBUG determined user home directory: "/Users/Development"
DEBUG determined config directory: "/Users/Development/.fly"
DEBUG ensured config directory exists.
DEBUG ensured config directory perms.
DEBUG cache loaded.
DEBUG config initialized.
DEBUG initialized task manager.
DEBUG skipped querying for new release
DEBUG client initialized.
DEBUG app config loaded from /Users/Development/hello_elixir/fly.toml
==> Verifying app config
--> Verified app config
==> Building image
DEBUG trying local docker daemon
DEBUG Local docker daemon unavailable
DEBUG trying remote docker daemon
DEBUG Reporting buildDEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($input: StartSourceBuildInput!) { startSourceBuild(input: $input) { sourceBuild { id } } }","variables":{"input":{"appId":"my-phx-test"}}}
}
DEBUG <-- 200 https://api.fly.io/graphql (507.36ms) {"errors":[{"message":"StartSourceBuildInput isn't a defined input type (on $input)","locations":[{"line":1,"column":10}],"path":["mutation"],"extensions":{"code":"variableRequiresValidType","typeName":"StartSourceBuildInput","variableName":"input"}},{"message":"Field 'startSourceBuild' doesn't exist on type 'Mutations'","locations":[{"line":1,"column":44}],"path":["mutation","startSourceBuild"],"extensions":{"code":"undefinedField","typeName":"Mutations","fieldName":"startSourceBuild"}},{"message":"Variable $input is declared by anonymous mutation but not used","locations":[{"line":1,"column":1}],"path":["mutation"],"extensions":{"code":"variableNotUsed","variableName":"input"}}]}
DEBUG Failed storing buildDEBUG Trying 'Buildpacks' strategy
DEBUG no buildpack builder configured, skipping
DEBUG result image:<nil> error:<nil>
DEBUG Trying 'Dockerfile' strategy
DEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($input: EnsureMachineRemoteBuilderInput!) { ensureMachineRemoteBuilder(input: $input) { machine { id state ips { nodes { family kind ip } } }, app { name organization { id slug } } } }","variables":{"input":{"appName":"my-phx-test","organizationId":null}}}
}
DEBUG <-- 200 https://api.fly.io/graphql (3.59s) {"data":{"ensureMachineRemoteBuilder":null},"errors":[{"message":"could not fulfill resource requirements: could not retrieve volume with id '44346': ","locations":[{"line":1,"column":54}],"path":["ensureMachineRemoteBuilder"],"extensions":{"code":"NOT_FOUND"}}]}
DEBUG result image:<nil> error:error connecting to docker: could not fulfill resource requirements: could not retrieve volume with id '44346':
Error failed to fetch an image or build from source: error connecting to docker: could not fulfill resource requirements: could not retrieve volume with id '44346':
Some more tests
$ fly doctor
Testing authentication token... PASSED
Testing flyctl agent... PASSED
Testing local Docker instance... Nope
Pinging WireGuard gateway (give us a sec)... PASSED
$
My environment
$ uname -a
Darwin MacBookAir.local 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:34:37 PST 2022; root:xnu-8020.101.4~2/RELEASE_X86_64 x86_64
$
$ fly version
fly v0.0.306 darwin/amd64 Commit: b5101f2 BuildDate: 2022-03-15T18:17:35Z
$
$ mix phx.new --version
Phoenix installer v1.6.6
$
$ elixir --version
Erlang/OTP 24 [erts-12.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit] [dtrace]
Elixir 1.13.3 (compiled with Erlang/OTP 24)
$
$ docker --version
Docker version 20.10.13, build a224086349
$
$ git --version
git version 2.35.1