Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7008365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:43:31+00:00 2026-05-27T21:43:31+00:00

I have a problem with Capistrano deploying to a server with RVM and gemsets

  • 0

I have a problem with Capistrano deploying to a server with RVM and gemsets

executing `deploy:assets:precompile'
* executing "cd /var/app/releases/20111229233555 && rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
*** [err ::] rake aborted!
*** [err ::] Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
*** [deploy:update_code] rolling back
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell '1.9.2@mygemset' -c 'cd /var/app/releases/20111229234715 && rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'"

This is my Capfile

  $:.unshift(File.expand_path('./lib', ENV['rvm_path']))
  require 'rvm/capistrano'
  set :rvm_bin_path, "$HOME/.rvm/bin"
  set :rvm_ruby_string, '1.9.2@mygemset'
  set :rvm_type, :user
  load 'deploy/assets'

When I log in as the very same user which is used by Capistrano the failing command is executed without any problems.

It seems that Capistrano is using some other environment.

Here is my ~/.rvmrc file:

   rvm_gemset_create_on_use_flag=1 rvm_trust_rvmrcs_flag=1

Is there a way how to check which ruby and gemset is used at the execution time?

node.js is and V8 are installed on the system, and all needed gems are in Gemfile:

here is my rvm info:

   ruby:
    interpreter:  "ruby"
    version:      "1.9.2p290"
    date:         "2011-07-09"
    platform:     "x86_64-linux"
    patchlevel:   "2011-07-09 revision 32553"
    full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]"

  homes:
    gem:          "/home/capistrano/.rvm/gems/ruby-1.9.2-p290@mygemset"
    ruby:         "/home/capistrano/.rvm/rubies/ruby-1.9.2-p290"

  binaries:
    ruby:         "/home/capistrano/.rvm/rubies/ruby-1.9.2-p290/bin/ruby"
    irb:          "/home/capistrano/.rvm/rubies/ruby-1.9.2-p290/bin/irb"
    gem:          "/home/capistrano/.rvm/rubies/ruby-1.9.2-p290/bin/gem"
    rake:         "/home/capistrano/.rvm/gems/ruby-1.9.2-p290@mygemset/bin/rake"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:43:32+00:00Added an answer on May 27, 2026 at 9:43 pm

    setting up PATH in the deploy.rb solved this issue:

    default_environment['PATH'] = "/usr/local/bin:/usr/bin:/bin:/opt/bin:$PATH"
    

    it’s a Gentoo distribution and the PATH var seems to be empty when using cap deploy, so I copied the content of server PATH and now it works

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A previously-working Rails 3.1 app is now failing to deploy. The Capistrano deploy:assets:precompile task
I have problem to deploy via very fresh capifony up on Capistrano v2.8.0 -
So this is my problem. I used Capistrano to deploy my Rails 3 app
I have following code in my deploy.rb namespace :app do desc copies the configuration
Precompiling assets on the production server is very slow. So I have decided to
I have a VPS Linux Server with this environment: rvm + ror + ngixn
I have problem running my app on Android 2.3 (Gingerbread). The app has a
I have problem in some JavaScript that I am writing where the Switch statement
I have problem with return statment >.< I want to store all magazine names
I have problem with starting processes in impersonated context in ASP.NET 2.0. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.