Closed sambou closed 4 years ago
My guess is this is because elixir 1.10 is not compatible with otp 20. Try using erlang 21+ and see if that helps.
Ah, yes that was the issue! Thanks so much for your help! 🙂
On my side it is still not working.
The following elixir_buildpack.config file:
# Erlang version
erlang_version=22
# Elixir version
elixir_version=1.10.2
# always rebuild from scratch on every deploy?
always_rebuild=false
causes the following error message when I run git push heroku master
:
Enumerating objects: 108, done.
Counting objects: 100% (108/108), done.
Delta compression using up to 8 threads
Compressing objects: 100% (96/96), done.
Writing objects: 100% (108/108), 1.05 MiB | 746.00 KiB/s, done.
Total 108 (delta 49), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Elixir app detected
remote: -----> Checking Erlang and Elixir versions
remote: Will use the following versions:
remote: * Stack heroku-18
remote: * Erlang 22
remote: * Elixir 1.10.2
remote: -----> Will export the following config vars:
remote: BUILDPACK_URL
remote: * MIX_ENV=prod
remote: -----> Stack changed, will rebuild
remote: -----> Fetching Erlang 22
remote: -----> Installing Erlang 22 (changed)
remote:
remote: gzip: stdin: not in gzip format
remote: tar: Child returned status 1
remote: tar: Error is not recoverable: exiting now
remote: /app/tmp/buildpacks/64e61c9ed2f722ba254af0c2a31073c9484883a607461e0e00cf066bf3959101411be00769a4a3fea67f11eb1e60985df323d47517b908e8fe2f62bb08fb0a09/lib/erlang_funcs.sh: line 37: /app/tmp/cache/erlang/Install: No such file or directory
remote: -----> Fetching Elixir v1.10.2 for OTP 22
remote: -----> Installing Elixir v1.10.2 (changed)
remote: -----> Installing Hex
remote: /tmp/build_f87eb6a9319182d05c043cf5bd1f386d/.platform_tools/elixir/bin/elixir: 230: exec: erl: not found
remote: -----> Installing rebar
remote: /tmp/build_f87eb6a9319182d05c043cf5bd1f386d/.platform_tools/elixir/bin/elixir: 230: exec: erl: not found
remote: -----> Fetching app dependencies with mix
remote: /tmp/build_f87eb6a9319182d05c043cf5bd1f386d/.platform_tools/elixir/bin/elixir: 230: exec: erl: not found
remote: ! Push rejected, failed to compile Elixir app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to conversassion.
remote:
To https://git.heroku.com/conversassion.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/conversassion.git'
Is there anything that I am missing?
I think the erlang version has to match one of these exactly so maybe you can try 22.2 instead. https://github.com/HashNuke/heroku-buildpack-elixir-otp-builds/blob/master/otp-versions
Yes thank you I finally realized that!
Building/deploying doesn't work when trying to deploy with Elixir v1.10.2.
I already tried to clear the build cache but to no avail.
Build Output: