Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't seem to work #1

Open
bbhoss opened this issue Aug 14, 2015 · 8 comments
Open

Doesn't seem to work #1

bbhoss opened this issue Aug 14, 2015 · 8 comments

Comments

@bbhoss
Copy link

bbhoss commented Aug 14, 2015

Using IBM Bluemix, I get this error

-----> Downloaded app package (29M)
Cloning into '/tmp/buildpacks/cloudfoundry-buildpack-elixir'...
-----> Checking Erlang and Elixir versions
       Will use the following versions:
       * Erlang 18.0
       * Elixir 1.0.5
       * MIX_ENV=prod
-----> Cleaning all cache to force rebuilds
-----> Fetching Erlang 18.0
-----> Installing Erlang 18.0
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
/tmp/buildpacks/cloudfoundry-buildpack-elixir/lib/erlang_funcs.sh: line 41: /tmp/cache/erlang/Install: No such file or directory
-----> Fetching Elixir v1.0.5
-----> Installing Elixir v1.0.5
-----> Installing Hex
exec: 100: erl: not found
-----> Installing rebar
exec: 100: erl: not found
-----> Fetching app dependencies with mix
exec: 100: erl: not found
Staging failed: Buildpack compilation step failed

FAILED
BuildpackCompileFailed

TIP: use 'cf logs myapp --recent' for more information
@gogolok
Copy link
Owner

gogolok commented Aug 15, 2015

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 ...

@gogolok
Copy link
Owner

gogolok commented Aug 15, 2015

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

@MarkyMarkMcDonald
Copy link

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

@gogolok
Copy link
Owner

gogolok commented Dec 3, 2015

Mmmh, I'll check

@MarkyMarkMcDonald
Copy link

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).

@gogolok
Copy link
Owner

gogolok commented Dec 14, 2015

I've fixed the erlang download link.

@ryanmcgarvey
Copy 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

@gogolok
Copy link
Owner

gogolok commented Jan 22, 2016

Please retry and report any errors.
Forgot to push a change from december to fix the download urls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants