papercups-io/papercups

Heroku one click deploy failed

Arena-of-AI opened this issue · 0 comments

Describe the bug
When I tried the Heroku one click deployment, it says I need to use Heroku-22 stack, instead of Heroku-18 stack.

So, I forked the papercups project to my github personal account and change Heroku-18 stack to 22 in app.json.

When I run the one click deployment under my personal github account, the error message showed up:

-----> Building on the Heroku-22 stack
-----> Using buildpacks:
1. hashnuke/elixir
2. https://github.com/gjaldon/heroku-buildpack-phoenix-static
-----> Elixir app detected
-----> Will export the following config vars:
BACKEND_URL
DATABASE_URL
REACT_APP_URL
SECRET_KEY_BASE
* MIX_ENV=prod
-----> Checking Erlang and Elixir versions
Will use the following versions:
* Stack heroku-22
* Erlang 23.0.2
* Elixir v1.11.3
-----> Stack changed, will rebuild
-----> Fetching Erlang 23.0.2 from https://s3.amazonaws.com/heroku-buildpack-elixir/erlang/cedar-14/OTP-23.0.2.tar.gz
-----> Installing Erlang 23.0.2 (changed)
-----> Fetching Elixir v1.11.3 for OTP 23 from https://repo.hex.pm/builds/elixir/v1.11.3-otp-23.zip
-----> Installing Elixir v1.11.3 (changed)
-----> Installing Hex
/app/.platform_tools/erlang/erts-11.0.2/bin/beam.smp: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
-----> Installing rebar
/app/.platform_tools/erlang/erts-11.0.2/bin/beam.smp: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
-----> Fetching app dependencies with mix
/app/.platform_tools/erlang/erts-11.0.2/bin/beam.smp: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
! Push rejected, failed to compile Elixir app.
! Push failed

I am a newbie in programming. Can anyone please tell me what to do? Thank you so much!