workbench icon indicating copy to clipboard operation
workbench copied to clipboard

Unable to make build

Open subhasisbanik opened this issue 5 years ago • 5 comments

Warning: the running version of Bundler (1.16.1) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running gem install bundler. Fetching gem metadata from https://rubygems.org/............. Could not find bootstrap-sass-3.2.0.2 in any of the sources ERROR: Service 'trading_ui' failed to build

subhasisbanik avatar May 30 '19 20:05 subhasisbanik

EDIT: There was an exploit in 3.2.0.2, so it was yanked.

cd app/trading-ui && vim Gemfile

Change the bootstrap version to 3.4 and you should pass this step. However, you will then get an error that the Gemfile.lock file doesn't have write permission.

There was an error while trying to write to /home/app/Gemfile.lock. It is likely that you need to grant write permissions for that path. ERROR: Service 'trading_ui' failed to build:

I then found solution for Gemfile.lock not writable. Within the trading-ui folder:

rm Gemfile.lock && touch Gemfile.lock && chmod a+w Gemfile.lock && vim Gemfile.lock

In the vim editor paste the following code. This should lead to a successful build!

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (5.1.6)
      actionpack (= 5.1.6)
      nio4r (~> 2.0)
      websocket-driver (~> 0.6.1)
    actionmailer (5.1.6)
      actionpack (= 5.1.6)
      actionview (= 5.1.6)
      activejob (= 5.1.6)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (5.1.6)
      actionview (= 5.1.6)
      activesupport (= 5.1.6)
      rack (~> 2.0)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.2)
    actionview (5.1.6)
      activesupport (= 5.1.6)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.3)
    activejob (5.1.6)
      activesupport (= 5.1.6)
      globalid (>= 0.3.6)
    activemodel (5.1.6)
      activesupport (= 5.1.6)
    activerecord (5.1.6)
      activemodel (= 5.1.6)
      activesupport (= 5.1.6)
      arel (~> 8.0)
    activesupport (5.1.6)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 0.7, < 2)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
    arel (8.0.0)
    bootstrap-sass (3.2.0.2)
      sass (~> 3.2)
    bourbon (4.3.4)
      sass (~> 3.4)
      thor (~> 0.19)
    builder (3.2.3)
    byebug (10.0.2)
    coderay (1.1.2)
    coffee-rails (4.2.2)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0)
    coffee-script (2.4.1)
      coffee-script-source
      execjs
    coffee-script-source (1.12.2)
    concurrent-ruby (1.0.5)
    crass (1.0.3)
    ejs (1.1.1)
    erubi (1.7.1)
    execjs (2.7.0)
    faraday (0.14.0)
      multipart-post (>= 1.2, < 3)
    ffi (1.9.23)
    figaro (1.1.1)
      thor (~> 0.14)
    font-awesome-sass (5.0.9)
      sass (>= 3.2)
    globalid (0.4.1)
      activesupport (>= 4.2.0)
    http_accept_language (2.1.1)
    i18n (1.0.0)
      concurrent-ruby (~> 1.0)
    jquery-rails (4.3.1)
      rails-dom-testing (>= 1, < 3)
      railties (>= 4.2.0)
      thor (>= 0.14, < 2.0)
    libv8 (6.3.292.48.1)
    listen (3.1.5)
      rb-fsevent (~> 0.9, >= 0.9.4)
      rb-inotify (~> 0.9, >= 0.9.7)
      ruby_dep (~> 1.2)
    loofah (2.2.2)
      crass (~> 1.0.2)
      nokogiri (>= 1.5.9)
    mail (2.7.0)
      mini_mime (>= 0.1.1)
    method_source (0.9.0)
    mini_mime (1.0.0)
    mini_portile2 (2.3.0)
    mini_racer (0.1.15)
      libv8 (~> 6.3)
    minitest (5.11.3)
    momentjs-rails (2.20.1)
      railties (>= 3.1)
    multipart-post (2.0.0)
    nio4r (2.3.0)
    nokogiri (1.8.2)
      mini_portile2 (~> 2.3.0)
    pry (0.11.3)
      coderay (~> 1.1.0)
      method_source (~> 0.9.0)
    pry-byebug (3.6.0)
      byebug (~> 10.0)
      pry (~> 0.10)
    puma (3.11.3)
    rack (2.0.5)
    rack-test (1.0.0)
      rack (>= 1.0, < 3)
    rails (5.1.6)
      actioncable (= 5.1.6)
      actionmailer (= 5.1.6)
      actionpack (= 5.1.6)
      actionview (= 5.1.6)
      activejob (= 5.1.6)
      activemodel (= 5.1.6)
      activerecord (= 5.1.6)
      activesupport (= 5.1.6)
      bundler (>= 1.3.0)
      railties (= 5.1.6)
      sprockets-rails (>= 2.0.0)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.0.4)
      loofah (~> 2.2, >= 2.2.2)
    railties (5.1.6)
      actionpack (= 5.1.6)
      activesupport (= 5.1.6)
      method_source
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (12.3.1)
    rb-fsevent (0.10.3)
    rb-inotify (0.9.10)
      ffi (>= 0.5.0, < 2)
    ruby_dep (1.5.0)
    sass (3.5.6)
      sass-listen (~> 4.0.0)
    sass-listen (4.0.0)
      rb-fsevent (~> 0.9, >= 0.9.4)
      rb-inotify (~> 0.9, >= 0.9.7)
    sass-rails (5.0.7)
      railties (>= 4.0.0, < 6)
      sass (~> 3.1)
      sprockets (>= 2.8, < 4.0)
      sprockets-rails (>= 2.0, < 4.0)
      tilt (>= 1.1, < 3)
    sprockets (3.7.2)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-rails (3.2.1)
      actionpack (>= 4.0)
      activesupport (>= 4.0)
      sprockets (>= 3.0.0)
    thor (0.20.0)
    thread_safe (0.3.6)
    tilt (2.0.8)
    tzinfo (1.2.5)
      thread_safe (~> 0.1)
    uglifier (4.1.8)
      execjs (>= 0.3.0, < 3)
    websocket-driver (0.6.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.3)

PLATFORMS
  ruby

DEPENDENCIES
  bootstrap-sass (~> 3.2.0.2)
  bourbon (~> 4.3)
  coffee-rails (~> 4.2)
  ejs (~> 1.1)
  faraday (~> 0.12)
  figaro (~> 1.1)
  font-awesome-sass (~> 5.0)
  http_accept_language (~> 2.1)
  jquery-rails (~> 4.3)
  listen (>= 3.0.5, < 3.2)
  mini_racer (~> 0.1)
  momentjs-rails (~> 2.17)
  pry-byebug (~> 3.5)
  puma (~> 3.7)
  rails (~> 5.1.5)
  sass-rails (~> 5.0)
  sprockets (~> 3.7.2)
  uglifier (~> 4.1)

BUNDLED WITH
   1.16.2

MichelleHettinger avatar Jun 01 '19 10:06 MichelleHettinger

There was an error while trying to write to `/home/app/Gemfile.lock`. It is
likely that you need to grant write permissions for that path.
ERROR: Service 'trading_ui' failed to build: The command '/bin/sh -c mkdir -p /opt/vendor/bundle  && chown -R app:app /opt/vendor  && su app -s /bin/bash -c "bundle install --path /opt/vendor/bundle"' returned a non-zero code: 23
make: *** [Makefile:22: build] Error 1

the hack for part too not seem to work for me...

chengjk84 avatar Jun 12 '19 01:06 chengjk84

Change the bootstrap version to 3.4 as @MichelleHettinger says it will work. its work for me Screenshot from 2019-06-14 04-59-04

UbuntuEvangelist avatar Jun 13 '19 22:06 UbuntuEvangelist

I think It should be close now. :) Happy Ending....

AbdaalRuhaani avatar Aug 29 '19 05:08 AbdaalRuhaani

I done it successfully most important part of repo. issues Great job @MichelleHettinger Love you dear u saved my life :)

AbdaalRuhaani avatar Aug 29 '19 05:08 AbdaalRuhaani