rails_sample_app not working in cf-246
Closed this issue · 1 comments
Hi,
I have configured cf- 246 release. And deployed rails_sample_app with ruby buildpack version 1.6.27.
Getting Bad request uri in browser.
Error Trace:
-----> Downloaded app package (268K)
-----> Downloaded app buildpack cache (11M)
-------> Buildpack version 1.6.27
Downloaded [file:///var/vcap/data/dea_next/admin_buildpacks/f35bb6e7-24a7-46ae-8f42-6f02ca3f76f5_9d7d4d844353ab40f5d43655a055ef2cca0e8b88/dependencies/https___buildpacks.cloudfoundry.org_concourse-binaries_bundler_bundler-1.13.5.tgz]
-----> Compiling Ruby/Rails
Downloaded [file:///var/vcap/data/dea_next/admin_buildpacks/f35bb6e7-24a7-46ae-8f42-6f02ca3f76f5_9d7d4d844353ab40f5d43655a055ef2cca0e8b88/dependencies/https___buildpacks.cloudfoundry.org_concourse-binaries_ruby_ruby-2.3.1-linux-x64.tgz]
-----> Using Ruby version: ruby-2.3.1
-----> Installing dependencies using bundler 1.13.5
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Your Gemfile lists the gem rspec-rails (= 2.6.1) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Warning: the running version of Bundler (1.13.5) is older than the version that created the lockfile (1.13.6). We suggest you upgrade to the latest version of Bundler by running gem install bundler
.
Fetching gem metadata from http://rubygems.org/...........
Fetching version metadata from http://rubygems.org/..
Fetching dependency metadata from http://rubygems.org/.
Installing abstract 1.0.0
Installing rake 0.9.2.2
Installing builder 2.1.2
Installing activesupport 3.0.12
Installing i18n 0.5.0
Installing rack 1.2.5
Installing tzinfo 0.3.32
Installing polyglot 0.3.3
Installing mime-types 1.18
Installing arel 2.0.10
Installing cf-runtime 0.2.0
Installing gravatar_image_tag 1.0.0.pre2
Installing json 1.6.6 with native extensions
Installing pg 0.15.1 with native extensions
Using bundler 1.13.5
Installing thor 0.14.6
Installing rails_serve_static_assets 0.0.2
Installing rails_stdout_logging 0.0.3
Installing sqlite3 1.3.4 with native extensions
Installing will_paginate 3.0.pre2
Installing erubis 2.6.6
Installing activemodel 3.0.12
Installing rack-mount 0.6.14
Installing rack-test 0.5.7
Installing treetop 1.4.10
Installing cf-autoconfig 0.2.1
Installing rails_12factor 0.0.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/staged/app/vendor/bundle/ruby/2.3.0/gems/json-1.6.6/ext/json/ext/generator
/tmp/staged/app/vendor/ruby-2.3.1/bin/ruby -r ./siteconf20170116-152-c5r1eh.rb
extconf.rb
creating Makefile
current directory:
/tmp/staged/app/vendor/bundle/ruby/2.3.0/gems/json-1.6.6/ext/json/ext/generator
make "DESTDIR=" clean
current directory:
/tmp/staged/app/vendor/bundle/ruby/2.3.0/gems/json-1.6.6/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:0:
../fbuffer/fbuffer.h: In function âfbuffer_to_sâ:
../fbuffer/fbuffer.h:151:47: error: macro "rb_str_new" requires 2 arguments, but
only 1 given
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
../fbuffer/fbuffer.h:151:20: warning: initialization makes integer from pointer
without a cast [enabled by default]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
In file included from generator.c:2:0:
generator.c: In function âcState_arefâ:
generator.h:96:27: warning: variable âstateâ set but not used
[-Wunused-but-set-variable]
JSON_Generator_State *state;
^
generator.c:632:5: note: in expansion of macro âGET_STATEâ
GET_STATE(self);
^
generator.c: In function âisArrayOrObjectâ:
generator.c:863:10: warning: unused variable âcâ [-Wunused-variable]
char c, *p = RSTRING_PTR(string), *q = p + string_len - 1;
^
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/tmp/staged/app/vendor/bundle/ruby/2.3.0/gems/json-1.6.6 for inspection.
Results logged to
/tmp/staged/app/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/json-1.6.6/gem_make.out
An error occurred while installing json (1.6.6), and Bundler cannot continue.
Make sure that gem install json -v '1.6.6'
succeeds before bundling.
Bundler Output: Your Gemfile lists the gem rspec-rails (= 2.6.1) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Warning: the running version of Bundler (1.13.5) is older than the version that created the lockfile (1.13.6). We suggest you upgrade to the latest version of Bundler by running gem install bundler
.
Fetching gem metadata from http://rubygems.org/...........
Fetching version metadata from http://rubygems.org/..
Fetching dependency metadata from http://rubygems.org/.
Installing abstract 1.0.0
Installing rake 0.9.2.2
Installing builder 2.1.2
Installing activesupport 3.0.12
Installing i18n 0.5.0
Installing rack 1.2.5
Installing tzinfo 0.3.32
Installing polyglot 0.3.3
Installing mime-types 1.18
Installing arel 2.0.10
Installing cf-runtime 0.2.0
Installing gravatar_image_tag 1.0.0.pre2
Installing json 1.6.6 with native extensions
Installing pg 0.15.1 with native extensions
Using bundler 1.13.5
Installing thor 0.14.6
Installing rails_serve_static_assets 0.0.2
Installing rails_stdout_logging 0.0.3
Installing sqlite3 1.3.4 with native extensions
Installing will_paginate 3.0.pre2
Installing erubis 2.6.6
Installing activemodel 3.0.12
Installing rack-mount 0.6.14
Installing rack-test 0.5.7
Installing treetop 1.4.10
Installing cf-autoconfig 0.2.1
Installing rails_12factor 0.0.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/staged/app/vendor/bundle/ruby/2.3.0/gems/json-1.6.6/ext/json/ext/generator
/tmp/staged/app/vendor/ruby-2.3.1/bin/ruby -r ./siteconf20170116-152-c5r1eh.rb
extconf.rb
creating Makefile
current directory:
/tmp/staged/app/vendor/bundle/ruby/2.3.0/gems/json-1.6.6/ext/json/ext/generator
make "DESTDIR=" clean
current directory:
/tmp/staged/app/vendor/bundle/ruby/2.3.0/gems/json-1.6.6/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:0:
../fbuffer/fbuffer.h: In function âfbuffer_to_sâ:
../fbuffer/fbuffer.h:151:47: error: macro "rb_str_new" requires 2 arguments, but
only 1 given
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
../fbuffer/fbuffer.h:151:20: warning: initialization makes integer from pointer
without a cast [enabled by default]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
In file included from generator.c:2:0:
generator.c: In function âcState_arefâ:
generator.h:96:27: warning: variable âstateâ set but not used
[-Wunused-but-set-variable]
JSON_Generator_State *state;
^
generator.c:632:5: note: in expansion of macro âGET_STATEâ
GET_STATE(self);
^
generator.c: In function âisArrayOrObjectâ:
generator.c:863:10: warning: unused variable âcâ [-Wunused-variable]
char c, *p = RSTRING_PTR(string), *q = p + string_len - 1;
^
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/tmp/staged/app/vendor/bundle/ruby/2.3.0/gems/json-1.6.6 for inspection.
Results logged to
/tmp/staged/app/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/json-1.6.6/gem_make.out
An error occurred while installing json (1.6.6), and Bundler cannot continue.
Make sure that gem install json -v '1.6.6'
succeeds before bundling.
!
! Failed to install gems via Bundler.
!
Staging failed: Buildpack compilation step failed
FAILED
BuildpackCompileFailed
Kindly help on this.