HashNuke / heroku-buildpack-elixir

Heroku Buildpack for Elixir with nitro boost
MIT License
811 stars 310 forks source link

Push to heroku rejected during installing Erlang #170

Closed vmaark closed 4 years ago

vmaark commented 4 years ago

Tried several OTP versions but I'm always getting the same error:

$ git push heroku master
Enumerating objects: 334, done.
Counting objects: 100% (334/334), done.
Delta compression using up to 8 threads
Compressing objects: 100% (319/319), done.
Writing objects: 100% (334/334), 129.53 KiB | 4.63 MiB/s, done.
Total 334 (delta 138), 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.2.6
remote:        * Elixir 1.9.4
remote:        Will export the following config vars:
remote:        * Config vars DATABASE_URL
remote:        * MIX_ENV=prod
remote: -----> Stack changed, will rebuild
remote: -----> Fetching Erlang 22.2.6
remote: -----> Installing Erlang 22.2.6 (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/b742fa0230eab70fc6eecaae17726c090070cf6d7ca7c0f0686dd8be4d98dea88809ab8c7a93872d71ac6fad1a515272fe1854fdf72bbdbd2d9c27dbddab2690/lib/erlang_funcs.sh: line 37: /app/tmp/cache/erlang/Install: No such file or directory
remote: -----> Fetching Elixir v1.9.4
remote: -----> Installing Elixir v1.9.4 (changed)
remote: [/app/tmp/cache/elixir-v1.9.4.zip]
remote:   End-of-central-directory signature not found.  Either this file is not
remote:   a zipfile, or it constitutes one disk of a multi-part archive.  In the
remote:   latter case the central directory and zipfile comment will be found on
remote:   the last disk(s) of this archive.
remote: unzip:  cannot find zipfile directory in one of /app/tmp/cache/elixir-v1.9.4.zip or
remote:         /app/tmp/cache/elixir-v1.9.4.zip.zip, and cannot find /app/tmp/cache/elixir-v1.9.4.zip.ZIP, period.
remote: chmod: cannot access '/tmp/build_31cc8aa6f739eef356f7ca2b5b04420a/.platform_tools/elixir/bin/*': No such file or directory
remote: -----> Installing Hex
remote: /app/tmp/buildpacks/b742fa0230eab70fc6eecaae17726c090070cf6d7ca7c0f0686dd8be4d98dea88809ab8c7a93872d71ac6fad1a515272fe1854fdf72bbdbd2d9c27dbddab2690/lib/elixir_funcs.sh: line 88: mix: command not found
remote: -----> Installing rebar
remote: /app/tmp/buildpacks/b742fa0230eab70fc6eecaae17726c090070cf6d7ca7c0f0686dd8be4d98dea88809ab8c7a93872d71ac6fad1a515272fe1854fdf72bbdbd2d9c27dbddab2690/lib/elixir_funcs.sh: line 97: mix: command not found
remote: -----> Fetching app dependencies with mix
remote: /app/tmp/buildpacks/b742fa0230eab70fc6eecaae17726c090070cf6d7ca7c0f0686dd8be4d98dea88809ab8c7a93872d71ac6fad1a515272fe1854fdf72bbdbd2d9c27dbddab2690/lib/app_funcs.sh: line 33: mix: command not found
remote:  !     Push rejected, failed to compile elixir app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !   Push rejected to kyria.
remote:
To https://git.heroku.com/kyria.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/kyria.git'

I'm new to both heroku and elixir, is there any other information I can provide?

jesseshieh commented 4 years ago

Do you mind pasting the entire git push output? Also, do you have a repo I can use to try and reproduce?

jesseshieh commented 4 years ago

Also have you tried clearing your build cache?

vmaark commented 4 years ago

thank @jesseshieh for the fast reply! I updated the output. I tried heroku repo:purge_cache -a kyria, but did not change the consequent build output.

vmaark commented 4 years ago

Also invited you to the project

jesseshieh commented 4 years ago

Can you also try updating to the latest version of the buildpack? See https://github.com/HashNuke/heroku-buildpack-elixir/blob/master/README.md#use-the-edge-version-of-buildpack

vmaark commented 4 years ago

Thanks @jesseshieh , using the latest source solved the issue!

jesseshieh commented 4 years ago

Awesome!