Open bbhoss opened 9 years ago
I've updated the buildpack since the download url has changed. It works on bosh-lite with CF, but not on IBM Bluemix since they use an older CF version:
-----> Downloaded app package (2.0M)
Cloning into '/tmp/buildpacks/cloudfoundry-buildpack-elixir-alpha'...
-----> Checking Erlang and Elixir versions
WARNING: elixir_buildpack.config wasn't found in the app
Using default config from Elixir buildpack
Will use the following versions:
* Erlang 17.5
* Elixir 1.0.5
* MIX_ENV=prod
-----> Fetching Erlang 17.5
-----> Installing Erlang 17.5 (changed)
-----> Fetching Elixir v1.0.5
-----> Installing Elixir v1.0.5 (changed)
-----> Installing Hex
/app/.platform_tools/erlang/erts-6.4/bin/erlexec: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /app/.platform_tools/erlang/erts-6.4/bin/erlexec)
-----> Installing rebar
/app/.platform_tools/erlang/erts-6.4/bin/erlexec: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /app/.platform_tools/erlang/erts-6.4/bin/erlexec)
-----> Fetching app dependencies with mix
/app/.platform_tools/erlang/erts-6.4/bin/erlexec: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /app/.platform_tools/erlang/erts-6.4/bin/erlexec)
Staging failed: Buildpack compilation step failed
I guess we have to distinguish between older and newer CF versions when fetching Erlang. Will look into this ...
You have to use the cflinixfs2 stack on IBM bluemix e.g.
cf push -f manifest-bluemix.yml -s cflinuxfs2
---
applications:
- name: a9s-examples-elixir-phoenix
instances: 1
memory: 128M
host: a9s-examples-elixir-phoenix
domain: mybluemix.net
buildpack: https://github.com/gogolok/cloudfoundry-buildpack-elixir
command: mix phoenix.server
Hi there, has the download url changed again?
I see the same error message when trying the default erlang version along with 18 and 18.1.5:
Staging...
-----> Checking Erlang and Elixir versions
WARNING: elixir_buildpack.config wasn't found in the app
Using default config from Elixir buildpack
Will use the following versions:
* Erlang 17.5
* Elixir 1.0.5
* MIX_ENV=prod
-----> Fetching Erlang 17.5
-----> Installing Erlang 17.5 (changed)
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
/tmp/buildpacks/5f6b97ace968c8585f5c3ae25fb316da/lib/erlang_funcs.sh: line 38: /tmp/cache/erlang/Install: No such file or directory
-----> Fetching Elixir v1.0.5
-----> Installing Elixir v1.0.5 (changed)
-----> Installing Hex
/tmp/app/.platform_tools/elixir/bin/elixir: 100: exec: erl: not found
-----> Installing rebar
/tmp/app/.platform_tools/elixir/bin/elixir: 100: exec: erl: not found
-----> Fetching app dependencies with mix
/tmp/app/.platform_tools/elixir/bin/elixir: 100: exec: erl: not found
Failed to compile droplet
Exit status 223
Staging failed: Exited with status 223
Mmmh, I'll check
Thanks! For more info, I was trying to deploy a starter app (the result of mix phoenix.new
) to PCF (I tried one internal instance and also PWS).
I've fixed the erlang download link.
I'm having the same problem now with erlang 18 and elixir 1.2:
Creating container
Successfully created container
Downloading app package...
Downloaded app package (13.2M)
Staging...
-----> Checking Erlang and Elixir versions
Will use the following versions:
* Erlang 18
* Elixir 1.2
* MIX_ENV=prod
-----> Fetching Erlang 18
-----> Installing Erlang 18 (changed)
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
/tmp/buildpacks/5f6b97ace968c8585f5c3ae25fb316da/lib/erlang_funcs.sh: line 37: /tmp/cache/erlang/Install: No such file or directory
-----> Fetching Elixir 1.2
-----> Installing Elixir 1.2 (changed)
[/tmp/cache/elixir-1.2.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /tmp/cache/elixir-1.2.zip or
/tmp/cache/elixir-1.2.zip.zip, and cannot find /tmp/cache/elixir-1.2.zip.ZIP, period.
chmod: cannot access ‘/tmp/app/.platform_tools/elixir/bin/*’: No such file or directory
-----> Installing Hex
/tmp/buildpacks/5f6b97ace968c8585f5c3ae25fb316da/lib/elixir_funcs.sh: line 88: mix: command not found
-----> Installing rebar
/tmp/buildpacks/5f6b97ace968c8585f5c3ae25fb316da/lib/elixir_funcs.sh: line 102: mix: command not found
-----> Fetching app dependencies with mix
/tmp/buildpacks/5f6b97ace968c8585f5c3ae25fb316da/lib/app_funcs.sh: line 40: mix: command not found
Failed to compile droplet
Exit status 223
Staging failed: Exited with status 223
Please retry and report any errors. Forgot to push a change from december to fix the download urls.
Using IBM Bluemix, I get this error