Closed francois closed 10 years ago
Fixed by 795290db246685185e62a3be848c67c24ffa8e50, and will be included in 1.5.2 shortly.
In the meantime, you can work around this issue by upgrading your Rubygems to the latest 1.8.x bugfix release, currently 1.8.29.
On Jan 2, 2014, at 10:29 PM, François Beausoleil notifications@github.com wrote:
("fixed" by using Bundler 1.3.5 instead of 1.5.1)
I execute Bundler through the following Capistrano entry:
before "deploy:finalize_update", :roles => :app, :except => { :no_release => true } do run "cd #{release_path} && /usr/local/bin/bundle install --quiet --binstubs --deployment --path #{shared_path}/gems --without development test" end Getting this new error while deploying (the error was not present before 2013-12-24T16:22:34 – this is our last deployment):
* [out :: saul] An error occurred while installing sinatra-respond_to (0.9.0), and Bundler * [out :: saul] cannot continue. * [out :: saul] Make sure that
gem install sinatra-respond_to -v '0.9.0'
succeeds before * [out :: saul] bundling. When following the suggestion, manually installing (as the same user) sinatra-respond_to (really installing the forked version), the install succeeds:deploy@saul:~/www/www-frontend/production/current$ sudo gem install sinatra-respond_to-0.9.0.gem -v '0.9.0' Fetching: rack-1.5.2.gem (100%) Fetching: tilt-1.4.1.gem (100%) Fetching: rack-protection-1.5.1.gem (100%) Fetching: sinatra-1.4.4.gem (100%) Successfully installed rack-1.5.2 Successfully installed tilt-1.4.1 Successfully installed rack-protection-1.5.1 Successfully installed sinatra-1.4.4 Successfully installed sinatra-respond_to-0.9.0 5 gems installed Installing ri documentation for rack-1.5.2... Installing ri documentation for tilt-1.4.1... Installing ri documentation for rack-protection-1.5.1... Installing ri documentation for sinatra-1.4.4... Installing ri documentation for sinatra-respond_to-0.9.0... Installing RDoc documentation for rack-1.5.2... Installing RDoc documentation for tilt-1.4.1... Installing RDoc documentation for rack-protection-1.5.1... Installing RDoc documentation for sinatra-1.4.4... Installing RDoc documentation for sinatra-respond_to-0.9.0... Entering the deployment directory and doing bundle install fails with the same ArgumentError:
deploy@saul:~/www/www-frontend/production/current$ bundle Your Gemfile lists the gem rspec (>= 0) 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 just one of them later. Your Gemfile lists the gem database_cleaner (~> 0.8.0) 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 just one of them later. Using rake (0.9.2.2) Using Ascii85 (1.0.1) Using Platform (0.4.0) Using open4 (1.3.0) Using POpen4 (0.1.4) Using i18n (0.6.1) Using multi_json (1.6.0) Using activesupport (3.2.11) Using builder (3.0.4) Using activemodel (3.2.11) Using amq-protocol (1.9.0) Using eventmachine (1.0.3) Using amqp (1.1.5) Using htmlentities (4.3.1) Using nokogiri (1.5.5) Using rubyzip (0.9.9) Using axlsx (1.3.4) Using backports (3.3.0) Using bcrypt-ruby (3.0.1) Using bunny (1.0.5) Using chronic (0.6.7) Using escape (0.0.4) Using fast_xs (0.8.0) Using geocoder (1.1.1) Using yui-compressor (0.9.6) Using jammit (0.6.5) Using json (1.7.7) Using kgio (2.7.2) Using systemu (2.5.0) Using macaddr (1.5.0) Using mime-types (1.17.2) Using polyglot (0.3.3) Using treetop (1.4.10) Using mail (2.3.3) Using newrelic_rpm (3.3.1) Using oauth (0.4.5) Using ruby-rc4 (0.1.5) Using pdf-reader (1.1.1) Using pg (0.16.0) Using ttfunk (1.0.3) Using prawn (0.12.0) Using r18n-core (0.4.14) Using rack (1.4.1) Using rack-attack (2.1.0) Using rack-protection (1.2.0) Using rack-test (0.6.2) Using raindrops (0.8.0) Using rest-client (1.6.7) Using sequel (3.48.0) Using sequel_pg (1.6.8) Using simple_xlsx_writer (0.5.3) Using tilt (1.3.3) Using sinatra (1.3.2) Using sinatra-contrib (1.3.2) Using sinatra-r18n (0.4.14)
ArgumentError: wrong number of arguments (1 for 0) An error occurred while installing sinatra-respond_to (0.9.0), and Bundler cannot continue. Make sure that
gem install sinatra-respond_to -v '0.9.0'
succeeds before bundling. Running bundle env yields:deploy@saul:~/www/www-frontend/production/current$ bundle env Bundler 1.5.1 Ruby 1.9.3 (2011-10-30 patchlevel 0) [x86_64-linux] Rubygems 1.8.11 GEM_HOME
Bundler settings frozen Set for your local app (/home/deploy/www/www-frontend/production/releases/20131231194907/.bundle/config): "1" path Set for your local app (/home/deploy/www/www-frontend/production/releases/20131231194907/.bundle/config): "/home/deploy/www/www-frontend/production/shared/gems" bin Set for your local app (/home/deploy/www/www-frontend/production/releases/20131231194907/.bundle/config): "bin" without Set for your local app (/home/deploy/www/www-frontend/production/releases/20131231194907/.bundle/config): "development:test" disable_shared_gems Set for your local app (/home/deploy/www/www-frontend/production/releases/20131231194907/.bundle/config): "1"
Gemfile source "https://rubygems.org/"
gem "jruby-openssl", :platform => :jruby gem "sinatra" gem "sinatra-contrib" gem "sinatra-respond_to", :git => "git://github.com/francois/sinatra-respond_to", :ref => "return-wildcard-when-asked-to-do-so" gem "sequel", "~> 3" gem "sequel_pg", :require => "sequel" gem "pg" gem "rake" gem "json" gem "bcrypt-ruby" gem "tzinfo" gem "jammit" gem "rest-client", :require => "rest_client" gem "sinatra_warden" gem "newrelic_rpm" gem "geocoder" gem "sinatra-r18n" gem "uuid" gem "escape" gem "mail" gem "chronic" gem "twitter_oauth" gem "activesupport", "~> 3.2.8" gem "activemodel", "~> 3.2.8" gem "simple_xlsx_writer" gem "axlsx" gem "prawn" gem "unicode_utils" gem "amqp" gem "rack-attack" gem "bunny"
group :development do gem "capistrano" gem "capistrano-ext" gem "debugger", :platform => :ruby_19
gem "shotgun" gem "thin"
gem "guard" gem "guard-shell" gem "guard-rspec" gem "guard-bundler" gem "guard-yard"
gem "rspec" gem "database_cleaner", "~> 0.8.0"
gem "yard" end
group :test do gem "rspec" gem "database_cleaner", "~> 0.8.0" end
group :production do gem "unicorn" end
vim: ft=ruby
Gemfile.lock GIT remote: git://github.com/francois/sinatra-respond_to revision: 0ca74ebf7ec1af2826ea980e19f922816e483ac6 ref: return-wildcard-when-asked-to-do-so specs: sinatra-respond_to (0.9.0) sinatra (~> 1.3)
GEM remote: https://rubygems.org/ specs: Ascii85 (1.0.1) POpen4 (0.1.4) Platform (>= 0.4.0) open4 Platform (0.4.0) activemodel (3.2.11) activesupport (= 3.2.11) builder (~> 3.0.0) activesupport (3.2.11) i18n (~> 0.6) multi_json (~> 1.0) amq-protocol (1.9.0) amqp (1.1.5) amq-protocol (>= 1.9.0) eventmachine axlsx (1.3.4) htmlentities (~> 4.3.1) nokogiri (>= 1.4.1) rubyzip (>= 0.9.5) backports (3.3.0) bcrypt-ruby (3.0.1) bcrypt-ruby (3.0.1-java) bouncy-castle-java (1.5.0146.1) builder (3.0.4) bunny (1.0.5) amq-protocol (>= 1.9.0) capistrano (2.14.2) highline net-scp (>= 1.0.0) net-sftp (>= 2.0.0) net-ssh (>= 2.0.14) net-ssh-gateway (>= 1.1.0) capistrano-ext (1.2.1) capistrano (>= 1.0.0) chronic (0.6.7) columnize (0.3.6) daemons (1.1.9) database_cleaner (0.8.0) debugger (1.1.4) columnize (>= 0.3.1) debugger-linecache (~> 1.1.1) debugger-ruby_core_source (~> 1.1.3) debugger-linecache (1.1.1) debugger-ruby_core_source (>= 1.1.1) debugger-ruby_core_source (1.1.9) diff-lcs (1.1.3) escape (0.0.4) eventmachine (1.0.3) eventmachine (1.0.3-java) fast_xs (0.8.0) ffi (1.0.11) ffi (1.0.11-java) geocoder (1.1.1) guard (0.10.0) ffi (>= 0.5.0) thor (~> 0.14.6) guard-bundler (0.1.3) bundler (>= 1.0.0) guard (>= 0.2.2) guard-rspec (0.7.0) guard (>= 0.10.0) guard-shell (0.2.0) guard (>= 0.2.0) guard-yard (1.0.2) guard (>= 0.2.2) yard (>= 0.7.0) highline (1.6.15) htmlentities (4.3.1) i18n (0.6.1) jammit (0.6.5) yui-compressor (>= 0.9.3) jruby-openssl (0.7.4) bouncy-castle-java json (1.7.7) json (1.7.7-java) kgio (2.7.2) macaddr (1.5.0) systemu (>= 2.4.0) mail (2.3.3) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.17.2) multi_json (1.6.0) net-scp (1.1.0) net-ssh (>= 2.6.5) net-sftp (2.1.1) net-ssh (>= 2.6.5) net-ssh (2.6.5) net-ssh-gateway (1.2.0) net-ssh (>= 2.6.5) newrelic_rpm (3.3.1) nokogiri (1.5.5) nokogiri (1.5.5-java) oauth (0.4.5) open4 (1.3.0) pdf-reader (1.1.1) Ascii85 (~> 1.0.0) ruby-rc4 pg (0.16.0) polyglot (0.3.3) prawn (0.12.0) pdf-reader (>= 0.9.0) ttfunk (~> 1.0.2) r18n-core (0.4.14) rack (1.4.1) rack-attack (2.1.0) rack rack-protection (1.2.0) rack rack-test (0.6.2) rack (>= 1.0) raindrops (0.8.0) rake (0.9.2.2) rest-client (1.6.7) mime-types (>= 1.16) rspec (2.10.0) rspec-core (~> 2.10.0) rspec-expectations (~> 2.10.0) rspec-mocks (~> 2.10.0) rspec-core (2.10.0) rspec-expectations (2.10.0) diff-lcs (~> 1.1.3) rspec-mocks (2.10.1) ruby-rc4 (0.1.5) rubyzip (0.9.9) sequel (3.48.0) sequel_pg (1.6.8) pg (>= 0.8.0) sequel (>= 3.39.0) shotgun (0.9) rack (>= 1.0) simple_xlsx_writer (0.5.3) fast_xs (>= 0.7.3) rubyzip (>= 0.9.4) sinatra (1.3.2) rack (~> 1.3, >= 1.3.6) rack-protection (~> 1.2) tilt (~> 1.3, >= 1.3.3) sinatra-contrib (1.3.2) backports (>= 2.0) eventmachine rack-protection rack-test sinatra (~> 1.3.0) tilt (~> 1.3) sinatra-r18n (0.4.14) r18n-core (= 0.4.14) sinatra (>= 1.3) sinatra_warden (0.3.2) sinatra (>= 1.0.0) warden (~> 1.0) systemu (2.5.0) thin (1.5.0) daemons (>= 1.0.9) eventmachine (>= 0.12.6) rack (>= 1.0.0) thor (0.14.6) tilt (1.3.3) treetop (1.4.10) polyglot polyglot (>= 0.3.1) ttfunk (1.0.3) twitter_oauth (0.4.3) json (>= 1.1.9) mime-types (>= 1.16) oauth (>= 0.4.1) tzinfo (0.3.35) unicode_utils (1.3.0) unicorn (4.1.1) kgio (~> 2.4) rack raindrops (~> 0.6) uuid (2.3.5) macaddr (~> 1.0) warden (1.2.1) rack (>= 1.0) yard (0.8.2.1) yui-compressor (0.9.6) POpen4 (>= 0.1.4)
PLATFORMS java ruby
DEPENDENCIES activemodel (~> 3.2.8) activesupport (~> 3.2.8) amqp axlsx bcrypt-ruby bunny capistrano capistrano-ext chronic database_cleaner (~> 0.8.0) debugger escape geocoder guard guard-bundler guard-rspec guard-shell guard-yard jammit jruby-openssl json mail newrelic_rpm pg prawn rack-attack rake rest-client rspec sequel (~> 3) sequel_pg shotgun simple_xlsx_writer sinatra sinatra-contrib sinatra-r18n sinatra-respond_to! sinatra_warden thin twitter_oauth tzinfo unicode_utils unicorn uuid yard Uninstalling Bundler 1.5.1 and using 1.3.5 succeeds.
— Reply to this email directly or view it on GitHub.
("fixed" by using Bundler 1.3.5 instead of 1.5.1)
I execute Bundler through the following Capistrano entry:
Getting this new error while deploying (the error was not present before 2013-12-24T16:22:34 – this is our last deployment):
When following the suggestion, manually installing (as the same user) sinatra-respond_to (really installing the forked version), the install succeeds:
Entering the deployment directory and doing
bundle install
fails with the same ArgumentError:Running bundle env yields:
Uninstalling Bundler 1.5.1 and using 1.3.5 succeeds.