Error installing httpoison in a livebook hosted on fly.io

I created a Livebook on fly.io successfully.
Then, I tried to install httpoison as a dependency and got an error message when it came to compiling mimerl.

===> Compiling mimerl
Killed
** (Mix.Error) Could not compile dependency :mimerl, "/home/livebook/.mix/rebar3 bare compile --paths /home/livebook/.cache/mix/installs/elixir-1.13.2-erts-12.1.5/8512345697dfd5a85a602aef99bf9ad83/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You may run Mix.install/2 to try again or change the arguments to Mix.install/2 to try another version
    (mix 1.13.2) lib/mix.ex:515: Mix.raise/2
    (elixir 1.13.2) lib/file.ex:1560: File.cd!/2
    (mix 1.13.2) lib/mix/tasks/deps.compile.ex:320: Mix.Tasks.Deps.Compile.do_command/5
    (mix 1.13.2) lib/mix/tasks/deps.compile.ex:229: Mix.Tasks.Deps.Compile.do_rebar3/2
    (mix 1.13.2) lib/mix/tasks/deps.compile.ex:98: anonymous fn/4 in Mix.Tasks.Deps.Compile.compile/2
    (elixir 1.13.2) lib/enum.ex:1593: Enum."-map/2-lists^map/1-0-"/2
    (elixir 1.13.2) lib/enum.ex:1593: Enum."-map/2-lists^map/1-0-"/2
    (mix 1.13.2) lib/mix/tasks/deps.compile.ex:79: Mix.Tasks.Deps.Compile.compile/2

That Killed message makes me think this was an out of memory crash. Do you see anything in fly logs about an OOM? You might have also gotten an email.

Hi kurt, thanks for your response.

I didn’t get an email, but was able to confirm memory was being exceeded via the “Monitoring” tab.

I was able to get through this error, by increasing the memory of the instance on the “Scaling” tab.

Thanks!

1 Like