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

  • Home
  • SEARCH
  • 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 5958945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:36:55+00:00 2026-05-22T18:36:55+00:00

I painted myself into a bit of an annoying corner. I started using RVM

  • 0

I painted myself into a bit of an annoying corner.

I started using RVM and have one of my apps now sitting happily in its own Ruby 1.8.7@appname gemset. I can make the gemset from scratch and do bundle install to install all the gems.All is good.

So, on the server where the app is hosted, under nginx with passenger, I installed RVM under the user “deploy” that owns the app folder. Then I installed all the gems with bundle install. Then, I changed the nginx config to point to the new version of the app, the one that runs under RVM. BAM!, Passenger starts complaining about the gems not being present.

I think the problem is that nginx runs as root, which doesn’t have RVM defined. “No problem” I thought, I’ll set the app’s RVM to be the system default. So, I switched to root, then did rvm --default 1.8.7@appname. I got:

rvm: command not found

back, so, it looks like RVM was only installed for the “deploy” user. I guess i should have installed it for all users, following RVM’s install document.

Do I have to start again from scratch? I.E., should I switch back to the “deploy” user, uninstall RVM and all traces of it, then reinstall it as root? Or can I run nginx/passenger in the right RVM?

  • 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-22T18:36:56+00:00Added an answer on May 22, 2026 at 6:36 pm

    Preface: I’m not a current passenger user. So following stuff are only thoughts and memories.

    Firstly: If I remember correctly than only the main process of nginx runs definitly as root, but the child processes runs under user/group ID which you can set up in the nginx config. (And you should do this if you care for security!)

    Don’t know if this affect the passenger mod – would say, it should, because the main process is only for spanning up the worker processes which will do the real job. Also can’t say, if the helper process for passenger runs with same user rights than the worker. (It should, for same reason like in first paragraph.)

    There is a passenger_default_user setting you should use in nginx. It should avoid your user troubles.

    Secondly try the tips under https://rvm.beginrescueend.com/integration/passenger/

    They might be helpful especially in case of user installs of RVM.

    Please read the parts Notes, Troubleshooting and FAQ carefully!

    And my third point: I would prefer a system install of RVM on the production system. So you have the possibility to build different setups for different (system/service) users without having troubles of user scopes.

    Last but not least: I haven’t made so good experiences with a RVM-passenger-nginx setup in past. Also I’m not a friend of overloaded webservers/loadbalancers and so would never use the nginx passenger module any more. Keep out stuff which doesn’t belong to it.

    Alos keep in mind that the passenger-nginx mod kills the capability to use different rubies and ruby versions with nginx+passenger. Would say in this cases it makes less sense to use RVM. I prefer to use nginx as proxy only and let do the webserver job by unicorn/thin/whatever-else.

    Conclusion

    I would say, it’s not a problem with the root user. I think, something in your setup is missing or misconfigured.

    To answer your last questions: No, I think it’s not necessary to install a system rvm and yes, it should be possible to run passenger in nginx with correct (user) rvm.

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

Sidebar

Related Questions

I seem to have painted myself in to a bit of a generics coloured
I have just started to teach myself x86 assembly on linux from these video
I have an app that I pack into binary form using PerlApp for distribution.
I find myself using the Open Group's base specifications quite a bit when I
I have a JInternalFrame painted with a BufferedImage and contained in the JDesktopPane of
I have 3 data graphs that are painted via the their paint events. When
I have a JTable with a Renderer written by myself. When I set the
I'm loading .swf files into a WebView directly using webView.loadUrl(http://whatever.com/file.swf); . It works perfectly
I often find myself adding either concatonated strings or using a string formatter in
I have always been religiously using SGI's Standard Template Library Programmer's Guide (STLPG) as

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.