Hello, i’m trying to deploy a simple phoenix app without database and i’m getting this error about docker file image
Admin URL: https://fly.io/apps/presence-app
Hostname: presence-app.fly.dev
Set secrets on presence-app: SECRET_KEY_BASE
? Would you like to set up a Postgresql database now? No
? Would you like to set up an Upstash Redis database now? No
Preparing system for Elixir builds
Installing application dependencies
Running Docker release generator
Error: failed running /Users/mauricio.reis/.asdf/shims/mix phx.gen.release --docker: exit status 1
➜ presence_app git:(master) ✗ mix phx.gen.release --docker
* creating rel/overlays/bin/server
* creating rel/overlays/bin/server.bat
10:28:05.925 [debug] Fetching latest image information from https://hub.docker.com/v2/namespaces/hexpm/repositories/elixir/tags?name=1.15.0-erlang-26.1.1-debian-bullseye-
** (RuntimeError) unable to fetch supported Docker image for Elixir 1.15.0 and Erlang 26.1.1
(phoenix 1.7.9) lib/mix/tasks/phx.gen.release.ex:231: Mix.Tasks.Phx.Gen.Release.gen_docker/1
(phoenix 1.7.9) lib/mix/tasks/phx.gen.release.ex:76: Mix.Tasks.Phx.Gen.Release.run/1
(mix 1.15.0) lib/mix/task.ex:447: anonymous fn/3 in Mix.Task.run_task/5
(mix 1.15.0) lib/mix/cli.ex:92: Mix.CLI.run_task/2
➜ presence_app git:(master) ✗ unable to fetch supported Docker imae for Elixir 1.15.0 and Erlan 26.1.1
➜ presence_app git:(master) ✗ elixir -v
Erlang/OTP 26 [erts-14.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
Elixir 1.15.0 (compiled with Erlang/OTP 24)
➜ presence_app git:(master) ✗ mix phx --version
Phoenix v1.7.9
➜ presence_app git:(master) ✗
1 Like
i’ve downgraded the Elixir and Erlang and now i’m getting this error, but i’m using phoenix 1.7.9
[notice] Application plug_crypto exited: :stopped
[notice] Application mime exited: :stopped
[notice] Application eex exited: :stopped
[notice] Application runtime_tools exited: :stopped
** (Mix) Could not start application telemetry: :telemetry_app.start(:normal, []) returned an error: shutdown: failed to start child: :telemetry_handler_table
** (EXIT) an exception was raised:
** (UndefinedFunctionError) function :telemetry_handler_table.start_link/0 is undefined (module :telemetry_handler_table is not available)
(telemetry 1.2.1) :telemetry_handler_table.start_link()
(stdlib 3.17.1) supervisor.erl:414: :supervisor.do_start_child_i/3
(stdlib 3.17.1) supervisor.erl:400: :supervisor.do_start_child/2
(stdlib 3.17.1) supervisor.erl:384: anonymous fn/3 in :supervisor.start_children/2
(stdlib 3.17.1) supervisor.erl:1250: :supervisor.children_map/4
(stdlib 3.17.1) supervisor.erl:350: :supervisor.init_children/2
(stdlib 3.17.1) gen_server.erl:423: :gen_server.init_it/2
(stdlib 3.17.1) gen_server.erl:390: :gen_server.init_it/6
Detected a Phoenix app
? Choose an app name (leaving blank will default to 'presence-app')
? App presence-app already exists, do you want to launch into that app? Yes
App will use 'gru' region as primary
Admin URL: https://fly.io/apps/presence-app
Hostname: presence-app.fly.dev
Set secrets on presence-app: SECRET_KEY_BASE
? Would you like to set up a Postgresql database now? No
? Would you like to set up an Upstash Redis database now? No
Preparing system for Elixir builds
Installing application dependencies
Running Docker release generator
Wrote config file fly.toml
Validating /Users/mauricio.reis/workspace/presence_app/fly.toml
Platform: machines
✓ Configuration is valid
We recommend upgrading to Phoenix 1.7.9 which includes a release configuration for Docker-based deployment.
If you do upgrade, you can run 'fly launch' again to get the required deployment setup.
If you don't want to upgrade, you'll need to add a few files and configuration options manually.
We've placed a Dockerfile compatible with other Phoenix 1.6 apps in this directory. See
https://hexdocs.pm/phoenix/fly.html for details, including instructions for setting up
a Postgresql database.
➜ presence_app git:(master) ✗ mix phx -v
Phoenix v1.7.9
➜ presence_app git:(master) ✗
Have you tried snooping around in the repository where Elixir / Erlang builds are created? I’m not as sure what your second problem is, but the first problem is almost certainly the same thing I ran into here about finding a valid Elixir / Erlang version pair: Deploying a Phoenix app on Fly.io | Little thoughts