RVM:Check fails on bundle install ruby --version

Open
#46 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby
Domain
devops

Research direction

Start with the capistrano-rvm task invoked by cap production rvm:check, identified in capistrano/tasks/rvm.rake, and compare it with the command and SSH output in the report. Reproduce the task and trace why ~/.rvm/bin/rvm version returns no output or a failure status. Done means rvm:check completes successfully against the reported deployment setup.

Written by the indexing model from the issue text.

Description

Hello,

Could you please help me with the following issue?

Currently I'm deploying my solution to a new service. However I'm stuck with my deployment - whenever I execute:

cap production rvm:check

I get the following error:

rustems-mbp:mustela rbedretdinov$ cap production rvm:check
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.1/lib/bundler.rb:301: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
DEBUG [a88712ee] Running /usr/bin/env [ -d ~/.rvm ] on 188.226.217.83
DEBUG [a88712ee] Command: [ -d ~/.rvm ]
DEBUG [a88712ee] Finished in 1.298 seconds with exit status 0 (successful).
DEBUG [1e573947] Running ~/.rvm/bin/rvm version on 188.226.217.83
DEBUG [1e573947] Command: ~/.rvm/bin/rvm version
cap aborted!
rvm stdout: Nothing written
rvm stderr: Nothing written
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/command.rb:94:in `exit_status='
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:138:in `block (4 levels) in _execute'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:551:in `call'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:551:in `do_request'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:561:in `channel_request'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:221:in `preprocess'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:205:in `process'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `block in loop'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:269:in `wait'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:160:in `block (2 levels) in _execute'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:514:in `call'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:514:in `do_open_confirmation'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:545:in `channel_open_confirmation'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:221:in `preprocess'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:205:in `process'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `block in loop'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:162:in `block in _execute'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:119:in `tap'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:119:in `_execute'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:76:in `capture'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/capistrano-rvm-0.1.0/lib/capistrano/tasks/rvm.rake:8:in `block (3 levels) in <top (required)>'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:54:in `instance_exec'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:54:in `run'
/Users/rbedretdinov/.rvm/gems/ruby-2.1.1/gems/sshkit-1.2.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => rvm:check
(See full trace by running task with --trace)

Here is my Gemfile contents:

source 'http://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

gem 'nokogiri', '~> 1.6.0'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

group :development, :test do
  gem 'sqlite3' # Use sqlite3 as the database for Active Record
end

group :production do
 gem 'therubyracer', :platforms => :ruby
 gem 'unicorn' # Use unicorn as the app server
 gem 'pg'
end

# Use Capistrano for deployment
group :development do
  gem 'capistrano', '~> 3.0'
  gem 'capistrano-rvm'
  gem 'capistrano-rails'
  gem 'capistrano-bundler'
  gem 'rspec'
end

# Use debugger
# gem 'debugger', group: [:development, :test]

#gem 'bcrypt-ruby', git: 'https://github.com/codahale/bcrypt-ruby.git', :require => 'bcrypt' #needed for prod

#gem 'money', '~>5.1' # fix for Bundler could not find compatible versions for gem "money"
#gem 'money', :github => "RubyMoney/money"
gem 'spree', :git => 'https://github.com/spree/spree.git', :branch => '2-1-stable'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', :branch => '2-1-stable'
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-1-stable'
gem 'devise-i18n', :git => 'https://github.com/tigrish/devise-i18n.git' #Contains proper russian translations for auth functionality

# Use this gem for zooming product images
gem "spree_product_zoom", :git => "https://github.com/BRZInc/spree_product_zoom.git" 

# Use this gem to add customizable fields to product page
# Use fork & need to fix mini_magick reference
gem 'mini_magick', :git => 'git://github.com/minimagick/minimagick.git', :ref => '6d0f8f953112cce6324a524d76c7e126ee14f392'
#gem 'spree_flexi_variants', :git => 'https://github.com/charredUtensil/spree_flexi_variants.git'

# Use this gem to have static pages in Spree,e.g. About page
gem 'spree_static_content', :git => 'https://github.com/DasWasser/spree_static_content.git', :branch => '2-1-stable'

# Turns on spree localization
gem 'russian'
gem 'rails-i18n'
gem 'spree_i18n', :git => 'https://github.com/spree/spree_i18n.git', :branch => '2-1-stable'
gem 'globalize', github: 'globalize/globalize'

# Allow paypal payments
gem 'spree_paypal_express', :github => "radar/better_spree_paypal_express", :branch => "2-1-stable"

# Allow bank transfer payments
gem 'spree_bank_transfer', :git => 'https://github.com/GarPit/spree_bank_transfer'

gem 'bootstrap-sass', '~> 3.1.0'
# Replaces standard frontend with bootstrap one
gem 'spree_bootstrap_frontend', :git => 'https://github.com/BRZInc/spree_bootstrap_frontend.git'

# Optimizes work with options
gem 'spree_variant_options', :git => 'https://github.com/joshblour/spree_variant_options.git', :branch => "2-1-stable"

# Turns on robokassa payments
gem 'spree_robokassa', :git => 'https://github.com/BRZInc/spree_robokassa.git', :branch => 'master'

# Allow to configure related products
gem 'spree_related_products', github: 'spree/spree_related_products', branch: '2-1-stable'

gem 'spree_slider', :git => 'https://github.com/BRZInc/spree_slider.git', :branch => '2-1-stable'

I've already tried to latest capistrano-rvm, capistrano-bundler, capistrano-rails gems versions.

Please help!

Dominant language
Ruby
Stars
140
Forks
44
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from capistrano/rvm

All issues in capistrano/rvm

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.