Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access PATH or gems from inside Signal #3

Open
manuelmeurer opened this issue Nov 21, 2009 · 6 comments
Open

Cannot access PATH or gems from inside Signal #3

manuelmeurer opened this issue Nov 21, 2009 · 6 comments

Comments

@manuelmeurer
Copy link

When I set up Signal as described and start a build, I get the output "sh: rake: not found".
Seems like "Kernel.system" cannot access my PATH. When I replace "rake" with "/opt/ruby-enterprise-1.8.6-20090610/bin/rake", I get an error message that the gem flog is not found when the metrics are build, although the gem is installed. When I execute the "rake build" command from the command line, everything works fine.

@manuelmeurer
Copy link
Author

This is most likely not a Signal issue but has to do with Passenger. http://www.icoretech.org/2009/08/passenger-mod_rails-path-on-leopard-snow-leopard/

@dcrec1
Copy link
Owner

dcrec1 commented Nov 23, 2009

Thanks Manuel, will put that link in the README.

@jacquescrocker
Copy link

I followed this advice, but it still can't find RVM

* branch master -> FETCH_HEAD
Already up-to-date.
sh: rvm: not found
rake aborted!
Don't know how to build task 'buil

I have RVM installed, and it works fine when I run script/server and use port 3000. Whats the secret to load in my bash_profile with passenger so it has the same PATH as my user?

@jacquescrocker
Copy link

Ok. That icoretech blog post you are linking to is ancient, and no longer works

Found the right answer here:
http://chrismdp.github.com/2010/03/multiple-ci-joes-with-rack-and-passenger/

In your passenger vhost file you can do this to set the path:

SetEnv PATH /usr/local/bin:/opt/ruby-ee/bin:/bin:/usr/bin

@jacquescrocker
Copy link

Here's the error I get now.

* branch master -> FETCH_HEAD
Already up-to-date.
ruby ruby-1.8 is not installed.
'rvm install ruby-1.8'
rake aborted!

@dcrec1
Copy link
Owner

dcrec1 commented Sep 26, 2010

When Passenger is executed, I think it uses the user that is the owner from the application but with the environmnet variables from the root user, something like this:

su deploy -c "rvm list"

try executing this as root to analyze the output, maybe you need to install rvm as system wide.

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

No branches or pull requests

3 participants