Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section #4467

Closed
paulmenzel opened this issue Apr 25, 2016 · 42 comments

Comments

@paulmenzel
Copy link

Despite having a file Gemfile.lock created by Bundler 1.11 by running bundle, running bundle update simple_form fails like below.

$ bundle update simple_form
Fetching gem metadata from https://rubygems.org/..............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 11.1.1
Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section: 'activesupport'
$ more /tmp/Gemfile.lock 
GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (4.2.5.2)
      actionpack (= 4.2.5.2)
      actionview (= 4.2.5.2)
      activejob (= 4.2.5.2)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 1.0, >= 1.0.5)
    actionpack (4.2.5.2)
      actionview (= 4.2.5.2)
      activesupport (= 4.2.5.2)
      rack (~> 1.6)
      rack-test (~> 0.6.2)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.2)
    actionpack-page_caching (1.0.2)
      actionpack (>= 4.0.0, < 5)
    actionview (4.2.5.2)
      activesupport (= 4.2.5.2)
      builder (~> 3.1)
      erubis (~> 2.7.0)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.2)
    activejob (4.2.5.2)
      activesupport (= 4.2.5.2)
      globalid (>= 0.3.0)
    activemodel (4.2.5.2)
      activesupport (= 4.2.5.2)
      builder (~> 3.1)
    activerecord (4.2.5.2)
      activemodel (= 4.2.5.2)
      activesupport (= 4.2.5.2)
      arel (~> 6.0)
    activesupport (4.2.5.2)
      i18n (~> 0.7)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.3, >= 0.3.4)
      tzinfo (~> 1.1)
    acts_as_list (0.4.0)
      activerecord (>= 3.0)
    ancestry (2.1.0)
      activerecord (>= 3.0.0)
    arel (6.0.3)
    better_errors (2.0.0)
      coderay (>= 1.0.0)
      erubis (>= 2.6.6)
      rack (>= 0.9.0)
    binding_of_caller (0.7.2)
      debug_inspector (>= 0.0.1)
    bootstrap-sass (3.2.0.2)
      sass (~> 3.2)
    builder (3.2.2)
    byebug (8.2.2)
    callsite (0.0.11)
    climate_control (0.0.3)
      activesupport (>= 3.0)
    cocaine (0.5.8)
      climate_control (>= 0.0.3, < 1.0)
    coderay (1.1.0)
    coffee-rails (4.0.1)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0, < 5.0)
    coffee-script (2.3.0)
      coffee-script-source
      execjs
    coffee-script-source (1.8.0)
    daemons (1.1.9)
    dalli (2.7.4)
    debug_inspector (0.0.2)
    erubis (2.7.0)
    ethon (0.8.1)
      ffi (>= 1.3.0)
    eventmachine (1.2.0.1)
    exception_notification (4.1.4)
      actionmailer (~> 4.0)
      activesupport (~> 4.0)
    execjs (2.2.2)
    ffi (1.9.10)
    font-awesome-rails (4.2.0.0)
      railties (>= 3.2, < 5.0)
    globalid (0.3.6)
      activesupport (>= 4.1.0)
    haml (4.0.5)
      tilt
    haml-rails (0.5.3)
      actionpack (>= 4.0.1)
      activesupport (>= 4.0.1)
      haml (>= 3.1, < 5.0)
      railties (>= 4.0.1)
    hike (1.2.3)
    hirb (0.7.2)
    i18n (0.7.0)
    jbuilder (1.5.3)
      activesupport (>= 3.0.0)
      multi_json (>= 1.2.0)
    jquery-rails (3.1.2)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    jquery-ui-rails (5.0.2)
      railties (>= 3.2.16)
    json (1.8.3)
    kaminari (0.16.1)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    kaminari-bootstrap (3.0.1)
      kaminari (>= 0.13.0)
      rails
    kramdown (1.10.0)
    loofah (2.0.3)
      nokogiri (>= 1.5.9)
    mail (2.6.3)
      mime-types (>= 1.16, < 3)
    meta_request (0.3.4)
      callsite (~> 0.0, >= 0.0.11)
      rack-contrib (~> 1.1)
      railties (>= 3.0.0, < 5.0.0)
    mime-types (2.99.1)
    mini_portile2 (2.0.0)
    minitest (5.8.4)
    multi_json (1.11.2)
    mysql2 (0.4.3)
    newrelic_rpm (3.15.0.314)
    nokogiri (1.6.7.2)
      mini_portile2 (~> 2.0.0.rc2)
    pandoc-ruby (1.0.0)
    paperclip (4.2.0)
      activemodel (>= 3.0.0)
      activesupport (>= 3.0.0)
      cocaine (~> 0.5.3)
      mime-types
    pg (0.18.4)
    quiet_assets (1.0.3)
      railties (>= 3.1, < 5.0)
    rack (1.6.4)
    rack-contrib (1.1.0)
      rack (>= 0.9.1)
    rack-mini-profiler (0.9.2)
      rack (>= 1.1.3)
    rack-test (0.6.3)
      rack (>= 1.0)
    rack-utf8_sanitizer (1.3.2)
      rack (>= 1.0, < 3.0)
    rails (4.2.5.2)
      actionmailer (= 4.2.5.2)
      actionpack (= 4.2.5.2)
      actionview (= 4.2.5.2)
      activejob (= 4.2.5.2)
      activemodel (= 4.2.5.2)
      activerecord (= 4.2.5.2)
      activesupport (= 4.2.5.2)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.2.5.2)
      sprockets-rails
    rails-deprecated_sanitizer (1.0.3)
      activesupport (>= 4.2.0.alpha)
    rails-dom-testing (1.0.7)
      activesupport (>= 4.2.0.beta, < 5.0)
      nokogiri (~> 1.6.0)
      rails-deprecated_sanitizer (>= 1.0.1)
    rails-html-sanitizer (1.0.3)
      loofah (~> 2.0)
    railties (4.2.5.2)
      actionpack (= 4.2.5.2)
      activesupport (= 4.2.5.2)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (11.1.1)
    rdoc (4.1.2)
      json (~> 1.4)
    responders (2.1.0)
      railties (>= 4.2.0, < 5)
    sass (3.2.19)
    sass-rails (4.0.3)
      railties (>= 4.0.0, < 5.0)
      sass (~> 3.2.0)
      sprockets (~> 2.8, <= 2.11.0)
      sprockets-rails (~> 2.0)
    sdoc (0.4.1)
      json (~> 1.7, >= 1.7.7)
      rdoc (~> 4.0)
    simple_form (3.0.4)
      actionpack (~> 4.0)
      activemodel (~> 4.0)
    spring (1.3.3)
    sprockets (2.11.0)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.3.3)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (>= 2.8, < 4.0)
    sqlite3 (1.3.11)
    thin (1.6.3)
      daemons (~> 1.0, >= 1.0.9)
      eventmachine (~> 1.0)
      rack (~> 1.0)
    thor (0.19.1)
    thread_safe (0.3.5)
    tilt (1.4.1)
    turbolinks (2.5.1)
      coffee-rails
    typhoeus (1.0.1)
      ethon (>= 0.8.0)
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    uglifier (2.5.3)
      execjs (>= 0.3.0)
      json (>= 1.8.0)
    web-console (2.3.0)
      activemodel (>= 4.0)
      binding_of_caller (>= 0.7.2)
      railties (>= 4.0)
      sprockets-rails (>= 2.0, < 4.0)

PLATFORMS
  ruby

DEPENDENCIES
  actionpack-page_caching
  acts_as_list
  ancestry
  better_errors
  binding_of_caller
  bootstrap-sass
  byebug
  cocaine
  coffee-rails (~> 4.0.0)
  dalli
  exception_notification
  font-awesome-rails
  haml
  haml-rails
  hirb
  jbuilder (~> 1.2)
  jquery-rails
  jquery-ui-rails
  kaminari
  kaminari-bootstrap
  kramdown
  meta_request
  mysql2
  newrelic_rpm
  nokogiri
  pandoc-ruby
  paperclip
  pg
  quiet_assets
  rack-mini-profiler
  rack-utf8_sanitizer
  rails (~> 4.2.0)
  responders (~> 2.0)
  sass-rails (~> 4.0.0)
  sdoc
  simple_form (~> 3.0.0.rc)
  spring
  sqlite3
  thin
  turbolinks
  typhoeus
  uglifier (>= 1.3.0)
  web-console (~> 2.0)
@segiddins
Copy link
Member

Can you please share the full output of bundle env so we can investigate? Thanks!

@paulmenzel
Copy link
Author

The Debian package is used. My colleague will respond tomorrow with the exact output.

@ghost
Copy link

ghost commented Apr 26, 2016

Dear @segiddins, sorry for not reading your question properly. Here the output of bundle env:

$ bundle env
Environment

    Bundler   1.11.2
    Rubygems  2.5.1
    Ruby      2.3.0p0 (2015-12-25 revision 0) [i386-linux-gnu]
    Git       2.8.0.rc3

Bundler settings

    frozen
      Set for your local app (/home/oliver/shmh-delta-2-client/.bundle/config): "1"
    path
      Set for your local app (/home/oliver/shmh-delta-2-client/.bundle/config): "vendor/bundle"
    disable_shared_gems
      Set for your local app (/home/oliver/shmh-delta-2-client/.bundle/config): "1"

Gemfile

    source 'https://rubygems.org'

    gem 'rails', '~> 4.2.0'

    gem 'mysql2', group: :mysql
    gem 'pg', group: :postgres
    gem 'sqlite3', group: :sqlite

    gem 'sass-rails', '~> 4.0.0'

    gem 'uglifier', '>= 1.3.0'

    gem 'coffee-rails', '~> 4.0.0'

    # gem 'therubyracer', platforms: :ruby

    gem 'jquery-rails'
    gem 'jquery-ui-rails'

    gem 'turbolinks'
    #gem 'jquery-turbolinks'

    gem 'jbuilder', '~> 1.2'

    group :doc do
      gem 'sdoc', require: false
    end

    group :development do
      gem 'better_errors'
      gem 'binding_of_caller'
      gem 'byebug'
      gem 'meta_request'
      gem 'thin'
      gem 'quiet_assets'
      # 4.2
      gem 'web-console', '~> 2.0'
      gem 'spring'
    end

    # 4.2
    gem 'responders', '~> 2.0'



    # UI
    gem 'hirb'
    gem 'font-awesome-rails'
    gem 'bootstrap-sass'
    gem 'haml-rails'
    gem 'haml'
    gem 'simple_form', '~> 3.0.0.rc'

    gem 'nokogiri'

    gem 'kramdown'


    gem 'ancestry'
    gem 'acts_as_list'


    gem 'cocaine'
    gem 'paperclip'


    gem 'kaminari'
    gem 'kaminari-bootstrap'

    gem 'rack-mini-profiler', require: false
    gem 'rack-utf8_sanitizer'

    gem 'actionpack-page_caching'
    gem 'dalli'
    gem 'exception_notification'
    gem 'typhoeus'

    gem 'pandoc-ruby'

    gem 'newrelic_rpm', group: :new_relic

Gemfile.lock

    GEM
      remote: https://rubygems.org/
      specs:
        actionmailer (4.2.5.2)
          actionpack (= 4.2.5.2)
          actionview (= 4.2.5.2)
          activejob (= 4.2.5.2)
          mail (~> 2.5, >= 2.5.4)
          rails-dom-testing (~> 1.0, >= 1.0.5)
        actionpack (4.2.5.2)
          actionview (= 4.2.5.2)
          activesupport (= 4.2.5.2)
          rack (~> 1.6)
          rack-test (~> 0.6.2)
          rails-dom-testing (~> 1.0, >= 1.0.5)
          rails-html-sanitizer (~> 1.0, >= 1.0.2)
        actionpack-page_caching (1.0.2)
          actionpack (>= 4.0.0, < 5)
        actionview (4.2.5.2)
          activesupport (= 4.2.5.2)
          builder (~> 3.1)
          erubis (~> 2.7.0)
          rails-dom-testing (~> 1.0, >= 1.0.5)
          rails-html-sanitizer (~> 1.0, >= 1.0.2)
        activejob (4.2.5.2)
          activesupport (= 4.2.5.2)
          globalid (>= 0.3.0)
        activemodel (4.2.5.2)
          activesupport (= 4.2.5.2)
          builder (~> 3.1)
        activerecord (4.2.5.2)
          activemodel (= 4.2.5.2)
          activesupport (= 4.2.5.2)
          arel (~> 6.0)
        activesupport (4.2.5.2)
          i18n (~> 0.7)
          json (~> 1.7, >= 1.7.7)
          minitest (~> 5.1)
          thread_safe (~> 0.3, >= 0.3.4)
          tzinfo (~> 1.1)
        acts_as_list (0.4.0)
          activerecord (>= 3.0)
        ancestry (2.1.0)
          activerecord (>= 3.0.0)
        arel (6.0.3)
        better_errors (2.0.0)
          coderay (>= 1.0.0)
          erubis (>= 2.6.6)
          rack (>= 0.9.0)
        binding_of_caller (0.7.2)
          debug_inspector (>= 0.0.1)
        bootstrap-sass (3.2.0.2)
          sass (~> 3.2)
        builder (3.2.2)
        byebug (8.2.2)
        callsite (0.0.11)
        climate_control (0.0.3)
          activesupport (>= 3.0)
        cocaine (0.5.8)
          climate_control (>= 0.0.3, < 1.0)
        coderay (1.1.0)
        coffee-rails (4.0.1)
          coffee-script (>= 2.2.0)
          railties (>= 4.0.0, < 5.0)
        coffee-script (2.3.0)
          coffee-script-source
          execjs
        coffee-script-source (1.8.0)
        daemons (1.1.9)
        dalli (2.7.4)
        debug_inspector (0.0.2)
        erubis (2.7.0)
        ethon (0.8.1)
          ffi (>= 1.3.0)
        eventmachine (1.2.0.1)
        exception_notification (4.1.4)
          actionmailer (~> 4.0)
          activesupport (~> 4.0)
        execjs (2.2.2)
        ffi (1.9.10)
        font-awesome-rails (4.2.0.0)
          railties (>= 3.2, < 5.0)
        globalid (0.3.6)
          activesupport (>= 4.1.0)
        haml (4.0.5)
          tilt
        haml-rails (0.5.3)
          actionpack (>= 4.0.1)
          activesupport (>= 4.0.1)
          haml (>= 3.1, < 5.0)
          railties (>= 4.0.1)
        hike (1.2.3)
        hirb (0.7.2)
        i18n (0.7.0)
        jbuilder (1.5.3)
          activesupport (>= 3.0.0)
          multi_json (>= 1.2.0)
        jquery-rails (3.1.2)
          railties (>= 3.0, < 5.0)
          thor (>= 0.14, < 2.0)
        jquery-ui-rails (5.0.2)
          railties (>= 3.2.16)
        json (1.8.3)
        kaminari (0.16.1)
          actionpack (>= 3.0.0)
          activesupport (>= 3.0.0)
        kaminari-bootstrap (3.0.1)
          kaminari (>= 0.13.0)
          rails
        kramdown (1.10.0)
        loofah (2.0.3)
          nokogiri (>= 1.5.9)
        mail (2.6.3)
          mime-types (>= 1.16, < 3)
        meta_request (0.3.4)
          callsite (~> 0.0, >= 0.0.11)
          rack-contrib (~> 1.1)
          railties (>= 3.0.0, < 5.0.0)
        mime-types (2.99.1)
        mini_portile2 (2.0.0)
        minitest (5.8.4)
        multi_json (1.11.2)
        mysql2 (0.4.3)
        newrelic_rpm (3.15.0.314)
        nokogiri (1.6.7.2)
          mini_portile2 (~> 2.0.0.rc2)
        pandoc-ruby (1.0.0)
        paperclip (4.2.0)
          activemodel (>= 3.0.0)
          activesupport (>= 3.0.0)
          cocaine (~> 0.5.3)
          mime-types
        pg (0.18.4)
        quiet_assets (1.0.3)
          railties (>= 3.1, < 5.0)
        rack (1.6.4)
        rack-contrib (1.1.0)
          rack (>= 0.9.1)
        rack-mini-profiler (0.9.2)
          rack (>= 1.1.3)
        rack-test (0.6.3)
          rack (>= 1.0)
        rack-utf8_sanitizer (1.3.2)
          rack (>= 1.0, < 3.0)
        rails (4.2.5.2)
          actionmailer (= 4.2.5.2)
          actionpack (= 4.2.5.2)
          actionview (= 4.2.5.2)
          activejob (= 4.2.5.2)
          activemodel (= 4.2.5.2)
          activerecord (= 4.2.5.2)
          activesupport (= 4.2.5.2)
          bundler (>= 1.3.0, < 2.0)
          railties (= 4.2.5.2)
          sprockets-rails
        rails-deprecated_sanitizer (1.0.3)
          activesupport (>= 4.2.0.alpha)
        rails-dom-testing (1.0.7)
          activesupport (>= 4.2.0.beta, < 5.0)
          nokogiri (~> 1.6.0)
          rails-deprecated_sanitizer (>= 1.0.1)
        rails-html-sanitizer (1.0.3)
          loofah (~> 2.0)
        railties (4.2.5.2)
          actionpack (= 4.2.5.2)
          activesupport (= 4.2.5.2)
          rake (>= 0.8.7)
          thor (>= 0.18.1, < 2.0)
        rake (11.1.1)
        rdoc (4.1.2)
          json (~> 1.4)
        responders (2.1.0)
          railties (>= 4.2.0, < 5)
        sass (3.2.19)
        sass-rails (4.0.3)
          railties (>= 4.0.0, < 5.0)
          sass (~> 3.2.0)
          sprockets (~> 2.8, <= 2.11.0)
          sprockets-rails (~> 2.0)
        sdoc (0.4.1)
          json (~> 1.7, >= 1.7.7)
          rdoc (~> 4.0)
        simple_form (3.0.4)
          actionpack (~> 4.0)
          activemodel (~> 4.0)
        spring (1.3.3)
        sprockets (2.11.0)
          hike (~> 1.2)
          multi_json (~> 1.0)
          rack (~> 1.0)
          tilt (~> 1.1, != 1.3.0)
        sprockets-rails (2.3.3)
          actionpack (>= 3.0)
          activesupport (>= 3.0)
          sprockets (>= 2.8, < 4.0)
        sqlite3 (1.3.11)
        thin (1.6.3)
          daemons (~> 1.0, >= 1.0.9)
          eventmachine (~> 1.0)
          rack (~> 1.0)
        thor (0.19.1)
        thread_safe (0.3.5)
        tilt (1.4.1)
        turbolinks (2.5.1)
          coffee-rails
        typhoeus (1.0.1)
          ethon (>= 0.8.0)
        tzinfo (1.2.2)
          thread_safe (~> 0.1)
        uglifier (2.5.3)
          execjs (>= 0.3.0)
          json (>= 1.8.0)
        web-console (2.3.0)
          activemodel (>= 4.0)
          binding_of_caller (>= 0.7.2)
          railties (>= 4.0)
          sprockets-rails (>= 2.0, < 4.0)

    PLATFORMS
      ruby

    DEPENDENCIES
      actionpack-page_caching
      acts_as_list
      ancestry
      better_errors
      binding_of_caller
      bootstrap-sass
      byebug
      cocaine
      coffee-rails (~> 4.0.0)
      dalli
      exception_notification
      font-awesome-rails
      haml
      haml-rails
      hirb
      jbuilder (~> 1.2)
      jquery-rails
      jquery-ui-rails
      kaminari
      kaminari-bootstrap
      kramdown
      meta_request
      mysql2
      newrelic_rpm
      nokogiri
      pandoc-ruby
      paperclip
      pg
      quiet_assets
      rack-mini-profiler
      rack-utf8_sanitizer
      rails (~> 4.2.0)
      responders (~> 2.0)
      sass-rails (~> 4.0.0)
      sdoc
      simple_form (~> 3.0.0.rc)
      spring
      sqlite3
      thin
      turbolinks
      typhoeus
      uglifier (>= 1.3.0)
      web-console (~> 2.0)

@segiddins
Copy link
Member

I cannot reproduce with the given Gemfile & Lockfile

@dpsk
Copy link

dpsk commented May 3, 2016

Have the same issue, here is the output:

bundle update x-editable-rails
Fetching gem metadata from http://rubygems.org/
Fetching version metadata from http://rubygems.org/
Fetching dependency metadata from http://rubygems.org/
Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section: 'activesupport'
bundle env
Environment

    Bundler   1.12.1
    Rubygems  2.6.4
    Ruby      2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
    Git       2.5.0

Bundler settings

    frozen
      Set for your local app (/home/deploy/project/releases/124/.bundle/config): "1"
    path
      Set for your local app (/home/deploy/project/releases/124/.bundle/config): "./vendor/bundle"
    bin
      Set for your local app (/home/deploy/project/releases/124/.bundle/config): "bin/"
    without
      Set for your local app (/home/deploy/project/releases/124/.bundle/config): "development:test"
    disable_shared_gems
      Set for your local app (/home/deploy/project/releases/124/.bundle/config): "true"
    orig_path
      Set via BUNDLE_ORIG_PATH: "/home/deploy/.rbenv/versions/2.1.2/bin:/home/deploy/.rbenv/libexec:/home/deploy/.rbenv/plugins/ruby-build/bin:/home/deploy/.rbenv/shims:/home/deploy/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

Gemfile

    source 'http://rubygems.org'

    gem 'rails', '~> 4.2.1'
    #For database---------------------
    gem 'pg'

    gem 'sass-rails', '~> 4.0.0'
    gem 'uglifier', '>= 1.3.0'
    gem 'coffee-rails', '~> 4.0.0'
    gem 'therubyracer', platforms: :ruby
    gem 'jquery-rails', '~> 3.1.4'
    gem 'turbolinks'
    gem 'jquery-turbolinks'

    gem 'jbuilder', '~> 1.2'
    gem 'simple_form'
    # gem 'nested_form', :git => 'git://github.com/ryanb/nested_form.git'
    # gem 'activerecord-postgres-hstore'
    gem 'aws-sdk'
    gem 'paperclip', '~> 4.3.5'
    gem 's3_direct_upload'
    gem 'youtube_addy', git: 'git://github.com/zerocool4u2/youtube_addy.git'
    # gem 'delayed_paperclip'
    # gem 'aws-s3'
    gem 'font-awesome-sass', '~> 4.4.0'
    gem 'draper'
    gem 'haml'
    gem 'gretel', git: 'git://github.com/dpsk/gretel.git'
    #For datatables--------------------
    gem 'jquery-datatables-rails'
    gem 'ajax-datatables-rails'
    gem 'carmen-rails', '~> 1.0.0'
    gem 'geocoder'
    gem 'select2-rails'
    gem 'cocoon'
    gem 'wicked'
    gem 'gmaps4rails'
    gem "spreadsheet", "0.9.0"
    gem 'roo', '~> 2.3.2'
    gem 'maskedinput-rails'
    gem 'bootstrap-sass', '~> 2.3.2.0'
    gem 'bootstrap-timepicker-rails-addon', require: 'bootstrap-timepicker-rails-addon',
                                            git: 'git://github.com/ywjno/bootstrap-timepicker-rails-addon.git'
    gem 'momentjs-rails'
    # gem "historyjs-rails"
    gem "nprogress-rails"
    gem 'pivot_table'
    # gem 'rails-erd'
    gem 'chronic'
    gem 'stripe'
    gem 'stripe-rails'
    # gem 'tire'
    # gem 'will_paginate'
    gem 'will_paginate-bootstrap'
    gem 'foreman'
    gem 'delayed_job_active_record'
    gem 'podlove-web-player-rails'
    gem 'dalli'
    gem 'jquery-toastmessage-rails'
    gem 'mina', '0.3.0'
    gem 'mina-multistage', require: false
    gem 'mina-unicorn', '~> 0.1.0', require: false
    gem 'nuorder', git: "git://github.com/dpsk/nuorder.git", branch: "process_order"
    gem 'sidekiq', '< 5'
    gem 'sidekiq-middleware'
    gem 'redis'
    gem 'redis-namespace'
    gem 'redis-rails'
    gem 'activerecord-session_store'
    gem 'sinatra', :require => nil
    gem 'summernote-rails'
    gem 'annotate'
    gem "chartkick"
    gem "highcharts-rails", "~> 4.1.9"
    gem 'x-editable-rails', git: 'git://github.com/dpsk/x-editable-rails', branch: "master"
    gem 'axlsx_rails', '~> 0.4.0'
    gem 'axlsx', '~> 2.1.0.pre'

    group :production do
      gem 'rails_12factor'
      gem 'unicorn'
    end

    group :production, :staging do
      gem 'exception_notification'
    end

    group :doc do
      gem 'sdoc', require: false
    end

    #For Authentication----------------
    gem 'devise', "~> 3.4.1"
    gem 'responders'

    #For Authorization-----------------
    gem 'cancancan', "~> 1.13.1"

    gem 'omniauth'
    gem 'omniauth-mailchimp'

    gem 'gibbon', "~> 2.2.1"

    group :development do
      #For hiding asset logs-----------
      gem 'quiet_assets'
      gem 'bullet'
      gem 'pghero'
      gem 'letter_opener'
      gem 'mina-sidekiq'
      gem 'thin'
      gem 'quiet_safari'
    end

    group :development,:test do
      gem 'rspec-rails', '~> 3.0'
      gem 'factory_girl_rails'
      gem 'guard-rspec', require: false
      gem 'shoulda-matchers', '~> 3.0'
      gem 'simplecov', require: false
      gem 'database_cleaner'
      gem 'faker'
      gem 'pry-rails'
      gem 'pry-byebug'
      gem 'awesome_print'
      gem 'fuubar'
      gem 'dotenv'
    end

    gem "simple_calendar", "~> 1.1.0"




    # gem 'activerecord-postgis-adapter'
    # gem 'rgeo'

Gemfile.lock

    GIT
      remote: git://github.com/dpsk/gretel.git
      revision: 6865547ede114001fe374ebbdb0a30cd690f31f8
      specs:
        gretel (3.0.8)
          rails (>= 3.2.0)

    GIT
      remote: git://github.com/dpsk/nuorder.git
      revision: c7c3676c0b3f0ced97074bcc96510f9f68a90cbd
      branch: process_order
      specs:
        nuorder (1.0.0)
          excon (~> 0.45.3)
          faraday (~> 0.9.1)
          faraday_middleware-multi_json (~> 0.0.6)

    GIT
      remote: git://github.com/dpsk/x-editable-rails
      revision: bab631c68d9ed69e62c5118e618ce7befcf5ba56
      branch: master
      specs:
        x-editable-rails (1.5.5)
          railties

    GIT
      remote: git://github.com/ywjno/bootstrap-timepicker-rails-addon.git
      revision: 9f5ee6498d6e81ef87c6f55a3c2682655f204a49
      specs:
        bootstrap-timepicker-rails-addon (0.2.6.1)
          railties (>= 3.1, < 5.0)

    GIT
      remote: git://github.com/zerocool4u2/youtube_addy.git
      revision: 9601fd90de589427f64438cae1ac3c5a02b86dd7
      specs:
        youtube_addy (1.0.4)

    GEM
      remote: http://rubygems.org/
      specs:
        actionmailer (4.2.6)
          actionpack (= 4.2.6)
          actionview (= 4.2.6)
          activejob (= 4.2.6)
          mail (~> 2.5, >= 2.5.4)
          rails-dom-testing (~> 1.0, >= 1.0.5)
        actionpack (4.2.6)
          actionview (= 4.2.6)
          activesupport (= 4.2.6)
          rack (~> 1.6)
          rack-test (~> 0.6.2)
          rails-dom-testing (~> 1.0, >= 1.0.5)
          rails-html-sanitizer (~> 1.0, >= 1.0.2)
        actionview (4.2.6)
          activesupport (= 4.2.6)
          builder (~> 3.1)
          erubis (~> 2.7.0)
          rails-dom-testing (~> 1.0, >= 1.0.5)
          rails-html-sanitizer (~> 1.0, >= 1.0.2)
        activejob (4.2.6)
          activesupport (= 4.2.6)
          globalid (>= 0.3.0)
        activemodel (4.2.6)
          activesupport (= 4.2.6)
          builder (~> 3.1)
        activerecord (4.2.6)
          activemodel (= 4.2.6)
          activesupport (= 4.2.6)
          arel (~> 6.0)
        activerecord-session_store (0.1.1)
          actionpack (>= 4.0.0, < 5)
          activerecord (>= 4.0.0, < 5)
          railties (>= 4.0.0, < 5)
        activesupport (4.2.6)
          i18n (~> 0.7)
          json (~> 1.7, >= 1.7.7)
          minitest (~> 5.1)
          thread_safe (~> 0.3, >= 0.3.4)
          tzinfo (~> 1.1)
        addressable (2.3.6)
        ajax-datatables-rails (0.3.1)
          railties (>= 3.1)
        annotate (2.7.0)
          activerecord (>= 3.2, < 6.0)
          rake (~> 10.4)
        arel (6.0.3)
        awesome_print (1.2.0)
        aws-sdk (1.59.0)
          aws-sdk-v1 (= 1.59.0)
        aws-sdk-v1 (1.59.0)
          json (~> 1.4)
          nokogiri (>= 1.4.4)
        axlsx (2.1.0.pre)
          htmlentities (~> 4.3.1)
          nokogiri (>= 1.4.1)
          rubyzip (~> 1.1.7)
        axlsx_rails (0.4.0)
          axlsx (>= 2.0.1)
          rails (>= 3.1)
        bcrypt (3.1.10)
        bootstrap-sass (2.3.2.2)
          sass (~> 3.2)
        builder (3.2.2)
        bullet (4.13.1)
          activesupport (>= 3.0.0)
          uniform_notifier (>= 1.6.0)
        byebug (2.7.0)
          columnize (~> 0.3)
          debugger-linecache (~> 1.2)
        cancancan (1.13.1)
        carmen (1.0.1)
          unicode_utils (~> 1.4.0)
        carmen-rails (1.0.1)
          carmen (~> 1.0.0)
          rails
        celluloid (0.17.2)
          celluloid-essentials
          celluloid-extras
          celluloid-fsm
          celluloid-pool
          celluloid-supervision
          timers (>= 4.1.1)
        celluloid-essentials (0.20.5)
          timers (>= 4.1.1)
        celluloid-extras (0.20.5)
          timers (>= 4.1.1)
        celluloid-fsm (0.20.5)
          timers (>= 4.1.1)
        celluloid-pool (0.20.5)
          timers (>= 4.1.1)
        celluloid-supervision (0.20.5)
          timers (>= 4.1.1)
        chartkick (1.4.1)
        chronic (0.10.2)
        climate_control (0.0.3)
          activesupport (>= 3.0)
        cocaine (0.5.8)
          climate_control (>= 0.0.3, < 1.0)
        cocoon (1.2.6)
        coderay (1.0.9)
        coffee-rails (4.0.1)
          coffee-script (>= 2.2.0)
          railties (>= 4.0.0, < 5.0)
        coffee-script (2.4.1)
          coffee-script-source
          execjs
        coffee-script-source (1.10.0)
        columnize (0.8.9)
        concurrent-ruby (1.0.0)
        connection_pool (2.2.0)
        daemons (1.1.9)
        dalli (2.7.2)
        database_cleaner (1.3.0)
        debugger-linecache (1.2.0)
        delayed_job (4.1.1)
          activesupport (>= 3.0, < 5.0)
        delayed_job_active_record (4.1.0)
          activerecord (>= 3.0, < 5)
          delayed_job (>= 3.0, < 5)
        devise (3.4.1)
          bcrypt (~> 3.0)
          orm_adapter (~> 0.1)
          railties (>= 3.2.6, < 5)
          responders
          thread_safe (~> 0.1)
          warden (~> 1.2.3)
        diff-lcs (1.2.5)
        dotenv (1.0.2)
        draper (1.3.1)
          actionpack (>= 3.0)
          activemodel (>= 3.0)
          activesupport (>= 3.0)
          request_store (~> 1.0.3)
        erubis (2.7.0)
        eventmachine (1.0.3)
        exception_notification (4.0.1)
          actionmailer (>= 3.0.4)
          activesupport (>= 3.0.4)
        excon (0.45.4)
        execjs (2.6.0)
        factory_girl (4.4.0)
          activesupport (>= 3.0.0)
        factory_girl_rails (4.4.1)
          factory_girl (~> 4.4.0)
          railties (>= 3.0.0)
        faker (1.4.1)
          i18n (~> 0.5)
        faraday (0.9.2)
          multipart-post (>= 1.2, < 3)
        faraday_middleware (0.10.0)
          faraday (>= 0.7.4, < 0.10)
        faraday_middleware-multi_json (0.0.6)
          faraday_middleware
          multi_json
        ffi (1.9.3)
        font-awesome-sass (4.4.0)
          sass (>= 3.2)
        foreman (0.76.0)
          dotenv (~> 1.0.2)
          thor (~> 0.19.1)
        formatador (0.2.5)
        fuubar (2.0.0)
          rspec (~> 3.0)
          ruby-progressbar (~> 1.4)
        geocoder (1.2.2)
        gibbon (2.2.1)
          faraday (>= 0.9.1)
          multi_json (>= 1.11.0)
        globalid (0.3.6)
          activesupport (>= 4.1.0)
        gmaps4rails (2.1.2)
        guard (2.6.1)
          formatador (>= 0.2.4)
          listen (~> 2.7)
          lumberjack (~> 1.0)
          pry (>= 0.9.12)
          thor (>= 0.18.1)
        guard-rspec (4.2.10)
          guard (~> 2.1)
          rspec (>= 2.14, < 4.0)
        haml (4.0.3)
          tilt
        hashie (3.4.3)
        highcharts-rails (4.1.9)
          railties (>= 3.1)
        hike (1.2.3)
        hitimes (1.2.3)
        htmlentities (4.3.4)
        i18n (0.7.0)
        jbuilder (1.5.3)
          activesupport (>= 3.0.0)
          multi_json (>= 1.2.0)
        jquery-datatables-rails (3.3.0)
          actionpack (>= 3.1)
          jquery-rails
          railties (>= 3.1)
          sass-rails
        jquery-fileupload-rails (0.4.1)
          actionpack (>= 3.1)
          railties (>= 3.1)
        jquery-rails (3.1.4)
          railties (>= 3.0, < 5.0)
          thor (>= 0.14, < 2.0)
        jquery-toastmessage-rails (1.0.1)
          rails (>= 3.1.0)
        jquery-turbolinks (2.1.0)
          railties (>= 3.1.0)
          turbolinks
        json (1.8.3)
        jwt (1.5.2)
        kgio (2.9.2)
        launchy (2.4.3)
          addressable (~> 2.3)
        letter_opener (1.3.0)
          launchy (~> 2.2)
        libv8 (3.16.14.13)
        listen (2.7.8)
          celluloid (>= 0.15.2)
          rb-fsevent (>= 0.9.3)
          rb-inotify (>= 0.9)
        loofah (2.0.3)
          nokogiri (>= 1.5.9)
        lumberjack (1.0.7)
        mail (2.6.4)
          mime-types (>= 1.16, < 4)
        maskedinput-rails (1.3.1.0)
        method_source (0.8.2)
        mime-types (2.99.1)
        mimemagic (0.3.0)
        mina (0.3.0)
          open4
          rake
        mina-multistage (0.1.1)
          mina (>= 0.2.1)
        mina-sidekiq (0.3.1)
          mina
        mina-unicorn (0.1.0)
        mini_portile2 (2.0.0)
        minitest (5.8.4)
        momentjs-rails (2.8.1)
          railties (>= 3.1)
        multi_json (1.11.2)
        multi_xml (0.5.5)
        multipart-post (2.0.0)
        netrc (0.9.0)
        nokogiri (1.6.7.2)
          mini_portile2 (~> 2.0.0.rc2)
        nprogress-rails (0.1.6.7)
        oauth2 (1.0.0)
          faraday (>= 0.8, < 0.10)
          jwt (~> 1.0)
          multi_json (~> 1.3)
          multi_xml (~> 0.5)
          rack (~> 1.2)
        omniauth (1.3.1)
          hashie (>= 1.2, < 4)
          rack (>= 1.0, < 3)
        omniauth-mailchimp (1.0.3)
          omniauth (~> 1.0)
          omniauth-oauth2
        omniauth-oauth2 (1.4.0)
          oauth2 (~> 1.0)
          omniauth (~> 1.2)
        open4 (1.3.4)
        orm_adapter (0.5.0)
        paperclip (4.3.5)
          activemodel (>= 3.2.0)
          activesupport (>= 3.2.0)
          cocaine (~> 0.5.5)
          mime-types
          mimemagic (= 0.3.0)
        pg (0.17.1)
        pghero (0.1.6)
          activerecord
        pivot_table (0.3.0)
        podlove-web-player-rails (2.0.17)
          railties (>= 3.2)
        pry (0.9.12.2)
          coderay (~> 1.0.5)
          method_source (~> 0.8)
          slop (~> 3.4)
        pry-byebug (1.3.2)
          byebug (~> 2.7)
          pry (~> 0.9.12)
        pry-rails (0.3.4)
          pry (>= 0.9.10)
        quiet_assets (1.0.2)
          railties (>= 3.1, < 5.0)
        quiet_safari (1.0.0)
          railties (>= 3.1.0)
        rack (1.6.4)
        rack-protection (1.5.3)
          rack
        rack-test (0.6.3)
          rack (>= 1.0)
        rails (4.2.6)
          actionmailer (= 4.2.6)
          actionpack (= 4.2.6)
          actionview (= 4.2.6)
          activejob (= 4.2.6)
          activemodel (= 4.2.6)
          activerecord (= 4.2.6)
          activesupport (= 4.2.6)
          bundler (>= 1.3.0, < 2.0)
          railties (= 4.2.6)
          sprockets-rails
        rails-deprecated_sanitizer (1.0.3)
          activesupport (>= 4.2.0.alpha)
        rails-dom-testing (1.0.7)
          activesupport (>= 4.2.0.beta, < 5.0)
          nokogiri (~> 1.6.0)
          rails-deprecated_sanitizer (>= 1.0.1)
        rails-html-sanitizer (1.0.3)
          loofah (~> 2.0)
        rails_12factor (0.0.2)
          rails_serve_static_assets
          rails_stdout_logging
        rails_serve_static_assets (0.0.2)
        rails_stdout_logging (0.0.3)
        railties (4.2.6)
          actionpack (= 4.2.6)
          activesupport (= 4.2.6)
          rake (>= 0.8.7)
          thor (>= 0.18.1, < 2.0)
        raindrops (0.13.0)
        rake (10.5.0)
        rb-fsevent (0.9.4)
        rb-inotify (0.9.5)
          ffi (>= 0.5.0)
        rdoc (4.1.1)
          json (~> 1.4)
        redis (3.2.2)
        redis-actionpack (4.0.1)
          actionpack (~> 4)
          redis-rack (~> 1.5.0)
          redis-store (~> 1.1.0)
        redis-activesupport (4.1.5)
          activesupport (>= 3, < 5)
          redis-store (~> 1.1.0)
        redis-namespace (1.5.2)
          redis (~> 3.0, >= 3.0.4)
        redis-rack (1.5.0)
          rack (~> 1.5)
          redis-store (~> 1.1.0)
        redis-rails (4.0.0)
          redis-actionpack (~> 4)
          redis-activesupport (~> 4)
          redis-store (~> 1.1.0)
        redis-store (1.1.7)
          redis (>= 2.2)
        ref (2.0.0)
        request_store (1.0.6)
        responders (2.1.1)
          railties (>= 4.2.0, < 5.1)
        rest-client (1.7.2)
          mime-types (>= 1.16, < 3.0)
          netrc (~> 0.7)
        roo (2.3.2)
          nokogiri (~> 1)
          rubyzip (~> 1.1, < 2.0.0)
        rspec (3.4.0)
          rspec-core (~> 3.4.0)
          rspec-expectations (~> 3.4.0)
          rspec-mocks (~> 3.4.0)
        rspec-core (3.4.1)
          rspec-support (~> 3.4.0)
        rspec-expectations (3.4.0)
          diff-lcs (>= 1.2.0, < 2.0)
          rspec-support (~> 3.4.0)
        rspec-mocks (3.4.0)
          diff-lcs (>= 1.2.0, < 2.0)
          rspec-support (~> 3.4.0)
        rspec-rails (3.4.0)
          actionpack (>= 3.0, < 4.3)
          activesupport (>= 3.0, < 4.3)
          railties (>= 3.0, < 4.3)
          rspec-core (~> 3.4.0)
          rspec-expectations (~> 3.4.0)
          rspec-mocks (~> 3.4.0)
          rspec-support (~> 3.4.0)
        rspec-support (3.4.1)
        ruby-ole (1.2.12)
        ruby-progressbar (1.7.5)
        rubyzip (1.1.7)
        s3_direct_upload (0.1.7)
          coffee-rails (>= 3.1)
          jquery-fileupload-rails (~> 0.4.1)
          rails (>= 3.1)
          sass-rails (>= 3.1)
        sass (3.2.19)
        sass-rails (4.0.3)
          railties (>= 4.0.0, < 5.0)
          sass (~> 3.2.0)
          sprockets (~> 2.8, <= 2.11.0)
          sprockets-rails (~> 2.0)
        sdoc (0.4.0)
          json (~> 1.8)
          rdoc (~> 4.0, < 5.0)
        select2-rails (3.5.9)
          thor (~> 0.14)
        shoulda-matchers (3.0.1)
          activesupport (>= 4.0.0)
        sidekiq (4.0.1)
          concurrent-ruby (~> 1.0)
          connection_pool (~> 2.2, >= 2.2.0)
          json (~> 1.0)
          redis (~> 3.2, >= 3.2.1)
        sidekiq-middleware (0.3.0)
          sidekiq (>= 2.12.4)
        simple_calendar (1.1.5)
          rails (>= 3.0)
        simple_form (3.2.1)
          actionpack (> 4, < 5.1)
          activemodel (> 4, < 5.1)
        simplecov (0.7.1)
          multi_json (~> 1.0)
          simplecov-html (~> 0.7.1)
        simplecov-html (0.7.1)
        sinatra (1.4.6)
          rack (~> 1.4)
          rack-protection (~> 1.4)
          tilt (>= 1.3, < 3)
        slop (3.4.6)
        spreadsheet (0.9.0)
          ruby-ole (>= 1.0)
        sprockets (2.11.0)
          hike (~> 1.2)
          multi_json (~> 1.0)
          rack (~> 1.0)
          tilt (~> 1.1, != 1.3.0)
        sprockets-rails (2.3.3)
          actionpack (>= 3.0)
          activesupport (>= 3.0)
          sprockets (>= 2.8, < 4.0)
        stripe (1.16.0)
          json (~> 1.8.1)
          mime-types (>= 1.25, < 3.0)
          rest-client (~> 1.4)
        stripe-rails (0.3.1)
          rails (>= 3)
          stripe
        summernote-rails (0.6.16.0)
          railties (>= 3.1)
        therubyracer (0.12.2)
          libv8 (~> 3.16.14.0)
          ref
        thin (1.6.2)
          daemons (>= 1.0.9)
          eventmachine (>= 1.0.0)
          rack (>= 1.0.0)
        thor (0.19.1)
        thread_safe (0.3.5)
        tilt (1.4.1)
        timers (4.1.1)
          hitimes
        turbolinks (2.5.3)
          coffee-rails
        tzinfo (1.2.2)
          thread_safe (~> 0.1)
        uglifier (2.5.0)
          execjs (>= 0.3.0)
          json (>= 1.8.0)
        unicode_utils (1.4.0)
        unicorn (4.8.3)
          kgio (~> 2.6)
          rack
          raindrops (~> 0.7)
        uniform_notifier (1.6.2)
        warden (1.2.4)
          rack (>= 1.0)
        wicked (1.0.0)
          rails (>= 3.0.7)
        will_paginate (3.0.7)
        will_paginate-bootstrap (1.0.1)
          will_paginate (>= 3.0.3)

    PLATFORMS
      ruby

    DEPENDENCIES
      activerecord-session_store
      ajax-datatables-rails
      annotate
      awesome_print
      aws-sdk
      axlsx (~> 2.1.0.pre)
      axlsx_rails (~> 0.4.0)
      bootstrap-sass (~> 2.3.2.0)
      bootstrap-timepicker-rails-addon!
      bullet
      cancancan (~> 1.13.1)
      carmen-rails (~> 1.0.0)
      chartkick
      chronic
      cocoon
      coffee-rails (~> 4.0.0)
      dalli
      database_cleaner
      delayed_job_active_record
      devise (~> 3.4.1)
      dotenv
      draper
      exception_notification
      factory_girl_rails
      faker
      font-awesome-sass (~> 4.4.0)
      foreman
      fuubar
      geocoder
      gibbon (~> 2.2.1)
      gmaps4rails
      gretel!
      guard-rspec
      haml
      highcharts-rails (~> 4.1.9)
      jbuilder (~> 1.2)
      jquery-datatables-rails
      jquery-rails (~> 3.1.4)
      jquery-toastmessage-rails
      jquery-turbolinks
      letter_opener
      maskedinput-rails
      mina (= 0.3.0)
      mina-multistage
      mina-sidekiq
      mina-unicorn (~> 0.1.0)
      momentjs-rails
      nprogress-rails
      nuorder!
      omniauth
      omniauth-mailchimp
      paperclip (~> 4.3.5)
      pg
      pghero
      pivot_table
      podlove-web-player-rails
      pry-byebug
      pry-rails
      quiet_assets
      quiet_safari
      rails (~> 4.2.1)
      rails_12factor
      redis
      redis-namespace
      redis-rails
      responders
      roo (~> 2.3.2)
      rspec-rails (~> 3.0)
      s3_direct_upload
      sass-rails (~> 4.0.0)
      sdoc
      select2-rails
      shoulda-matchers (~> 3.0)
      sidekiq (< 5)
      sidekiq-middleware
      simple_calendar (~> 1.1.0)
      simple_form
      simplecov
      sinatra
      spreadsheet (= 0.9.0)
      stripe
      stripe-rails
      summernote-rails
      therubyracer
      thin
      turbolinks
      uglifier (>= 1.3.0)
      unicorn
      wicked
      will_paginate-bootstrap
      x-editable-rails!
      youtube_addy!

    BUNDLED WITH
       1.10.6

@XhmikosR
Copy link

XhmikosR commented May 3, 2016

Can this be caused due to the PLATFORMS value?

I have a Gemfile.lock created with bundler 1.12.1 on Windows. Then on Travis (Ubuntu) bundle install fails with

Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES
section: 'ffi'

On Windows things work fine.

So, I look into my Gemfile.lock and see ffi (1.9.10-x64-mingw32).

Thing is this worked fine before.

https://github.com/mpc-hc/mpc-hc.org/blob/master/Gemfile.lock
https://travis-ci.org/mpc-hc/mpc-hc.org/builds/127421393

@paulmenzel
Copy link
Author

I hit the same problem in another Rails project. When running bundle update capistrano-bundler, Bundler 1.12.1 complained about a missing i18n in the DEPENDENCIES section. It is a dependency of a Gem from a Git repository. Gemfile.lock was created by Bundler 1.11.2.

Adding the line manually to Gemfile.lock, and running bundle install --no-deployment it said, that the Gem i18n was removed from the Gemfile, and after the run it the line was gone again from the DEPENDENCIES section. But after that, everything worked again, and only the Bundler version in the BUNDLED_WITH section changed.

So it looks like, there is a bug somewhere, which is hard to reproduce though.

@dpsk
Copy link

dpsk commented May 4, 2016

In my case it's happening on the production environment, on development machine i don't have such an issue.
I'm using gem from the github and added few commits to it, now production didn't pick it up, so i tried to update gem manually on server, got this error.

It's not related to the platforms as @XhmikosR suggested.

@denisdefreyne
Copy link

I am having the same issue (e.g. nanoc/nanoc.ws buid #873 on Travis CI). This issue only happens on Travis, but not on my local machine.

@XhmikosR
Copy link

XhmikosR commented Jul 2, 2016

Personally I managed to work around the issue by removing the jobs parameter.

@kianw
Copy link

kianw commented Jul 5, 2016

Also seeing this with ffi dependency, on my local, using 1.12.5 or 1.11.2. Works when I use 1.10.6:
bundle _1.10.6_ install

@praveenangyan
Copy link

I can confirm that I am also seeing this with the ffi dependency, As @kianw mentioned, bundle 1.10.6 install works.

@segiddins
Copy link
Member

For those of you seeing this problem -- are you using the git local feature? If so, this should be fixed by #4840

@XhmikosR
Copy link

For AppVeyor it wasn't so simple https://ci.appveyor.com/project/AppVeyor-Website/website/build/1.0.183

I had to run

install:
  # Bundler downgrade should be removed when the issue is fixed upstream
  - gem uninstall bundler -x
  - gem install bundler -v "=1.10.6"

And now it works again https://ci.appveyor.com/project/AppVeyor-Website/website/build/1.0.199

So this is definitely a bug in versions > 1.10.6.

deivid-rodriguez pushed a commit to deivid-rodriguez/localeapp that referenced this issue Aug 30, 2016
I've randomly run into both rubygems/bundler#4467 &&
rubygems/bundler#4576, mostly on jruby but also sometimes on MRI.

This combination of bundler version and `bundle install` flags seems to
workaround both.
deivid-rodriguez pushed a commit to deivid-rodriguez/localeapp that referenced this issue Aug 30, 2016
I've randomly run into both rubygems/bundler#4467 &&
rubygems/bundler#4576, mostly on jruby but also sometimes on MRI.

This combination of bundler version and `bundle install` flags seems to
workaround both.
deivid-rodriguez pushed a commit to deivid-rodriguez/localeapp that referenced this issue Aug 30, 2016
I've randomly run into both rubygems/bundler#4467 &&
rubygems/bundler#4576, mostly on jruby but also sometimes on MRI.

This combination of bundler version and `bundle install` flags seems to
workaround both.
deivid-rodriguez pushed a commit to deivid-rodriguez/localeapp that referenced this issue Sep 2, 2016
I've randomly run into both rubygems/bundler#4467 &&
rubygems/bundler#4576, mostly on jruby but also sometimes on MRI.

This combination of bundler version and `bundle install` flags seems to
workaround both.
deivid-rodriguez pushed a commit to deivid-rodriguez/localeapp that referenced this issue Sep 2, 2016
I've randomly run into both rubygems/bundler#4467 &&
rubygems/bundler#4576, mostly on jruby but also sometimes on MRI.

This combination of bundler version and `bundle install` flags seems to
workaround both.
deivid-rodriguez pushed a commit to deivid-rodriguez/localeapp that referenced this issue Sep 2, 2016
I've randomly run into both rubygems/bundler#4467 &&
rubygems/bundler#4576, mostly on jruby but also sometimes on MRI.

This combination of bundler version and `bundle install` flags seems to
workaround both.
@RobertWHurst
Copy link

Any update on resolving this? We just ran into the issue in a deployment.

@chrismo
Copy link
Contributor

chrismo commented Sep 7, 2016

This is an odd one. There are enough people in this thread, maybe the following doesn't cover all cases, but for the folks who provided bundle env output or other descriptions mentioning bundle update, here's what I've found:

TL;DR: Don't mix --deployment and bundle update. The former freezes while the latter wants to modify.

Bundler doesn't behave very well in these cases, so it would be preferable if it just complained that you're trying to change a frozen bundle, but the workaround / proper way to go here is to do a bundle install --no-deployment to remove the frozen flag (or bundle config --delete frozen), then do the bundle update.

This bundler-cases PR shows a minimum case to reproduce the error: https://github.com/chrismo/bundler-cases/pull/10/files (this commit shows the original full Gemfile, but it takes a long time to run).

Gritty de Nitty

Bundler loads up a Definition instance that evaluates all of the dependencies, specifications, etc. found in the Gemfile and lockfile before doing anything. As part of this process, it does what becomes an odd thing if the :frozen setting is true:

    def resolve
      @resolve ||= begin
        last_resolve = converge_locked_specs
        if Bundler.settings[:frozen] || (!@unlocking && nothing_changed?)
          Bundler.ui.debug("Found no changes, using resolution from the lockfile")
          last_resolve
        else
          # ...snip...
        end
      end
    end

(Above is pasted from 1.13.0.rc.2, but important changes to above made for 1.9 in this commit).

When remotely resolving, this code sees the frozen setting and decides it only needs to return the last_resolve. Funny thing about the last_resolve built by converge_locked_specs in the case when bundle update is run (not bundle install) is that this SpecSet has only locked gems in it, and in this case, bundle update bar (or bundle update simple_form) results in the requested gem plus all its dependencies being unlocked.

Presumably this code was never intended to be used when frozen AND bundle update are both happening.

But wait, you say to yourself, this behavior has apparently been this way since 1.9, but the errors only started with 1.11?

The error being reported in this issue didn't exist until 1.11, in this commit.

      def dependencies(all_spec_names)
        @dependencies ||= begin
          deps = all_dependencies.reject {|dep| ignorable_dependency? dep }
          missing = deps.reject {|dep| all_spec_names.include? dep.name }
          unless missing.empty?
            raise Bundler::LockfileError, "Your Gemfile.lock is corrupt. The following #{missing.size > 1 ? "gems are" : "gem is"} missing " \
                                "from the DEPENDENCIES section: '#{missing.map(&:name).join('\' \'')}'"
          end
          deps
        end
      end

(Code pasted is latest from 1.13, but largely the same).

all_spec_names comes directly from @definition.specs - and in this frozen bundle update case, it does not contain any unlocked dependencies [**still need to look at this for an un-frozen bundle update just to confirm how that DOES work], so it doesn't know any better and blows up.

So - how does it work in 1.9 or 1.10?

According to the bundler-case PR, it doesn't. It doesn't blow up or complain, but it doesn't actually perform an update:

=> bundle _1.10.5_ update bar
Fetching source index from file:/Users/chrismo/dev/bundler-cases/out/repo/
Fetching source index from file:/Users/chrismo/dev/bundler-cases/out/repo/
Using foo 1.0.0
Using bundler 1.10.5
Bundle updated!

The only way to get it to work is to first unfreeze the bundle:

=> bundle _1.10.5_ install --no-deployment --path vendor/bundle
...

=> bundle _1.10.5_ update bar
Fetching source index from file:/Users/chrismo/dev/bundler-cases/out/repo/
Fetching source index from file:/Users/chrismo/dev/bundler-cases/out/repo/
Resolving dependencies...
Installing bar 1.1.0 (was 1.0.0)
Using qux 1.0.0
Using foo 1.0.0
Using bundler 1.10.5
Bundle updated!

@lamont-granquist
Copy link
Contributor

lamont-granquist commented Sep 14, 2016

i think here's another replication case:

% git clone https://github.com/chef/ffi-yajl
% cd ffi-yajl
%  bundle install --without development development_extras rbx
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using libyajl2 1.2.0
Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES
section: 'ffi'

doesn't involve --deployment or --no-deployment flags and is pretty simple.

worked on older bundler or rubygems, but upgrading both to current versions caused the error to appear.

i'm kinda slammed with other regressions right now and this is a bit of a flyby issue for me, but i thought i'd drop a note in here since at least it looks like a fairly simple replication case we found and seems a bit unrelated to the other use cases (the repo doesn't have a Gemfile.lock or .bundle/ or vendor/ directories).

even though the gem is called 'ffi-yajl' the 'ffi' gem dep is optional and should only be a dev dep of the gem.

VVVV @scotthain below actually found this one

@scotthain
Copy link

More debugging:

[shain@seahain01:/tmp]$ bundle --version
Bundler version 1.12.5
[shain@seahain01:/tmp]$ git clone https://github.com/chef/ffi-yajl
Cloning into 'ffi-yajl'...
remote: Counting objects: 2808, done.
remote: Total 2808 (delta 0), reused 0 (delta 0), pack-reused 2807
Receiving objects: 100% (2808/2808), 511.73 KiB | 442.00 KiB/s, done.
Resolving deltas: 100% (1386/1386), done.
Checking connectivity... done.
[shain@seahain01:/tmp]$ cd ffi-yajl/
[shain@seahain01:/tmp/ffi-yajl (master)]$ bundle install --without development development_extras rbx
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies....
Using libyajl2 1.2.0
Using bundler 1.12.5
Using ffi-yajl 2.3.0 from source at `.`
Bundle complete! 16 Gemfile dependencies, 3 gems now installed.
Gems in the groups development, development_extras and rbx were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
[shain@seahain01:/tmp/ffi-yajl (master)]$ gem update bundler
Updating installed gems
Updating bundler
Fetching: bundler-1.13.1.gem (100%)
Successfully installed bundler-1.13.1
Gems updated: bundler
[shain@seahain01:/tmp/ffi-yajl (master)]$ rm Gemfile.lock
[shain@seahain01:/tmp/ffi-yajl (master)]$ bundle install --without development development_extras rbx
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using libyajl2 1.2.0
Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section: 'ffi'

@trevorturk
Copy link

I'm seeing this issue with frozen set but I'm running bundle install --deployment --without 'development test' -j4 not update as @chrismo mentioned. I'm trying deleting the frozen config, but wondering if there's any good reason to have that set or is bundle install --deployment good enough for, say, a Dockerfile?

(I'm happy to provide more debugging info if that would be helpful. Thanks!)

@indirect
Copy link
Member

@trevorturk Thanks for reporting this! --deployment is effectively an alias for --path vendor/bundle --frozen. Not using --deployment is a legitimate workaround for now.

@scotthain
Copy link

@indirect I believe the reproduce case I presented doesn't use --deployment at all - maybe a different but very similar issue?

@indirect
Copy link
Member

@scotthain @lamont-granquist I've created a ticket for your specific issue at #5006.

@trevorturk if you could open a new ticket following ISSUES and with repro steps, that would be helpful.

@scotthain
Copy link

@indirect thank you! Let us know if we can help test it.

@trevorturk
Copy link

trevorturk commented Sep 21, 2016

@indirect thanks for the quick reply! I wasn't able to work around my issue as you suggested by not using the --deployment flag, but I was able to figure out another workaround, and I think I might be onto something! I'm happy to try and make a new issue with repro steps, but I wonder if this might be enough of a hint...

My config/command/error was:

bundle config --global frozen 1
bundle install --deployment --without 'development test' -j4
[...]
[2016-09-20 23:53:38] INFO: Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES
section: 'bacon'
[2016-09-20 23:53:38] ERROR: Error: undefined method `[]' for nil:NilClass (NoMethodError)
[2016-09-20 23:53:38] DEBUG: /app/app/models/app_builder.rb:21:in `block in build'

I dug around in my gems looking for anything mentioning bacon since it wasn't in my Gemfile.lock, and I was able to get past the error by forking and commenting out a development dependency in one of the gems in my Gemfile: rtomayko/sinatra-sequel@master...trevorturk:no-bacon

...so I'm wondering if there's a bug that's caused by a combination of --without development and a gemspec's add_development_dependency lurking in here? Or something like that?

Apologies for piling onto this thread -- I'm 100% happy to move this to a new issue and try to come up with a repro case, but I thought it worth tossing this out there since I was able to work around my issue (maybe others will as well?) and I think this seems like a potential lead...?

Update: I confirmed that I can also work around my issue (without forking sinatra-sequel) by removing the --without 'development test' flag.

@indirect
Copy link
Member

@trevorturk the specific issue of --without development and a gem with a development dependency is already its own separate ticket over in #5006. Since it looks like that's the problem you're having, keep an eye on that one.

@trevorturk
Copy link

Wonderful, thank you @indirect!

@indirect
Copy link
Member

indirect commented Oct 3, 2016

Closing this because all the examples I was able to test seem to be fixed by 1.13.2. If you are still seeing this error, start by trying gem install bundler. If that does not fix it, follow ISSUES to open a new ticket with instructions on how to reproduce your problem.

Thanks!

@ddnexus
Copy link

ddnexus commented Oct 19, 2016

The error is still there. We are using jruby and ruby and we need to cache all the gems, so it might be related to the use of 'platforms :jruby' and/or BUNDLE_CACHE_ALL_PLATFORMS: true.
I will try to isolate the problem as soon I will have some time. For now, I will use 1.10.6.

@segiddins
Copy link
Member

@ddnexus please open a new issue with steps to reproduce who you're able to isolate the issue

vorburger added a commit to vorburger/lastnpe.github.io that referenced this issue Dec 2, 2016
couple of things changed due to rubygems/bundler#4467

incl. Ruby (RVM) bump from 2.2.5 to 2.3.1 (just to be in line with local)
vorburger added a commit to vorburger/lastnpe.github.io that referenced this issue Dec 2, 2016
couple of things changed due to rubygems/bundler#4467

incl. Ruby (RVM) bump from 2.2.5 to 2.3.1 (just to be in line with local)
@vorburger
Copy link

Hello, ruby world. I've hit this while trying to build a https://jekyllrb.com on http://travis-ci.org .. and was able to fix (more work around, probably?) by lastnpe/lastnpe.github.io#2 .. in case this is useful to anyone. Full disclosure: I'm a Java dev and have absolutely no idea what I'm doing here.. ;-)

vorburger added a commit to lastnpe/lastnpe.github.io that referenced this issue Dec 2, 2016
couple of things changed due to rubygems/bundler#4467

incl. Ruby (RVM) bump from 2.2.5 to 2.3.1 (just to be in line with local)
@abcfy2
Copy link

abcfy2 commented Dec 11, 2016

bundle 1.13.6 still has this issue. The official redmine docker image can reproduce.

git clone --depth1 https://github.com/docker-library/redmine.git
cd redmine/3.3
docker build .

Will get this error:

Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES
section: 'rbpdf-font'

In fact, rbpdf-font can be installed properly via

gem install rbpdf-font

After that, bundle install passed.

@triskweline
Copy link

I wrote a guide outlining several options for dealing with this issue:
https://makandracards.com/makandra/43292-bundler-gemfile-lock-is-corrupt-gems-are-missing-from-the-dependencies-section

@indirect
Copy link
Member

@henning-koch thanks for that guide! If you have a reproduction case against Bundler 1.13.2+, please please please open a new ticket.

@abcfy2 I wasn't able to reproduce the issue using those steps. The Redmine release does not contain a Gemfile.lock, so there is no way for that to happen. Perhaps something changed.

If anyone has an example of this continuing to happen on Bundler 1.13.2 or higher, please please please open a new ticket with exact reproduction steps.

@rubygems rubygems locked and limited conversation to collaborators Dec 20, 2016
@indirect
Copy link
Member

Version 1.14 (pre out today or tomorrow) will contain a fix for another cause of this error message, as well as explaining what the problem is and how to fix it: #5267

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

No branches or pull requests