{"action":"opened","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/4171","labels_url":"https://api.github.com/repos/bundler/bundler/issues/4171/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/4171/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/4171/events","html_url":"https://github.com/bundler/bundler/issues/4171","id":122804428,"number":4171,"title":"Gemfile.lock is corrupt - Capistrano deploy","user":{"login":"Vivalldi","id":8962537,"avatar_url":"https://avatars.githubusercontent.com/u/8962537?v=3","gravatar_id":"","url":"https://api.github.com/users/Vivalldi","html_url":"https://github.com/Vivalldi","followers_url":"https://api.github.com/users/Vivalldi/followers","following_url":"https://api.github.com/users/Vivalldi/following{/other_user}","gists_url":"https://api.github.com/users/Vivalldi/gists{/gist_id}","starred_url":"https://api.github.com/users/Vivalldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vivalldi/subscriptions","organizations_url":"https://api.github.com/users/Vivalldi/orgs","repos_url":"https://api.github.com/users/Vivalldi/repos","events_url":"https://api.github.com/users/Vivalldi/events{/privacy}","received_events_url":"https://api.github.com/users/Vivalldi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T19:22:52Z","updated_at":"2015-12-17T19:22:52Z","closed_at":null,"body":"Having added the Capistrano gem and setting up as I have many times before I go to deploy capistrano and I get the `Your Gemfile.lock is corrupt` and missing dependencies. I'm fairly new at understanding the backside bundler so any help is much appreciated.\r\n\r\nThe following is the error created by Capistrano. \r\n```\r\nDEBUG [0e3105c9] Command: cd /home/deploy/simplenote/releases/20151217191932 && ( export RBENV_ROOT=\"/home/deploy/.rbenv/\" RBENV_VERSION=\"2.2.0\" ; /home/deploy/.rbenv//bin/rbenv exec bundle install --path /home/deploy/simplenote/shared/bundle --without development test --deployment --quiet )\r\nDEBUG [0e3105c9]        Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES\r\nsection: 'nokogiri'\r\n(Backtrace restricted to imported tasks)\r\ncap aborted!\r\nSSHKit::Runner::ExecuteError: Exception while executing as deploy@198.211.113.91: bundle exit status: 20\r\nbundle stdout: Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES\r\nsection: 'nokogiri'\r\nbundle stderr: Nothing written\r\n\r\nSSHKit::Command::Failed: bundle exit status: 20\r\nbundle stdout: Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES\r\nsection: 'nokogiri'\r\nbundle stderr: Nothing written\r\n\r\nTasks: TOP => deploy:updated => bundler:install\r\n(See full trace by running task with --trace)\r\nThe deploy has failed with an error: Exception while executing as deploy@198.211.113.91: bundle exit status: 20\r\nbundle stdout: Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES\r\nsection: 'nokogiri'\r\nbundle stderr: Nothing written\r\n```\r\n\r\nbundle env output\r\n```\r\nEnvironment\r\n\r\n    Bundler   1.11.2\r\n    Rubygems  2.4.5\r\n    Ruby      2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]\r\n    Git       1.9.1\r\n\r\nBundler settings\r\n\r\n    bin\r\n      Set for your local app (/home/deploy/simplenote/.bundle/config): \"bin\"\r\n\r\nGemfile\r\n\r\n    source 'https://rubygems.org'\r\n\r\n\r\n    # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'\r\n    gem 'rails', '4.2.5'\r\n    # Use postgresql as the database for Active Record\r\n    gem 'pg', '~> 0.15'\r\n    # Use SCSS for stylesheets\r\n    gem 'sass-rails', '~> 5.0'\r\n    # Use Uglifier as compressor for JavaScript assets\r\n    gem 'uglifier', '>= 1.3.0'\r\n    # Use CoffeeScript for .coffee assets and views\r\n    gem 'coffee-rails', '~> 4.1.0'\r\n    # See https://github.com/rails/execjs#readme for more supported runtimes\r\n    # gem 'therubyracer', platforms: :ruby\r\n\r\n    # Use jquery as the JavaScript library\r\n    gem 'jquery-rails'\r\n    # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks\r\n    gem 'turbolinks'\r\n    # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder\r\n    gem 'jbuilder', '~> 2.0'\r\n    # bundle exec rake doc:rails generates the API under doc/api.\r\n    gem 'sdoc', '~> 0.4.0', group: :doc\r\n\r\n    # Use ActiveModel has_secure_password\r\n    # gem 'bcrypt', '~> 3.1.7'\r\n\r\n    # Use Unicorn as the app server\r\n    # gem 'unicorn'\r\n\r\n    # Use Capistrano for deployment\r\n    # gem 'capistrano-rails', group: :development\r\n\r\n    group :development, :test do\r\n      # Call 'byebug' anywhere in the code to stop execution and get a debugger console\r\n      gem 'byebug'\r\n    end\r\n\r\n    group :development do\r\n      # Access an IRB console on exception pages or by using <%= console %> in views\r\n      gem 'web-console', '~> 2.0'\r\n\r\n      # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring\r\n      gem 'spring'\r\n    end\r\n\r\n    gem 'capistrano'\r\n    gem 'capistrano-bundler'\r\n    gem 'capistrano-rails'\r\n    gem 'capistrano-rbenv'\r\n\r\n    gem 'font-awesome-rails'\r\n\r\n    gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]\r\n\r\nGemfile.lock\r\n\r\n    GEM\r\n      remote: https://rubygems.org/\r\n      specs:\r\n        actionmailer (4.2.5)\r\n          actionpack (= 4.2.5)\r\n          actionview (= 4.2.5)\r\n          activejob (= 4.2.5)\r\n          mail (~> 2.5, >= 2.5.4)\r\n          rails-dom-testing (~> 1.0, >= 1.0.5)\r\n        actionpack (4.2.5)\r\n          actionview (= 4.2.5)\r\n          activesupport (= 4.2.5)\r\n          rack (~> 1.6)\r\n          rack-test (~> 0.6.2)\r\n          rails-dom-testing (~> 1.0, >= 1.0.5)\r\n          rails-html-sanitizer (~> 1.0, >= 1.0.2)\r\n        actionview (4.2.5)\r\n          activesupport (= 4.2.5)\r\n          builder (~> 3.1)\r\n          erubis (~> 2.7.0)\r\n          rails-dom-testing (~> 1.0, >= 1.0.5)\r\n          rails-html-sanitizer (~> 1.0, >= 1.0.2)\r\n        activejob (4.2.5)\r\n          activesupport (= 4.2.5)\r\n          globalid (>= 0.3.0)\r\n        activemodel (4.2.5)\r\n          activesupport (= 4.2.5)\r\n          builder (~> 3.1)\r\n        activerecord (4.2.5)\r\n          activemodel (= 4.2.5)\r\n          activesupport (= 4.2.5)\r\n          arel (~> 6.0)\r\n        activesupport (4.2.5)\r\n          i18n (~> 0.7)\r\n          json (~> 1.7, >= 1.7.7)\r\n          minitest (~> 5.1)\r\n          thread_safe (~> 0.3, >= 0.3.4)\r\n          tzinfo (~> 1.1)\r\n        arel (6.0.3)\r\n        binding_of_caller (0.7.2)\r\n          debug_inspector (>= 0.0.1)\r\n        builder (3.2.2)\r\n        byebug (8.2.1)\r\n        capistrano (3.4.0)\r\n          i18n\r\n          rake (>= 10.0.0)\r\n          sshkit (~> 1.3)\r\n        capistrano-bundler (1.1.4)\r\n          capistrano (~> 3.1)\r\n          sshkit (~> 1.2)\r\n        capistrano-rails (1.1.5)\r\n          capistrano (~> 3.1)\r\n          capistrano-bundler (~> 1.1)\r\n        capistrano-rbenv (2.0.3)\r\n          capistrano (~> 3.1)\r\n          sshkit (~> 1.3)\r\n        coffee-rails (4.1.0)\r\n          coffee-script (>= 2.2.0)\r\n          railties (>= 4.0.0, < 5.0)\r\n        coffee-script (2.4.1)\r\n          coffee-script-source\r\n          execjs\r\n        coffee-script-source (1.10.0)\r\n        concurrent-ruby (1.0.0)\r\n        debug_inspector (0.0.2)\r\n        erubis (2.7.0)\r\n        execjs (2.6.0)\r\n        font-awesome-rails (4.5.0.0)\r\n          railties (>= 3.2, < 5.0)\r\n        globalid (0.3.6)\r\n          activesupport (>= 4.1.0)\r\n        i18n (0.7.0)\r\n        jbuilder (2.3.2)\r\n          activesupport (>= 3.0.0, < 5)\r\n          multi_json (~> 1.2)\r\n        jquery-rails (4.0.5)\r\n          rails-dom-testing (~> 1.0)\r\n          railties (>= 4.2.0)\r\n          thor (>= 0.14, < 2.0)\r\n        json (1.8.3)\r\n        loofah (2.0.3)\r\n          nokogiri (>= 1.5.9)\r\n        mail (2.6.3)\r\n          mime-types (>= 1.16, < 3)\r\n        mime-types (2.99)\r\n        mini_portile2 (2.0.0)\r\n        minitest (5.8.3)\r\n        multi_json (1.11.2)\r\n        net-scp (1.2.1)\r\n          net-ssh (>= 2.6.5)\r\n        net-ssh (3.0.1)\r\n        nokogiri (1.6.7.1)\r\n          mini_portile2 (~> 2.0.0.rc2)\r\n        pg (0.18.4)\r\n        rack (1.6.4)\r\n        rack-test (0.6.3)\r\n          rack (>= 1.0)\r\n        rails (4.2.5)\r\n          actionmailer (= 4.2.5)\r\n          actionpack (= 4.2.5)\r\n          actionview (= 4.2.5)\r\n          activejob (= 4.2.5)\r\n          activemodel (= 4.2.5)\r\n          activerecord (= 4.2.5)\r\n          activesupport (= 4.2.5)\r\n          bundler (>= 1.3.0, < 2.0)\r\n          railties (= 4.2.5)\r\n          sprockets-rails\r\n        rails-deprecated_sanitizer (1.0.3)\r\n          activesupport (>= 4.2.0.alpha)\r\n        rails-dom-testing (1.0.7)\r\n          activesupport (>= 4.2.0.beta, < 5.0)\r\n          nokogiri (~> 1.6.0)\r\n          rails-deprecated_sanitizer (>= 1.0.1)\r\n        rails-html-sanitizer (1.0.2)\r\n          loofah (~> 2.0)\r\n        railties (4.2.5)\r\n          actionpack (= 4.2.5)\r\n          activesupport (= 4.2.5)\r\n          rake (>= 0.8.7)\r\n          thor (>= 0.18.1, < 2.0)\r\n        rake (10.4.2)\r\n        rdoc (4.2.0)\r\n        sass (3.4.20)\r\n        sass-rails (5.0.4)\r\n          railties (>= 4.0.0, < 5.0)\r\n          sass (~> 3.1)\r\n          sprockets (>= 2.8, < 4.0)\r\n          sprockets-rails (>= 2.0, < 4.0)\r\n          tilt (>= 1.1, < 3)\r\n        sdoc (0.4.1)\r\n          json (~> 1.7, >= 1.7.7)\r\n          rdoc (~> 4.0)\r\n        spring (1.6.0)\r\n        sprockets (3.5.2)\r\n          concurrent-ruby (~> 1.0)\r\n          rack (> 1, < 3)\r\n        sprockets-rails (2.3.3)\r\n          actionpack (>= 3.0)\r\n          activesupport (>= 3.0)\r\n          sprockets (>= 2.8, < 4.0)\r\n        sshkit (1.8.1)\r\n          net-scp (>= 1.1.2)\r\n          net-ssh (>= 2.8.0)\r\n        thor (0.19.1)\r\n        thread_safe (0.3.5)\r\n        tilt (2.0.1)\r\n        turbolinks (2.5.3)\r\n          coffee-rails\r\n        tzinfo (1.2.2)\r\n          thread_safe (~> 0.1)\r\n        uglifier (2.7.2)\r\n          execjs (>= 0.3.0)\r\n          json (>= 1.8.0)\r\n        web-console (2.2.1)\r\n          activemodel (>= 4.0)\r\n          binding_of_caller (>= 0.7.2)\r\n          railties (>= 4.0)\r\n          sprockets-rails (>= 2.0, < 4.0)\r\n\r\n    PLATFORMS\r\n      ruby\r\n\r\n    DEPENDENCIES\r\n      byebug\r\n      capistrano\r\n      capistrano-bundler\r\n      capistrano-rails\r\n      capistrano-rbenv\r\n      coffee-rails (~> 4.1.0)\r\n      font-awesome-rails\r\n      jbuilder (~> 2.0)\r\n      jquery-rails\r\n      pg (~> 0.15)\r\n      rails (= 4.2.5)\r\n      sass-rails (~> 5.0)\r\n      sdoc (~> 0.4.0)\r\n      spring\r\n      turbolinks\r\n      tzinfo-data\r\n      uglifier (>= 1.3.0)\r\n      web-console (~> 2.0)\r\n\r\n    BUNDLED WITH\r\n       1.11.2\r\n```\r\n"}}