tfwright / live_admin

Low-config admin UI for Phoenix apps, built on LiveView
MIT License
245 stars 22 forks source link

Dockerfile image (1.15.7-erlang-25.3.2.7-debian-buster-20230612-slim) outdated for ranch_server #111

Open gzzengwei opened 1 week ago

gzzengwei commented 1 week ago

Describe the bug docker image for elixir/erlang is outdated

To Reproduce Steps to reproduce the behavior:

  1. clone the repo
  2. run docker compose up
  3. container failed to start and container exited
  4. See error
live_admin-app-1 | [error] beam/beam_load.c(190): Error loading module ranch_server:
live_admin-app-1 | This BEAM file was compiled for a later version of the runtime system than the current (Erlang/OTP 25).
live_admin-app-1 | To fix this, please re-compile this module with an Erlang/OTP 25 compiler.
live_admin-app-1 | (Use of opcode 181; this emulator supports only up to 180.)

Expected behavior app should be able to spin up

Screenshots

live_admin_error

Environment:

Additional context upgrade image tag to: elixir:1.16.3-erlang-26.2.5.1-debian-buster-20240612-slim will fix the issue

tfwright commented 1 week ago

Hi @gzzengwei that error suggests that the project was compiled with a different Erlang version before attempting to use the docker compose file. Is that possible? Did you try clearing out the _build directory before running docker compose up?